2

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 ?

Kaustubh
  • 51
  • 3

1 Answers1

0

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.

Jim Rush
  • 4,143
  • 3
  • 25
  • 27
  • If there is a mark before every single audio tag and one after the last, the markname should tell you which audio tag is playing without needing to know the time. The time is only needed if you want to know how much of the most recent audio was played. Or do I have that wrong? – Jerry Jeremiah Jul 09 '21 at 03:48