VXML check which audio is playing

88 Views Asked by At

Is there anyway in javascript for checking which vxml audio element is currently playing similar to HTML audio element ? or whether audio playing has ended or started ?

1

There are 1 best solutions below

1
On

If you end your audio list with a form and your VoiceXML browser supports it, you can use the mark feature to accomplish what you want. However, it is messy as it isn't usually implemented and there isn't a standard way to get the results. As I read it, you only get the time offset, not the specific clip, so then you are forced into embedding your file lengths into your code to interpret what file was playing. I've never found it practical to use this feature.

Given those limitations, you are back to the answer suggested in your other question. Insert forms between the files with very short timeouts.