views:

134

answers:

2

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.

A: 

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.

gregm
Wow -_-. But yes, I have been playing around with 2.2 sdk but I just can't seem to get anything to work (other than a client side error message in my Recognition interfaced class). I assumed that the SpeechRecognition class was different than the Recognition intent class in that you wouldn't have to use an intent to use the recognition service.
Batman
Actually, figured it out. Very simple with 2.2 actually. SpeechRecognizer is accessing the Recognition service for you, so there is no need to bind to a service or anything.
Batman
A: 

Hello, I'm using android emulator (SDK 2.2) with Eclipse and I tried to do work the sample VoiceRecognition.java but it returns to me this message "Recognizer not present". What's the matter? I read on different forums "a problem with the initial system image", should I upgrade system image or there is nothing to do with this?

I have another problem, I would like to use an wav or mp3 like input of my speech recognizer (instead of audio record with microphone), you say it's not possible in 2.1, it's possible in 2.2? how to do this?

Thank you.

bibinours