text-to-speech

gTTS direct output

老子叫甜甜 提交于 2019-12-22 18:32:12
问题 I want to make a chatbot's response in audio and text. All the example code using gTTS seem like one needs to 'save the text into a file then play the file'. Is there another way to simplify the process such as, play the 'response from chatbot' automatically, using gTTS? 回答1: If you look even briefly at the docs, you'll see that, of the three examples, only one of them requires you to call save , and the third one is specifically called "Playing sound directly". So, just do exactly what's in

Female voice in Speak.js

梦想与她 提交于 2019-12-22 18:01:14
问题 We are using speak.js library for Text to speech purpose. And we need to implement female voice with localization in this. We are calling its speak function as meSpeak.speak('Hello Thomas"); but we could not able to make it's op in female voice. We have observed that we need to pass some arg as parameter but not able to pass this too. Can you please guide how can i get female voice op using speak.js lib ? Many thanks in Advance 回答1: Supposing you're talking about mespeak.js: Download the

How to access layout in TTS OnUtteranceCompleted callback?

本小妞迷上赌 提交于 2019-12-22 17:52:49
问题 I am making a simple Android program that runs mnemonics or math exercises for training purposes. I have a "new exercise" button that changes question and answer. I want to implement a "text to speech" mode, where the software reads the question and the answer. After they are spoken, it should calculate a new question and start again. I am using OnUtteranceCompleted to determine if the speech has ended. My problem is that I can’t access my "new exercise" button from the callback. I am using

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

NullPointerException while using TTS in CustomListview

左心房为你撑大大i 提交于 2019-12-22 08:39:31
问题 I have custom listview which contains content and TTS option,while using TTS its throwing null pointer exception,Listview is also not coming it showing my applicaton has stopped.Error is showing in Logcat. Applicationadapter.java public class ApplicationAdapter extends ArrayAdapter<Application> implements TextToSpeech.OnInitListener{ private List<Application> items; private LayoutInflater inflator; private MainActivity activity; private ProgressDialog dialog; public TextToSpeech tts; public

how to create a button that plays a mp3 google tts

自作多情 提交于 2019-12-22 08:22:25
问题 i'm new here but i hope you can help me. i'm trying to create a button that plays the text to speech mp3 that google generates. i'm creating a translator, so, what i want is to do something like google translate is (in some way). i've tried with javascript and actionscript but i couldn't make it work. i have this javascript function: function audio () { // here i get the word that i want to hear texto = document.getElementById('txt-result-palabra').innerHTML; // now i get the language idioma

Why I'm getting “Building MacinTalk voice for asset: (null)” in iOS device test

情到浓时终转凉″ 提交于 2019-12-22 06:58:45
问题 I'm executing below code for text-to-speech project on device, but getting error "Building MacinTalk voice for asset: (null)" Please any help on how I can fix or any tips what's going wrong. AVSpeechSynthesizer *synthesizer = [[AVSpeechSynthesizer alloc]init]; AVSpeechUtterance *utterance = [AVSpeechUtterance speechUtteranceWithString:@"Tips For Silicon Valley From A Startup Accelerator In Gaza"]; [utterance setRate:0.015f]; utterance.voice = [AVSpeechSynthesisVoice voiceWithLanguage:@"en-GB"

Slow down Twilio's TwiML “Say” command for text-to-speech numbers

六眼飞鱼酱① 提交于 2019-12-22 04:35:17
问题 I've created a Twilio application that involves using Twilio's TwimL <Say> command to read off a list of numbers that constitute an ID that the user has previously input (e.g., 3638194746219190 or something along those lines). Since it's a long list of numbers, I have the application read back the list of numbers to confirm that the user has input them correctly. Since it's dynamic, I can't pre-record it--it has to be with <Say> , but Twilio reads it back way too quickly. I currently have the

SSML using Chrome TTS

百般思念 提交于 2019-12-22 03:23:07
问题 I'm trying to give a little more clarity to TTS sentences by indicating emphasis, etc. I'm using the Chrome TTS API, which indicates that it accepts SSML-formatted documents in addition to raw text. After many attempts, and a reading a few comments on the web, it doesn't look like this is actually supported, or possibly that this is up to individual voices for implementation. Does anyone know: Has SSML been abandoned under Chrome? If not, is there any indication whether they expect to support

ImportError: No Module named 'driver' in pyttsx

北慕城南 提交于 2019-12-22 03:22:45
问题 I am trying to run a voice program in Python 3.5.2 and with pyttsx library. But I've faced up with lots of problems. First one is about engine. When I run the command import pyttsx , compiler gave me the error like below: ImportError: No module named 'engine' Then I've found this answer. But it didn't work either. Eventually, I now have another - similar - error like below: D:\Users\orcuny\Desktop\AVA>python ava.py Traceback (most recent call last): File "D:\Users\orcuny\AppData\Local