SAPI is Microsoft's Speech API which provides text-to-speech (TTS) and speech recognition (SR) functionality to applications.
Questions tagged [sapi]
434 questions
85
votes
6 answers
What is SAPI and when would you use it?
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…

jjmorph
- 1,178
- 1
- 9
- 17
20
votes
5 answers
Cannot open include file: 'atlbase.h': No such file or directory
Please have a look at the following code
#define _ATL_APARTMENT_THREADED
#include
//You may derive a class from CComModule and use it if you want to override something,
//but do not change the name of _Module
extern CComModule…

PeakGen
- 21,894
- 86
- 261
- 463
19
votes
1 answer
Fastest Speech recognition library C++
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…

Fahad Rauf
- 705
- 2
- 8
- 17
13
votes
3 answers
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…

tofutim
- 22,664
- 20
- 87
- 148
13
votes
1 answer
text-to-speech-to-wav in Delphi
I imported the SAPI type library into Delphi. I can output speech to the PC speakers with this code:
procedure TForm1.Button1Click(Sender: TObject);
var
Voice: TSpVoice;
begin
Voice := TSpVoice.Create(nil);
Voice.Speak('Hello World!',…

Jan Goyvaerts
- 21,379
- 7
- 60
- 72
11
votes
2 answers
what is the difference between SpVoice and SpeechSynthesizer
What is the difference between these two methods in C# using the speech API or SAPI?
using SpeechLib;
SpVoice speech = new SpVoice();
speech.Speak(text, SpeechVoiceSpeakFlags.SVSFlagsAsync);
returns the Apacela voices, and
SpeechSynthesizer ss =…

Priyank Bolia
- 14,077
- 14
- 61
- 82
11
votes
2 answers
How can I find the audio format of the selected voice of the SpeechSynthesizer
In a text to speech application by C# I use SpeechSynthesizer class, it has an event named SpeakProgress which is fired for every spoken word. But for some voices the parameter e.AudioPosition is not synchronized with the output audio stream, and…

Ahmad
- 8,811
- 11
- 76
- 141
11
votes
2 answers
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…

Lee Englestone
- 4,545
- 13
- 51
- 85
11
votes
2 answers
Delphi SAPI Text-To-Speech
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…

Andreas Rejbrand
- 105,602
- 8
- 282
- 384
10
votes
2 answers
Does the MS Speech Platform 11 Recognizer support ARPA compiled grammars?
How can I use ARPA files with MS Speech? The documentation for the Microsoft Speech Platform 11 Recognizer implies that one can compile a grammar from an ARPA file.
I am able to compile an ARPA file -- for instance, the tiny example provided by…

ladenedge
- 13,197
- 11
- 60
- 117
10
votes
5 answers
Streaming input to System.Speech.Recognition.SpeechRecognitionEngine
I am trying to do "streaming" speech recognition in C# from a TCP socket. The problem I am having is that SpeechRecognitionEngine.SetInputToAudioStream() seems to require a Stream of a defined length which can seek. Right now the only way I can…

spurserh
- 583
- 3
- 17
9
votes
2 answers
AppendDictation on Microsoft Speech Platform 11 (Server)?
I'm relatively new to both C# and the Microsoft Speech platform, but I am working on a server application that will need to transcribe free dictation. The MS Speech Platform SDK seemed perfect, and works on the server, unless i reference the…

Jared
- 562
- 1
- 6
- 22
9
votes
1 answer
Acoustic training using SAPI 5.3 Speech API
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…

markab
- 91
- 1
- 4
9
votes
1 answer
Where can I get voices for .net applications using System.Speech in Windows 7?
I'm so confused between the text to speech technologies in Windows. I have a slightly peculiar requirement: I need to output speech from a .net program running in Win 7 using System.Speech assembly. I want a good, robotic sounding voice that doesn't…

Stephen Ellis
- 2,561
- 2
- 24
- 47
8
votes
4 answers
How can I convert a text file to mp3 file?
Here is my Python code:
import pyttsx3
engine = pyttsx3.init(driverName='sapi5')
f = open("tanjil.txt", 'r')
theText = f.read()
f.close()
engine.say(theText)
engine.runAndWait()
I couldn't save the file to an audio file.

taaanjil
- 81
- 1
- 1
- 2