Today’s our VoiceXML code example shows a very simple Karaoke Phone Service to record an audio file during song’s music is playing. VXI* VoiceXML browser makes it very simple! thanks to its announcement property. Once confirmed the audio file generated is submited to a send.php script, so you can easily store the song in a web directory, send it by email or SMS…etc
- <property name=”announcement” value=”true”/> set a background audio during recording
- clip.wav song’music file WAV PCM 16bit 8khz mono to listen with <record> tag
- send.php PHP script to manage the audio file recorded (Post method).
That’s it! You now have a working karaoke script in its simplest form.