recording speech from RecognizerIntent

by Bossco » Thu, 21 Jan 2010 02:31:05 GMT


Sponsored Links
 Is there any way to record the user's speech using RecognizerIntent?
or
is there any way to have access to the audio used by RecognizerIntent?

I'm trying to do the same as synthesized speech:

String destFileName = "/sdcard/myAppCache/thespeech.wav";
myTexttoSpeech.synthesizeToFile(strText, myHashRender, destFileName);

but using RecognizerIntent, something like this maybe

protected void onActivityResult(int requestCode, int resultCode,
Intent data) {
....
  data.getAudioStream(RecognizerIntent.DEFAULT_STREAM,destFileName);
....
}

any ideas? suggestions?

Thanks,

Juan.



Other Threads

1. SQLite without Context?

I must access a SQLite Database from within a Service, but
SQLiteOpenHelper requires an Activity Context object which won't be
there when the Activity which spawned the Service is closed!

Is there any way to open an Activity Context-Agnostic SQLite
connection?

--~--~---------~--~----~------------~-------~--~----~

2. android widgets on WVGA

Hello Everyone,

I am trying to run widgets on wvga resolution emulator.
But with such a wide screen I thought I  could populate more number of
widgets but looks like the same number of widgets would fill as in hvga
screen.
I have set the *ro*.sf.lcd_density=220;
I could layout 3 clocks widgets;
When I set  *ro*.sf.lcd_density=160
even then I could just layout 3 clock widgets;
All the widgets look fine.
I want to know is it possible to configure the screen resolution to load
more number of widgets onto the screen by changing*.

*Is it possible that by keeping dpi=160 and wvga I can populate more widget
?

I am doing this exercise not from an app developer point of view but from
platform point of view.

-- 
with regards vishal

--~--~---------~--~----~------------~-------~--~----~

3. ADC2

4. How can I download a file from the internet?

5. Best/safest place to do cleanups(e.g. connection release) at Application level

6. Streaming Example?

7. Change color to another color in Drawable