Questions tagged [sapi]

0

votes
0

answer
2

Views

How to read contents of an SPF?

Microsoft publishes the Speech Recognition Profile Manager Tool for importing and exporting Windows Speech Recognition profiles as well as the contents of the Speech Dictionary. During export the tool outputs an SPF (speech profile file?) that contains the relevant data, and the tool can later read...
Exergist
1

votes
1

answer
1.3k

Views

Error When Using Sapi Voice in Python

When I use the code: speak = win32com.client.Dispatch('Sapi.SpVoice') speak.Volume = 100 speak.Rate = 6 speak.Voice = speak.GetVoices('Name=Microsoft Mary').Item(0) It gives me the error: speak.Voice = speak.GetVoices('Name=Microsoft Mary').Item(0) File 'C:\Python25\lib\site-packages\win32com\gen_py...
Ian
1

votes
1

answer
189

Views

How to control third-party text-to-speech voices using SAPI 5?

Windows includes the SAPI 5 API that lets you control TTS voices. However I'm using Acapela Peter and it does not show up in the window TTS dialog. So I cannot use this voice with the typical .NET APIs (for example this codeproject app). However the voice shipped with this text file : VoiceDescripti...
Robinicks
1

votes
2

answer
1.2k

Views

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; RecognitionType: SpeechRecognitionType; cons...
XBasic3000
1

votes
1

answer
2.7k

Views

Can I use SAPI 4 on Windows 7?

The problem with SAPI 5 is that I can't find any free Portuguese (Brazilian) voices; plus, I need to distribute the speech engine along with my program, so the paid alternatives would be way too much expensive. Is there any way that I can use and distribute the SAPI 4 engine and voices and make it w...
djeidot
1

votes
2

answer
1.1k

Views

Audio Subtitle Transcription - C++

I'm on a project that among other video related tasks should eventually be capable of extracting the audio of a video and apply some kind of speech recognition to it and get a transcribed text of what's said on the video. Ideally it should output some kind of subtitle format so that the text is link...
petersaints
1

votes
4

answer
2.2k

Views

Issue distinguishing commands from normal speech with SAPI

I'm working on a personal project involving microphones in my apartment that I can issue verbal commands to. To accomplish this, I've been using the Microsoft Speech API, and specifically RecognitionEngine from System.Speech.Recognition in C#. I construct a grammar as follows: // validCommands is a...
Octavianus
1

votes
1

answer
282

Views

How do I convert from CSpDynamicString to `char *` with ATL?

I'm writing a custom text-to-speech program that uses SAPI 5, and one problem I'm facing is that enumerating voices with SpEnumTokens and iterating over them produces CSpDynamicString objects. My question is, how do I convert CSpDynamicString to char * so I could printf them? It looks like I've to u...
bodacydo
1

votes
1

answer
197

Views

SAPI Speech Recognition - How to create and delete recognition profiles using SpeechLib

SAPI documentation cover the creation and deletion of a recognition profile. But how can I do it with SpeechLib? I would like to: Find the currently active profile, and keep a note of it. Create a new profile. Make the new profile the active one. When exiting my app: Delete the profile that I have c...
Bohoo
1

votes
1

answer
1.2k

Views

How to add custom SR (Speech Recognition) to Microsoft SAPI

I have a Speech Recognition application for a Language X. This language is not supported by Microsoft SAPI. How can I add this SR for Language X to Microsoft SAPI so that I can use it via Microsoft SAPI ? So What I wonder is Can I add a custom SR to Microsoft SAPI? If so How? If It is a complex pro...
Hippias Minor
1

votes
1

answer
971

Views

Create dynamic grammar using SAPI C#

What I'm trying to do here is, after user said 'Search Google for something', the program will then open up Google and search for that 'something'. I got most of it done but not the dynamic grammar part. Since the only way I'm doing all these is by using static grammar, thus the program is unable to...
Xeon
1

votes
1

answer
351

Views

Cancel Synchronous Speech Recognition

Using MSDN's SAPI, how do you cancel a synchronous speech recognition operation, or at least stop it immediately? Setting the input to null returns an error saying that I can't do that while the recognizer is recognizing, and using Asynchronous recognition is not an option. Here is an example below...
JackBarn
1

votes
2

answer
912

Views

SAPI5 voices / using 32bit voices

After spending a whole lot of time on searching the web I think it's time to ask. I'm trying to implement some text to speech with SAPI5 in C++. The only available 64bit voice is Anna. With Anna everything is fine, but I also need a german voice. So I found Hedda(Microsoft) and Steffi(Realspeak). I...
Muffex
2

votes
1

answer
2.5k

Views

Speech Recognition with SAPI: Custom Language Support through phenomes

I have a text that I have transcribed from text to phenomes I want now to modify or create a custom grammar XML which will define the pronounciation of the words with international phenomes and use that grammer with that specific spelling to be recognized instead of anything else I want to add speec...
pn7hb
2

votes
1

answer
3k

Views

problem in recognition of numbers in system.speech?

speech and i added grmmar which only detects numbers like this SpeechRecognitionEngine RecognitionEngine = new SpeechRecognitionEngine(new CultureInfo('en-US', true)); // Created Grammar For only Numbers 1 to 10 var NumberChoice = new Choices(); for (var i = 0; i
Bhuvan
1

votes
1

answer
653

Views

Creating an individual Speech Recognition system using SAPI

I'm using the C++ code given here. But the shared speech recognition used here runs its own commands such as move,minimize,delete. I need to create this without invoking the MS speech recognition program. hr = cpEngine.CoCreateInstance(CLSID_SpSharedRecognizer); this line above creates the shared i...
AlphaWolf
19

votes
1

answer
11.6k

Views

Fastest Speech recognition library C++ [closed]

I know its a general question topic, but still i want to know whats the fastest speech recognition library in C++? Currently I am using Microsoft SAPI with kniect. It works fine and recognizes words but its abit slow, some times it takes 1,2 seconds to recognize a word and in my case this lag is cau...
Fahad Malik
2

votes
1

answer
1.1k

Views

SAPI 5.4 grammars compatible with SAPI 5.1?

I wrote an application in C# for win 7 which used .NET 4.0 and SAPI 5.4 by using a SharedRecognizer in System.Speech. Everything works in that environment, but not on Windows XP. On Win XP (with SAPI 5.1 installed) it doesn't seem to like the grammar xml files I'm using. The program crashes trying...
Evan
1

votes
2

answer
894

Views

C# SAPI - Recognizing phrases without pre-defined condition statements

Scenario : I have 2 commands. 1) Search Google for 'any word here' 2) Open application 'any word here' Problem : Since the word after 'Search Google for' can be anything, how am I suppose to know what am I going to write for my IF statements? With pre-defined sentences, I can do it easily like void...
Xeon
1

votes
1

answer
925

Views

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

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.S...
Ivan.Yu
5

votes
1

answer
861

Views

Text-to-speech using Phonics Sounds

How can I get the phonics sound by pushing any letter key? For example, I want to get the phonics sound of A by pushing the 'A' key. I'm using Microsoft SAPI v5.1. Can you point me in the right direction please?
user758475
2

votes
1

answer
5.5k

Views

SAPI and Windows 7 Problem

I'm trying to recognize speech with Windows 7 but it always recognizes a speech as a command or just says 'What was that?'. How I can get all speeches? CODE: SpeechRecognizer _speechRecognizer; public Window1() { InitializeComponent(); // set up the recognizer _speechRecognizer = new SpeechRecognize...
Kaan
4

votes
4

answer
578

Views

Question on Speech Recognition classes in .NET

Is it possible to have an application built using the .NET speech recognition classes and pass in a WAV file for it to go through and create a text representation of it. For example, this what I'm trying to do: We have a QA department at my office and they have to listen to hundreds of calls a day w...
Gup3rSuR4c
2

votes
1

answer
145

Views

SAPI Audio balance/pan options

I'm exploring options for two independent, concurrently running Win32 applications on a Windows 7 Embedded platform to output their audio to respective channels of the audio output device (i.e. Application 'A' uses left channel, and application 'B' uses the right). In this instance, Application A is...
David
12

votes
3

answer
2.2k

Views

Using SAPI is there a way to enter pinyin for Chinese pronunciation?

The goal is to be able to pronounce something like wo3. System.Speech can handle Chinese characters, but is there a way to input pinyin directly? It seems from http://msdn.microsoft.com/en-us/library/ms720566(v=vs.85).aspx that I should be able to write out the pinyin like so How do I use PRON SYM...
tofutim
2

votes
1

answer
1.5k

Views

Speech API (SAPI) floating point division by zero in C++ Builder on Windows 7

I use the following code for Text-To-Speech application controls for blind persons in C++ Builder (most likely similar example can be used in Delphi). Main form has KeyPreview property checked to enable key F11 preview to start speaking active (focused) control. The code as it is works but there are...
Coder12345
4

votes
1

answer
2k

Views

Microsoft Speech Recognition Custom Training

I have been wanting to create an application using the Microsoft Speech Recognition. My application's users are expected to often say abbreviated things, such as 'LHC' for 'Large Hadron Collider' or 'CERN'. Given that exact order, my application will return You said: At age C. You said: Cern While...
Xyene
6

votes
3

answer
8.9k

Views

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

I need to turn a text into speech and then save it as wav file.
Tarik
3

votes
1

answer
10.2k

Views

SAPI: Speech to Text example

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.
Soldier
2

votes
1

answer
281

Views

Sapi how to get elements inside tag elements

I have a grammar like this 1out.string='one'out.Name='first' 2out.string='two'out.Name='second' Can anyone help me how to access the elements inside the tag elements too. For eg .If the recognizer recognize 1 then it should give 1 ,one and first. Currently am using ISpRecoResult* pResult = spevent.R...
Dev
2

votes
1

answer
2.1k

Views

How do I load a text grammar in a SAPI 5.4 C# program?

I've been using SRGS grammars with SAPI 5.4 to define command and control grammars. Now I'd like to switch to text grammars so they'd be compatible with SAPI 5.1 (and possibly even SAPI 4?). I found an example of a SAPI 5.4 compatible text grammar here I'd like to load that grammar from it's XML fil...
Evan
2

votes
1

answer
10.2k

Views

Where Can I Download Microsoft Speech SDK 5.4

I need to develop a simple 64-bit C++ Text to Speech (TTS) program to run on Windows 7 and Vista. My first step is to try to compile the program from SAPI 5.4 tutorial. But I cannot find the required SAPI 5.4 packages on my Windows 7 machine. I searched the Internet and only SAPI 5.1 is available...
David
1

votes
1

answer
344

Views

Multiprocessing in C

I once watched a movie called 'War Games'. I wanted to emulate that program in the movie. I wrote a simple program that can print and then speak the sentence, or the other way around. I want the program to execute both at the same time. How do I do that? #include #include #include #include #incl...
machine_1
2

votes
2

answer
4.6k

Views

Do I have to call Release() method on CComPtr objects?

I'm working with SAPI5 API for processing text to speech. If I simplify my code looks like this (I removed error checking to simplify it as much as possible): int main() { CoInitialize(NULL); CComPtr spVoice; spVoice.CoCreateInstance(CLSID_SpVoice); ... CoUninitialize(); return 0; } For some weird r...
bodacydo
2

votes
1

answer
1.4k

Views

using voice tokens to swap voices with SAPI 5.1 text to speech

I am writing an application that has two characters in it and each should use a different text-to-speech voice. We're still using Windows XP so we're restricted to SAPI 5.1. What I am trying to do is when a character is created, assign it a token that represents its voice: //female voices HRESULT hr...
laurenelizabeth
2

votes
2

answer
322

Views

Finding individual matched phrases in SpeechRecognizedEventArgs for Microsoft speech recognition

I don't seem to be able to extract the information I want from a SpeechRecognizedEventArgs. My grammar has the phrases 'one' and 'left arrow'. If I say both, of right after the other, my recogniser finds them in the grammar be because I have a Max repetition of five, but I can't distinguish the phas...
Phlox Midas
2

votes
1

answer
5.8k

Views

Use of SAPI Speech Recognition in a VBS Script?

I found this one-line example that allows to use the Windows SAPI Text-to-Speech feature in VBScript: CreateObject('SAPI.SpVoice').Speak('This is a test') I wonder if the SAPI Speech Recognition could be used in a VBScript program in the same easy way. When I seek for such information the tons of SA...
Aacini
2

votes
1

answer
196

Views

How to make a dictation grammar which accepts medical terms?

I am using sapi 5.4 and my grammar file contains But also I know that dictation will contain only medical terms is there a way to specify that in grammar file?
hitish
1

votes
2

answer
233

Views

Microsoft SAPI System.Speech for transcription

I'm currently doing a research on a tool that is able to transcribe audio files. The first thing I look at is the possibility of using Microsoft's System.Speech API. Looking through the msdn documentation, it seems like, this tool is more suitable for short voice commands where you have some knowle...
user2773013
3

votes
1

answer
20k

Views

How to pass arguments to a BackGroundWorker

Imports SpeechLib Public Class Form1 Public vox = CreateObject('sapi.spvoice') Private Sub cmdSpeak_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdSpeak.Click Dim text2 As String = 'Hello , This is a Text. Hello , This is a Text.' BackgroundWorker1.RunWorkerAsync() End...
SpongeBob SquarePants

View additional questions