sapi

Delphi SAPI Text-To-Speech

只谈情不闲聊 提交于 2019-11-29 08:21:51
问题 First of all: this is not a duplicate of Delphi and SAPI. I have a specific problem with the "SAPI in Delphi" subject. I have used the excellent Import Type-Library guide in Delphi 2009 to get a TSpVoice component in the component palette. This works great. With var SpVoice: TSpVoice; I can write SpVoice.Speak('This is an example.', 1); to get asynchronous audio output. First question According to the documentation, I would be able to write SpVoice.Speak('This is an example.', 0); to get

SAPI: Speech to Text example

守給你的承諾、 提交于 2019-11-29 05:16:12
I am new to SAPI, and I would really appreciate if any of you can provide me a speech to text Hello World example in SAPI. I know MS got some examples like "Dictation" etc, but I would like to start with a very small one. Glad if you can help. I played a bit with Windows Voice Recognition using SAPI, it really isn't user friendly. Here is an example of code I wrote (in C++) : #include <sphelper.h> #include <sapi.h> #include <iostream> #include <string> const ULONGLONG grammarId = 0; const wchar_t* ruleName1 = L"ruleName1"; int start_listening(const std::string& word); ISpRecoGrammar* init

WasapiLoopbackCapture internal audio recognition gives jibberish and text when no audio

只谈情不闲聊 提交于 2019-11-28 08:27:53
问题 I finally have built a program to listen to the internal audio loopback using NAudio, and output recognized text. The problem is it listens, and always says, eg: Recognized text: had Recognized text: had Recognized text: had Recognized text: had Recognized text: had had phone Le K add phone Laton Recognized text: had phone looked had phone looked had phone looked had phone lo oked zone Recognized text: had phone lines to had, had phone looked had phone looked had p hone line had phone

What is SAPI and when would you use it?

孤人 提交于 2019-11-28 04:04:14
I've been learning about error handling in PHP recently and came across the error_log() function . In the PHP manual, it talks about all the error log types and I understand all of them except for type 3 which states that the error message is sent directly to the SAPI logging handler. My question is what exactly is SAPI and when would you want to use it? Ignacio Vazquez-Abrams SAPI stands for "Server API" (and API stands for "Application Programming Interface"). It is the mechanism that controls the interaction between the "outside world" and the PHP/Zend engine. So, you would always want to

How to open sapi train window in a c# application?

徘徊边缘 提交于 2019-11-28 01:40:55
I want to open windows sapi train window in my application. I find this process's file path is "C:\Windows\System32\Speech\SpeechUX\SpeechUXWiz.exe".But when i attempt to open it by dobule click,it faild.I try to open this file in my application by process.start() method will be faild too. Process.Start(@"C:\Windows\System32\Speech\SpeechUX\SpeechUXWiz.exe"); Is there someone know how to open it? Is there a interface to do that in sapi? Thank you! My system is windows7 x64. Don't start the process directly; the details of the command line are version-dependent (and, in fact, the process itself

How to open sapi train window in a c# application?

老子叫甜甜 提交于 2019-11-27 19:13:11
问题 I want to open windows sapi train window in my application. I find this process's file path is "C:\Windows\System32\Speech\SpeechUX\SpeechUXWiz.exe".But when i attempt to open it by dobule click,it faild.I try to open this file in my application by process.start() method will be faild too. Process.Start(@"C:\Windows\System32\Speech\SpeechUX\SpeechUXWiz.exe"); Is there someone know how to open it? Is there a interface to do that in sapi? Thank you! My system is windows7 x64. 回答1: Don't start

SAPI: Speech to Text example

≯℡__Kan透↙ 提交于 2019-11-27 16:58:36
问题 I am new to SAPI, and I would really appreciate if any of you can provide me a speech to text Hello World example in SAPI. I know MS got some examples like "Dictation" etc, but I would like to start with a very small one. Glad if you can help. 回答1: I played a bit with Windows Voice Recognition using SAPI, it really isn't user friendly. Here is an example of code I wrote (in C++) : #include <sphelper.h> #include <sapi.h> #include <iostream> #include <string> const ULONGLONG grammarId = 0;

Acoustic training using SAPI 5.3 Speech API

萝らか妹 提交于 2019-11-27 13:20:58
Using Microsoft's SAPI 5.3 Speech API on Vista, how do you programatically do acoustic model training of a RecoProfile? More concretely, if you have a text file, and an audio file of a user speaking that text, what sequence of SAPI calls would you make to train the user's profile using that text and audio? Update: More information about this problem I still haven't solved: You call ISpRecognizer2.SetTrainingState( TRUE, TRUE ) at "the beginning" and ISpRecognizer2.SetTrainingState( FALSE, TRUE ) at "the end." But it is still unclear just when those actions have to happen relative to other

How to mix Grammar (Rules) & Dictation (Free speech) with SpeechRecognizer in C#

好久不见. 提交于 2019-11-27 11:46:53
问题 I really like Microsofts latest speech recognition (and SpeechSynthesis) offerings. http://msdn.microsoft.com/en-us/library/ms554855.aspx http://estellasays.blogspot.com/2009/04/speech-recognition-in-cnet.html However I feel like I'm somewhat limited when using grammars. Don't get me wrong grammars are great for telling the speech recognition exactly what words / phrases to look out for, however what if I want it to recognise something i've not given it a heads up about? Or I want to parse a

Help with SAPI v5.1 SpeechRecognitionEngine always gives same wrong result with C#

风格不统一 提交于 2019-11-27 09:35:59
I was playing around with this SAPI v5.1 library. So I was testing a sample WAV file I have. ( Download it from here ). Anyway, the sound in that file is clear and easy. It contains only one word which is number three. Now when I run the following code, I get number 8 or "eight". If I remove it, I get 7. If I try to randomize the list I get different results and so on. I'm really getting confused and started to think that SpeachRecognition in SAPI library doesn't work at all... Anyway here is what I'm doing, private void button1_Click(object sender, EventArgs e) { //Add choices to grammar.