text-to-speech

How to change the voice in pyttsx3?

∥☆過路亽.° 提交于 2019-12-21 02:53:31
问题 This code is working but I'm only able to switch between the voices which came preInstalled in Microsoft Windows. These voices are "Microsoft David Mobile" and "Microsoft Zira Mobile". Later I installed "Microsoft Kalpana Mobile" and set it as the default Windows voice. But still I'm not able to switch to "Microsoft Kalpana Mobile". The code is- import pyttsx3 engine = pyttsx3.init() voices = engine.getProperty('voices') engine.setProperty('voice', voices[0].id) #changing index changes voices

Automatically download android TTS engine

别说谁变了你拦得住时间么 提交于 2019-12-21 02:36:32
问题 I have developed an app based on TTS for Android 2.3. I am noticing that in recent version of Android (4.2.2) for example, no default TTS language where installed by default, you have to manually download them by going into: Settings --> Language and input --> Text to speech output --> Google Text-To-speech --> Install voice data Is there a way to install a language automatically? 回答1: Is there a way to install a language automatically? Yes, but that will not happen automatically (without

Running Android TTS in a Service

拈花ヽ惹草 提交于 2019-12-20 14:21:57
问题 I'm trying to get Android's TTS to run inside a service, but I have no idea why it isn't working, it compiles, doesn't crash, but it just doesn't work. The Toast notification do work though. package alarm.test; import android.app.Service; import com.google.tts.TextToSpeechBeta; import android.content.Intent; import android.os.IBinder; import android.widget.Toast; public class MyAlarmService extends Service { private TextToSpeechBeta myTts; private TextToSpeechBeta.OnInitListener

android:how to use text to speech on non activity class

眉间皱痕 提交于 2019-12-20 05:24:09
问题 i want to use text to speech in my application, i find many example for using text to speech like this Android Text-To-Speech Application . i want to use text to speech from non activity class , for example i have class that genrate layout and return this layout to my main activity , ihave button on this layout and i want to when clicked on this button call text to speech. how can i use text to speech on non activity class ? 回答1: You can use a facade to achieve this. Define an interface for

IBM Watson TextToSpeech - cannot read property .pipe of undefined

那年仲夏 提交于 2019-12-20 04:34:58
问题 I have the following code, straight from the documentation: var TextToSpeechV1 = require('watson-developer-cloud/text-to- speech/v1'); var fs = require('fs'); var textToSpeech = new TextToSpeechV1({ iam_apikey: '---myapikey---', url: 'https://stream.watsonplatform.net/text-to-speech/api/' }); var synthesizeParams = { text: 'Hello world, you dummy ass', accept: 'audio/wav', voice: 'en-US_AllisonVoice' }; // Pipe the synthesized text to a file. textToSpeech.synthesize(synthesizeParams).on(

Android Java Text to Speech Viewing Extra String Information

◇◆丶佛笑我妖孽 提交于 2019-12-20 04:14:05
问题 I've been running through many of the text to speech examples available for Android and I have an issue that I assume is really simple, but I cannot for the life of me work it out! I simply want to be able to view the output of EXTRA_AVAILABLE_VOICES (for example) which according to this link is returned in an ArrayList. There are many examples of how to deal with such output programmatically, but for the benefit of my learning and understanding, I want to see the actual returned data for

text to speech conversion

放肆的年华 提交于 2019-12-20 03:48:07
问题 We are making iPhone app where client want reminder as voice message. Requirement is user will set time and text they want for for reminder. Using text, I will convert to speech and play the audio file when reminder is triggered. For this, I planned to use google service http://www.translate.google.com/translate_tts?tl=ar&q=%D9%85%D8%B1%D8%AD%D8%A8%D8%A7%20%D8%B5%D8%AF%D9%8A%D9%82%D8%8C%20%D9%83%D9%8A%D9%81%20%D8%AD%D8%A7%D9%84%D9%83%D8%9F http://www.translate.google.com/translate_tts?tl=en&q

Text to speech returns a different non-existant Locale after setting an existing one

北城余情 提交于 2019-12-20 02:58:27
问题 original question I have a standard texttospeech, android.speech.tts.TextToSpeech I initialize it and set a language by using tts.setLanguage(Locale.getDefault()) That default Locale is de_DE (for germany, correct). Right after setting it, i ask the tts to give me its language tts.getLanguage() now it tells me that its set to "deu_DEU" There is no Locale with that setting. So i cant even check if its set to the right language because i cant find the Locale object that has the matching values.

Text to Speech in ASP.NET - Access is denied… what to do?

 ̄綄美尐妖づ 提交于 2019-12-20 02:39:07
问题 On my personal website, i would like to make it "pronounce" something I solved the "concept" problem, as in here, and on my desktop it works smoothly when launched from visual web developer. Creates a file, and then an embedded player in the page will play it. Perfect. So, I uploaded it on the server... I get this error 500: Server Error in '/sapi' Application. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) Description: An unhandled exception occurred during the

getSpeechRate()? (or how to tell what rate TTS is currently set at)

拥有回忆 提交于 2019-12-19 19:43:54
问题 TextToSpeech has a way to set the speech rate: setSpeechRate(). But it doesn't have an opposite method of querying the current speed. Is there a way to query the system for that value? 回答1: You may get default TTS speech rate Settings.Secure.getInt(getContentResolver(), Settings.Secure.TTS_DEFAULT_RATE, 100) / 100f; 回答2: I was looking for similar thing and it seems like there really isn't such a method. But since 1.0 is the normal speech rate, I solved it by keeping the rate in my own