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. Content Providers and Network Requests

Hello,
As per the subject, i am making an app that is dependent on data that
comes from a network request.
I was using the UserTask class (Made by Mr. Romain Guy) to make the
network calls and get my data and everything worked.

But now, i want the data from this app to be available to other apps
as well and thus, the only way that data could be shared between
applications is by using a content provider (thats what i have read so
far).

My question was: Is it possible to use a thread or the UserTask class
inside a Content Provider and if yes, then since the request to the
server can take a long time, how do we change the query method of the
content provider to handle such a delay as it is suppose to return a
Cursor object.

In my initial approach, i was using a listener that took care of
updating the Application when the data was available but i am not
aware of a way to use a listener with a Content Provider.

Any help or ideas would be helpful.

Thanks

- Kavik
--~--~---------~--~----~------------~-------~--~----~

2. network monitoring information access

Hello,

I am trying to find the exact location of networking event related
information on an Android based device.

I accessed the emulator (./adb shell), and changed to the dev
directory (cd /dev).

I thought this would be the right place to start. However, it does not
appear to be the case, or I am using the wrong path in my application
where I use the code listed below to access files in /dev.

I would appreciate it if someone could help me identify the files
containing networking related information, and their full path.

Thanks.

Alex Donnini

         FileReader fstream = null;
         try
         {
                 fstream = new FileReader("/dev/log/main");
         }
         catch (FileNotFoundException e)
         {
                e.printStackTrace();
         }

         try
         {
                 BufferedReader in = new BufferedReader(fstream, 500);
                 String line = null;
                 while ((line = in.readLine()) != null)
                 {
                         netTrafficDev.add(line);
                 }
         }
         catch (Exception e)
         {
                e.printStackTrace();
         }

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

3. Providers Network Status In Persentage..Is It Possible??

4. Cannot connect to Wireless (wifi) unless Settings for Network set to Channel 1!

5. UK G1 Update available

6. WiFi within of emulator

7. Before publish: "Deactivate any calls to Log methods in the source code" - How ?