google-text-to-speech

In Android----How can we provide hint which word is speaking in Text to Speech?

爷,独闯天下 提交于 2019-12-22 17:20:13
问题 Any body help me to Provide hint in Text to Speech? I get word in Array but TextToSpeech.QUEUE_ADD takes a few seconds to speak and makes bold word run speedily. My Code is below :-(tts is a TextToSpeech object) String[] strArr = txtText.getText().toString().split(" "); txtText.setText(""); for(int i=0;i<strArr.length;i++) { Log.d("","Value :- "+strArr[i]); HashMap<String, String> myHashAlarm = new HashMap<String, String>(); myHashAlarm.put(TextToSpeech.Engine.KEY_PARAM_STREAM, String.valueOf

How to Predict Failure of Google Text-to-Speech?

廉价感情. 提交于 2019-12-19 10:04:43
问题 On Android, when using a TextToSpeech instance that uses the Google text to speech engine, it seems as though the method isLanguageAvailable() is unreliable. I say this because there are many instances where this method will return "success" (0,1,or 2), but subsequent speak() commands only results in silence. The case I am testing is a Samsung S5 with API 23. It is in airplane mode (no network). I'm assuming that the reason is at least partly because there is no network and therefore it can

Android TTS doesn't speak

走远了吗. 提交于 2019-12-19 02:41:13
问题 I am trying to implement text to speech technology of android in my Activity but I face a strange error. I can't hear any sound, from my code. The speak method works only if I place it in onInit method, else it doesn't speak. My code is as follows : public class GameOverActivity extends Activity implements OnInitListener { private TextToSpeech talker; .... talker = new TextToSpeech(this, this); say("Something",false); ... public void onInit(int status) { if (status == TextToSpeech.SUCCESS) {

Google Text-To-Speech API

限于喜欢 提交于 2019-12-17 04:11:16
问题 I want to know how can I use Google Text-to-Speech API in my .NET project. I think I need to call a URL to use the web service, but the idea for me is not clear. Can anyone help? 回答1: Old answer: Try using this URL: http://translate.google.com/translate_tts?tl=en&q=Hello%20World It will automatically generate a wav file which you can easily get with an HTTP request through any .net programming. Edit: Ohh Google, you thought you could prevent people from using your wonderful service with

freetts - text to speech setting mbrola voice com.sun.speech.freetts.ProcessException: Processing Utterance:

浪子不回头ぞ 提交于 2019-12-13 23:09:03
问题 Working with ubuntu linux version Almost done with freetts setting with mbrola voices us1, us2 and us3, but finally getting exceptions. When i run the below command, i could hear kevin's voice of sun microsystems. $ java -Dmbrola.base="/home/amphisoft4/Downloads/mbrola" -jar bin/FreeTTSHelloWorld.jar All voices available: alan (time domain) kevin (general domain) kevin16 (general domain) mbrola_us1 (general domain) mbrola_us2 (general domain) mbrola_us3 (general domain But if i specify mbrola

Google Cloud Text-to-Speech Interface Confusion (How do I download the mp3 files?)

喜夏-厌秋 提交于 2019-12-13 12:33:50
问题 I'd like to preface this with the fact that I am not a programmer/developer - I am a multimedia designer. I use text-to-speech to generate placeholder audio files that can be used to time animations before we record the official audio narration. Previously I was using Amazon Polly but I wanted to give Google Cloud a try. However, I'm having the hardest time actually figuring out how to generate the mp3 files and save them. With Amazon Polly, you simply go to a website, enter your text into a

Python GTTS Error : AttributeError: 'NoneType' object has no attribute 'group'

帅比萌擦擦* 提交于 2019-12-12 13:17:47
问题 I have a project where I was doing text to speech conversion. My audio file is being stored as a mp3. But now, when I check the Gtts api is throwing error. I tried searching but couldn't find a workable solution for the bug. My code is as follows: def synth(sent,language='en',slow = False): """ Synthesize text into audio """ os.system('clear') print("Speaker Output:" + sent) gt_ob = gTTS(text=sent, lang=language, slow=slow) file_name = hashlib.md5(sent.encode('utf-8')).hexdigest() print("File

Google Cloud Text To Speech REST API Authentication

♀尐吖头ヾ 提交于 2019-12-12 01:23:02
问题 So I want to use the Google Cloud Text to Speech using a simple POST request from my C++ program, the problem is with their authentication. I did create a service account as they mentioned and I got the file containing my private key. But I don't know how can I use it in my POST request to be authenticated ? POST Url: https://texttospeech.googleapis.com/v1beta1/text:synthesize and here is my POST body: { "audioConfig": { "audioEncoding": "LINEAR16", "pitch": "0.00", "speakingRate": "1.00" },

Google text to speech tts api doesn't seems to work

笑着哭i 提交于 2019-12-11 13:55:36
问题 Hello I tried using Google TTS api to convert text to speech. http://translate.google.com/translate_tts?tl=en&q=Hello However this doesn't play in browser.What's the issue ? This used to work till last year. 回答1: Google has deprecated free access to the API, you now need an API key. Please see here for details. 回答2: The example noted here worked for me: wget -q -U Mozilla -O output.mp3 \ "http://translate.google.com/translate_tts?ie=UTF-8&total=1&idx=0&textlen=32&client=tw-ob&q=Test&tl=En-gb"

Google cloud text-to-speech : the server responded with a status of 403 ()

假装没事ソ 提交于 2019-12-11 11:24:41
问题 I am trying to build a web page which will translate the text into mp3 using google cloud text-to-speech. After lots of search I found using REST API I can request the API to translate the text into mp3. I am using JQuery and AJAX for the HTTP request. Problem is that I am requesting the cloud server to translate the text using following data, "data" : { "input": { "text": encodeURIComponent(text) }, "voice" : { "languageCode" : "en-US", "name" : "en-US-Wavenet-A", }, "audioConfig" : {