439 questions
0
votes
1
answer
53
views
When using windows tts, cant change voice package
I am trying to play audio with gender=male and I failed.
Then I maintained the register as follow.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Speech\Voices\Tokens\...
0
votes
2
answers
190
views
Convert Text to Audio File using SAPI
I want to convert a given text to an audio file in a c++ console application. I am developing the application in visual studio on windows 10. I found a related code on Microsoft's learn challenge ...
1
vote
0
answers
65
views
Speech Recognition Profile Training using SAPI 5.4
I am developing a c++ DLL that is used by a c# app via interop. The DLL's purpose is to train the "Default" speech recognition profile. The c# app only sends Training Text and receives ...
0
votes
0
answers
278
views
Using newer SAPI voices in Delphi app (e.g. Microsoft Mark)
My company has a Delphi app that has been using SAPI to render wav files for over 20 years; recently, a customer asked why our voice selection list only has Microsoft Mike and Microsoft Zira when the ...
0
votes
1
answer
84
views
Voice playback freezes while using SAPI TTS with delphi10
I'm trying to create a simple application to process received BLE data with Delphi10:
-Win10
-Delphi 11
-import SAPI from "onecore" directory(I only found Chinese language engine under this ...
1
vote
0
answers
936
views
how to create custom voice to be used for tts using a voice model?
Is it possible to use a voice model and then create a custom voice out of it to be used in SpeechSynthesis api? I have a tts app using that api, and I want to add custom voices.
I already tried to ...
2
votes
0
answers
196
views
Using QTextToSpeech with winrt engine stops playing speech after one word
I have a C++ program using Qt 6.5.2. I'm trying to use its QTextToSpeech class on Windows 11.
It works fine when I set the engine to "sapi", but when I set it to the higher quality "...
0
votes
1
answer
295
views
How do you change sapi voice pitch mid sentence in vbscript?
I'm trying to recreate daisy bell with vbs using sapi, but I have a portion of the song that's unpleasantly jarring:
yellow.Rate = 6
yellow.Speak "<pitch middle = '-10'/> Give."
yellow....
0
votes
1
answer
96
views
How to send mp3 data to ISpTTSEngineSite Write Api
I am trying to implement a TTS Engine using SAPI 5 on Windows.
To make it simple, assume that I have a model trained which converts text to an mp3 file.
I need to stream/load this mp3 data to the ...
0
votes
1
answer
97
views
SAPI-XML ignoring tags (volume, voice)
I had SAPI up and running for quite some time and worked quite well. At some point (well after upgrade to Win11) it stopped working, and throwing errors. Currently I got it back up to speak, but it is ...
0
votes
1
answer
63
views
TTS in C++ Got an error when I was trying to use a string variable
I created a void named "bot" to get text and speak it using a variable named "text". Like this,
void bot(string text).
To use this void bot("Hello") or bot("Hi, my ...
0
votes
1
answer
194
views
Is it possible to set Windows.Media.SpeechSynthesis stream format as in SAPI 5.3?
I'm using Windows.Media.SpeechSynthesis (C++/WinRT) to convert text to audio file. Previously I was using SAPI where was possible to set Audio Format when binding to a file via SPBindToFile(...) ...
0
votes
2
answers
218
views
SAPI - How to stop all asynchronous speech tasks?
I'm using the Microsoft's Speech Application Programming Interface (SAPI) to enable speech in my app. However, when I try to stop asynchronous speech tasks, they stop, but after a second.
In .NET ...
0
votes
1
answer
68
views
Cannot correctly speak non-english text using SAPI5.4
For example:
#include <sapi.h>
#include <atlbase.h>
#include <atlstr.h>
#pragma warning (suppress: 4996)
#include <sphelper.h>
int main(int argc, char* argv[])
{
ISpVoice* ...
2
votes
2
answers
896
views
Windows Voice Access commands programmatically
Windows has API for speech recognition, it also provides system apps that perform speech recognition and execute recognised command. Is there a way/API to send commands programmatically? Text and ...
0
votes
1
answer
362
views
how to calculate duration of each word when using Microsoft Text to speech?
Hi I'm using pyttsx3 in python which uses the Microsoft SDK SAPI5.1 text to speech synthesizer to generate audio from text.
Problem that I'm facing is that the the speed of the speech it generate is ...
1
vote
0
answers
316
views
Sapi voice PAUSING error : pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None, None, None, 0, -2147201018), None)
I just wnat to make an app that tts(convert text to speech) text so i found Sapi voice is a good lib for this. It works well when I run the 'start_speacking' function in a thread. BUT, when I pause ...
0
votes
0
answers
124
views
Determining the format of audio file (MP3) using SAPI
HiI'm trying to create a "Speech to text" app that can transcribe any audio/video file. I've created an app based on this post and it works great for WAV files. But if I use an MP3 file, the ...
5
votes
2
answers
13k
views
What are the full form of SAPI, PAPI and EAPI? What are the difference and when to use what?
I am front end developer and recently hearing these new terms (new to me). I searched Google for explanation but got more confused with multiple full forms.
SAPI: System API/ Server API
PAPI: Process ...
1
vote
1
answer
205
views
what is the language code for Turkish in SAPI
I'm working on a desktop application on Windows using Windows API. Application sends notifications and notifications must be spoken in Turkish language. What's the code for Turkish language that ...
0
votes
1
answer
720
views
How to use Microsoft Speech API SAPI 5.3 with Remotedesktop RDP?
Hi I want to use Microsoft Speech API SAPI with python 3.7.
import win32com.client
speaker = win32com.client.Dispatch("SAPI.SpVoice")
speaker.Speak("Hello, it works!&...
0
votes
0
answers
119
views
SAPI - Each next phrase takes more time than previous
I'm working with MS SAPI in Delphi7. My goal is:
speak list of phrases into memory
get number of bytes, occupied by each phrase (for creating SRT subtitles)
output memory data to WAV file.
All works ...
0
votes
1
answer
101
views
Making a SAPI DLL in C#, I have a function that starts the voice, but I need a function to check the STATE. How do I do that?
I am writing a DLL that allows a program to use Text To Speech through SAPI. Here is what I have:
public static double TestExport(string vSay) {
SpeechSynthesizer synth = new SpeechSynthesizer();
...
0
votes
0
answers
209
views
Using SAPI with C#, how to have a DLL that uses SAPI be able to check if a voice is still going while using ASYNC?
I'm trying to make a TTS DLL using SAPI. Passing text to be spoken is easy enough, but I'm having a problem. My secondary program has no way of knowing when TTS is done if I use ASYNC. I need to use ...
1
vote
2
answers
486
views
Speaking with an ISpVoice from a ISpTTSEngine
I'm implementing an ISpTTSEngine for the Microsoft Speech API (SAPI). I'd like for
this voice to annunciate just like a typical TTS voice. Rather than write my
own speech synthesizer, I'd like to ...
0
votes
1
answer
399
views
Calling SAPI in C# for TTS but it is using a hidden menu instead of windows default
So for this let's just use the test program provided by Microsoft to keep it simple. Before running it you will need to go to manage NuGet package for project and add speech.synthesis. But after doing ...
3
votes
0
answers
422
views
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 ...
0
votes
0
answers
136
views
Getting output of Async SAPI call?
I have a working example using the Windows text-to-speech API, but the problem is it freezes when given a large amount of text.
To solve this I want to make the process asynchronous. I've found the ...
0
votes
2
answers
351
views
trying to use pyttsx3, getting multiple errors, KeyError: 'sapi5', ImportError: No system module 'pywintypes' (pywintypes39.dll)
My code:
import pyttsx3
#sapi5 is default windows voice api
engine = pyttsx3.init('sapi5')
voices = engine.getProperty('voices')
print(voices[1].id)
engine.setProperty('voice', voices[0].id)
def ...
0
votes
1
answer
322
views
Where do I get the Windows SAPI .pdb file(s)?
I am looking for the .pdb files associated with Windows speech API 5. I've tried using the Microsoft symbol server at https://msdl.microsoft.com/download/symbols but it does not download the SAPI pdbs,...
2
votes
1
answer
823
views
Windows Speech SAPI: How to list attributes for voices?
I have used this Stack Overflow Answer to iterate through all installed Windows text-to-speech voices, but I am having a hard time extracting the attributes of each one. e.g. gender, language, name ...
0
votes
0
answers
109
views
Add new wordlist.txt to the SAPI dictionary programmically
I'm developing a new Delphi app which uses the voice to text dictation as its main data input, the required data is specifically related to medical terms, for example the user is needed to enter any ...
0
votes
1
answer
242
views
Is it possible to switch between voices using SSML tags when doing text-to-speech on Windows?
I have Windows 7 with several Ivona voices (harposoftware.com) installed. I have an app that starts SpVoice from Sapi and makes it read a text. Now I also have a piece of text that I'd like to turn ...
2
votes
2
answers
17k
views
How to add your own tts voices for pyttsx3 python
So I have made a personal voice assistant in Python and it speaks currently with Microsoft David. There are some prebuilt voices to microsoft and you can add some more from settings and speech ...
0
votes
1
answer
142
views
E2247 'TSpVoice::Voice' is not accessible
This use to work on Windows 10, but now it doesn't, and I can't find how to correct the code to make it work.
void __fastcall TForm1::ComboBox1Change(TObject *Sender)
{
ISpeechObjectTokenPtr token;
...
0
votes
1
answer
306
views
Windows.Media.SpeechSynthesis.SpeechSynthesizer constructor throws file not found exception
A lot of users for my UWP app are hitting System.IO.FileNotFoundException in the Windows.Media.SpeechSynthesis.SpeechSynthesizer..ctor()
The code is calling the default constructor of Windows.Media....
0
votes
1
answer
298
views
Windows Server 2016: Windows server logon as LSA cannot select Microsoft David Voice
I have a windows service generating TTS audio using Microsoft David Desktop voice on Windows Server 2012. When moving it to Windows Server 2016, it returns error 0x80045040. My windows service logon ...
1
vote
0
answers
397
views
SAPI fatal error: crtdbg.h: No such file or directory
I am building a voice assistant using Microsoft SAPI in C++ .
I used the code from Cyril Leroux's answer here
But during compilation, it throws this error:
C:\Program Files (x86)\Microsoft Speech SDK ...
2
votes
1
answer
1k
views
AWS Polly TTS for Windows 10 SAPI - voices not appearing in control panel
I've followed this tutorial, which shows how to install AWS Polly voices on Windows 10 for use with SAPI applications.
However, I cannot get any additional voices to appear in the Windows 10 voices ...
10
votes
2
answers
13k
views
How to change the voice used for SAPI.SPVoice
I would like to be able to select an alternative voice for my Text-To-Speech output.
I am using the ComObject SAPI.SPVoice but I am finding that I cannot change the actual voice used.
(BTW - I am ...
0
votes
1
answer
165
views
How can I read all arguments with the VBS-SAPI-VOICE?
I want to create a program, that automaticly reads all
start-arguments. This is what I end with after some hours
of researching and debugging but it still not working.
(I'm not very experienced in ...
2
votes
0
answers
223
views
MS SpeechRecognitionEngine doesn't always return when reading WAV files
There is a similar question that already exists here, but the solution does not apply to my situation, and they ultimately never solved the problem anyways.
So, as the title suggests, the recognizer....
0
votes
1
answer
304
views
i am making a program of virtual assistant but i found this error
Basically I am trying to make a program of virtual assistant in my windows 10 laptop but when I run the below script I found a very big error. and I am confused so i want a help for below code.
I am ...
4
votes
2
answers
2k
views
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
...
0
votes
1
answer
892
views
SAPI 5.4/11 Japanese TTS in Delphi GUI vs console
Trying to use MS Speech API v11 with a Japanese engine (MS Haruka) in Delphi 10.3.
I have a sample app with a form and a button. The click handler goes:
uses SpeechLib11_TLB; // Imported from "...
1
vote
1
answer
3k
views
EAPI, PAPI, SAPI. Which layer should caching be applied to?
When we are thinking to apply API caching for a general system with 3-layer API architecture (ClientApp --> EAPI --> PAPI --> SAPI --> Backend system). Is that any general practice about which API ...
1
vote
2
answers
3k
views
Windows SAPI error : 'GetVersionExA': was declared deprecated
So all I want in life is to have a program where I can say "Hey Computer" and it responds with "Hello". So I set myself upon the task and after some research produced the code below yet whenever I try ...
1
vote
0
answers
678
views
Error '0x80045039' when using GetVoices method
I am getting an error "System.Runtime.InteropServices.COMException: 'Exception from HRESULT: 0x80045039'", when I use GetVoices method
my code:
Private Sub Button1_Click(sender As Object, e As ...
4
votes
1
answer
1k
views
WasapiLoopbackCapture internal audio recognition gives jibberish and text when no audio
I finally have built a program to listen to the internal audio loopback using NAudio, and output recognized text. The problem is it listens, and always says, eg:
Recognized text: had
Recognized text: ...
2
votes
1
answer
1k
views
Can SAPI voices be used with the Microsoft Speech API?
I currently have several custom SAPI voices that work in SAPI-compliant applications. However, applications such as Microsoft Powerpoint use the Microsoft Speech API and the SAPI voices are not ...