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
33
votes
1 answer

Realistic text to speech with Python that doesn't require internet?

I'm trying to create an artificially intelligent program (nothing really big or special) and I wanted it to have a voice (who wouldn't?). I've looked into espeak, festival, gTTS and they're nice and usable, but not realistic enough for me to really…
Edgecase
  • 673
  • 1
  • 7
  • 23
32
votes
5 answers

open source text to speech library

Does any one know of a good text to speech library. It needs to be open source and provide C API? PS: I've already done a search, but I'd like recommendations from people who have actually used these APIs
hhafez
  • 38,949
  • 39
  • 113
  • 143
32
votes
2 answers

IllegalArgumentException: Invalid int: "OS" with Samsung tts

I'm using Text to speech in my android application.It is working Fine with Google TTs and espeak, But when i used with Samsung TTS it gives following Exception. java.lang.IllegalArgumentException: Invalid int: "OS" at…
Kaifi Girdhar
  • 471
  • 5
  • 17
32
votes
8 answers

Getting list of Mac text-to-speech voices programmatically?

The mac command say can specify the voice used with the -v flag. say -v Alex "compile completed, put your swords down." The available voices can be seen in System Preferences/Speech/Text to Speech. How can I get this list programmatically?
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
32
votes
13 answers

iPhone - API for Text to Speech feature

I was wondering if iPhone has any API that supports Text to Speech feature? I looked around but couldn't find any, so just want to confirm. Thanking in anticipation.
Mustafa
  • 20,504
  • 42
  • 146
  • 209
31
votes
3 answers

Using list preference in Android

I have a text to speech application where the user can select a language and also select a male or female voice. The problem is that for each language there are different strings used to called the male and female voice but in my preference I only…
Amanni
  • 1,924
  • 6
  • 31
  • 51
28
votes
2 answers

Text to speech web API

I want a text-speech API that works over the web. Google Translate unofficial API doesn't fit because I need to read more than one paragraph and they're limited to 100 chars. I checked iSpeech, but they require a telephone call to buy credits and…
Herberth Amaral
  • 3,479
  • 3
  • 33
  • 35
28
votes
14 answers

High-Quality Text-To-Speech engine for personal use

I'm looking for a high-quality TTS engine that I can afford (let's say less than 1000$). So far, I've tried flite and festival with default voices. However, while the results are certainly understandable, technical texts are hard to…
phihag
  • 278,196
  • 72
  • 453
  • 469
27
votes
2 answers

TextToSpeech : deprecated speak function in API Level 21

I try to use a TextToSpeech in my app, String text = editText.getText().toString(); tts.speak(text, TextToSpeech.QUEUE_FLUSH, null); But the function speak(String text, int queueMode, HashMap params) is deprecated in API Level 21. Instead of that,…
Francis Ngueukam
  • 994
  • 1
  • 10
  • 28
27
votes
9 answers

pyttsx: No module named 'engine'

I'm trying to install TTS package by using this. Everything was okay until I tried to execute the following command: import pyttsx I got back this error: File "/usr/local/lib/python3.4/dist-packages/pyttsx/__init__.py", line 18, in module
27
votes
1 answer

High-quality open-source text-to-speech (TTS) engines written in C++

I'm looking for open-source text-to-speech (TTS) engines written in C++. Ideally with high-quality voices (see quality definition below), but also lower quality alternatives are okay as long as the source is freely available. Does such an open…
knorv
  • 49,059
  • 74
  • 210
  • 294
26
votes
10 answers

How to pause android.speech.tts.TextToSpeech?

I'm playing text with android TTS - android.speech.tts.TextToSpeech I use: TextToSpeech.speak to speak and .stop to stop. Is there a way to pause the text also?
Jas
  • 14,493
  • 27
  • 97
  • 148
26
votes
1 answer

SpeechSynthesis.speak (in Web Speech API) always stops after a few seconds in Google Chrome

When using the speak function in the Web Speech API, in Chrome the speaking stops abruptly after a few seconds, in the middle of the text given to it, in a seemingly random place (without reaching the end). This only happens in Chrome (works well on…
25
votes
4 answers

Get available locales for text to speech (TTS)

I'm working on a text-to-speech implementation of a flashcard program. Text in different languages should be read out. In order to do this properly the user has to select the language of the text to read (will be stored and used later without…
nob
  • 1,067
  • 1
  • 11
  • 18
24
votes
3 answers

TextToSpeech.OnInitListener.onInit(int) being called continuously

I'm getting reports that, on some (not all) HTC Desire HD (FRF91, 2.2) and HTC EVO 4G ( PC36100|3.29.651.5, 2.2), the TextToSpeech.OnInitListener.onInit(int) is being called repeatedly (over 1500 times in the space of a few seconds) on the same…
Mark
  • 7,446
  • 5
  • 55
  • 75