I'd like to create a custom component which supports voice recognition. It will primarily be an extended EditText which should show the microphone button for voice recognition if it is available. I wanted to to look at the search app-widget on the homescreen but I don't find it in the source.
This is intended to use the voice recognition as some sort of dictation device, i.e. the user does not have to type but use his voice instead.
So could anyone please point me in some direction?
Thanks in advance,
Steff
I think what u basically want to a button show/hide which can be controlled at the time of onCreate call. That should do ur work. Why would u need a component as such?
Related
I have a fragment that use the speech recognition of Android. It is work O.K. but I have a text on the fragment which the user need to read. But when I open the speech service the icon cover the text. Is there a way to make the icon of the service transparent or put it on the side?
I found this artical.file:///C:/JAVA/Eye_test_Project1/Android%20Speech%20Recognition%20Without%20Dialog%20In%20A%20Custom%20Activity%20-%20Truiton.html
It give exactly waht I want. The voice recognition made in offline and I get several callback which I can use for result and active a bar graph .
What I would like to achieve is quite simple to explain:
I want the user to pick an item by voice from a list and get the result in the app, exactly like the RemoteInput.setChoices (Which is unfortunately made for watch only).
Below is the code need to speak to the watch, but I would like to achieve this feature on a phone.
Any idea?
I think the method is also available in phone also., since it is not specified in the api guide and the method setChoises() belongs to the class android.support.v4.app.RemoteInput.Builder.
This is my first question here on stackoverflow, so sorry if i am doing something wrong.
I have an app on android wear, where the user shall select an item from a list.
I want to enable the user to select the item via voice commands. I managed to do it as suggested in the google documentation, but i have to implement a button to start speech recognition, and it will show up as a fullscreen activity.
I want the user to be able to see the list while speech recognition is active. Is there any solution for this?
EDIT: I might have found the solution i was looking for. It is the speech recognizer, which seems to be able to do just what i want. I will have to dig into that and will update this post if it is the solution.
I want to create a custom voice recognizer and design it the way i want.
This is my current one:
http://i.imgur.com/FhHEOZR.png?1
I want to create a custom one as in this app:
http://i.imgur.com/Alc3ggJ.png?1
I saw few apps with this custom voice recognizer such as indigo, dragon,aivc etc.
I tried google developer solution for SpeechRecognizer but it didn't work for me.
Any help please?
From this question: How can I use speech recognition without the annoying dialog in android phones
Use the SpeechRecognizer interface. Your app needs to have the
RECORD_AUDIO permission, and you can then create a SpeechRecognizer,
give it a RecognitionListener and then call its startListening method.
You will get callbacks to the listener when the speech recognizer is
ready to begin listening for speech and as it receives speech and
converts it to text.
And then use whatever layout you want, and even animate it.
Visit:
Android( RecognitionListener) live speech to text preview
also you can visit:
https://developer.android.com/reference/android/speech/RecognitionListener
maybe it can be useful to you
By the way, you said in your comment that you don't fully understand.Recognition listener is a listener that runs in the background. In this way, there will be no unnecessary dialogs. I'm trying to automatically add subtitles to the video that opens, so I'm trying to do something like you want to do, but I haven't been able to do it yet.
I'm wondering, if there is any predefined sounds in Android that I can use in my application.
I was trying to use a class called SoundManager which is build specifically for sound playing in an efficient way.
I realized that what I need is much much smaller than this class. I need a click sound when the button is clicked and a navigation sound when the user navigate through a menu or a set of buttons.
I guess there is something in the android API fit to my purpose but I could not find it.
any help please in finding it and hoe to use it?
You could look into the View.playSoundEffect api. This method accepts a SoundEffectConstants value where, among others, a CLICK constant is available.
Using the MediaPlayer it's really simple, see for instance this SO thread:
Android - play sound on button click - Null pointer exception