text-to-speech

Android activity accessing service's static reference before the service is ready

旧城冷巷雨未停 提交于 2019-12-23 22:08:45
问题 I am trying to fire a Text to speech service from an activity and the activity based on certain events would cause the appropriate string to be sent to the service which speaks out. Here is my TTSService: public class TTSService extends Service implements TextToSpeech.OnInitListener{ private String str; private TextToSpeech mTts; private static final String TAG="TTSService"; public static TTSService sInstance; @Override public IBinder onBind(Intent arg0) { return null; } @Override public void

SpeechSynthesisUtterance not working in mobile broswer

时光毁灭记忆、已成空白 提交于 2019-12-23 15:12:24
问题 I am using SpeechSynthesisUtterance in my mobile website. This code is okay when I use it in my desktop version website. But I found that the function is not working in mobile browser in document.ready as below: $(document).ready(function(){ var text_tts="say something"; speakText(text_tts); }); function speakText(text_tts){ var u = new SpeechSynthesisUtterance(); u.text = text_tts; u.lang = 'en-US'; u.rate = 1; u.onend = function(event) { console.log('Finished in ' + event.elapsedTime + '

Use text to speech on a voice call

北城以北 提交于 2019-12-23 12:52:50
问题 Is it possible to use the text-to-speech engine to send a message through a voice call? Like an answering machine. It's also possible to monitor an outgoing voice call to read out loud a text when the other point answers the phone? Thanks! 回答1: During a call, speech generated by TextToSpeech engine won't be audible to the other end of the call. 回答2: No. In typical android phone designs, the in-call audio bypasses the processor on which linux/android are running, so you can't directly inject

How to do text to speech with python on a Toshiba laptop and Windows 7?

你说的曾经没有我的故事 提交于 2019-12-23 10:55:56
问题 I am trying to find a way to create text to speech in python (I am on windows 7). I am using pyinstaller to compile this program. I have tried a large number of approaches, including using Google's unofficial text to speech program accessed through the urllib2 module. This ends up creating an mp3 file. For details on the code, much of this code is from http://glowingpython.blogspot.com/2012/11/text-to-speech-with-correct-intonation.html. I have then needed to play the mp3 file that this

Text to speech difference in Firefox and Chrome

有些话、适合烂在心里 提交于 2019-12-23 04:56:21
问题 This is code for a little website with images and TTS. When you click on the number 1, 2 and 3 you should hear a dutch voice and also when you click on the 3 images with a '?'. In Firefox, everything is ok. I hear 6 different numbers but not in Chrome. In Chrome I hear 1, 2, and 3 but the 4, 5 and 6 under the images don't work. As you can see in the code, the only difference is the image added. I keep the scripts at the bottom so the images can load first. I am searching for hours (days) but

Google tts api giving me blank mp3

我怕爱的太早我们不能终老 提交于 2019-12-23 03:42:30
问题 I'm trying to use google text-to-speech but the service not giving me. I'm using this url to get mp3 : http://translate.google.com/translate_tts?ie=utf-8&tl=en&q={$text} Service return the error : our client does not have permission to get URL. How can I fix this ? 回答1: Using cURL will avoid some checks: <?php header("Content-Type: audio/mpeg"); $text = urlencode('my text'); $url = "http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=".$text; $ch = curl_init(); curl_setopt($ch, CURLOPT

Google tts api giving me blank mp3

别等时光非礼了梦想. 提交于 2019-12-23 03:42:07
问题 I'm trying to use google text-to-speech but the service not giving me. I'm using this url to get mp3 : http://translate.google.com/translate_tts?ie=utf-8&tl=en&q={$text} Service return the error : our client does not have permission to get URL. How can I fix this ? 回答1: Using cURL will avoid some checks: <?php header("Content-Type: audio/mpeg"); $text = urlencode('my text'); $url = "http://translate.google.com/translate_tts?ie=utf-8&tl=en&q=".$text; $ch = curl_init(); curl_setopt($ch, CURLOPT

Windows 10 - System.Speech.Synthesis cannot get Mobile version of voice

偶尔善良 提交于 2019-12-23 02:33:00
问题 In my Windows 10's Language, I have installed 2 version of English Language: US United Kingdom Therefore, in [Settings] > [Time & language] > [Speech] Under the section [Text-to-Speech], I can see the following options: Microsoft David Mobile Microsoft George Mobile Microsoft Susan Mobile Microsoft Hazel Mobile Microsoft Zira Mobile Microsoft Mark Mobile but, in C# WinForm, by using the following code: using System.Speech.Synthesis; SpeechSynthesizer ss = new SpeechSynthesizer(); ss

Stop pocketsphinx recognizer for voice feedback

倖福魔咒の 提交于 2019-12-23 01:41:30
问题 Still with the same project, this is a continuation from Run pocketSphinx and Google TTS together. I already do the revision according to the guide from Nikolay Shymyrev and do a lot of helping. But the final feature that I want implement still remains. The Google TTS run just fine now, but the recognizer have some problem. the recognizer won't start if the Google TTS some words that quite long like Speaker.speak("Drive mode now will be enabled. I will read your new messages for you now.");

Pronounce abbreviations or initialisms as individual characters in androids Talkback accessibility

限于喜欢 提交于 2019-12-23 01:04:37
问题 I am working on an voice accessibility feature using talkback but when the voice over reads of the text from the text view, it reads the abbreviation/initialism as a word instead of individual characters. For example FBI should be F B I and not read out as a word. 回答1: Do not try to force a screen reader to read words or abbreviations a certain way. That can mess up the user experience for braille users. Screen readers have settings to control the verbosity and what to do with words that are