Forum guidelines
AuthorQuestion
Female Voice Text to Speech
Posted on: 05 Feb 2013
this is sateesh working as a .net developer i want female voice how to get it sir .this is very urgent please reply as early as possible. i am trying but male voice getting but i want female voice

Thanking you sir.

Sateesh.Vankayala
ph:09014470340
Email::vsateesh.mca@gmail.com
Hyderabad
AuthorReply
Re: Female Voice Text to Speech
Posted on: 05 Feb 2013  
There is a method SelectVoiceByHints in SpeechSynthesizer.

Try that


SpeechSynthesizer speech= new SpeechSynthesizer();
speech.SelectVoiceByHints(VoiceGender.Female);

Thanks & Regards,
Santhosh

Please mark this answer as accepted answer if it resolves your problem.
Re: Female Voice Text to Speech
Posted on: 05 Feb 2013  
Thanking you sir,getting female voice in 2010 but i want in 2008 version 3.5 frame work
Sateesh.Vankayala
ph:09014470340
Email::vsateesh.mca@gmail.com
Hyderabad
Re: Female Voice Text to Speech
Posted on: 06 Feb 2013  
Its supported in 3.5 framework.

http://msdn.microsoft.com/en-us/library/vstudio/system.speech.synthesis.voicegender(v=vs.90).aspx

You might need to add System.Speech.dll

Thanks & Regards,
Santhosh

Please mark this answer as accepted answer if it resolves your problem.
Re: Female Voice Text to Speech
Posted on: 06 Feb 2013  
text to voice.rar Am Attached My Code please Check it Sir,

 am Getting the error like...... Asynchronous operations are not allowed in this context. Page starting an asynchronous operation has to have the Async attribute set to true and an asynchronous operation can only be started on a page prior to PreRenderComplete event.


Sateesh.Vankayala
ph:09014470340
Email::vsateesh.mca@gmail.com
Hyderabad
Re: Female Voice Text to Speech
Posted on: 07 Feb 2013  
Sir,

   Its Very Urgent for me please send reply as early as possible..........

Sateesh.Vankayala
ph:09014470340
Email::vsateesh.mca@gmail.com
Hyderabad
Re: Female Voice Text to Speech
Posted on: 07 Feb 2013  
In your button click,
 remove your exisitng code and add this

 protected void btn1_Click(object sender, EventArgs e)
        {
          

             SpeechSynthesizer speech = new SpeechSynthesizer();
             speech.SpeakAsync(txtspeach.Text);  
             speech.SelectVoiceByHints(VoiceGender.Female);
        }

In your aspx page , add Async="true" in your page tag

<%@ Page Language="C#" AutoEventWireup="true"  Async="true"  CodeBehind="Default.aspx.cs" Inherits="Text_To_Voice._Default" %>


Thanks & Regards,
Santhosh

Please mark this answer as accepted answer if it resolves your problem.

SPONSORED BY

Custom Software Development
MCN is your source for developing solutions involving websites, mobile apps, cloud-computing, databases, BI, back-end services and processes and client-server applications.