sapi

Is it possible to use WIndows Speech Recognition Engine in a word pronunciation game?

孤人 提交于 2019-12-01 09:28:17
I use to create an application that uses the windows speech recognition engine or the SAPI. its like a game for pronunciation that it give you score when you pronounce it correctly. but when i started experiments with SAPI, it has poor recognition unless if you load a grammar on it (XML) its give best recognition result. but the problem now is closest pronunciation from the input text will be recognize. for example: Database -> dedebase -> correct. even if you mispronounce it. it gives you correct answers. without using the xml grammar when you say database it give you "in the base/the base

Microsoft.Speech.Synthesis does not work for Text To Speech BUT System.Speech.Synthesis works.Why?

你离开我真会死。 提交于 2019-12-01 09:27:48
I just try to run simple microsoft example for Text To Speech using using Microsoft.Speech.dll; using System; using Microsoft.Speech.Synthesis; namespace TTS { class Program { public static void Main(string[] args) { Console.WriteLine("Testing TTS!"); // Initialize a new instance of the SpeechSynthesizer. using (SpeechSynthesizer synth = new SpeechSynthesizer()) { // Output information about all of the installed voices. Console.WriteLine("Installed voices -"); foreach (InstalledVoice voice in synth.GetInstalledVoices()) { VoiceInfo info = voice.VoiceInfo; Console.WriteLine(" Voice Name: " +

TTS for Chinese is throwing SAPI ERROR E_FAIL

痞子三分冷 提交于 2019-12-01 07:50:01
问题 This is my code for Chinese TTS which is failing in the speak function although Chinese TTS engine is installed successfully using Microsoft.Speech.Synthesis; using System.Globalization; namespace TTS3 { class Program { static void Main(string[] args) { //CultureInfo=new CultureInfo("zh-CN"); SpeechSynthesizer synth = new SpeechSynthesizer(); // Output information about all of the installed voices. foreach (InstalledVoice voice in synth.GetInstalledVoices(new CultureInfo("zh-CN"))) { synth

Is it possible to use WIndows Speech Recognition Engine in a word pronunciation game?

夙愿已清 提交于 2019-12-01 05:45:54
问题 I use to create an application that uses the windows speech recognition engine or the SAPI. its like a game for pronunciation that it give you score when you pronounce it correctly. but when i started experiments with SAPI, it has poor recognition unless if you load a grammar on it (XML) its give best recognition result. but the problem now is closest pronunciation from the input text will be recognize. for example: Database -> dedebase -> correct. even if you mispronounce it. it gives you

what is the difference between SpVoice and SpeechSynthesizer

狂风中的少年 提交于 2019-11-30 12:43:20
What is the difference between these two methods in C# using the speech API or SAPI ? using SpeechLib; SpVoice speech = new SpVoice(); speech.Speak(text, SpeechVoiceSpeakFlags.SVSFlagsAsync); returns the Apacela voices , and SpeechSynthesizer ss = new SpeechSynthesizer(); ss.SpeakAsync ("Hello, world"); Does not work with Apacela voices . The first one return all voices but the second one only return few voices. Is this something related to SAPI 5.1 and SAPI 5.3? The behavior is same on Vista and XP, on both SpVoice was able to detect the Apacela voice but using SpeechSynthesizer, the voices

php的管理进程管理利器--php-fpm

若如初见. 提交于 2019-11-30 07:39:19
1、php中fastcgi和php-fpm是什么东西 最近在研究和学习php的性能方面的知识,看到了factcgi以及php-fpm,发现我对他们是少之又少的理解,可以说几乎是一无所知,想想还是蛮可怕的。决定仔细的学习一下关于这方面的知识。 参考和学习了以下文章: 1. mod_php和mod_fastcgi和php-fpm的介绍,对比,和性能数据 2. 实战Nginx_取代 为了如何一步步的引出fastcgi和php-fpm,我先一点一点的说说关于php的周边。哎。突然觉得人活着好累! 先说说web服务器 php是为web而生的一门后端语言,我们php狗当然是最清楚的啦。所以php仅仅是一门后端语言,那么它就必须借助于web服务器,才能提供web功能。当然其他的后端语言如果做web应用,也必须借助于web服务器。好,由php引出了web服务器,不错! 那么常见的web服务器有哪些呢?php狗用的最多的就是Apache了,还有其他的: apache nginx IIS lighttpd tomcat 基本上就是上面几种,与php相关联起来用的最多的就是Apache和Nginx了。 我们先举例用apache当作web服务器,来说明一次完整的php访问的情况: 图片中就很好的解释了php与Apache结合mysql数据库的一次完成的web访问流程图 mod_php模式

How to save text-to-speech as a wav with Microsoft SAPI?

好久不见. 提交于 2019-11-30 04:25:41
I need to turn a text into speech and then save it as wav file. The following C# code uses the System.Speech namespace in the .Net framework. It is necessary to reference the namespace before using it, because it is not automatically referenced by Visual Studio. SpeechSynthesizer ss = new SpeechSynthesizer(); ss.Volume = 100; ss.SelectVoiceByHints(VoiceGender.Female, VoiceAge.Adult); ss.SetOutputToWaveFile(@"C:\MyAudioFile.wav"); ss.Speak("Hello World"); I hope this is relevant and helpful. And as I've found for how to change output format, we code something like this : SpeechAudioFormatInfo

what is the difference between SpVoice and SpeechSynthesizer

↘锁芯ラ 提交于 2019-11-29 18:54:32
问题 What is the difference between these two methods in C# using the speech API or SAPI? using SpeechLib; SpVoice speech = new SpVoice(); speech.Speak(text, SpeechVoiceSpeakFlags.SVSFlagsAsync); returns the Apacela voices, and SpeechSynthesizer ss = new SpeechSynthesizer(); ss.SpeakAsync ("Hello, world"); Does not work with Apacela voices. The first one return all voices but the second one only return few voices. Is this something related to SAPI 5.1 and SAPI 5.3? The behavior is same on Vista

How to save SAPI text to speech to an audio file in VBScript?

笑着哭i 提交于 2019-11-29 16:06:37
I have the following VBScript code for text to speech conversion: Set objVoice = CreateObject("SAPI.SpVoice") objVoice.Speak Inputbox("Enter Text") I want to save the speech to an audio file. How can I do this? You can save the SAPI output to a .WAV file as follows: Create and open a .WAV file as a stream using the SpFileStream.Open method. Assign this file stream to the SpVoice.AudioStream property. Here's an example: Const SAFT48kHz16BitStereo = 39 Const SSFMCreateForWrite = 3 ' Creates file even if file exists and so destroys or overwrites the existing file Dim oFileStream, oVoice Set

C++ MSAPI 5: SetNotifyCallbackFunction not working

此生再无相见时 提交于 2019-11-29 14:39:53
So I've tried the MSAPI 5.4 TTS with event example . Now I create an cmd prompt app that utilize the SetNotifyCallbackFunction but the function that I've pass is not being called. I'm not an expert in C++ so I am having difficulty in solving this one, can anyone point me in the right direction or at least give me a good example of SetNotifyCallbackFunction? Here is a simplified version of my code: typedef void __stdcall SPNOTIFYCALLBACK(WPARAM wParam, LPARAM lParam); void __stdcall outsideeventFunction(WPARAM, LPARAM); void __stdcall outsideeventFunction(WPARAM wParam, LPARAM lParam){ std: