<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Text-To-Speech in Silverlight Using WCF</title>
	<atom:link href="http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/</link>
	<description></description>
	<lastBuildDate>Mon, 02 Jan 2012 16:56:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
	<item>
		<title>By: lynn</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-595</link>
		<dc:creator>lynn</dc:creator>
		<pubDate>Fri, 09 Dec 2011 06:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-595</guid>
		<description>i&#039;m using visual studio 2010, but it can&#039;t work since it needs to convert into a newer version... how can i solve this? there&#039;s a lot of files which disables the function of this file.</description>
		<content:encoded><![CDATA[<p>i&#8217;m using visual studio 2010, but it can&#8217;t work since it needs to convert into a newer version&#8230; how can i solve this? there&#8217;s a lot of files which disables the function of this file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lagunas</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-584</link>
		<dc:creator>Brian Lagunas</dc:creator>
		<pubDate>Thu, 03 Nov 2011 19:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-584</guid>
		<description>At the time of this posting it was developed and tested against IIS 6.</description>
		<content:encoded><![CDATA[<p>At the time of this posting it was developed and tested against IIS 6.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tolga</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-583</link>
		<dc:creator>Tolga</dc:creator>
		<pubDate>Thu, 03 Nov 2011 19:24:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-583</guid>
		<description>This doesn&#039;t seem to work in IIS 6, correct?</description>
		<content:encoded><![CDATA[<p>This doesn&#8217;t seem to work in IIS 6, correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Graham</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-532</link>
		<dc:creator>Graham</dc:creator>
		<pubDate>Wed, 31 Aug 2011 16:34:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-532</guid>
		<description>If you have problems deploying this on a server it is likely that there is a permissions problem. I fixed this by making the application pool run under a local account that had administrative permissions.

Cheers - Graham</description>
		<content:encoded><![CDATA[<p>If you have problems deploying this on a server it is likely that there is a permissions problem. I fixed this by making the application pool run under a local account that had administrative permissions.</p>
<p>Cheers &#8211; Graham</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Speech enable your web pages using Silverlight, WCF and the Managed Speech API &#171; Second Life of a Hungarian SharePoint Geek</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-449</link>
		<dc:creator>Speech enable your web pages using Silverlight, WCF and the Managed Speech API &#171; Second Life of a Hungarian SharePoint Geek</dc:creator>
		<pubDate>Sun, 09 Jan 2011 22:58:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-449</guid>
		<description>[...] few months I read several articles about speech-capabilities of Silverlight. A few days ago I found this article where Brian Lagunas shows us how to create a WCF bridge between Silverlight and server-side Managed [...]</description>
		<content:encoded><![CDATA[<p>[...] few months I read several articles about speech-capabilities of Silverlight. A few days ago I found this article where Brian Lagunas shows us how to create a WCF bridge between Silverlight and server-side Managed [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nina Oukhina</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-62</link>
		<dc:creator>Nina Oukhina</dc:creator>
		<pubDate>Thu, 13 May 2010 23:58:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-62</guid>
		<description>Dear Brian,
It is so nice that you are responding to me.
I saw this suggestion in  some forum. And I did this already.
Unfortunetely, I am getting the same message.
Thank you so much any way.
I appreciate.
N.</description>
		<content:encoded><![CDATA[<p>Dear Brian,<br />
It is so nice that you are responding to me.<br />
I saw this suggestion in  some forum. And I did this already.<br />
Unfortunetely, I am getting the same message.<br />
Thank you so much any way.<br />
I appreciate.<br />
N.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lagunas</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-61</link>
		<dc:creator>Brian Lagunas</dc:creator>
		<pubDate>Thu, 13 May 2010 22:07:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-61</guid>
		<description>SpeechSynthesizer.SetOutputToWaveFile Method requires full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see  http://msdn.microsoft.com/en-us/library/8skskf63.aspx

You can also try to  set the IIS Application Pools-&gt;Set Application Pools Defaults configuration for all Application Pools-&gt;Load User Profile from false to true.

Good luck.</description>
		<content:encoded><![CDATA[<p>SpeechSynthesizer.SetOutputToWaveFile Method requires full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see  <a href="http://msdn.microsoft.com/en-us/library/8skskf63.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/8skskf63.aspx</a></p>
<p>You can also try to  set the IIS Application Pools->Set Application Pools Defaults configuration for all Application Pools->Load User Profile from false to true.</p>
<p>Good luck.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nina Oukhina</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-60</link>
		<dc:creator>Nina Oukhina</dc:creator>
		<pubDate>Thu, 13 May 2010 21:02:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-60</guid>
		<description>Dear Brian,
I am really Sorry I did spelling mistake in your name and other words in my previous message. Sorry.
If you will be so kind and launch reference  with my speech page as 
http://www.mtklicensing.com:3537/
Enter some text and click button &quot;start&quot;.
You will see message :
--------3-------- No voice installed on the system or none available with the current security settings.

This message was catched by try with number 3 ( please see  a code in  previous message)
It means exception happend in this line :
SpeechSynthesizer ss = null;

My server is Windows Server 2003 
In internet nobody discuss problem with security and speech.
Please tell me , do you know  web site, where speech as you described in article works.
If you do , could you please sent me information how properly to make publishing on a host 
such speech service application.
Thank you,
Nina
P.S. Please remember, this application perfectly work inside Visual Studio.</description>
		<content:encoded><![CDATA[<p>Dear Brian,<br />
I am really Sorry I did spelling mistake in your name and other words in my previous message. Sorry.<br />
If you will be so kind and launch reference  with my speech page as<br />
<a href="http://www.mtklicensing.com:3537/" rel="nofollow">http://www.mtklicensing.com:3537/</a><br />
Enter some text and click button &#8220;start&#8221;.<br />
You will see message :<br />
&#8212;&#8212;&#8211;3&#8212;&#8212;&#8211; No voice installed on the system or none available with the current security settings.</p>
<p>This message was catched by try with number 3 ( please see  a code in  previous message)<br />
It means exception happend in this line :<br />
SpeechSynthesizer ss = null;</p>
<p>My server is Windows Server 2003<br />
In internet nobody discuss problem with security and speech.<br />
Please tell me , do you know  web site, where speech as you described in article works.<br />
If you do , could you please sent me information how properly to make publishing on a host<br />
such speech service application.<br />
Thank you,<br />
Nina<br />
P.S. Please remember, this application perfectly work inside Visual Studio.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nina Oukhina</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-59</link>
		<dc:creator>Nina Oukhina</dc:creator>
		<pubDate>Thu, 13 May 2010 17:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-59</guid>
		<description>Dear Drian,
Thank you for your response.
You can see may website  at : www.mtklicensing.com:3536
I made a separate page to check only sound as : www.mtklicensing.com:3537
 If you type  some text and than make a text selection and than click button &quot;Start Sound&quot;
web service will work.
All texts, please see here:

C L I E N T __________________________________________
private void requestToTheServer(string text)
              {
                 try{
                  uri = new Uri(Application.Current.Host.Source, &quot;../SpeechServiceTrust.svc&quot;);
                  clientSpeech = new OnlySpeech.SpeechServiceTrustClient(&quot;CustomBinding_SpeechServiceTrust&quot;, uri.AbsoluteUri);
              
                  clientSpeech.CreateWavStreamWCFCompleted+=new EventHandler(clientSpeech_CreateWavStreamWCFCompleted);
                  clientSpeech.CreateWavStreamWCFAsync(text);
                     
                    }
                    catch (Exception ee1)
                    {
                        MessageBox.Show(&quot;exception=&quot; + ee1.Message);
                        if(ee1.InnerException!=null)  MessageBox.Show(&quot;inner=&quot; + ee1.InnerException.Message);
                    }
              }

              void clientSpeech_CreateWavStreamWCFCompleted(object sender, SpeechService.OnlySpeech.CreateWavStreamWCFCompletedEventArgs e)
              {
                  if (e.Result == null) MessageBox.Show(&quot;null&quot;);
                 

                  byte[] bbs=e.Result;
                  char[] ccs=new char[bbs.Length];
                  for(int i=0;i&lt;bbs.Length;i++)
                  {
                   ccs[i]=(char)bbs[i];
                  }
                   string resh=new string(ccs);
                   MessageBox.Show(resh);
                  // SpeechBytes = e.Result;
                  clientSpeech.CreateWavStreamWCFCompleted -= new EventHandler(clientSpeech_CreateWavStreamWCFCompleted);
                 
              }
         
             
S E R V E R ________________________ service method

  public byte[] getSpeechStream(string text)
        {
            try
            {
                SpeechSynthesizer ss = null;
                try
                {
                   ss = new SpeechSynthesizer();
                }
                catch (Exception e1)
                {
                    string mes = &quot;&quot;;
                    if (e1.InnerException != null) mes = e1.InnerException.Message;
                    mes += &quot;____1______&quot; + e1.Message;

                    byte[] a = System.Text.Encoding.GetEncoding(&quot;iso-8859-1&quot;).GetBytes(mes);
                    return a;
                }
                MemoryStream ms = new MemoryStream();
                try
                {
                    ss.SetOutputToWaveStream(ms);
                }
                catch (Exception e2)
                {
                    string mes = &quot;&quot;;
                    if (e2.InnerException != null) mes = e2.InnerException.Message;
                    mes += &quot;_____2_____&quot; + e2.Message;

                    byte[] a = System.Text.Encoding.GetEncoding(&quot;iso-8859-1&quot;).GetBytes(mes);
                    return a;
                }
                ss.Speak(text);
                return ms.ToArray();
            }
            catch (Exception ee)
            {
                string mes = &quot;&quot;;
                if (ee.InnerException != null) mes = ee.InnerException.Message;
                mes += &quot;_____3_____&quot; + ee.Message;

                byte[] a = System.Text.Encoding.GetEncoding(&quot;iso-8859-1&quot;).GetBytes(mes);
                return a;
            }
        }

-----------------------------
I really appreciate your attantion.
Thank you,
Nina</description>
		<content:encoded><![CDATA[<p>Dear Drian,<br />
Thank you for your response.<br />
You can see may website  at : <a href="http://www.mtklicensing.com:3536" rel="nofollow">http://www.mtklicensing.com:3536</a><br />
I made a separate page to check only sound as : <a href="http://www.mtklicensing.com:3537" rel="nofollow">http://www.mtklicensing.com:3537</a><br />
 If you type  some text and than make a text selection and than click button &#8220;Start Sound&#8221;<br />
web service will work.<br />
All texts, please see here:</p>
<p>C L I E N T __________________________________________<br />
private void requestToTheServer(string text)<br />
              {<br />
                 try{<br />
                  uri = new Uri(Application.Current.Host.Source, &#8220;../SpeechServiceTrust.svc&#8221;);<br />
                  clientSpeech = new OnlySpeech.SpeechServiceTrustClient(&#8220;CustomBinding_SpeechServiceTrust&#8221;, uri.AbsoluteUri);</p>
<p>                  clientSpeech.CreateWavStreamWCFCompleted+=new EventHandler(clientSpeech_CreateWavStreamWCFCompleted);<br />
                  clientSpeech.CreateWavStreamWCFAsync(text);</p>
<p>                    }<br />
                    catch (Exception ee1)<br />
                    {<br />
                        MessageBox.Show(&#8220;exception=&#8221; + ee1.Message);<br />
                        if(ee1.InnerException!=null)  MessageBox.Show(&#8220;inner=&#8221; + ee1.InnerException.Message);<br />
                    }<br />
              }</p>
<p>              void clientSpeech_CreateWavStreamWCFCompleted(object sender, SpeechService.OnlySpeech.CreateWavStreamWCFCompletedEventArgs e)<br />
              {<br />
                  if (e.Result == null) MessageBox.Show(&#8220;null&#8221;);</p>
<p>                  byte[] bbs=e.Result;<br />
                  char[] ccs=new char[bbs.Length];<br />
                  for(int i=0;i&lt;bbs.Length;i++)<br />
                  {<br />
                   ccs[i]=(char)bbs[i];<br />
                  }<br />
                   string resh=new string(ccs);<br />
                   MessageBox.Show(resh);<br />
                  // SpeechBytes = e.Result;<br />
                  clientSpeech.CreateWavStreamWCFCompleted -= new EventHandler(clientSpeech_CreateWavStreamWCFCompleted);</p>
<p>              }</p>
<p>S E R V E R ________________________ service method</p>
<p>  public byte[] getSpeechStream(string text)<br />
        {<br />
            try<br />
            {<br />
                SpeechSynthesizer ss = null;<br />
                try<br />
                {<br />
                   ss = new SpeechSynthesizer();<br />
                }<br />
                catch (Exception e1)<br />
                {<br />
                    string mes = &#8220;&#8221;;<br />
                    if (e1.InnerException != null) mes = e1.InnerException.Message;<br />
                    mes += &#8220;____1______&#8221; + e1.Message;</p>
<p>                    byte[] a = System.Text.Encoding.GetEncoding(&#8220;iso-8859-1&#8243;).GetBytes(mes);<br />
                    return a;<br />
                }<br />
                MemoryStream ms = new MemoryStream();<br />
                try<br />
                {<br />
                    ss.SetOutputToWaveStream(ms);<br />
                }<br />
                catch (Exception e2)<br />
                {<br />
                    string mes = &#8220;&#8221;;<br />
                    if (e2.InnerException != null) mes = e2.InnerException.Message;<br />
                    mes += &#8220;_____2_____&#8221; + e2.Message;</p>
<p>                    byte[] a = System.Text.Encoding.GetEncoding(&#8220;iso-8859-1&#8243;).GetBytes(mes);<br />
                    return a;<br />
                }<br />
                ss.Speak(text);<br />
                return ms.ToArray();<br />
            }<br />
            catch (Exception ee)<br />
            {<br />
                string mes = &#8220;&#8221;;<br />
                if (ee.InnerException != null) mes = ee.InnerException.Message;<br />
                mes += &#8220;_____3_____&#8221; + ee.Message;</p>
<p>                byte[] a = System.Text.Encoding.GetEncoding(&#8220;iso-8859-1&#8243;).GetBytes(mes);<br />
                return a;<br />
            }<br />
        }</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
I really appreciate your attantion.<br />
Thank you,<br />
Nina</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Lagunas</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-58</link>
		<dc:creator>Brian Lagunas</dc:creator>
		<pubDate>Thu, 13 May 2010 02:32:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-58</guid>
		<description>What is the error exactly?</description>
		<content:encoded><![CDATA[<p>What is the error exactly?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

