Page 1 of 1

Text-to-speech or concatenating sound files

PostPosted: Fri Aug 05, 2005 3:10 pm
by BeyondtheTech
While text-to-speech (TTS) may be a stretch (it would probably increase the file size if it was standard, and you'd be limited to the voice that Makslane would provide), I want my games and multimedia applications to be able to talk back to you, especially on the Pocket PC, where it would definitely be a head-turner.

The other limitation is the ability to play certain sound files one after another. Just as the individual who was having issues with a repeating laser sound, I thought of an excellent feature that could be established.

One method would be a multiple PlaySound event, such as:

PROPOSED:
Code: Select all
strcat(playstring,"Energyat.wav;",13);
strcat(playstring,"100.wav;",8);
strcat(playstring,"5.wav;",7);
strcat(playstring,"percent.wav",11);
PlaySound(playstring,1,1);


Separated by semicolons, that command would play each WAV file one after the other on the same channel. The result? "Energy at 105 percent."

Another method would be to make the audio files "stackable" on a particular channel.

If the original PlaySound/PlaySound2/PlayMusic commands return the value of the audio channel that's playing the sound file, then you can create a command like this:
Code: Select all
StackSound2("fire.wav",channel,vol,loop);
StackMusic("nextsong.ogg",channel,vol,loop);

It will then add the fire.wav file after the last sound file is done playing its loop (if any), or queue up the next song after the last song has finished its loop (if any).

How does that sound for a cool feature?

PostPosted: Fri Aug 05, 2005 4:30 pm
by willg101
I really like this idea!

PostPosted: Wed May 10, 2006 7:26 pm
by BeyondtheTech
Hey, Makslane. Any chance on implementing this feature yet? Is it hard to do?

PostPosted: Wed May 10, 2006 7:40 pm
by makslane
Not yet, sorry