Batman
Batman

Reputation: 49

Voice recognition with android

Hey guys, I was wondering if it were possible to translate audio without having to call a recognizer intent (ie a dialog that says you are recording audio). I want to be able to recover the results of the voice recognition every 2 to 3 seconds or so and plan to use this with a bunch of listviews. Is this possible? If so any ideas? Thanks!

Edit: I forgot to mention that I am playing around with android.speech.SpeechRecognizer but so far, in my implementation of the RecognitionListener interface all I have been able to get from ddms is that there is a client side error. Nothing else seems to be called. Also, is it essential that I implement a RecognitionService? I know that the example in the API is just that. If so, how would I create and use this service? Thanks again.

Upvotes: 1

Views: 3900

Answers (3)

walta
walta

Reputation: 3466

I just posted some working code skeleton stuff in another thread -

Voice Recognition Commands Android

The speech recognizer can be triggered every few seconds without UI. You might need to write your own code to decide when is good to record and when is not (you get an audio buffer you could peek through) - or your could do something in your own UI.

I think you could re-trigger it over and over again. Not sure it'd work perfectly but worth a try.

Upvotes: 0

escape-llc
escape-llc

Reputation: 1331

Speech recognition does not work in the Emulator. You need a device.

Upvotes: 2

gregm
gregm

Reputation: 12169

It is impossible in Android < 2.1 and probably in 2.2

When I asked a Google support person, he said, "Maybe you can figure out what packets are being sent and then just make a direct web call"

Wow.

Upvotes: 0

Related Questions