SimpleSpeak
SimpleSpeak is very simple speaking application :-) It uses Windows SAPI engine to produce synthetic human voice.
It can be used in two ways. If you run the program without any command line parameters it shows you some user interface where you can enter stuff that you want the program to say. You can however run the program with parameters.
Command line parameters
The first parameter is always the string that should be said. There are some other parameters that control the sound of voice. See the list and some examples below.
- -x ... voice (0..default, 1..another voice, etc.)
- -v ... volume (0..silent, 100..loud)
- -s ... speed (0..slow, 20..fast)
Examples
- Speak hello ... Says "hello".
- Speak "hello world" ... Says "hello world". When more than one word is about to be said, you need to surround the text with quotation marks. This is not the problem of the program, it is how Windows works.
- Speak "hello world" -s20 -v25 -x1 ... Says "hello world" very fast, somewhat silently with second installed voice (first voice is -x0).
Important downloads
As mentioned above, this program uses SAPI engine to speak. Although it is installed on most PCs with Windows, it may happen that you don't have it on yours. You can download it here.
- SAPI 5.1 ... speaking engine plus some additional voices
- SAPI 4.0 ... older version of engine
- Extra voices ... English, International
C# source code
using SpeechLib;
...
string text = "Hello";
int speed = 0;
int volume = 100;
int voice = 0;
SpVoice speech = new SpVoice();
ISpeechObjectTokens voices = speech.GetVoices(string.Empty, string.Empty);
speech.Voice = voices.Item(voice);
speech.Rate = speed; //Ranges from -10 to 10
speech.Volume = volume; //Ranges from 0 to 100
speech.Speak(text, SpeechVoiceSpeakFlags.SVSFlagsAsync);
speech.WaitUntilDone(System.Threading.Timeout.Infinite);
Changelog
- 0.1 ... initial release
Comments
Comming soon...