I would make an optional Blind database of sound files to download with a lot of different words and phrases...
Then... have a verbose option for say... the ICS chat window.
Code: Select all
PlaySound(TEXT("C:\\Windows\\Media\\Windows Balloon.wav"), NULL, SND_FILENAME);
Use something like this with the directory full of .wav files of what was to be spoken, then use a bool array[speak] using flags 0 or 1, turning the wave files on||off ... after parsing the chat line to what is in the database of files... the words or phrases would be spoken as/after they were parsed...
[ics chat]
Hello from Crafty
[database] scan... parse chat.
[turn files on||off]
0,0,1,0,0,0,0,1,1,0,0,0,0....
(array [2 , 7, 8] = speak)
[verbose out]
Code: Select all
PlaySound(TEXT("C:\\Windows\\Media\\hello.wav"), NULL, SND_FILENAME);
sleep(500);
PlaySound(TEXT("C:\\Windows\\Media\\from.wav"), NULL, SND_FILENAME);
sleep(500);
PlaySound(TEXT("C:\\Windows\\Media\\crafty.wav"), NULL, SND_FILENAME);
or .... Research Windows SAPI