Module tonerecognizer
Use the tone recognizer service to recognize DTMF tones within a stream
Functions
- ToneRecognizer.waitForDigits (url, numberOfDigits, timeoutInSeconds)
-
Wait for a set of digits from the stream
Parameters:
- url
- numberOfDigits
- timeoutInSeconds
- ToneRecognizer.waitForOneDigit (url, digit, timeoutInSeconds)
-
Wait for a specific digit from the stream
Parameters:
- url string The url of the device to wait for digits
- digit string The digit to wait for
- timeoutInSeconds number How long to wait for the digit