Questions tagged [android-speech-api]

The API for Android platform that provides support for both speech recognition and speech synthesis.

The API for Android platform that provides support for both speech recognition and speech synthesis.

62 questions
2
votes
0 answers

Adjust Background noice sensitivity in Android Speech-to-text recognition

Android Speech-to-text is very sensitive to background noises. The use-case is to use Speech-to-text in an area where light background noises will be constant. Want to control the speech recognition only with certain voice levels. Tried working…
2
votes
0 answers

Android M Speech volume

Currently I'm learning how to use the Android Speech library. I tested it with various stream types. This is my code: Bundle params = new Bundle(); params.putInt(TextToSpeech.Engine.KEY_PARAM_STREAM, AudioManager.STREAM_ALARM); …
user2810895
  • 1,284
  • 3
  • 19
  • 33
2
votes
2 answers

How to wait for result of speech recognition in android?

I am using recognition listener for speech recognition in android. The basic construct of my class is as follows: class SpeechInput implements RecognitionListener { Intent intent; SpeechRecognizer sr; boolean stop; public void…
Bhoot
  • 2,614
  • 1
  • 19
  • 36
2
votes
1 answer

Which event is triggered when speech-to-text is activated on android soft-keyboard?

I want to trigger an additional event in an android app when the default speech recognition button is touched on the android soft-keyboard. Is there any method catching this event, or what is the code for the speech recognition button to modify the…
user2212461
  • 3,105
  • 8
  • 49
  • 87
2
votes
3 answers

Speech Recognizer on Google Wear in Emulator no voice input

I was trying to use the Free-form Speech Input from Google Wear site. From the hello world example, I just added a click on textView. It does bring up the Speak Now activity from the speech intent, but the emulator was not able to detect any sound…
monmonja
  • 2,203
  • 5
  • 22
  • 33
2
votes
2 answers

Lagging issue with Android Speech Recognition

Have anyone experienced this problem recently? There is a long lag between 'when i stop speaking' and 'when android speech recognition stops listening'. The "silence period" was a lot shorter previously, and now it's really long. Previously it…
Duy Huynh
  • 21
  • 3
2
votes
0 answers

Best voice recognition algorithm for android

I am planning to build a voice recognition app in android where the app does few things when the user says a particular word. I came across a tutorial of Levenshtein Distance algorithm in android for speech recognition. It works fine but when…
ik024
  • 3,566
  • 7
  • 38
  • 61
1
vote
0 answers

Is there a way to tell when SpeechRecognizer.cancel() processing has completed successfully?

Once SpeechRecognizer.cancel() is invoked, is there a way to tell that it has been completely processed, to the point of not interpreting any sound an microphone and not invoking any of its ReognitionListener callbacks? More specifically, when…
WebViewer
  • 761
  • 7
  • 21
1
vote
1 answer

NetworkSpeechRecognize vs SodaSpeechRecognizer

In my attempts to troubleshoot a challenging SpeechRecognizer.java issue, I noticed in Logcat messages TAGs that are not SpeechRecognizer's: 12:34:00.933 NetworkSpeechRecognizer pid-29210 I Online recognizer - start listening 12:34:00.936…
WebViewer
  • 761
  • 7
  • 21
1
vote
1 answer

Is there a way to send audio bytes to SpeechRecognizer

So I'm trying to make an app accessible for deaf/HoH people and so far I'm able to get the audio bytes that is being currently played in the app (I think). The thing is, can I use this SpeechRecognizer to send the audio bytes and get the text…
Barrufet
  • 495
  • 1
  • 11
  • 33
1
vote
0 answers

How does Web SpeechRecognizer compare to Android/iOS SpeechRecognizer?

If it would be to choose between Web SpeechRecognizer and Android/iOS SpeechRecognizer(mainly Android or mobile as a whole), what would be the advantages and disadvantages of both? Criterias: offline/online recognition, languages support, processing…
1
vote
0 answers

Android Speech to text for number and email ID

I am using Android Speech to text for speech recognition. final Intent sttIntent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH); sttIntent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL, …
1
vote
1 answer

TextToSpeech cannot be stopped correctly

I have a text that is refreshed, and every time this happens. I call a static method method speak() located in another class with this structure: public class Voc { static TextToSpeech mytts; public static void speak(String myText){ …
AndreaF
  • 11,975
  • 27
  • 102
  • 168
1
vote
0 answers

Android speech recognizer vs OK GOOGLE

In my application I'm using SpeechRecognizer, in order to detect what the user said. My device's language is set to English and it works perfect when I say something in English, but when I say something in other languages, for example - Hebrew, it…
Elior
  • 3,178
  • 6
  • 37
  • 67
1
vote
0 answers

Android Auto initiate SMS via voice

Is it possible to create/send SMS using voice commands in Android Auto? I'm not seeing anything about it in the docs at https://developer.android.com/training/auto/messaging/index.html I have an HTC 10 and when the stock HTC "Messages" app is set as…
twofifty6
  • 652
  • 2
  • 7
  • 10