Questions tagged [text-to-speech]

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

Speech synthesis is the artificial production of human speech. A computer system used for this purpose is called a speech synthesizer, and can be implemented in software or hardware. A text-to-speech (TTS) system converts normal language text into speech.

3705 questions
10
votes
0 answers

Convert a SpeechSynthesisUtterance to audio blob

Using the javascript Speech Synthesis API, you can make the browser speak some text: var message = new SpeechSynthesisUtterance('foo bar'); speechSynthesis.speak(message); However I would like to do something other than speak the produced audio. Is…
Tyilo
  • 28,998
  • 40
  • 113
  • 198
10
votes
4 answers

Firefox and Speech Synthesis API

I'm creating HTML5 Speech Synthesis application like below link. http://updates.html5rocks.com/2014/01/Web-apps-that-talk---Introduction-to-the-Speech-Synthesis-API Windows7 and Android Chrome33beta or Mac's safari works fine. but Windows7-Firefox…
aki miyazaki
  • 493
  • 4
  • 11
10
votes
2 answers

Highlight the current word that TTS engine is speaking

I'm working on Text to speech application but I encounter a problem that I couldn't know the present word that TTS is speaking. Is there any way to find this.? For Example: If TTS is speaking this string: Questions that may already have your answer…
Rookie
  • 8,660
  • 17
  • 58
  • 91
10
votes
3 answers

Unable to detect completion of TTS (callback) android.

I am developing android application in which I am using text to speech conversion.What I need when I open my application run text to speech conversion. After completion of this I want to do some thing.My code looks like public class Mainactivity…
nilkash
  • 7,408
  • 32
  • 99
  • 176
9
votes
5 answers

Recording synthesized text-to-speech to a file in Python

I am attempting to find a way to take synthesized speech and record it to an audio file. I am currently using pyttsx as my text-to-speech library, but there isn't a mechanism for saving the output to a file, only playing it directly from the…
petrichor
  • 128
  • 2
  • 6
9
votes
2 answers

What is the proper syntax for the phoneme attribute in Android's TTS XML?

My understanding is that this X-SAMPA XML sample, like other samples here and even here & here, is supposed to sound something. String text = " ."; mTts.speak(text,…
an00b
  • 11,338
  • 13
  • 64
  • 101
9
votes
1 answer

Setting language for TTS programmatically?

I have written a small Android Demo to use TTS in different languages. I have a layout with two buttons, Spanish and English. Pressing the button triggers an utterance in the language selected. However, I can't change the language (setLanguage…
Ignacio
  • 135
  • 1
  • 2
  • 8
9
votes
2 answers

How do I get started training a custom voice model with Mozilla TTS on Ubuntu 20.04?

I'd like to create a custom voice in Mozilla TTS using audio samples I have recorded but am not sure how to get started. The Mozilla TTS project has documentation and tutorials, but I'm having trouble putting the pieces together -- it seems like…
GuyPaddock
  • 2,233
  • 2
  • 23
  • 27
9
votes
1 answer

Missing languages in TTS android

I am working on an android application that uses the TextToSpeech functionality provided by google and have followed this example: TTS Example from Google I want to know with this line: int result = mTts.setLanguage(Locale.US); if (result ==…
SamRowley
  • 3,435
  • 7
  • 48
  • 77
9
votes
3 answers

FreeTTS no audio linux ubuntu - no errors

I am running Ubuntu 10.10 using Java 6 and can not get FreeTTS to output any audio. I have tried it now on 3 different computers and even asked a buddy of mine to try it on his Ubuntu PC and he had the same problem. There is absolutly no errors that…
John
  • 236
  • 1
  • 4
  • 11
9
votes
2 answers

Algorithm for concatenating speech audio to sound continuous?

I'm building a simple program that speaks phone numbers in a human voice. For that I pre-recorded each digit (with different intonations), and when I get a number I join the audio files and play them together with some silence added between the…
Ran
  • 4,117
  • 4
  • 44
  • 70
9
votes
0 answers

TextToSpeech audio routed to phone speaker instead of bluetooth headset

I have an app that uses android.speech.tts.TextToSpeech.speak() to readout messages. The messages are only supposed to be readout to a connected bluetooth headset. So before I call the speak method I check AudioManager.isBluetoothA2dpOn(); Speak…
9
votes
3 answers

Android call TTS in BroadcastReceiver

I need to call TTS service within subclass of BroadcastReceiver. When I am implement that class from OnInitListener, it gave run-time error. Is there any other-way to implement TTS within BroadcastReceiver? Thank You, Sorry Code: public class…
Chandana
  • 2,578
  • 8
  • 38
  • 55
9
votes
4 answers

Text-to-speech (TTS) module that works under Python 3

I have tried PyTTS (deprecated) and PyTTSx (the most recommended) and two Google TTS solutions (gTTS and another one by some guy named Hung Truong) but none of them worked under Python 3.4. It seems they haven't been ported to 3.x. I searched here…
Macondo
  • 927
  • 1
  • 8
  • 17
9
votes
3 answers

Text to speech with avatar lip sync, no plug-ins

Is there a JavaScript library or product that exists that provides text-to-speech for animated, speaking avatars, that does not use flash or any other plug-in. The idea is that I type in text and the avatars mouth moves as audio is played. The aim…
user2245759
  • 477
  • 6
  • 17