What are event handlers?
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: …
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_