SAPI is Microsoft's Speech API which provides text-to-speech (TTS) and speech recognition (SR) functionality to applications.
Questions tagged [sapi]
434 questions
4
votes
1 answer
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
- 539
- 6
- 11
- 18
4
votes
0 answers
Subsequent SpVoice instances are silent
Discovered key to the problem/crash, see the bottom of the post.
When creating instances of ISpVoice using CoCreateInstance, it seems like instances after the first one cannot speak as soon as the first one has spoken. That is, if pVoice speaks…

jA_cOp
- 3,275
- 19
- 15
4
votes
1 answer
SAPI 5 voice synthesis and C#
I have installed new SAPI5 voice. In computer settings of Speech program is new voice visible and available to use. But my program cannot find it. To find it, I am using this part of code, I use System.Speech.Synthesis namespace.
SpeechSynthesizer s…

Vodáček
- 254
- 3
- 12
4
votes
2 answers
Can C# SAPI speak SSML string?
I implemented a TTS in my C# WPF project.
Previously, I use the TTS in System.Speech.Synthesis namespace to speak. The speaking content is in SSML format (Speech Synthesizer Markup Language, support customize the speaking rate, voice, emphasize)…

JXITC
- 1,110
- 1
- 13
- 27
4
votes
1 answer
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…

Xyene
- 2,304
- 20
- 36
3
votes
1 answer
Speech Recognition - Unhandled Exception - SAPI Not Found, even when installed
I am trying to use Microsoft Kinect, for audio recognition. This is on a Windows 7 x64 machine.
I am able to use the Kinect for Speech Recognition, using the default Windows Speech Recognition.
I have installed Microsoft Speech SDK 5.1,…

Rads
- 91
- 2
- 8
3
votes
2 answers
Free-form text with custom SRGS based Grammar
I am trying to develop a Voice based application that would accept user input as speech and perform some actions based on the input. This is my first ever venture into this technology and I am learning while developing it.
I am using Microsoft SAPI…

Danish Khan
- 1,893
- 5
- 22
- 35
3
votes
0 answers
Different Python packages use different versions of the same DLL
For my project I use pyenchant library for spell checking and win32com.client.dispatch to call SAPI.SpVoice for automatic voiceovers. I have some Speech2Go packages installed and all worked fine until I decided it's time to move my project to Python…

Megan Caithlyn
- 374
- 2
- 11
- 33
3
votes
3 answers
When using SAPI.SpVoice to output to a WAV file, result sounds different than when outputting directly to speakers
I'm trying to write a simple script to run some txt files through the Windows 7 text-to-speech engine (which has the decent Anna voice) and produce wav files. However, the wav files don't sound as nice as when I just have it output directly to…

Yang
- 16,037
- 15
- 100
- 142
3
votes
1 answer
is it possible to train sapi in C#?
is it possible to train sapi with C#? lets say I have a wav file contains a specific word the engine is not able to detect it or it detects the word but it gives wrong value.. so I need to add this word with its text to the dictionary is that…

Desolator
- 22,411
- 20
- 73
- 96
3
votes
1 answer
Help with SAPI v5.1 SpeechRecognitionEngine always gives same wrong result with C#
I was playing around with this SAPI v5.1 library. So I was testing a sample WAV file I have. (Download it from here). Anyway, the sound in that file is clear and easy. It contains only one word which is number three. Now when I run the following…

Desolator
- 22,411
- 20
- 73
- 96
3
votes
1 answer
How to change Windows Speech Recognition output?
I am writing my first speech recognition application by using the System.Speech namespace of .NET Framework 4.0.
I am using the shared speech recognition, loading a default dictation grammar and custom grammars I've done.
I also capture the text…

pjvv1
- 31
- 1
3
votes
2 answers
Where is the Sayaka voice in Speech API OneCore?
Windows 10. I've installed the Japanese TTS voices in the Settings. Now, when I use voice enumeration in Speech API 5.4 OneCore (not in 5.4 proper though), I get 6 voices:
David
Zira
Ayumi
Haruka
Mark
Ichiro
The Speech settings page also shows…

Seva Alekseyev
- 59,826
- 25
- 160
- 281
3
votes
1 answer
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…

SpongeBob SquarePants
- 1,035
- 12
- 26
- 46
3
votes
1 answer
Why can't I use "Speech.SpVoice" instead of "SAPI.SpVoice" with python and win32com?
I'm trying to use windows SAPI from python for Text-to-Spech purposes.
And I'm totally new with win32com package.
With English language everything is ok.
import win32com.client
speaker =…

rooltak
- 33
- 1
- 7