Newest 'text-to-speech' Questions - Stack Overflow

Questions tagged [text-to-speech]

Text-to-speech or speech synthesis is the artificial production of human speech.

0
votes
0answers
4 views

How to handle long lasting Microsoft Cognitive Services Text-To-Speech calls in Twilio Flow

Calling a .net core based webapi from Twilio flow fails due to the fact that, because the underlying call of the webapi to Microsoft cognitive service lasts more than 5 seconds. any idea on how to ...
1
vote
1answer
21 views

How to set up multilingual text to speech

I'm working on an android Studio project, requiring text to speech. I would like to implement a program which can recognize in which language the text is written and read it with the appropriate ...
0
votes
0answers
11 views

How to fix error 'classcastexception' with using Freetts

I just want to use Freetts testing with this code but i got an error: ClassCastException: class com.sun.speech.freetts.en.us.cmu_us_kal.KevinVoiceDirectory cannot be cast to class com.sun....
2
votes
0answers
17 views

Error- SpeechSynthesisUtterance stops in between for Italian language

Environment Information : OS- Windows 10 Pro Browser - Chrome Version 74.0.3729.169 On trying to have this particular text: Alice stava cominciando ad essere molto stanca di sedersi accanto alla ...
0
votes
0answers
12 views

What is the correct way to display a Voice object to the user in an Android app using tts engine com.google.android.tts?

An Android app running API > 21 utilizes the framework TextToSpeech class. The tts engine is set as com.google.android.tts. All the available locales in the engine can be obtained with, Set<...
0
votes
1answer
25 views

How to use activity from some another thread “CalledFromWrongThreadException”

I use MediaPlayer TextToSpeech classes. I need to catch the moment when speaking is ended. I use this code: mediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @...
0
votes
0answers
11 views

How can I personalize voice in Text to Speech? [duplicate]

I want to create an application of text-to-speech without using any built-in API. How to make the text read in my voice?
0
votes
0answers
20 views

How can I add my own voice in Text to Speech?

I am creating an application which will read text in the user's voice. I am using pyttsx for text to speech conversion. I want to know if there is any way by which the voice of the speech can be ...
0
votes
0answers
24 views

How can i make a passive voice listener then if ,,trigger,, string appear it must become an active listener

I`m trying to create a voice assistant based on google recognition voice but everytime i will say ,,Hey X,, i expect to wait for a command for me,instead of this ,if he didn't hear ,,Hey X,, nothing ...
0
votes
1answer
32 views

Run TTS in NSArray sequentially

I have NSArray with words in it. I want to app reads that tts sequentially and print the text in UILabel what app speak. but word on label is shown the last one. I tried time pause, etc for (Word * ...
0
votes
0answers
24 views

python pyttsx3 error — _pickle.UnpicklingError: invalid load key, '\x00'

i am trying to convert text to speech using pyttsx3 in python. but iam getting the error -- _pickle.UnpicklingError: invalid load key, '\x00'. it worked once. later it didn't my code import pyttsx3 ...
0
votes
0answers
8 views

How do you say “Hello World” using the Google text-to-speech api?

I'm learning about [Google Cloud Text-to-Speech][1]. The following works: var params = {} params.type = 'get' params.url = 'https://texttospeech.googleapis.com/v1/voices' params.dataType = '...
2
votes
0answers
55 views

UWP suitable project solution

I want rewrite C# Winforms desktop application to Universal Windows Platform, but first of all I'm trying to figure out, what should be suitable for my goal. The reason why I want to use UWP is a ...
0
votes
0answers
31 views

Unable to know when TextToSpeech synthesizeToFile is completed

I need to call synthesizeToFile to create some audio files and I need to know when it finished creating all these files, in order to inform the user. I already read other questions but I did not ...
0
votes
0answers
20 views

How to use an array in a text-to-speech script

Hello stackoverflow Community, I am working on a Survey which uses Text-To-Speech components. Usually they look like this: <img src="picture.jpg" border="1" input onclick="responsiveVoice.speak('...
0
votes
0answers
14 views

Text to Speech Emphasis on one word as if it was part of a sentence

When I use the google speech to text api, I need a little more settings on the emphasis / pronunciation of words. In my case, I'd like to generate the name: Peter as it is pronounced in the sentence ...
0
votes
2answers
33 views

program keeps executing first if condition

I'm trying to build a speech recognition app in python,everything works fine but,when I'm executing program the first If condition always executes no matter what the input is. import ...
0
votes
0answers
24 views

SpeechRecognition - Recognize single word instead of sentence

I use Microsoft's built in C# SpeechRecognition engine. It works fluently.. but only on sentences like (eg.)"what time is it". The problem is, you can't add single words, obviously they will be ...
0
votes
0answers
46 views

Android app + Amazon AWS Polly TTS. Best practices?

I want to create my first Android App and I have the exact idea in my head. It revolves around Text To Speech of variables objects (can't bake) and I found Amazon Polly. So far in debug runs it works ...
-1
votes
0answers
31 views

How to make a text to speech using custom voice in Python

I have a voice dataset of 1440 Audio files labled with text. I want to make a Text To Speech Program using Machine Learning. I want the voice that is in the test dataset. I used gTTS library, but the ...
0
votes
0answers
8 views

Are <grapheme> elements in PLS case-sensitive?

I am making a website, and I want to support the visually disabled while ensuring that words are pronounced by the screen reader how I would. However I am not sure on some details of PLS (...
0
votes
0answers
19 views

What is the flutter tts language code for latin?

Similar to de_DE for german or en_EN for english. But how can I use the latin language in flutter text-to-speech?
0
votes
0answers
27 views

How to use textToSpeech in an no activity class?

I have a MainActivity class where I want to hear the textToSpeech invoked from a no activity class. The no activity class is called automatically, so I do not call it in order to be able to send the ...
1
vote
0answers
22 views

Text to speech for Gujarati language

I am trying to implement Text To speech.I have tried these possible solutions for Gujarati language but it has not worked: m_TTS.setLanguage(Locale.forLanguageTag("gu_IN")); m_TTS.setLanguage(new ...
1
vote
1answer
26 views

How can I mute TextToSpeech?

I want the user to be able to turn off the volume of TextToSpeech. I have a button to to this. At the minute I am shutting down the TTS and creating new instance every time the user turns it back on ...
1
vote
0answers
32 views

How to use male voice in text to speech?

I want to let the user select between male or female voice. I tried doing that using tts but no result. All the voices that came with TextToSpeech are female. I have already tried these solutions ...
1
vote
0answers
20 views

How to use text to Speech feature in Cocos creator Java script - Android/IOS APP

I am developing a cocos creator game and it is build both android and IOS versions. I need to add "text to speech" feature into that APP. But I tried a lot to find a text to speech API but none of ...
0
votes
0answers
29 views

Android TextToSpeech only working in Debug mode

I have the following Kotlin code in a dialog where I want to use TextToSpeech. val tts = TextToSpeech(context, TextToSpeech.OnInitListener {status-> if(status == ...
0
votes
0answers
19 views

How to Open .wav file in php using SAPI.Spvoice

$write->Open("audio.wav",SSFMCreateForWrite,false); I tried it like this. But this error has occured: Warning: Use of undefined constant SSFMCreateForWrite - assumed 'SSFMCreateForWrite' (this ...
0
votes
0answers
22 views

Text to speech stopped speaking but loop to pause does not stop

I want to add pause and play functionality in tts. what is have done so far is, when i stop tts speaking and want to get the last spoken word but the loop which is running not getting stop. please ...
0
votes
1answer
23 views

How can I use SpeechSynthesizer in ASP.Net Core 2.0

I'm trying to save a text to Audio file in my web app developed in ASP.Net Core 2.0. I'm trying to find the support for the System.Speech, but the namespace seems not available in .Net Core. Can ...
-1
votes
0answers
17 views

Tts voice call in android

I am stuck at a problem while making my app I am not able to find a way to implement tts in voice call. It should work like this when receipient picks call he/she should listen to the automated voice(...
-1
votes
0answers
33 views

How to use windows TTS with ISpVoice or windows speech synthesis via Unity?

What I want is - make a few strings speak with automated voice and this will be used in a Unity Project. But I dont see much options available. I thought using libraries can be a solution but there I ...
0
votes
0answers
19 views

How I increase Text to speech volume over other background music apps Android

I use Audio Manager to fade Text to speech voice command and Background music for a short time. I request audio focus using AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK flag. It will fade two voice out puts ...
0
votes
0answers
26 views

Is there a way to utilize text to speech and speech to text in the same view controller?

Using Swift 4 I'm working on a conversational application. Currently, I have the application recording audio from a user with the Speech API. It works, and I can have a full on conversation back and ...
1
vote
0answers
42 views

Are SAPI (5.4) phoneme sets available for all supported languages?

SAPI 5.4 documentation mentions that English, Chinese, German, Spanish, French, and Japanese languages (are able to) use the SAPI phone set. However the SAPI 5.4 documentation includes phoneme sets ...
0
votes
0answers
18 views

Speech​Synthesis​.get​Voices() only returns 3 voices, but have 8 installed (firefox, win10)

I have multiple text-to-speech voices installed, some are english and some a dutch. A total of 8 are installed (6 for English, 2 for Dutch) When I run this demo (in FireFox): http://mdn.github.io/web-...
-2
votes
2answers
47 views

How can I convert a text to speech?

I want my app to read out the message contained in the push notification. I already searched the internet but I was not able to find some code which was working. I expect that the text is translated ...
0
votes
0answers
20 views

TextToSpeech UtteranceProgressListener doesn't work with support Fragment

This is the code is in a fragment the Toasts inside the run() and done() functions doesn't work. I can't seem to understand what the problem could be. I tried passing application as well as activity ...
0
votes
0answers
13 views

How to see the IBM Cloud Text to Speech service logs?

I have an application running which uses the Text to Speech service from IBM Cloud and currently I don't get any output. I have the same application running on my local machine and it is working, but ...
0
votes
1answer
54 views

Text to Speech save to audio file with silent (long pause)

I want Save text speech as audio file with pause 5 seconds silent.I am aable to save text to mp3 file .I tried but i did not get anywhere . Code to save text to mp3 file.i need to add silent 5 ...
0
votes
1answer
57 views

Google Cloud TTS engine ignoring break SSML tags on large chunks of text

I'm trying to generate audio from a big paragraph, but Google is ignoring the SSML tags. The tags are respected if I trim the text to around three lines, but more than that makes them invisible. $...
-1
votes
1answer
52 views

how can send JSON?

I'm trying to send a JSON to web service using Google Cloud API but keep getting the error below; ERROR == 415 "E/Volley: [293] BasicNetwork.performRequest: Unexpected response code 415 for http:/...
0
votes
0answers
13 views

How can i play the audio generated by Azure Text-To-Speech on Android with Unity

I want to synthesize custom texts-to-speech for an android app created with Unity. However the returned speech is in byte[] (wav?) format. And unity only accept float. I am able to get the audio ...
0
votes
0answers
24 views

Force TTS to pronounce the word's last letter

I use TTS to read some text in french. Some words end with a "silent" letter. For example, the "S" for the plural. However, there are some homographs where the ending "S" letter should be explicitly ...
0
votes
0answers
30 views

highlighting the string words currently been speaking (text to speech) with pause and resume

I have been trying from so long to highlight the text been spoken by text to speech, and yeah I have done it with this callback from text to speech class : @Override public void onRangeStart(...
0
votes
0answers
24 views

Text To Speech only to device speaker when bluetooth speaker connected

How to direct Text To Speech (TTS) sound only to device internal speaker when bluetooth speaker is connected? There is a few possible audio stream that can be used by TTS and provide another sound ...
2
votes
1answer
54 views

How to define an audio output programmatically on Windows 10?

I'm developing a C++ application which implements the Microsoft Speech API (SAPI). I developed numerous functions related to Text-To-Speech. Among them a function which allows the listing of the audio ...
0
votes
0answers
21 views

Text-to-speech on Windows: can I somehow to “cut” that functionality and synthesize THE SAME voice on Linux?

I know that we can use AWS Polly, IBM Watson, Microsoft Cognitive Service or Google Cloud voices, but just curious, for example we can compile Go code for Windows or Linux - is it possible somehow to ...
0
votes
0answers
11 views

TTS plugin is neither working nor throwing any error

I'm using two plugins in my angular app from cordova, speechRecognition and TTS.While the speechRecognition plugin is working but tts plugin is neither working nor throwing any error. window....