Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are event handlers?

event handlers
0
10 Posted

What are event handlers?

0

In VoiceXML there are some event handlers defined to handle error conditions. If some input is expected, but the user keeps silent, the voice platform will say per default something like “I’m sorry, I didn’t hear you”. If the users input does not match an expected grammar he will probably hear something like “Sorry, I didn’t get that”. HAWHAW offers three functions (in various HAWHAW classes) in order to override these default texts with your individual text: • set_voice_help($text, $audio_src, $url) • set_voice_nomatch($text, $audio_src, $url) • set_voice_noinput($text, $audio_src, $url) $text is some ASCII string, which will be text-to-speech-converted by the voice platform. Alternatively you can record an audio wav-file, which will be played, if the event handler throws the according event. And last but not least you can define a $url which will be visited, when the given event occurs. All these event handler functions can be used more than once per objects: …

0

In VoiceXML there are some event handlers defined to handle error conditions. If some input is expected, but the user keeps silent, the voice platform will say per default something like “I’m sorry, I didn’t hear you”. If the users input does not match an expected grammar he will probably hear something like “Sorry, I didn’t get that”. HAWHAW offers three functions (in various HAWHAW classes) in order to override these default texts with your individual text: • set_voice_help($text, $audio_src, $url) • set_voice_nomatch($text, $audio_src, $url) • set_voice_noinput($text, $audio_src, $url) $text is some ASCII string, which will be text-to-speech-converted by the voice platform. Alternatively you can record an audio wav-file, which will be played, if the event handler throws the according event. And last but not least you can define a $url which will be visited, when the given event occurs. All these event handler functions can be used more than once per objects: … $myInput->set_voice_

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.