SAPI is Microsoft's Speech API which provides text-to-speech (TTS) and speech recognition (SR) functionality to applications.
Questions tagged [sapi]
434 questions
3
votes
2 answers
System.Speech.Synthesis installing alternate language voices
The .net framework 3.5 (or vista) provides me with an English voice (David I think) to use with the Speech.Synthesis api. I need a french voice to use with a french dictation practice app I am building for my kids to use to improve their french…

HectorMac
- 6,073
- 4
- 24
- 24
3
votes
1 answer
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…

JackBarn
- 635
- 1
- 6
- 18
3
votes
4 answers
how make function like IsWordPronounceable(SomeWord:String): boolean;
I would like to make a function IsWordPronounceable(SomeWord:String): boolean; "english language"
i am working with SAPI Speech Recognition and i need this function. I use delphi compiler, C/C#/C++ or any language is ok.. please help. i dont know…

XBasic3000
- 3,418
- 5
- 46
- 91
3
votes
1 answer
Can't save to wav from python, can't import SpeechLib from comtypes.gen, what next?
First the setup: Windows 8.1 64bit, Python 3.4 32bit.
I wanted to run the code here. So I installed comtypes
pip install comtypes
I then tried to run the code, i got
ImportError: cannot import name 'SpeechLib'
Then tried this code here to try and…

zamarov
- 165
- 2
- 16
3
votes
3 answers
Is it possible to use WIndows Speech Recognition Engine in a word pronunciation game?
I use to create an application that uses the windows speech recognition engine or the SAPI. its like a game for pronunciation that it give you score when you pronounce it correctly. but when i started experiments with SAPI, it has poor recognition…

XBasic3000
- 3,418
- 5
- 46
- 91
3
votes
1 answer
How do you limit the words in a DictationGrammar object?
I'm trying to make an AI system using Microsoft's SAPI.
Using the DictationGrammar class returns stupid results when trying to interpret speech.
Using the GrammarBuilder class requires a Choice class (correct me here if I'm wrong) and the…

rakagunarto
- 325
- 3
- 23
3
votes
1 answer
TTS for Chinese is throwing SAPI ERROR E_FAIL
This is my code for Chinese TTS which is failing in the speak function although Chinese TTS engine is installed successfully
using Microsoft.Speech.Synthesis;
using System.Globalization;
namespace TTS3
{
class Program
{
static void…

Sur123
- 35
- 9
3
votes
2 answers
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…

Aacini
- 65,180
- 12
- 72
- 108
3
votes
1 answer
PHP as a thttpd module vs CGI in terms of memory usage
I am planning to use php in an embedded environment. Our current web server is thttpd. I am considering two options now: whether to run it as a cgi or as SAPI module. I know cgi has advantage in terms of security. But if we are to use php as cgi, an…

green_t
- 2,997
- 3
- 21
- 18
3
votes
2 answers
80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in Microsoft.Speech.dll
Additional information: Retrieving the COM class factory for component with CLSID {49428A60-C997-4D0E-9808-9E326C178D58} failed due to the…

user3160438
- 61
- 1
- 2
- 3
3
votes
1 answer
Detecting all installed SAPI voices
When i use SpeechSynthesizer class in C# I get all voices installed in my system.
When i use COM-object-based SAPI in C++ I get only 4 of them (Microsoft Anna and 3 other from Microsoft).
Why is this happening?
I want to use Acapela voice in…

KioShinsoo
- 33
- 2
3
votes
1 answer
Converting Speech-To-Text using SAPI
Is there anyway or anyone know how to do STT using Microsoft's Speech Recognition API for Windows Form Application?

Xeon
- 246
- 3
- 15
3
votes
3 answers
Microsoft.Speech.Synthesis does not work for Text To Speech BUT System.Speech.Synthesis works.Why?
I just try to run simple microsoft example for Text To Speech using using Microsoft.Speech.dll;
using System;
using Microsoft.Speech.Synthesis;
namespace TTS
{
class Program
{
public static void Main(string[] args)
{
…

Hippias Minor
- 1,917
- 2
- 21
- 46
3
votes
1 answer
Convert audio (wav file) to text using SAPI?
My task is to convert an Audio file not from Direct Speech from Human into text.
e.g If I have "Hello there" store in wav file to it will transcribe it into text and show "Hello there" string on screen.
Any language code in preferred but priority is…

Umaid
- 113
- 2
- 14
3
votes
1 answer
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…

Coder12345
- 3,431
- 3
- 33
- 73