All:
I'm looking into developing a sports app with voice annotation (play-by-play) that requires quick responses, and I'm wondering which format to use (.mp3, .wav, etc.), Windows text to voice or something else?
I've looked at the tech database and found a code snippet that doesn't seem to work as advertised. (see attached)
It seems that every time I attempt to use WinBatch functions with Windows commands, I get flummoxed. Guess that's why I'm a newbie.
I am using WinBatch 2021b and Win 10
Which file format/playback would best fit the requiremments? (speed of response, file sizes, indexing, etc.)
Is there a way to have one BIG sound file with many snippets in it that can be indexed so only a portion (start point) and (stop point) of the file be played?
Thanks in advance!
dir = AskDirectory("Choose directory of songs to play", "", "", "", 0 )
DirChange(dir)
songlist = FileItemize( "*.mp3" )
count = ItemCount( songlist, @TAB )
For xx = 1 To count
song = ItemExtract( xx, songlist, @TAB )
PlayMedia('open mpegvideo!' : song : ' alias music')
PlayMedia("play music WAIT");Wait for song to complete
Next
Exit