detect_dtmf.js
and paste into it this code.auto
and other allowed values are 2 to 10 seconds. If the user provides no new digits within the digitEndTimeout period, the digits entered to that point will be processed.numDigits sets the maximum number of digits the user can provide on the current call. The default value is 32 and the allowed values are 1 to 32.If the user provides more digits than the value of numDigits, Plivo will send only the number of digits specified as numDigits to the action URL; additional digit inputs will be ignored. For example, if numDigits is specified as “4” and the user enters five digits, the last digit will be ignored.finishOnKey defines a key that users can press to submit the digits they entered. The default value is # and additional allowed values are 0-9, *, <empty string>, and ”none.” When you set the value to <empty string> or “none,” DTMF input collection ends depending on the digitEndTimeout or the numDigits attribute.dtmf
and dtmf speech
and do not apply to input type speech
. If all three of these attributes are specified, the priority is for finishOnKey.detect_speech.js
and paste into it this code.default
, which is suitable for long-form audio, such as dictation, but you can also try command_and_search
for shorter audio clips, such as when you expect callers to use voice commands or voice search, or phone_call
, if you want to transcribe audio from a phone call. Explore the models and see which works best for your use case.Example XML:auto
; other allowed values are 2 to 10 seconds. If the user doesn‘t provide new speech input within the speechEndTimeout period, the speech collected to that point will be processed.language specifies the language and national/regional dialect of the audio to be recognized on calls. The default language for speech detection is en-US. You can choose your preferred language from the list of supported languages.profanityFilter: If a user speaks any profane words, Plivo can filter them out during transcription if you set this attribute to true
. The profanity filter applies only to single words — it doesn‘t work for a combination of words. The default value is false
.speech
and dtmf speech
and do not apply to input type dtmf
.true
, but if you define it to false
, logging will be disabled and Plivo will not log digit and speech input.