Code covered by the BSD License
This function converts text into speech.
text2speech( text )
You can enter any form of text (less than 512 characters per line) into this function and it speaks it all.
Note: It requires that the Microsoft SAPI is installed. The speech SDK 5.1 can be obtained from: http://www.microsoft.com/downloads/details.aspx?FamilyId=5E86EC97-40A7-453F-B0EE-6583171B4530&displaylang=en
I would like to thank "Desmond (Dez) Lang" for his Text-To-Speech tutorial and my wife for letting me play with the computer ;).
You can find Desmond's tutorial at: http://www.gamedev.net/reference/articles/article1904.asp All I did, was to make use of this fantastic tutorial and put it into a little DLL.
Input:
Output:
Casual chat. Speak({'Hello. How are you?','It is nice to speak to you.','regards SAPI.'})
Emphasising text2speech('You can EMPH emphasis /EMPH text.');
Silence text2speech('There will be silence now MSEC=''500''/ and speech again.');
text2speech('You can middle=''-10''/ drop the pitch.'); text2speech('But you can make it middle=''+10''/ jump as well.');
initSpeech, unloadSpeechLibrary
Published with wg_publish; V1.0
Contact us at files@mathworks.com