Questions tagged [sapi]

SAPI is Microsoft's Speech API which provides text-to-speech (TTS) and speech recognition (SR) functionality to applications.

418 questions
0
votes
1 answer

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…
Ashish
  • 7,621
  • 11
  • 48
  • 89
0
votes
2 answers

How do I stop SAPI.SpVoice reading "is." as "island"?

Can you configure the way SAPI.spVoice reads text? In my situation I am reading the current clipboard using an AutoHotKey script. The script makes a COM call to SAPI.spVoice passing the text from the…
Nigel Thorne
  • 19,358
  • 3
  • 30
  • 50
0
votes
1 answer

Append 2 or more choices SAPI

Right now, say I have created a Grammar which have the following elements in it have, nice, day, they What I'm trying to do here is, when I say "have", the result of the recognition is "have". When I say "have nice", the result will be "have…
Xeon
  • 246
  • 2
  • 15
0
votes
2 answers

System Speech Recognition, MS Speech Platform and Kinect

I recently started working on a project that requires speech recognition (SR) in the Portuguese language. Initially, the plan was to use Kinect´ss SR but later we found that that Kinect´s Language Pack (LP) didn´t include Portuguese (PT). So i…
user3019217
  • 315
  • 1
  • 5
  • 12
0
votes
1 answer

Why when I use SpeechLib.SpSharedRecoContext in the windows7 system, will automatically open the speech recognition tool system comes with?

Why when I use SpeechLib.SpSharedRecoContext in the windows7 system, will automatically open the speech recognition tool system comes with? The following is my code,when it running the speech recognition tool in windows7 system will open, and I must…
Ivan.Yu
  • 534
  • 1
  • 4
  • 12
0
votes
1 answer

How can I get the alternates of SAPI speech recognization result

On windows7 platform I can use System.Speech.Recognition.SpeechRecognitionEngine to convert voice to text.By SpeechRecognitionEngine when the SpeechRecognized event triggered I can get some alternate words,and I can show these word to users for…
Ivan.Yu
  • 534
  • 1
  • 4
  • 12
0
votes
1 answer

SAPI5 Event returns 42 instead of 0

I am using SAPI5 COM, and there is one event called Word(ByVal StreamNumber As Long, ByVal StreamPosition As Variant, ByVal CharacterPosition As Long, ByVal Length As Long) It works fine, but CharacterPosition starts off with 42, and I have no idea…
tmighty
  • 8,222
  • 19
  • 78
  • 182
0
votes
2 answers

Interop.SpeechLib.dll COM Exception

I am using SpeechLib for a very simple text to voice conversion. Works great locally. When I deploy the applcation on to the server, I get the exception: could not be found. (Exception from HRESULT: 0x80030002 (STG_E_FILENOTFOUND)) I have done the…
Nick
  • 7,309
  • 15
  • 73
  • 127
0
votes
1 answer

Windows: Unable to find SAPI error on google

I am using SAPI to make a voice speak text. The error code returned is -2147024888 The method "Speak" for 'ISpeechVoice' failed However I was unable to find this error code on Google. I am not sure why. Does anybody have any ideas? I expected…
tmighty
  • 8,222
  • 19
  • 78
  • 182
0
votes
1 answer

Running Windows Speech SDK application in PHP

This question is related to my previous (unanswered) question: Running console program in PHP The program I wrote in that question (progName.exe) is actually a Windows Speech SDK application, which generates a .WAV file from a text file and computes…
ArthurN
  • 169
  • 4
  • 14
0
votes
1 answer

Sapi Dynamic Grammar loading

I have a sapi grammar as 1 2 3 4
Dev
  • 349
  • 1
  • 4
  • 12
0
votes
4 answers

C# SAPI in a web service

var speechEngine = new SpVoiceClass(); SetVoice(speechEngine, job.Voice); var fileMode = SpeechStreamFileMode.SSFMCreateForWrite; var fileStream = new SpFileStream(); try { fileStream.Open(filePath, fileMode, false); …
Peter Morris
  • 13,426
  • 8
  • 61
  • 112
0
votes
1 answer

Make SAPI TTS speak string variables

So, I have a program where I use SAPI like this: ISpVoice * pVoice = NULL; if (FAILED(::CoInitialize(NULL))) { return FALSE; } HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice); if( SUCCEEDED(…
Chris G.
  • 13
  • 4
0
votes
1 answer

SAPI access from WCF app

is it possible to access SAPI from a WCF app ?
Attilah
  • 16,382
  • 34
  • 132
  • 197
0
votes
1 answer

Understanding Windows Speech API

I want to send a SSML for TTS synthesis. I try to make the call on the TTS Client application: CComPtr pVoice; pVoice->Speak(ssml, SPF_ASYNC | SPF_PARSE_SSML, NULL); This is the correct way for synthesis a SSML? I'm implementing the SAPI…
Victor
  • 7,620
  • 14
  • 74
  • 121