![]() |
|
[VB.NET] Microsoft Speech - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: Visual Basic & .NET Framework (https://sinister.li/Forum-Visual-Basic-NET-Framework) +--- Thread: [VB.NET] Microsoft Speech (/Thread-VB-NET-Microsoft-Speech) |
[VB.NET] Microsoft Speech - karan - 05-22-2011 You will have to include System.Speech as a reference in your project. System.Speech is a part of .net framework 3.0 iirc........ [/php]Code: (vb) [Select] Sub Talk(byval data as string) Dim Talker As New Synthesis.SpeechSynthesizer Talker .SpeakAsync(data) End sub Usage: Code: (vb) [Select] Talk("Hello, my name is karan ") The program will use the machines default voice, so if you want something other than Microsoft Sam, you can install someone else and make it the default voice, and the program will use that |