text-to-speech

How to Text-to-Speech plays on Bluetooth in Android?

杀马特。学长 韩版系。学妹 提交于 2021-02-19 05:24:22
问题 I'm a newbie for android. I've created an app that can read Incoming messages using Android Text-To-Speech. Up to now its fine with it. Now user's want It has to play over paired Bluetooth. I'd read all the forums but i didn't get it. Now how i play my TTS engine on Bluetooth ? Anyone having any idea ? Thanks in advance. 回答1: Use my answer at Using the Android RecognizerIntent with a bluetooth headset And create a speak method like below protected void speak(String text) { HashMap<String,

How to install specific TTS engine programmatically in Android?

青春壹個敷衍的年華 提交于 2021-02-19 01:30:25
问题 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 similar problems earlier I've found something using this method: https://stackoverflow.com/questions/12549086/selecting-required-tts-programmatically-in-android. It looks quite ok, but it is used after system checking if TTS engine is installed, and

How to install specific TTS engine programmatically in Android?

可紊 提交于 2021-02-19 01:30:13
问题 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 similar problems earlier I've found something using this method: https://stackoverflow.com/questions/12549086/selecting-required-tts-programmatically-in-android. It looks quite ok, but it is used after system checking if TTS engine is installed, and

How to install specific TTS engine programmatically in Android?

你说的曾经没有我的故事 提交于 2021-02-19 01:30:12
问题 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 similar problems earlier I've found something using this method: https://stackoverflow.com/questions/12549086/selecting-required-tts-programmatically-in-android. It looks quite ok, but it is used after system checking if TTS engine is installed, and

Speech recognition intent starts before TTS ends speaking

99封情书 提交于 2021-02-10 05:28:48
问题 I've developed an Android App which give commands using tts (Text to Speech) and then listen to the vocal answer of the user using Speech Recognition Intent. Obviously, only when tts finishes to speak, then the intent of speech recognition is thrown. Sometimes, mostly when I swich from an activity to another, or when I activate this process through a button, THE SPEECH RECOGNIZER INTENT STARTS BEFORE TTS FINISHES TO TALK! The problem is that the same text of the command is then acquired and

Change default language for Speech recognition in my app

北城以北 提交于 2021-02-08 07:22:32
问题 I make an app in English. My app uses Speech recognition. But if I install this app on device with another system language, French or Russian for example. My speech recognition doesn't work. It works only for language which by default in system. How can I make English language for Speech recognition by default for my app? I found this method but it doesn't work Locale myLocale; myLocale = new Locale("English (US)", "en_US"); Locale.setDefault(myLocale); android.content.res.Configuration

pyttsx pyttsx.init() not working

一世执手 提交于 2021-02-07 18:00:55
问题 So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux ). I am using Python 2.7 (I tried with python 3.5 gave me the same error). I imported it and it worked but when I put (as this tutorial "told me" to https://pythonspot.com/en/speech-engines-with-python-tutorial/) engine = pyttsx.init() . The code looks like this: import pyttsx

pyttsx pyttsx.init() not working

我的梦境 提交于 2021-02-07 17:58:31
问题 So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux ). I am using Python 2.7 (I tried with python 3.5 gave me the same error). I imported it and it worked but when I put (as this tutorial "told me" to https://pythonspot.com/en/speech-engines-with-python-tutorial/) engine = pyttsx.init() . The code looks like this: import pyttsx

pyttsx pyttsx.init() not working

ぃ、小莉子 提交于 2021-02-07 17:57:36
问题 So I am making a Chatbot/Virtual assistant with Python, I was searching for a text-to-speech engine for Python and found pyttsx. I downloaded it with pip (like this: sudo pip install pyttsx ) (btw I am using Linux ). I am using Python 2.7 (I tried with python 3.5 gave me the same error). I imported it and it worked but when I put (as this tutorial "told me" to https://pythonspot.com/en/speech-engines-with-python-tutorial/) engine = pyttsx.init() . The code looks like this: import pyttsx

How to create text-to-speech with neural network

走远了吗. 提交于 2021-02-07 10:59:33
问题 I am creating a Text to Speech system for a phonetic language called "Kannada" and I plan to train it with a Neural Network. The input is a word/phrase while the output is the corresponding audio. While implementing the Network, I was thinking the input should be the segmented characters of the word/phrase as the output pronunciation only depends on the characters that make up the word, unlike English where we have slient words and Part of Speech to consider. However, I do not know how I