Answered by:
speech

Question
-
Hi,
Using Speech SDK 5.1
- How can I make male or female voice for text to speech?
- Can I deploy application on windows server 2003 or server 2008?
- Can it read Chinese or other languages too?
- Can I get ancient of english like US and UK?
Thank you
- Moved by Chao Kuo Sunday, October 10, 2010 8:45 AM speech,, there is a forum for it, but i forget (From:Visual Basic General)
Monday, September 27, 2010 3:05 PM
Answers
-
You can change that using a PromptBuilder. Here is a sample....however, be aware that XP, for example...only has one voice on my machine, which is MS Sam, a male voice. (So, I can ask for a female voice, but...I will not get one.)
Dim speak As New SpeechSynthesizer Dim prompt As New PromptBuilder() Dim pstyle As New PromptStyle(PromptEmphasis.Strong) prompt.StartVoice(VoiceGender.Female, VoiceAge.Child) prompt.AppendText("This is a test.") prompt.StartStyle(pstyle) prompt.AppendText("This is emphasized.") prompt.EndStyle() prompt.AppendText("This is not emphasized.") prompt.EndVoice() Try speak.Speak(prompt) Catch ex As Exception MessageBox.Show("Exception in TestIt." & vbCrLf & _ ex.Message & vbCrLf & ex.StackTrace, _ Application.ProductName, _ MessageBoxButtons.OK, _ MessageBoxIcon.Exclamation) End Try
- Proposed as answer by Ed Price - MSFTMicrosoft employee Tuesday, May 29, 2012 3:44 AM
- Marked as answer by Just Karl Wednesday, September 19, 2012 5:53 PM
Monday, September 27, 2010 7:25 PM -
Other places to ask (depending on your context)...
http://social.msdn.microsoft.com/forums/en-US/windowssdk/threads/
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/threads
http://social.msdn.microsoft.com/Forums/en-US/kinectsdkaudioapi/threads
http://social.technet.microsoft.com/Forums/en-US/winserversetup/threads
http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/threads
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)
Answer an interesting question? Create a wiki article about it!- Proposed as answer by Ed Price - MSFTMicrosoft employee Tuesday, April 2, 2013 5:57 PM
- Edited by Ed Price - MSFTMicrosoft employee Tuesday, April 2, 2013 6:00 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Tuesday, April 16, 2013 2:01 PM
Tuesday, April 2, 2013 5:57 PM
All replies
-
It is not clear to me why you are using the SDK, but...tht comes with documentation that covers all of that. You can either hardcode the attributes, or read then from an XML file.
However, Speech API is already included in the .NET framework using the assembly System.Speech (System.Speech.Synthesis) Here is a link to the VoiceInfo class that you would use to program those attributes:
http://msdn.microsoft.com/en-us/library/system.speech.synthesis.voiceinfo.aspx
Monday, September 27, 2010 4:41 PM -
It is not clear to me why you are using the SDK, but...tht comes with documentation that covers all of that. You can either hardcode the attributes, or read then from an XML file.
However, Speech API is already included in the .NET framework using the assembly System.Speech (System.Speech.Synthesis ) Here is a link to the VoiceInfo class that you would use to program those attributes:
http://msdn.microsoft.com/en-us/library/system.speech.synthesis.voiceinfo.aspx
Thanks.Gender,Age culture and all other are readonly properties, How can I set them as I need?
Monday, September 27, 2010 6:45 PM -
You can change that using a PromptBuilder. Here is a sample....however, be aware that XP, for example...only has one voice on my machine, which is MS Sam, a male voice. (So, I can ask for a female voice, but...I will not get one.)
Dim speak As New SpeechSynthesizer Dim prompt As New PromptBuilder() Dim pstyle As New PromptStyle(PromptEmphasis.Strong) prompt.StartVoice(VoiceGender.Female, VoiceAge.Child) prompt.AppendText("This is a test.") prompt.StartStyle(pstyle) prompt.AppendText("This is emphasized.") prompt.EndStyle() prompt.AppendText("This is not emphasized.") prompt.EndVoice() Try speak.Speak(prompt) Catch ex As Exception MessageBox.Show("Exception in TestIt." & vbCrLf & _ ex.Message & vbCrLf & ex.StackTrace, _ Application.ProductName, _ MessageBoxButtons.OK, _ MessageBoxIcon.Exclamation) End Try
- Proposed as answer by Ed Price - MSFTMicrosoft employee Tuesday, May 29, 2012 3:44 AM
- Marked as answer by Just Karl Wednesday, September 19, 2012 5:53 PM
Monday, September 27, 2010 7:25 PM -
Thank you, above is helpful.
Please tell me how can I use different culture voice styles like Indian has different English style, chines and German has different English with different style. I know and tried below, but it did not work as I am saying.
Thank you
prompt.StartVoice(CulterInfo)
Monday, September 27, 2010 10:54 PM -
I have noticed that after playing code, the quality of voice is not good. It clearly shows, it is not human. I tried code with desktop and web too. OS is winXP
Any advise?
Tuesday, September 28, 2010 10:34 AM -
Other places to ask (depending on your context)...
http://social.msdn.microsoft.com/forums/en-US/windowssdk/threads/
http://social.msdn.microsoft.com/Forums/en-US/windowsgeneraldevelopmentissues/threads
http://social.msdn.microsoft.com/Forums/en-US/kinectsdkaudioapi/threads
http://social.technet.microsoft.com/Forums/en-US/winserversetup/threads
http://social.msdn.microsoft.com/Forums/en-US/windowsmobiledev/threads
Thanks!
Ed Price (a.k.a User Ed), SQL Server Customer Program Manager (Blog, Small Basic, Wiki Ninjas, Wiki)
Answer an interesting question? Create a wiki article about it!- Proposed as answer by Ed Price - MSFTMicrosoft employee Tuesday, April 2, 2013 5:57 PM
- Edited by Ed Price - MSFTMicrosoft employee Tuesday, April 2, 2013 6:00 PM
- Marked as answer by Ed Price - MSFTMicrosoft employee Tuesday, April 16, 2013 2:01 PM
Tuesday, April 2, 2013 5:57 PM