text-to-speech

How to fix compiler errors in SAPI 5.1 Header Files

僤鯓⒐⒋嵵緔 提交于 2020-01-14 05:14:18
问题 I got a lot of errors from SAPI 5.1 provided header files and cannot figure out how to fix those problems. Following is a simple Text to Speech program from Microsoft’s How to Video Presentation. The presenter said, if you have installed the most updated packages, you will have no problem compile this program. But he is using Video Studio 2005; apparently the “most updated” refers a few years ago when the presentation was given. I think these errors are caused version miss match. I am using

Making a Text-To-Speech Wrapper in Android

╄→гoц情女王★ 提交于 2020-01-14 04:10:07
问题 I am attempting to create a wrapper class for Google Android's Text-To-Speech functionality. However, I'm having trouble finding a way to have the system pause until after the onInit function has finished. Attached at the bottom is something of a solution I created based on what I found here: Android speech - how can you read text in Android? However, this solution does not seem to work. Any thoughts on why this might not be working, or what would be a good idea in order to make sure that any

SpeechSynthesizer in ASP.NET - async error

淺唱寂寞╮ 提交于 2020-01-13 20:23:26
问题 I would like to be able to generate speech in my ASP.NET app by calling speak.aspx?text=Hello%20world . This would give a response in .wav format. So far I have a blank page with code behind: protected void Page_PreRender(object sender, EventArgs e) { using (var ss = new SpeechSynthesizer()) { MemoryStream str = new MemoryStream(); ss.SetOutputToWaveStream(str); ss.Speak(Server.UrlDecode(Request.QueryString["text"])); Response.AddHeader("Content-Type", "audio/wav"); str.WriteTo(Response

SpeechSynthesizer in ASP.NET - async error

僤鯓⒐⒋嵵緔 提交于 2020-01-13 20:22:10
问题 I would like to be able to generate speech in my ASP.NET app by calling speak.aspx?text=Hello%20world . This would give a response in .wav format. So far I have a blank page with code behind: protected void Page_PreRender(object sender, EventArgs e) { using (var ss = new SpeechSynthesizer()) { MemoryStream str = new MemoryStream(); ss.SetOutputToWaveStream(str); ss.Speak(Server.UrlDecode(Request.QueryString["text"])); Response.AddHeader("Content-Type", "audio/wav"); str.WriteTo(Response

Can C# SAPI speak SSML string?

吃可爱长大的小学妹 提交于 2020-01-13 18:01:15
问题 I implemented a TTS in my C# WPF project. Previously, I use the TTS in System.Speech.Synthesis namespace to speak. The speaking content is in SSML format (Speech Synthesizer Markup Language, support customize the speaking rate, voice, emphasize) like following: <speak version="1.0" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><prosody rate="x-fast">hello world. This is a long sentence speaking very fast!</prosody></speak> But unfortunately the System.Speech.Synthesis TTS has a

JS Speech Synthesis Issue on iOS

跟風遠走 提交于 2020-01-13 09:48:10
问题 I recently implemented a basic web app which relied on Google's TTS URL to generate clear MP3 files for playback on the front end. This has since been subject to an additional security check, meaning I have had to update the code base to use alternative methods. One such alternative is javascript's speech synthesis API, i.e. SpeechSynthesisUtterance() and window.speechSynthesis.speak('...'). This works really well on my desktop and laptop but as soon as I use it on my iOS devices, the rate of

Looper threads issue? But not using Animator

馋奶兔 提交于 2020-01-11 12:12:47
问题 I am running a loop to SynthesizeToFile (in this example I will run the loop 10 times) for(int i = 0; i< 10; i++) { textToSpeech.SynthesizeToFile("SOME TEXT", null, new Java.IO.File(System.IO.Path.Combine(documentsPath, i.ToString() + "_audio.wav")), i.ToString()); } TTS Initialising void TextToSpeech.IOnInitListener.OnInit(OperationResult status) { try { Voice voiceobj = new Voice("en-us-x-sfg#female_2-local", Java.Util.Locale.English, VoiceQuality.VeryHigh, VoiceLatency.VeryHigh, false,

Google Text to Speech

混江龙づ霸主 提交于 2020-01-07 03:04:49
问题 I have an application that reads a set of instructions from the parse database and reads them out as they are displayed. I changed my default text to speech from Samsung to Google and now the app reads through the instructions with no commas or intonation. I cannot seems to circumvent this by changing tts.setSpeechRate. Any ideas on how to manipulate the reading by Google text to speech so that the speech makes sense and it not one rolling sentence from one instruction to another? 回答1: When

Google Text to Speech

与世无争的帅哥 提交于 2020-01-07 03:04:14
问题 I have an application that reads a set of instructions from the parse database and reads them out as they are displayed. I changed my default text to speech from Samsung to Google and now the app reads through the instructions with no commas or intonation. I cannot seems to circumvent this by changing tts.setSpeechRate. Any ideas on how to manipulate the reading by Google text to speech so that the speech makes sense and it not one rolling sentence from one instruction to another? 回答1: When

How to slow down text to Speech with SSML - voice sounds distorted/warped/ghastly

 ̄綄美尐妖づ 提交于 2020-01-06 15:40:16
问题 i am using nuance dragon mobile sdk for iPhone, for using text to speech. The readed text is a little bit to fast and i want to make it slower, so the user can learn the words. My aim is to slow down the text a bit. That works very fine with SSML and prosody tag, see this code: <prosody rate="slow">This is the text which is spoken slow, but the voice sounds distorted/warped/ghastly</prosody> The voice sounds distorted, warped and ghastly . Do you understand what i mean? What can i do to get a