The purpose of this article is to introduce the use of Microsoft's Speech API (SAPI) 5.1 as an effective tool in game development and new projects based on text to speech converter . It is necessary to have the SAPI 5.1 SDK installed.andmatlab release 12 .
Note: This article will be using Matlab, on the Win32 platform. The source code and how to video for this article is available at the bottom of this page.
1. Make sure SAPI is installed on your computer
a) Get the Speech SDK 5.1 (86MB) for free from Microsoft:
b) Test your default computer voice
Start -> Control Panel -> Sounds,Speech...-> Speech -> Text To Speech -> Preview Voice
2. Add the text2speech folder to your Matlabpath,Please follow the steps as shown in the video
Matlab code for Text to Speech Converter
tts.m - This function converts text into speech (latest .Net version).
speak.m This function converts text into speech (old).
initSpeech.m loads the speech library (a privat function)
text2speech.m This function converts text into speech (old, but allows voice attributes).
unloadSpeechLibrary.m unloads the speech library
we respect your privacy.