text-to-speech

Speech recognition not works Android

我的未来我决定 提交于 2020-01-06 13:17:54
问题 I want display in a TextView what I say using the tts engine. I have a Button : btnparla.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); i.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say something"); try { startActivityForResult(i, VOICE_REC); //txt.setText(""); } catch (ActivityNotFoundException

Speech recognition not works Android

给你一囗甜甜゛ 提交于 2020-01-06 13:15:33
问题 I want display in a TextView what I say using the tts engine. I have a Button : btnparla.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View arg0) { Intent i = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); i.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, RecognizerIntent.LANGUAGE_MODEL_FREE_FORM); i.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say something"); try { startActivityForResult(i, VOICE_REC); //txt.setText(""); } catch (ActivityNotFoundException

SpeechSynthesis stops working after first utterance in FireFox, but works in Chrome

妖精的绣舞 提交于 2020-01-06 05:34:25
问题 The problem is very simple, see JSfiddle. SpeechSynthesis works fine in Chrome, but mysteriously stops after the first utterance in FireFox. (Works for me in Safari as well.) Any ideas welcome, as I don't have much to go by. The code: var u = new SpeechSynthesisUtterance(); var synth = window.speechSynthesis; u.text = "hello"; synth.speak(u); synth.speak(u); synth.speak(u); 回答1: This is actually a known bug in Firefox. The specs drafts are still not very clear about the re-usability of an

AVSpeechSynthesizer Text-To-Speech

ε祈祈猫儿з 提交于 2020-01-06 03:59:05
问题 AVSpeechsynthesizer with the en-us voice is pronunciation for "A" is "Capital A" but Just want "A" How can do that? 回答1: This only happens when there is single character in the string, you can use this workaround of checking if lenght of string is 1 than convert it to lowercase string, NSString *stringToUtter = @"A"; if (stringToUtter.length==1) { stringToUtter = [stringToUtter lowercaseString]; } AVSpeechUtterance *utterance = [[AVSpeechUtterance alloc] initWithString:stringToUtter];

Text to speech, show read words

岁酱吖の 提交于 2020-01-06 03:16:07
问题 I am working on an android application to read text, but I need to display the text while it is reading. I have already tried to add words to the TextToSpeech and display the word being read, as I show in the following code, but the fluency is not good when you order to read word by word compared to a complete sentence. String[] list = {"My", "name", "is", "John"}; TextToSpeech tts = new TextToSpeech(this, this); tts.setOnUtteranceProgressListener(new UtteranceProgressListener() { @Override

Android, speak failed: TTS engine connection not fully set up

匆匆过客 提交于 2020-01-05 08:23:27
问题 I'm trying to get my TextToSpeech working, but I got a "speak failed: TTS engine connection not fully set up", but got in green : Connected to ComponentInfo{...GoogleTTSService}. I didn't found a solution to fix it, and google don't give me interesting things. Here is my code to have an overview.(you can find the complete code here : See docs import android.speech.tts.TextToSpeech; import android.speech.tts.TextToSpeech.OnInitListener; public class MainActivity extends Activity implements

How to get System.Speech on windows azure websites?

北慕城南 提交于 2020-01-05 04:14:14
问题 I have incorporated text to speech in an asp.net webforms application which works fine when running locally. When I deploy to azure websites however it looks like a null reference is happening dealing with System.Speech. I have tried to publish the webforms app to azure with the "Copy Local" as true on System.Speech .dll however the issue still persists. Is there anything I am missing to get System.Speech to work on azure websites? I have researched and found posts from a while back saying it

javascript Text to Speech arabic

若如初见. 提交于 2020-01-04 23:24:09
问题 I'm trying to make SpeechSynthesisUtterance work for Arabic It's working fine for English $(document).ready(function() { var u1 = new SpeechSynthesisUtterance('Hello world!'); u1.lang = 'en-US'; u1.pitch = 20; u1.rate = 1; u1.voiceURI = 'native'; u1.volume = 1000; speechSynthesis.speak(u1); }) <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script> But when Arabic is used $(document).ready(function() { var u1 = new SpeechSynthesisUtterance('عربي'); u1.lang = 'ar

Android O new TextToSpeech onRangeStart() callback

痴心易碎 提交于 2020-01-04 09:03:32
问题 The new callback function onRangeStart() of TTS UtteranceProgressListener would let us e.g. highlight individual words of a longer phrase, as it's spoken by the TTS engine. The callback is defined in Android API reference at https://developer.android.com/reference/android/speech/tts/UtteranceProgressListener.html#onRangeStart(java.lang.String, int, int, int), but I cannot find anywhere the information on how to actually define the ranges in the phrase, when an app sends the phrase (e.g. a

Text to Speech in j2me

隐身守侯 提交于 2020-01-03 03:06:05
问题 Anyone know of a good text-to-speech solution for j2me? I know it's not officially supported by any devices or in any JSR, but wondering if there are any free libraries that can do it? What about some kind of integration between j2me and python to allow this to happen? I need to add this to a big j2me application, so re-writing the whole thing python is not an option. 回答1: From here: http://en.allexperts.com/q/Java-1046/2008/12/J2ME-text-speech.htm There is a standard Java API for speech