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 [...] read more
I am using C#.Net to develop the Speech recognition engine to develop speech to text in bangla. I have tried several times to load the grammer file to the speechengine. But it shows me the error. How I can resolve this problem. My XML grammer loading code is grammar.CmdLoadFromFile(appPath + [...] read more
I understand that SAPI can use SSML with the SPF_PARSE_SSML however I have not been able to get this to work, always getting a SPERR_UNSUPPORTED_FORMAT error. Is something else needed to enable it? Special voices, some extra flag? I tried setting different voices explicitly (my Win 10 machine seems to [...] read more
var speechEngine = new SpVoiceClass(); SetVoice(speechEngine, job.Voice); var fileMode = SpeechStreamFileMode.SSFMCreateForWrite; var fileStream = new SpFileStream(); try { fileStream.Open(filePath, fileMode, false); speechEngine.AudioOutputStream = fileStream; speechEngine.Speak(job.Script, SpeechVoiceSpeakFlags.SVSFPurgeBeforeSpeak | SpeechVoiceSpeakFlags.SVSFDefault); //TODO: Change to XML //Wait for 15 minutes only speechEngine.WaitUntilDone((uint)new TimeSpan(0, 15, 0).TotalMilliseconds); } finally { fileStream.Close(); } This exact code works [...] read more