Questions tagged [google-text-to-speech]

Refers to issues related to Google's APIs for text to speech (primarily the cloud text to speech API)

Google Text-to-Speech is a screen reader application developed by Google Inc for its Android operating system. It powers applications to read aloud (speak) the text on the screen.

More Info

476 questions
9
votes
2 answers

ModuleNotFoundError: No module named 'google.cloud'

I'm looking to use the Google "cloud text to speech" api, and I'm having the common problem of the module not being found. I've tried the solutions that most people have, only problem being that I use windows and most of the solutions are for mac or…
9
votes
1 answer

Javascript Native Language Text-To-Speech

I'm making a project for school where we'll teach children to calculate for the first time. Unfortunately these children can't read so the task will be spoken to them in there native language, which in this case is Dutch. I've been looking around…
timr
  • 6,668
  • 7
  • 47
  • 79
9
votes
4 answers

Why is my Speech Synthesis API voice changing when function run more than 1 time?

I have been using the new Speech Synthesis API in Chrome (33 and above) to make a web based communication aid. I would like the user to be able to change the voice between male and female, which the API allows me to do. However, when the page is…
8
votes
2 answers

How to use Phonetic or Phoneme pronunciation in google text to speech?

I have been trying for a while to get Phonetic or Phoneme pronunciation working with google's text to speech but have not managed to get it performing consistently. I have managed to get limited results from using https://tophonetics.com/ It…
Hellonearthis
  • 1,664
  • 1
  • 18
  • 26
8
votes
1 answer

Initialising the TextToSpeech object on a worker thread

For years (literally), my application has suffered woes from poorly performing text to speech engines, in particular, the initialisation time when calling: tts = new TextToSpeech(context, myOnInitListener); The above can cause the UI to lag and if…
brandall
  • 6,094
  • 4
  • 49
  • 103
8
votes
1 answer

Android text to speech is very slow to initialize

My application is used by people who are visually impaired so it relies heavily on text to speech. The application makes a call to an API and reads out load (using android.speech.tts.TextToSpeech) some relevant information to the user. Everything…
Ben Sandler
  • 2,223
  • 5
  • 26
  • 36
7
votes
2 answers

Can't figure out why I get App Engine flex "Uncaught Error: Call to undefined function Google\Protobuf\Internal\bccomp()"

I'm trying to implement Google's Text-To-Speech API on App Engine flex environment, but get this error: "PHP message: PHP Fatal error: Uncaught Error: Call to undefined function Google\Protobuf\Internal\bccomp() in …
7
votes
1 answer

'5000 characters limit exceeded' Using SSML vs. Text Input: Google Text-to-Speech (TTS)

Issue Following the documentation for Creating Voice Audio Files with Google Cloud Platform's Text-to-Speech API the following error occurs when using Speech Synthesis Markup Language (SSML), versus no error when using the same content formatted as…
7
votes
2 answers

TextToSpeech and memory leak

I've been having app crashes due to an out-of-memory condition (in the program, not the programmer). MAT shows that copies of my Activity were sometimes being retained across screen rotations, and the only object keeping the bogus copies alive was…
7
votes
2 answers

How to install specific TTS engine programmatically in Android?

I am trying to add to my app specific TTS engine - not system based, so each person will have another, but one for all. In documentation there is method:setEngineByPackageName(), which looks like it will make what I want. However, looking on other…
sebap123
  • 2,541
  • 6
  • 45
  • 81
6
votes
1 answer

Maximum size of Google Cloud Text-to-Speech requests

When I submit synthesis requests for text that is too long, I get the following error: google.api_core.exceptions.ResourceExhausted: 429 Received message larger than max (X vs. 4194304) Where "X" is the size in bytes of the returned request. Why…
6
votes
1 answer

W/TextToSpeech: speak failed: not bound to TTS engine

I have my class MyTTS and i have method speakout in this class. When i call it inner the class it work fine but if i initialize this class in other class and i call this method again never works, it gives me W/TextToSpeech: speak failed: not bound…
6
votes
2 answers

Text to speech for Bangla not working

TTS for bangla content works fine in my Nexus 5x, but not others phone. In other i.e. Samsung phone can speak only english words but skip(not speak) bangla words. Can anybody fetch this type of problem, please help me. Thanks. Code: @Override …
6
votes
3 answers

Use of sound files in TTS on Marshmallow (Android 6) fails with permission issues

Using addSpeech() in android TTS, you can link a certain text to a sound file. Then, the TTS engine plays the file instead of synthesizing the sound of the text (also in question at Android TTS(Text to Speech)'s addSpeech() and speak() can't play a…
6
votes
0 answers

Google Text-To-Speech API's save(file) run very slow

I'm new to Python. I've been working with gTTS recently and encountered an performance issue. Here is the code: from gtts import gTTS import pygame import time tts = gTTS(text='Good morning', lang='en') #<1s tts.save('test.mp3')…
1
2
3
31 32