TEXT TO SPEECH DEMO

This demo shows how the Matrix handles

1. You must have the viavoice tts runtime and sdk installed correctley
2. The device devtts must be compiled after installing the viavoice software
3. Start the console device in one xterm on your machine
> /usr/local/martix/bin/devconsole
4. Start the testtts script in a third xterm
> /usr/local/matrix/bin/testtts
5. Start the testtts script in a third xterm
> /usr/local/matrix/bin/testtts
6. Move the mouse to the xterm where the devconsole is running
7. Press the key "s"
8. You should here the sentence "Hello, you have installed the matrix correct". This sentence also is printed out on devconsole
9. Press any other key
10. You should here "You have pressed the key _your_pressed_key"
11. Look at the testtts script and find out how it works.
12. Be happy everything is working right.

 


 

 

 

 

 

 



sourcecode

#!/usr/local/matrix/bin/

matrixuse con = console@localhost("");
use tts = tts@localhost("");

string s;

-> con:read('s')
{
        con:writeln("Hello, you have installed the matrix correct.");
        tts:say("Hello, you have installed the matrix correct.");

}

-> con:read(^s)
{
        tts:say("You have pressed the key");
        tts:say(s);
}
 

text to speech demo here