sapi

SAPI event SPEI_WORD_BOUNDARY notification doesn't work

I have used this function to speak sentence ascynchronously . m_cpVoice->Speak(m_sInputText,SPF_ASYNC, NULL)) I want to get notification of SPEI_WORD_BOUNDARY event so i did these. m_cpVoice->SetInterest(SPFEI(SPEI_WORD_BOUNDARY),SPFEI(SPEI_WORD_BOUNDARY)); m_cpVoice->SetNotifyWindowMessage(GetSafeHwnd(),CTTSDlgDlg::MSG_SAPI_E...

System.Speech.Recognition Choosing Recognition Profile

Does anyone know how to change recognition profiles from within a .NET application? I am writing a .NET application that does speech recognition using the capabilities found in the System.Speech.Recognition namespace. The audio that I am feeding into the system comes from multiple different users. I would like to be able to train the ...

How to catch words in the middle of sentences with Microsoft SAPI?

Hello, this SAPI grammar catch the word name is the middle of a sentence. <GRAMMAR LANGID="409"> <RULE NAME="SOUNDLOG" TOPLEVEL="ACTIVE"> <OPT> <DICTATION MAX="INF"/> </OPT> <L> <P>name</P> </L> <OPT> <DICTATION MAX="INF"/> </OPT> </RULE> </GRAMM...

LoadDictation with SAPI

I am able to create alternate dictation grammars using the dictation resource kit or directions given here. I am not able to load the new dictation topic with c++. I am trying to modify the simpledict sample provided with the sapi5.1 sdk. The following doesn't work. std::wstring stemp = s2ws("grammar:dictation#Genre"); LPCWST...

How to use SAPI's SetNotifyCallbackFunction() in a CLR project with Windows Form as the interface window?

Hi, I'm trying to write a dll plugin for Winamp. I'm using Microsoft Visual Studio 2008 and Microsoft SAPI 5.1. I created the interface window using Windows Form (System::Windows::Forms::Form). I tried to use SetNotifyWIndowMessage(), but the method is never called when I speak to the microphone. So I tried using SetNotifyCallbackFunct...

Do I need to install Speech SDK to be able to do speech recognition, even when I'm using .NET Speech Recognition namespace?

I know that I need to install Speech SDK if I'm using SAPI for spech recognition. But what if I'm using .NET System.Speech.Recognition:SpeechRecognizer class? ...

Espeak SAPI/dll usage on Windows ?

Question: I am trying to use the espeak text-to-speech engine. So for I got it working wounderfully on linux (code below). Now I wanted to port this basic program to windows, too, but it's nearly impossible... Part of the problem is that the windows dll only allows for AUDIO_OUTPUT_SYNCHRONOUS, which means it requires a callback, but I ...

How to Create a Simple Dictation Pad in Delphi2009+Vista

the code are not so complecated.. private { Private declarations } SpSharedRecoContext1 : TSpSharedRecoContext; fMyGrammar : ISpeechRecoGrammar; procedure SpSharedRecoContext1Recognition(ASender: TObject; StreamNumber: Integer; StreamPosition: OleVariant; ...

C++ Microsoft SAPI: How to set Windows text-to-speech output to a memory buffer?

Hi all, I have been trying to figure out how to "speak" a text into a memory buffer using Windows SAPI 5.1 but so far no success, even though it seems it should be quite simple. There is an example of streaming the synthesized speech into a .wav file, but no examples of how to stream it to a memory buffer. In the end I need to have t...

SAPI Speech recognition delphi

I to need create a programmatic equivalent using delphi language... or could someone post a link on how to do grammars in peech recogniton using the delphi. Or any examples of XML grammar that has programmatic equivalent in Delphi. sorry for my english. **Programmatic Equivalent ** Ref: http://msdn.microsoft.com/en-us/library/ms72363...

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

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 proble...

Call a function when "event.GetFrom(m_cpVoice)==S_OK" (ergo when event happens) [SAPI 5.1 and C++]

Hello, I'm doing a project with a 3D model, that speaks. So, I'm using SAPI 5.1, and I want to call a function asynchronously when there's a Viseme event (in order to play the animation related to). How could I do it? Thank you very much. Note: I use : hRes = m_cpVoice->Speak(L"All I want is to solve this problem", SPF_ASYNC , NULL...

Is it possible to disable Speech Reference Card?

Microsoft Speech Recognition comes with a Speech Reference Card. It consists in some pre-determined words that are recognized. I want to know if it's possible to disable it. Is it? EDIT: I want to remove all pre-defined commands. This ones: http://windows.microsoft.com/en-us/windows-vista/Common-commands-in-Speech-Recognition EDIT2: I...

how make function like IsWordPronounceable(SomeWord:String): boolean;

I would like to make a function IsWordPronounceable(SomeWord:String): boolean; "english language" i am working with SAPI Speech Recognition and i need this function. I use delphi compiler, C/C#/C++ or any language is ok.. please help. i dont know how to start... from the start, i thought adding grammar rule could solve the problem. the ...

How to get Phonemes on voice recognition?

i am working on Voice Recognition to Display the Phonemes and its wave form if possible using the built-in voice recognition on vista and windows 7 using Delphi2009. other programming language are welcome. ...

Delphi SAPI Text-To-Speech

First of all: this is not a duplicate of http://stackoverflow.com/questions/1021490/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 c...

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

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 re...

Playing voice over modem from a Windows service

I'm developing a VB.NET Windows service which is costantly checking a BMS database for new alarms and making phone calls to warn operators remotely. I'm currently using a .NET TAPI wrapper and the SAPI 5.3 interop assembly, and the steps I'm taking to speak over the phone are: Initialize TAPI interface; Make the call to the operator's ...

It's posible to do SpeechToText(Speech recognition) and afterwards TextToSpeech (using same text and same voice)?

Hello I'm working on a program for tone deaf people. I've working with sapi and a TTs. The program does a 3D animation with a hand at the same time. But the problem is that the voices (also when a put them at its slowest speech) is to fast for what I want. So, I've thought on speech recognition, but the problem is that I've to do a larg...

Speech Indexing

Can Microsoft SAPI or another technology be used to index speech in a wav file based on time so that based on a searched phrase a specific time index into a wav file can be played? ...