<?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>Fri, 16 Jul 2010 17:01:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<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-57</link>
		<dc:creator>Nina Oukhina</dc:creator>
		<pubDate>Thu, 13 May 2010 00:35:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-57</guid>
		<description>Dear Brian,
I am working with Silverlight 3 and Visual Studio 2008  and I am using the same stuff that you are presented here.
&quot;Speech to Text&quot;  is working  perfectly, when I started my project inside Visual Studio.
BUt when I published web site on a host. Security error appears.
The reason is System.Speech has to be called only from full trust assembly.
I made strong name( sn.exe)to  my assembly and put it in GAC (gacutil.exe).
But still I have error.
I was greatly appreciated ,if you can comment my situation.
Thank you,
Nina.</description>
		<content:encoded><![CDATA[<p>Dear Brian,<br />
I am working with Silverlight 3 and Visual Studio 2008  and I am using the same stuff that you are presented here.<br />
&#8220;Speech to Text&#8221;  is working  perfectly, when I started my project inside Visual Studio.<br />
BUt when I published web site on a host. Security error appears.<br />
The reason is System.Speech has to be called only from full trust assembly.<br />
I made strong name( sn.exe)to  my assembly and put it in GAC (gacutil.exe).<br />
But still I have error.<br />
I was greatly appreciated ,if you can comment my situation.<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-34</link>
		<dc:creator>Brian Lagunas</dc:creator>
		<pubDate>Sat, 27 Mar 2010 14:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-34</guid>
		<description>Yes, you must change to service endpoints in both the web.config and the ServiceReferences.ClientConfig in the Silverlight project to match your environment. I don’t know how you have your solution setup, but to avoid having to worry about cross-domain policies, place your service in the hosting web project (the project that hosts your Silverlight client).</description>
		<content:encoded><![CDATA[<p>Yes, you must change to service endpoints in both the web.config and the ServiceReferences.ClientConfig in the Silverlight project to match your environment. I don’t know how you have your solution setup, but to avoid having to worry about cross-domain policies, place your service in the hosting web project (the project that hosts your Silverlight client).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: simon-john roberts</title>
		<link>http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/comment-page-1/#comment-33</link>
		<dc:creator>simon-john roberts</dc:creator>
		<pubDate>Sat, 27 Mar 2010 11:19:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.brianlagunas.com/index.php/2010/03/07/text-to-speech-in-silverlight-using-wcf/#comment-33</guid>
		<description>Im thinking of using the core of this for a free timer im putting out in the wild.

do i need to adjust the localhost to something public therefore? and punch open a port for the service?

Many thanks.</description>
		<content:encoded><![CDATA[<p>Im thinking of using the core of this for a free timer im putting out in the wild.</p>
<p>do i need to adjust the localhost to something public therefore? and punch open a port for the service?</p>
<p>Many thanks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
