title: convert audio memory stream
body: <blockquote>
    <p>Hi i want to to convert the memory stream to mp3 and then send it to
    the client and play it :</p>
  </blockquote>
  
  <p>here is my asmx code :</p>
  
  <pre><code>[WebMethod]
  public byte[] StartSpeak(string Word)
  {
      MemoryStream ms = new MemoryStream();
      using (System.Speech.Synthesis.SpeechSynthesizer synhesizer = new System.Speech.Synthesis.SpeechSynthesizer())
      {
          synhesizer.SelectVoiceByHints(System.Speech.Synthesis.VoiceGender.NotSet, System.Speech.Synthesis.VoiceAge.NotSet, 0, new System.Globalization.CultureInfo("en-US"));
          synhesizer.SetOutputToWaveStream(ms);
          synhesizer.Speak(Word);
      }
      return ms.ToArray();
  
  }
  </code></pre>
  
  <p>Thanks.</p>