<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>All the Cool Developers use Speech APIs : Text to Speech</title><link>http://blogs.msdn.com/chuckop/archive/tags/Text+to+Speech/default.aspx</link><description>Tags: Text to Speech</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Enumerating TTS Engines using System.Speech.Synthesizer</title><link>http://blogs.msdn.com/chuckop/archive/2008/07/30/enumerating-tts-engines-using-system-speech-synthesizer.aspx</link><pubDate>Thu, 31 Jul 2008 00:48:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8792542</guid><dc:creator>Charles Oppermann</dc:creator><slash:comments>3</slash:comments><comments>http://blogs.msdn.com/chuckop/comments/8792542.aspx</comments><wfw:commentRss>http://blogs.msdn.com/chuckop/commentrss.aspx?PostID=8792542</wfw:commentRss><description>&lt;p&gt;Here is a quick and dirty C# console application that will list out the installed TTS engines and associated properties.&amp;#160; Make sure you add System.Speech to your project's list of references.&lt;/p&gt;  &lt;pre class="code"&gt;&lt;span style="color: blue"&gt;using &lt;/span&gt;System;
&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Collections.Generic;
&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Speech;
&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Speech.Synthesis;
&lt;span style="color: blue"&gt;using &lt;/span&gt;System.Speech.AudioFormat;

&lt;span style="color: blue"&gt;namespace &lt;/span&gt;SelectVoice
{
  &lt;span style="color: blue"&gt;class &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SelectVoice
  &lt;/span&gt;{
    &lt;span style="color: blue"&gt;static void &lt;/span&gt;Main(&lt;span style="color: blue"&gt;string&lt;/span&gt;[] args)
    {
      &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;SelectVoice Example&amp;quot;&lt;/span&gt;);
      &lt;span style="color: #2b91af"&gt;SpeechSynthesizer &lt;/span&gt;ttsSynth = &lt;span style="color: blue"&gt;new &lt;/span&gt;&lt;span style="color: #2b91af"&gt;SpeechSynthesizer&lt;/span&gt;();

      &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Listing installed speech synthesizer voices...&amp;quot;&lt;/span&gt;);
      &lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;InstalledVoice &lt;/span&gt;ttsVoice &lt;span style="color: blue"&gt;in &lt;/span&gt;ttsSynth.GetInstalledVoices())
      {
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Name:\t{0}&amp;quot;&lt;/span&gt;, ttsVoice.VoiceInfo.Name);
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Desc:\t{0}&amp;quot;&lt;/span&gt;, ttsVoice.VoiceInfo.Description);
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Id:\t{0}&amp;quot;&lt;/span&gt;, ttsVoice.VoiceInfo.Id);
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Gender:\t{0}&amp;quot;&lt;/span&gt;, ttsVoice.VoiceInfo.Gender);
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Age:\t{0}&amp;quot;&lt;/span&gt;, ttsVoice.VoiceInfo.Age);

        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Supported Audio Formats:&amp;quot;&lt;/span&gt;);
        &lt;span style="color: blue"&gt;foreach &lt;/span&gt;(&lt;span style="color: #2b91af"&gt;SpeechAudioFormatInfo &lt;/span&gt;audioFormat &lt;span style="color: blue"&gt;in &lt;/span&gt;ttsVoice.VoiceInfo.SupportedAudioFormats)
        {
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\tEncodingFormat:\t{0}&amp;quot;&lt;/span&gt;, audioFormat.EncodingFormat);
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\tChannelCount:\t{0}&amp;quot;&lt;/span&gt;, audioFormat.ChannelCount);
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\tBits/sec:\t{0}&amp;quot;&lt;/span&gt;, audioFormat.BitsPerSample);
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\tAvg Bytes/sec:\t{0}&amp;quot;&lt;/span&gt;, audioFormat.AverageBytesPerSecond);
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\tSamples/sec:\t{0}&amp;quot;&lt;/span&gt;, audioFormat.SamplesPerSecond);
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\tBlockAlign:\t{0}&amp;quot;&lt;/span&gt;, audioFormat.BlockAlign);
        }

        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Additional Information:&amp;quot;&lt;/span&gt;);
        &lt;span style="color: blue"&gt;foreach&lt;/span&gt;(&lt;span style="color: #2b91af"&gt;KeyValuePair&lt;/span&gt;&amp;lt;&lt;span style="color: blue"&gt;string&lt;/span&gt;, &lt;span style="color: blue"&gt;string&lt;/span&gt;&amp;gt; kvp &lt;span style="color: blue"&gt;in &lt;/span&gt;ttsVoice.VoiceInfo.AdditionalInfo)
          &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;\t{0}:  {1}&amp;quot;&lt;/span&gt;, kvp.Key, kvp.Value);
        &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine();
      }
    &lt;span style="color: #2b91af"&gt;Console&lt;/span&gt;.WriteLine(&lt;span style="color: #a31515"&gt;&amp;quot;Finished listing installed voices.&amp;quot;&lt;/span&gt;);

    ttsSynth.SelectVoice(&lt;span style="color: #a31515"&gt;&amp;quot;Microsoft Anna&amp;quot;&lt;/span&gt;);
    ttsSynth.Speak(&lt;span style="color: #a31515"&gt;&amp;quot;Greetings, my name is &amp;quot; &lt;/span&gt;+ ttsSynth.Voice.Name);&lt;br /&gt;    }
  }
}&lt;/pre&gt;
&lt;a href="http://11011.net/software/vspaste"&gt;&lt;/a&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8792542" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/chuckop/archive/tags/Speech+-+APIs/default.aspx">Speech - APIs</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Text+to+Speech/default.aspx">Text to Speech</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/System.Speech/default.aspx">System.Speech</category></item><item><title>Speech Content in the Windows SDK</title><link>http://blogs.msdn.com/chuckop/archive/2008/02/26/speech-content-in-the-windows-sdk.aspx</link><pubDate>Tue, 26 Feb 2008 12:46:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7901471</guid><dc:creator>Charles Oppermann</dc:creator><slash:comments>9</slash:comments><comments>http://blogs.msdn.com/chuckop/comments/7901471.aspx</comments><wfw:commentRss>http://blogs.msdn.com/chuckop/commentrss.aspx?PostID=7901471</wfw:commentRss><description>&lt;P mce_keep="true"&gt;I'm happy to announce the availability of the RTM release of the Windows SDK.&amp;nbsp; This release - the first RTM one since Vista - contains the following speech-related items:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;I&gt;Updated&lt;/I&gt;: SAPI 5.3 documentation&lt;/LI&gt;
&lt;LI&gt;&lt;I&gt;Updated&lt;/I&gt;: System.Speech documentation&lt;/LI&gt;
&lt;LI&gt;&lt;I&gt;Updated&lt;/I&gt;: Sample source code&lt;/LI&gt;
&lt;UL&gt;
&lt;LI&gt;8 C++ projects&lt;/LI&gt;
&lt;LI&gt;3 C# projects&lt;/LI&gt;
&lt;LI&gt;2 sample engines - TTS and SR&lt;/LI&gt;&lt;/UL&gt;
&lt;LI&gt;&lt;I&gt;New&lt;/I&gt;: Grammar Compiler (GC.EXE) tool now part of the tool binaries included in the SDK&lt;/LI&gt;&lt;/UL&gt;
&lt;P mce_keep="true"&gt;The Windows SDK completely replaces the older SAPI 5.1 SDK and supports development on Windows XP, Windows Server 2003, Windows Vista, and Windows Server 2008.&lt;/P&gt;
&lt;P mce_keep="true"&gt;Customers can download this SDK as a DVD image (1,330MB ISO file) from this location:&lt;BR&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;Or go through a guided setup process where only the components they need are downloaded.&amp;nbsp; Speech is part of the base install.&lt;BR&gt;&lt;A href="http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=E6E1C3DF-A74F-4207-8586-711EBE331CDC&lt;/A&gt;&lt;/P&gt;
&lt;P mce_keep="true"&gt;&amp;nbsp;I'm particularly interested in &lt;A class="" title="Email Charles Oppermann" href="mailto:chuckop@microsoft.com" mce_href="mailto:chuckop@microsoft.com"&gt;your feedback&lt;/A&gt; regarding the Windows SDK as a whole and in particular getting speech information.&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=7901471" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/chuckop/archive/tags/Speech+-+APIs/default.aspx">Speech - APIs</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Text+to+Speech/default.aspx">Text to Speech</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Speech+Recognition/default.aspx">Speech Recognition</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Speech/default.aspx">Speech</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/SAPI+5.3/default.aspx">SAPI 5.3</category></item><item><title>Background on Audio Volume in Windows Vista</title><link>http://blogs.msdn.com/chuckop/archive/2007/04/18/background-on-audio-volume-in-windows-vista.aspx</link><pubDate>Wed, 18 Apr 2007 19:33:16 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2177254</guid><dc:creator>Charles Oppermann</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.msdn.com/chuckop/comments/2177254.aspx</comments><wfw:commentRss>http://blogs.msdn.com/chuckop/commentrss.aspx?PostID=2177254</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Our friend in the multimedia group and prolific blogger &lt;a href="http://blogs.msdn.com/larryosterman/" target="_blank"&gt;Larry Osterman&lt;/a&gt; is writing a series of articles on how volume is treated in Windows Vista.&lt;/p&gt; &lt;p&gt;There is a whole new &lt;a title="Core Audio APIs in Windows Vista" href="http://msdn2.microsoft.com/en-us/library/ms678710.aspx" target="_blank"&gt;audio sub-system in Vista&lt;/a&gt; and Larry's blog is a great source of information for developers.&lt;/p&gt; &lt;p&gt;&lt;/p&gt; &lt;p&gt;&lt;a&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;&lt;a href="http://blogs.msdn.com/larryosterman/archive/2007/04/03/volume-in-windows-vista-part-1-what-is-volume.aspx" target="_blank"&gt;Volume in Windows Vista, part 1: What is "volume"?&lt;/a&gt;&lt;br&gt;&lt;a href="http://blogs.msdn.com/larryosterman/archive/2007/04/04/volume-in-windows-vista-part-2-types-of-volume-in-windows-vista.aspx" target="_blank"&gt;Volume in Windows Vista, part 2: Types of volume in Windows Vista&lt;/a&gt;&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=2177254" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/chuckop/archive/tags/Speech+-+APIs/default.aspx">Speech - APIs</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Text+to+Speech/default.aspx">Text to Speech</category></item><item><title>Microsoft Speech API SDK</title><link>http://blogs.msdn.com/chuckop/archive/2006/11/24/microsoft-speech-api-sdk.aspx</link><pubDate>Fri, 24 Nov 2006 20:58:21 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1141728</guid><dc:creator>Charles Oppermann</dc:creator><slash:comments>10</slash:comments><comments>http://blogs.msdn.com/chuckop/comments/1141728.aspx</comments><wfw:commentRss>http://blogs.msdn.com/chuckop/commentrss.aspx?PostID=1141728</wfw:commentRss><description>&lt;p&gt;&lt;/p&gt; &lt;p&gt;The Speech API Software Developers Kit (SAPI SDK) contains the documentation, samples, and header and library files to create applications and utilities that use speech recognition and voice synthesis. In addition, the SAPI SDK can be used to create speech recognition and voice synthesis engines that can be used by other applications. &lt;p&gt;Generally, the version of SAPI is determined by the platform that shipped it. SAPI 5.1 was included with Windows XP along with the Microsoft Sam TTS engine. The initial release of Windows XP did not include a speech recognition engine. The Tablet PC Edition of Windows XP did include version 6.1 of Microsoft's speech recognition engine. This was also shipped with Office 2003. Office 2003 also included SAPI TTS voices from Lernout &amp;amp; Hauspie, called LH Michael and LH Michelle. Also note that some vendors include SR and TTS engines with their products. For example, my laptop came with speech recognition and TTS engine provided by Toshiba. &lt;p&gt;With Windows Vista, the version of SAPI that is installed is 5.3. We have replaced the Microsoft Sam voice with next generation technology in a new female voice we call Microsoft Anna. We have also made major improvements to the speech recognition engine (now version 8.0) and that is included in all editions of Windows Vista. &lt;p&gt;For the SDK, you can download the SAPI 5.1 SDK to create applications and engines that work on Windows XP and Windows Server 2003. These applications or engines should also be forward-compatible with SAPI 5.3 on Windows Vista and beyond. The SAPI 5.1 SDK is a stand-alone package, separate from other Microsoft SDK's. &lt;p&gt;With SAPI 5.3, we integrated our SDK into the main Windows SDK (sometimes known as the Platform SDK). You can use the Windows SDK to create applications for Windows Vista, Windows XP, and Windows Server 2003. What OS version you target is done at compile-time, and that prevents features that only exist in latter versions from being available. &lt;p&gt;You can get an ISO image to burn the SDK to a DVD here: &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=7614FE22-8A64-4DFB-AA0C-DB53035F40A0"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=7614FE22-8A64-4DFB-AA0C-DB53035F40A0&lt;/a&gt; &lt;p&gt;To selectively download and install various components of the Windows SDK, go here: &lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyId=C2B1E300-F358-4523-B479-F53D234CDCCF&lt;/a&gt; &lt;p&gt;Something else that is new is our Managed Speech API's. Codenamed SpeechFX, the Managed Speech API is part of the Microsoft .NET Framework 3.0. The new System.Speech namespace provides managed classes for speech recognition and synthesis. This makes it much easier to write speech applications from managed code, such as C# or Visual Basic .NET. &lt;p&gt;The Managed Speech API documentation is included with the Windows SDK. Applications that use .NET Framework 3.0 will work on Windows Vista, Windows XP and Windows Server 2003. Note that you have to redistribute the .NET Framework 3.0 with your application for Windows XP and Windows Server 2003. The framework is already included with Windows Vista.&lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=1141728" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/chuckop/archive/tags/Speech+-+APIs/default.aspx">Speech - APIs</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Microsoft/default.aspx">Microsoft</category><category domain="http://blogs.msdn.com/chuckop/archive/tags/Text+to+Speech/default.aspx">Text to Speech</category></item></channel></rss>