Questions tagged [sapi]

1

votes
1

answer
399

Views

python text translation to speech

I am working on testing text translation (from English to other language) and translation to audio code using python. I am using google translate api for translation and win32 for audio. While testing i found that google supports https://gist.github.com/jseabold/1473363 these languages. The transla...
ankit patel
1

votes
0

answer
34

Views

How to properly dispose of SpeechSynthesizer for async text-to-speech?

I have a form and I want to allow the user to receive asynchronous text-to-speech output based on the content of a text box whenever a button is pressed. For context, this form is launched as part of an 'internal' C# function within VoiceAttack, and this is a continuation of a previous question. Thi...
Exergist
1

votes
2

answer
1k

Views

unintentional pitch change using MS SAPI TTS

Has anyone else experienced (and possibly solved) unintentional pitch changes using MS SAPI TTS voices? I'm using the SpVoice automation interface with SAPI 5.1. Right now, my application (VB6 app) can get into a state where the TTS (Microsoft Anna) starts to sound like a chipmunk (proper rate, but...
Dan
1

votes
2

answer
3.8k

Views

Microsoft speech API 5.1, 5.3?

I'm a little confuse between the different SAPI version available. First of all, I only find the SDK to develop with the 5.1 version, is there any SDK for the 5.3 version available, if not, why ? Witch version can I use if I'm developing with the 3.5 version of the .Net framework. Is there any good...
Melursus
1

votes
2

answer
127

Views

Does change in MCI_RECORD parameter affect the SAPI speech regocnition?

Intially I have specified MCI_WAVE_SET_PARMS at the time of recording as follows: MCI_WAVE_SET_PARMS mciSetParms; mciSetParms.wFormatTag = WAVE_FORMAT_PCM; mciSetParms.wBitsPerSample = 16; mciSetParms.nChannels = 2; mciSetParms.nSamplesPerSec = 11050; Now if I change it to MCI_WAVE_SET_PARMS mciSet...
Ashish
1

votes
1

answer
1.1k

Views

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 languages are welcome.
XBasic3000
1

votes
1

answer
295

Views

Change dictation topic on the fly

I am scoping out a custom dictation application to be built using MS SAPI 5. I would like to be able to change the grammar (topic) of dictation dynamically based on what is being recognized. For example, if my dictation application deals with car repair, then, if I detect the speaker talking about e...
Raj
1

votes
2

answer
4.5k

Views

Localizing SAPI Text-To-Speech to spanish

I have managed to use SAPI Text-To-Speech in Delphi/Lazarus by using the following code: procedure TForm1.Button1Click(Sender: TObject); var SpVoice: Variant; begin SpVoice := CreateOleObject('SAPI.SpVoice'); SpVoice.Speak('Hello World!', 0); end; This code automatically chooses an english standar...
Guillem Vicens
1

votes
1

answer
192

Views

Hang problem in webControl and SAPI in C# [duplicate]

Possible Duplicate: Synchronization Problem for SAPI or (text to speech ) … C# I've made a browser with WebControl. Now I want to read and highlight the text. So I split then sentences and start a loop.now the problem is, with a Synchronous call of SAPI to speak the sentences, every other button...
AtanuCSE
1

votes
1

answer
2.9k

Views

Microsoft Speech API installation

Which version of Speech API is required for Windows 7 and from where i can download it? I have tried to download, but they said it's part of Windows SDK itself. I have installed it 3 times till now and I didn't see any Speech related info on SDK installation folder. Am i doing something wrong? Pleas...
Dinesh
1

votes
1

answer
633

Views

Disabling Main Speech Recognition in SAPI 5.3

I'm coding a program which simply understands basic keywords such as 'left' or 'right'. It works great, however in order to execute the program, first, i must start Windows Speech Recognition. While my program is running, this 'Windows Speech Recognition' is also processing the commands, and this so...
alicanerdogan
1

votes
1

answer
2.3k

Views

SpeechRecognitionEngine in BackgroundWorker

I am trying to write a C# application using Windows Forms and System.Speech to convert a WAV file to text. I've seen plenty of samples online of how to do this, but none that are very robust. I was hoping to write an application that could parse smaller pieces of a large WAV file using BackgroundW...
user1229658
1

votes
1

answer
288

Views

SAPI grammar recognition

I'm designing an app that is able to recognize the voice on Delphi7 I have no problem with the code ... just that I can not or rather can not find how to make this I recognize a language other than English ... I ate every forum .. I know in search of something to tell me. I tried changing the GRAMMA...
Marthianfred
1

votes
1

answer
536

Views

No output in using wav file input with Microsoft SAPI 5.4 Api

I am working on a project where i need to use speech recognition to convert a wav file input speech ( conversation ) to text. After trying CMUSPhinx for a while, with terrible results, i am considering using Microsoft SAPI (Speech API) 5.4 I am coding as a Visual basic windows application from visua...
parikshd
1

votes
2

answer
1.8k

Views

Python: win32com.client.getevents(“SAPI.SpSharedRecoContext”) returns None

I have downloaded a piece of code showing how to use Windows Speech API (SAPI 5.1) on Windows 7 using Python 2.7.3 interpreter and have PyWin32 Build 218 installed on my system. Everything works great with the code: from win32com.client import constants import win32com.client import pythoncom '''Sam...
Moh
1

votes
4

answer
903

Views

Errors are generated when SAPI is run in QT

Please have a look at the following code #include int main(int argc, char* argv[]) { ISpVoice * pVoice = NULL; if (FAILED(::CoInitialize(NULL))) return FALSE; HRESULT hr = CoCreateInstance(CLSID_SpVoice, NULL, CLSCTX_ALL, IID_ISpVoice, (void **)&pVoice;); if( SUCCEEDED( hr ) ) { hr = pVoice->Speak(...
PeakGen
1

votes
1

answer
1.7k

Views

How to setup SAPI with Visual C++ 2010 express?

I need to know how can I setup SAPI (windows speech API) with visual C++ 2010 express. I got to know windows 7 comes with built in SAPI libs, and I am using windows 7. However, I downloaded SAPI 5.1 in case it is needed. MS instructions about setting up SAPI with VS is pretty old, which didn't work...
PeakGen
1

votes
1

answer
1.2k

Views

Windows Speech API in Qt. Works in main(), but lots of errors when in class

So I first tried to make a short example just to get text-to-speech working in main function. This worked and no problems. Code looks like this: main.cpp: #include #include 'qtquick2applicationviewer.h' #include #include #include #include #include 'sphelper.h' int main(int argc, char *argv[]) {...
iQt
1

votes
1

answer
105

Views

SpeechRecognitionEngine stopped working in Win8

I developed a project using VS2010 in Windows 7, later i added the speech control to it, and everything was working fine. I changed my OS to Win 8 and tried running the project and it worked fine. But due to some reason I need to format my system and after that when I tried to run the project, the s...
1

votes
1

answer
84

Views

How to get the blue box of speech recognition while using inproc speech recogniton in sapi?

I am working with sapi 5.4 and the IspRecognizer i am currently using is a instance of CLSID_SpInprocRecognizer instead of CLSID_SpSharedRecognizer and after I started using this the default blue box of windows recognition is not appearing any more. How can i be in in proc speech recognition and ge...
hitish
1

votes
1

answer
138

Views

Detecting phone numbers using sapi?

I am currently using sapi 5.4 and I want to detect a phone number which is sure of 10 digits from 0-9 what is the best way to specify in grammar file ?
hitish
1

votes
1

answer
355

Views

What is the best way to build a dictation topic for windows speech recognition?

I want to build a language model for a big list of words in order to create another topic in the dictation topic of windows speech recognition. Please tell me what will be the best way for that. Any help will be appreciated.
Jimmy Harford
1

votes
2

answer
247

Views

Creating a In proc speech recognition using sapi c#?

My SAPI code for setting up the in proc recognition engine looks like this: ISpeechRecoContext cpRecoCtx; // create the recognition context cpRecoCtx = new SpeechLib.SpInProcRecoContext(); ((SpInProcRecoContext)cpRecoCtx).Recognition += new _ISpeechRecoContextEvents_RecognitionEventHandler(RecoCont...
phoenix11
1

votes
1

answer
94

Views

Is it possible to only load a dictation topic while using Shared Recogniser and not with Inproc reconizer in sapi?

When I am using a shared recognizer to a previously registered medical dictation topic , dictation grammar is loaded without error but when I change my recognizer to Inproc recognizer it is not able to load a dictation topic. Is there a way to load dictation topic while still using in proc recogniz...
phoenix11
1

votes
1

answer
71

Views

How to specify that what followsa given text is a spelling dictation in Grammar file in sapi?

I am using Sapi 5.4 and I am trying to get the persons name which is spoken by user but it has a very poor recognition with names so I would like to enter the name by spelling Dictation that is like J-O-H-N and presently my grammer for taking name input is this How could I mention spelling Dictatio...
phoenix11
1

votes
1

answer
232

Views

Will SAPI work on android?

I am thinking about adding SAPI to cocos2dx, but am unsure if it will run on android. Should I go with it or use google speech api?
Neomex
1

votes
1

answer
675

Views

C++ : How to use SAPI with QT Creator?

I've got to do a project who consist to create a web browser including a Text To Speech solution. I've used examples from the MSDN (here), but when I try to compile my project, i've got a lot of errors, and I haven't found any solutions... I'm using QT Creator for this project. The console output Th...
Toars
1

votes
2

answer
185

Views

IspObjectToken::DisplayUI

I tried to use IspObjectToken::DisplayUI from SAPI 5.4 in C# and I don't know what are the exact parameters for that. void ISpObjectToken.DisplayUI(ref _RemotableHandle HWndParent, string pszTitle, string pszTypeOfUI,IntPtr pvExtraData, uint cbExtraData,object punkObject) I know that we should put n...
Jimmy Harford
1

votes
1

answer
419

Views

System.Speech Voice Recognition not working

I am using c# system.speech , and i have limited number of sentences that i wants to recognize. Here is code SpeechRecognitionEngine recognizer = new SpeechRecognitionEngine(); String[] Sentences = File.ReadAllLines(samplePath); Choices sentences = new Choices(); sentences.Add(Sentences); GrammarBui...
Saba Mehmood
1

votes
1

answer
119

Views

SAPI how to identify multiple properties

I am trying to write code that will identify multiple properties in a phrase. Phrases already can be identified when spoken; however, I need it to know where to go; in this case, a specific case = CASE PONY:. I am having few issues with it crashing once it reaches the case. It says its a bad pointer...
Rebecca
1

votes
1

answer
386

Views

How do I use SetNotifyCallbackFunction() in Microsoft SAPI?

I am working with the Microsoft Speech API and I am stuck trying to understand one of the functions. The function is called SetNotifyCallbackFunction() which is part of ISpNotifySource. The problem I am having is with the first parameter which is the callback function. I could not find an example of...
Rowen McDaniel
1

votes
1

answer
832

Views

Using Speechlib from SAPI (Microsoft text to speech API) as an Unity AudioSource

I'm building an app which has a chatbot and uses SAPI for text to speech along with SALSA asset for LypSync. What i'm trying to accomplish is to create a live AudioSource that feeds directly from TTS audio output. I have successfully accomplished this thru saving into wav files for each sentence and...
Macumbaomuerte
1

votes
1

answer
1.1k

Views

Text-to-speech pass string to speak

I’m new in programming, so need your help, just trying to make program with Text to Speech C++ in Visual Studio 2015 on Windows 10 using Speech Synthesizer object in a CLR Console application. But I can't figure out, how to get line through the variable 't' to speak not only synth->Speak('Line sav...
1

votes
1

answer
290

Views

NullReferenceException when starting recognizer with RecognizeAsync

Hi i'm currently developing a program that is supposed to recognize my voice and then write down what it hears, but when i run the code and i click the buttun to start the recEngine it says that 'An unhandled exception of type 'System.NullReferenceException' occurred in System.Speech.dll', and in th...
pzmq
1

votes
1

answer
287

Views

How to enable free diction speech recognition in VB6 using SAPI

Recently I have been attempting to create a chatbot for school, and one of the features I wanted was speech recognition. Unfortunately, due to the deprecated nature of VB6, there are very few tutorials on using SAPI for speech recognition with VB6, and none at all for enabling free diction (simply s...
James Balajan
1

votes
1

answer
50

Views

Narrator Pitch on Variables in VBS

I am writing a script in VBS for when I log in I am greeted with the time. However, the XML variable for voice pitch is not functioning without text that is static. Am I missing something? Sapi.speak 'Good Morning' This runs at a higher pitch... Sapi.speak minute(time) While this is normal. I have t...
Eternal_Dusk
1

votes
1

answer
0

Views

Is there a SAPI module for PHP 5 for supporting the thttpd web server?

Is there a SAPI module for PHP 5 for supporting the thttpd web server? Oddly, the one included on PHP 5.2.6 source is for PHP 4.x. Thanks, Kenneth
ksuralta
1

votes
2

answer
0

Views

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...
XBasic3000
1

votes
2

answer
0

Views

Microsoft speech api 5.1 GetVoices returns voices that don't exist on Windows 7

I'm migrating from XP to Windows 7 64 bit. My app which I compiled on my XP machine works properly on XP. However when I run the exe on my W7 machine, the list of voices returned by GetVoices is as follows: Microsoft Anna Microsoft Mary Microsoft Mike Sample TTS Voice. Checking the W7 Speech Prope...
1

votes
2

answer
0

Views

Can i use SAPI directly to convert Speech to Text from stored audio in real-time

What i really want to achieve is this--> Suppose i play an audio file(using my application) which can either be streamed from the internet/or accessed directly from the local storage. Now i want to configure SAPI to listen to this source instead of the microphone and convert the speech from the audi...
Atif

View additional questions