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?
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) {

any ideas? suggestions?



Other Threads

1. How to Handle Multiple Adapters for one ListView

Currently I'm trying to find an efficient way to handle the following
scenario.  Please comment on my current implementations and all
feedback is greatly appreciated!

I have about 7 adapters with data.  This data comes from database and
some come from xml queries over the internet which are kept static in
memory.  In my current implementation I re-use one ListView constantly
to display this data as requested by the user.

Here are the questions:
1. Is this a proper approach? or should I have a ListView for every

2. Every time I re-use that ListView I just use setAdapter( adapter )
and it replaces any data with the new data.  Is this a proper way to
do it?  What about if one adapter requires a header view and than I
place a new adapter to it?

There are many cases I can mention here but my main concern is if I
need to massage the ListView every time I set a new adapter and if I'm
adding a header view for certain adapters?

Thanks and sorry for the semi explanatory post...

2. accessing local content from webview

i realise there's plenty of prior art around the network on this one, 
i'd like the official line if possible.

i'm wondering why i can't reference static local content in a page 
which is coming in off the network. the specific situation i have is 
that my application's HTML depends on fairly heavy javascript 
libraries and currently i have to drag them off the network each time 
a page loads.

ideally i would be able to reference these cached copies with <script 
src=file:///android_asset... /> but it seems that this is 
specifically not allowed.

initially i tried getting round this by writing a content provider, 
but then  i got the error "this file can not be opened as a file 
descriptor, it is probably compressed" on calling 
assetmanager.openfd(). er, what? i can get a stream to a file in a 
zip, why can't the asset manager?

is there a way around this? i'm still not really seeing why it's a 
security issue to load stuff out of your own apk.

(and, as always, the list hates any address i register with it, so 
please copy me directly on any replies.)

thanks muchly


3. Audio Recording not working in Android

4. Setting a scrollbar position.

5. Android TLS implementation

6. Need some help with Intent Filter to add my app to other menu's

7. get geolocation from a website