Text-To-Speech con il .NET Framework 3.0

Realizzare applicazioni con funzionalità di Text-To-Speech utilizzando il .NET Framework 3.0 è semplicissimo. Dopo aver aggiunto una reference allla libreria System.Speech, sono sufficienti poche righe di codice:

using System.Speech.Synthesis; //... using (SpeechSynthesizer ss = new SpeechSynthesizer()) { ss.SelectVoice("ScanSoft Silvia_Dri40_16kHz"); ss.Speak("Ciao, spero che vada tutto bene. Ti auguro una buona giornata!"); }

Il motore di text-to-speech può essere esteso con nuove voci. Nell'esempio ho utilizzato quella scaricabile gratuitamente all'indirizzo http://download.microsoft.com/download/1/2/2/12246417-CD66-4541-B32B-8CD18E92AAE7/RSSolo4Italian.zip.

Questo codice funziona sia con Windows Vista sia con Windows XP.

posted @ martedì 19 dicembre 2006 17.51

Print

Comments on this entry:

# Re: Text-To-Speech con il .NET Framework 3.0

Left by Babba at 19/12/2006 21.35
Gravatar
bellissimo!!! grazie della segnalazione

# Parlami meglio PC!

Left by BabbaBlog at 19/12/2006 22.46
Gravatar

# Uno Speech Server mininale con il .NET Framework 3.0

Left by Around and About .NET World at 05/01/2007 13.08
Gravatar

# Uno Speech Server mininale con il .NET Framework 3.0

Left by Around and About .NET World at 05/01/2007 13.10
Gravatar

# re: Text-To-Speech con il .NET Framework 3.0

Left by matraca at 12/02/2008 14.37
Gravatar
Grazie 1000 è splendida questa cosa!!!!
Grazie

# re: Text-To-Speech con il .NET Framework 3.0

Left by marco sturiale at 20/06/2008 13.25
Gravatar
Perchè questo file non è più disponibile dal sito della microsoft!?

Your comment:



 (will not be displayed)


 
 
 
Please add 7 and 2 and type the answer here:
 

Live Comment Preview: