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

Swift text to speech

I have a block of code that is not working, but not giving me a runtime error either. There is just no speech coming out of the speaker. let synth = AVSpeechSynthesizer() var myUtterance = AVSpeechUtterance(string:…
Saransh Malik
  • 726
  • 1
  • 4
  • 16
22
votes
2 answers

How to capture generated audio from window.speechSynthesis.speak() call?

Previous questions have presented this same or similar inquiry Can Web Speech API used in conjunction with Web Audio API? How to access audio result from Speech Synthesis API? Record HTML5 SpeechSynthesisUtterance generated speech to file generate…
guest271314
  • 1
  • 15
  • 104
  • 177
22
votes
6 answers

TextToSpeech with API 21

Can someone help me using TTS with API 21. All examples available are deprecated with version 21 Here's my code giving error on last line: Calendar cal = Calendar.getInstance(); cal.getTime(); SimpleDateFormat…
Jose Borges
  • 340
  • 2
  • 4
  • 14
21
votes
3 answers

Google Cloud Text-to-speech word timestamps

I'm generating speech through Google Cloud's text-to-speech API and I'd like to highlight words as they are spoken. Is there a way of getting timestamps for spoken words or sentences?
user2248702
  • 2,741
  • 7
  • 41
  • 69
21
votes
2 answers

Android "speak failed: not bound to tts engine"

My android application has text to speak feature and more then one activity uses this feature. So created a static helper class to made this easy. import java.util.Locale; import android.content.Context; import…
bahadir arslan
  • 4,535
  • 7
  • 44
  • 82
20
votes
2 answers

How to Programmatically Change TTS Default Engine

In addition to the Pico TTS engine that comes with Android, I have another TTS engine installed. I can change which is the default used by the system -- manually: Settings > Voice input & output > Text-to-speech settings > Default Engine I would…
an00b
  • 11,338
  • 13
  • 64
  • 101
20
votes
2 answers

Android Text-To-Speech API Sounds Robotic

I'm learning android development for the first time and my goal is to create a simple Hello World application that takes in some text, and reads them out loud. I've based my code off an example I found and here's my code: class MainFeeds :…
19
votes
4 answers

Is it possible to make "HTML to speech" same like "Text to speech"?

I have one weird requirement that in my existing app I have Text2Speech and for that, I have used AVSpeechSynthesizer to speech text, but now the requirement changed and now I need to convert HTML files data to text something like HTML2Speech. One…
CodeChanger
  • 7,953
  • 5
  • 49
  • 80
19
votes
3 answers

Droid Accessibility - Disable TalkBack for specific TextView

I can not find an answer to what should be a very simple task. Can someone explain to me the best way to turn off accessibility (talkback) for an individual element in android? I have a TextView that I programmatically set the contentDescription to…
edhnb
  • 2,122
  • 3
  • 24
  • 38
18
votes
3 answers

How to create custom text-to-speech engine

As I know, TTS needs TTS engine to speak one language. In Android emulator 2.2, Pico TTS engine is default. It has only some popular languages. I can see some engines on Market which must be purchased to install. My question: is there any way to…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
18
votes
6 answers

How to use Google Translate TTS with the new V2 API?

I used to call Google Translate TTS to download an audio file using this url: http://translate.google.com/translate_tts?tl=en&q=Hello+world! However Google changed the way that works and therefore I can no longer download the audio files. I've…
lolouk44
  • 199
  • 1
  • 2
  • 4
18
votes
2 answers

best practice for specifying pronunciation for Android TTS engine?

In general, I'm very impressed with Android's default text to speech engine (i.e., com.svox.pico). As expected, it mispronounces some words (as do I) and it therefore occasionally needs some pronunciation guidance. So I'm wondering about best…
gregS
  • 2,580
  • 5
  • 28
  • 33
18
votes
1 answer

Does iOS provide built in text to speech support or any class like NSSpeechRecognizer?

i have found many libraries like flite which can be be used, as in given here, but I want to know if there is any Built-In class provided by iOS SDK similar to NSSpeechRecognizer provided in OS X.
Krishna
  • 293
  • 3
  • 11
17
votes
5 answers

System.Speech.Synthesis hangs with high CPU on 2012 R2

I have an asp.net MVC application that has a controller action that takes a string as input and sends a response wav file of the synthesized speech. Here is a simplified example: public async Task Speak(string text) { …
17
votes
3 answers

Development of application similar to "Google now" - is it possible to use voice recognition without key input?

I'm trying to develop a cool application that uses the TTS engine and speech recognition. So far it's ok but I want more. I would like to create a service (I think a service is the right way), that is always "listening" and when someone says "ok…
Atlas91
  • 5,754
  • 17
  • 69
  • 141