Questions tagged [sapi]

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

418 questions
67
votes
4 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
  • 948
  • 1
  • 6
  • 15
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 Malik
  • 645
  • 2
  • 7
  • 16
15
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
  • 18,056
  • 71
  • 208
  • 385
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
  • 19,743
  • 20
  • 75
  • 139
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
  • 19,905
  • 7
  • 57
  • 67
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
  • 6,124
  • 6
  • 49
  • 90
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,115
  • 12
  • 43
  • 79
10
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
  • 12,942
  • 13
  • 57
  • 81
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
  • 12,165
  • 10
  • 56
  • 106
10
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
  • 95,177
  • 8
  • 253
  • 351
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
  • 543
  • 6
  • 21
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
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
  • 553
  • 3
  • 15
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,191
  • 2
  • 19
  • 42
8
votes
3 answers

Memory leak in .Net Speech.Synthesizer?

I found a continuous leakage in my application. After examining using a memory profiler, I found the course is some object from Microsoft Speech.Synthesizer So I build up a toy project to verify the hypothesis: //Toy example to show memory leak in …
JXITC
  • 1,000
  • 10
  • 27
1
2 3
27 28