Discussion:
Google voice recognition on Emulator
Yash Patel
2009-05-01 18:17:32 UTC
Permalink
HI,

does any one know How to turn on Voice Recognition on Emulator. or is it
required to have phone or dev phone to test voice recognition application?


I would appreciate if you can reply.

thanks
Yash Patel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers-***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---
Dave Sparks
2009-05-01 20:54:04 UTC
Permalink
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
HI,
does any one know How to  turn on Voice Recognition on Emulator. or is it
required to have phone or dev phone to test voice recognition application?
I would appreciate if you can reply.
thanks
Yash Patel
Yash Patel
2009-05-02 00:18:00 UTC
Permalink
I mean to say Speech Recognization. I tried to create one small application
but it gives me error.

Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
Post by Yash Patel
HI,
does any one know How to turn on Voice Recognition on Emulator. or is it
required to have phone or dev phone to test voice recognition
application?
Post by Yash Patel
I would appreciate if you can reply.
thanks
Yash Patel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers-***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---
Dave Sparks
2009-05-02 01:23:49 UTC
Permalink
What is the error?
 I mean to say Speech Recognization. I tried to create one small application
but it gives me error.
Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
HI,
does any one know How to  turn on Voice Recognition on Emulator. or is it
required to have phone or dev phone to test voice recognition
application?
I would appreciate if you can reply.
thanks
Yash Patel
Yash Patel
2009-05-04 13:12:55 UTC
Permalink
Hi Dave

Here is the error i am getting.

android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) }


and here is the code sample that i am using for Sppech recognize in
emulator.

OnClickListener mTabButton = new OnClickListener() {
public void onClick(View v) {

try
{
ArrayList<String> potentialResults = new
ArrayList<String>();
potentialResults.add("yellow");
potentialResults.add("green");
potentialResults.add("blue");
potentialResults.add("red");

// Create Intent
Intent intent = new
Intent("android.speech.action.RECOGNIZE_SPEECH");

// Settings
intent.putExtra("android.speech.extra.LANGUAGE_MODEL",
"free_form");
intent.putExtra("android.speech.extra.PROMPT", "Speak
now");
intent.putExtra("android.speech.extra.RESULTS",
potentialResults);

// Start the Recognition Activity
startActivityForResult(intent, RESULT_SPEECH);
}
catch(Exception ex) {
ex.printStackTrace();
}

}
Post by Dave Sparks
What is the error?
Post by Yash Patel
I mean to say Speech Recognization. I tried to create one small
application
Post by Yash Patel
but it gives me error.
Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
Post by Yash Patel
HI,
does any one know How to turn on Voice Recognition on Emulator. or
is it
Post by Yash Patel
Post by Dave Sparks
Post by Yash Patel
required to have phone or dev phone to test voice recognition
application?
Post by Yash Patel
I would appreciate if you can reply.
thanks
Yash Patel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers-***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---
Dave Sparks
2009-05-04 18:46:55 UTC
Permalink
This intent is handled by the Google Voice Search application. Do you
have it installed?
Post by Yash Patel
Hi Dave
Here is the error i am getting.
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) }
and here is the code sample that i am using for Sppech recognize in
emulator.
OnClickListener mTabButton = new OnClickListener() {
        public void onClick(View v) {
            try
            {
                 ArrayList<String> potentialResults = new
ArrayList<String>();
                 potentialResults.add("yellow");
                 potentialResults.add("green");
                 potentialResults.add("blue");
                 potentialResults.add("red");
                 // Create Intent
                 Intent intent = new
Intent("android.speech.action.RECOGNIZE_SPEECH");
                 // Settings
                 intent.putExtra("android.speech.extra.LANGUAGE_MODEL",
"free_form");
                 intent.putExtra("android.speech.extra.PROMPT", "Speak
now");
                 intent.putExtra("android.speech.extra.RESULTS",
potentialResults);
                 // Start the Recognition Activity
                 startActivityForResult(intent, RESULT_SPEECH);
            }
            catch(Exception ex) {
                ex.printStackTrace();
            }
        }
Post by Dave Sparks
What is the error?
 I mean to say Speech Recognization. I tried to create one small
application
but it gives me error.
Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
HI,
does any one know How to  turn on Voice Recognition on Emulator. or
is it
Post by Dave Sparks
required to have phone or dev phone to test voice recognition
application?
I would appreciate if you can reply.
thanks
Yash Patel
qvark
2009-05-04 21:12:04 UTC
Permalink
Hi Dave, I don't understand this very well... does it mean that speech
recognition is not part of the platform but provided by a Google app?

Can we expect it to be present in every device with Android 1.5? Is
the Google Voice Search application always needed even if we are not
using speech recognition to perform web searches?

Thanks,

Jose Luis.
Post by Dave Sparks
This intent is handled by the Google Voice Search application. Do you
have it installed?
Post by Yash Patel
Hi Dave
Here is the error i am getting.
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) }
and here is the code sample that i am using for Sppech recognize in
emulator.
OnClickListener mTabButton = new OnClickListener() {
        public void onClick(View v) {
            try
            {
                 ArrayList<String> potentialResults = new
ArrayList<String>();
                 potentialResults.add("yellow");
                 potentialResults.add("green");
                 potentialResults.add("blue");
                 potentialResults.add("red");
                 // Create Intent
                 Intent intent = new
Intent("android.speech.action.RECOGNIZE_SPEECH");
                 // Settings
                 intent.putExtra("android.speech.extra.LANGUAGE_MODEL",
"free_form");
                 intent.putExtra("android.speech.extra.PROMPT", "Speak
now");
                 intent.putExtra("android.speech.extra.RESULTS",
potentialResults);
                 // Start the Recognition Activity
                 startActivityForResult(intent, RESULT_SPEECH);
            }
            catch(Exception ex) {
                ex.printStackTrace();
            }
        }
Post by Dave Sparks
What is the error?
 I mean to say Speech Recognization. I tried to create one small
application
but it gives me error.
Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
HI,
does any one know How to  turn on Voice Recognition on Emulator. or
is it
Post by Dave Sparks
required to have phone or dev phone to test voice recognition
application?
I would appreciate if you can reply.
thanks
Yash Patel
Dave Sparks
2009-05-05 00:14:01 UTC
Permalink
Google Voice Search is a Google application, not part of the Android
platform. It will only be present on devices that have a Google
license agreement.

However, because it uses the intent system, it is possible for someone
else to provide competing solution.
Post by qvark
Hi Dave, I don't understand this very well... does it mean that speech
recognition is not part of the platform but provided by a Google app?
Can we expect it to be present in every device with Android 1.5? Is
the Google Voice Search application always needed even if we are not
using speech recognition to perform web searches?
Thanks,
Jose Luis.
Post by Dave Sparks
This intent is handled by the Google Voice Search application. Do you
have it installed?
Post by Yash Patel
Hi Dave
Here is the error i am getting.
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) }
and here is the code sample that i am using for Sppech recognize in
emulator.
OnClickListener mTabButton = new OnClickListener() {
        public void onClick(View v) {
            try
            {
                 ArrayList<String> potentialResults = new
ArrayList<String>();
                 potentialResults.add("yellow");
                 potentialResults.add("green");
                 potentialResults.add("blue");
                 potentialResults.add("red");
                 // Create Intent
                 Intent intent = new
Intent("android.speech.action.RECOGNIZE_SPEECH");
                 // Settings
                 intent.putExtra("android.speech.extra.LANGUAGE_MODEL",
"free_form");
                 intent.putExtra("android.speech.extra.PROMPT", "Speak
now");
                 intent.putExtra("android.speech.extra.RESULTS",
potentialResults);
                 // Start the Recognition Activity
                 startActivityForResult(intent, RESULT_SPEECH);
            }
            catch(Exception ex) {
                ex.printStackTrace();
            }
        }
Post by Dave Sparks
What is the error?
 I mean to say Speech Recognization. I tried to create one small
application
but it gives me error.
Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
HI,
does any one know How to  turn on Voice Recognition on Emulator. or
is it
Post by Dave Sparks
required to have phone or dev phone to test voice recognition
application?
I would appreciate if you can reply.
thanks
Yash Patel
qvark
2009-05-05 10:42:21 UTC
Permalink
Hi Dave, so... this is what I have understood about speech recognition
in Android 1.5:

- The only thing included (and public) in the 1.5 platform is the
RecognizerIntent class, which is just a bunch of constants to
standardize the use of speech recognition applications.

- The actual speech recognition is performed by Google Voice Search
application which is not part of the platform (nor open source) and it
is not included in the emulator images (even the one with the Google
APIs).

- Anyone is free to implement his own recognition applications but not
using the classes present in android.speech.srec because that package
is private.

If I'm right, then the "Speech recognition framework" included in 1.5
is not what I was expecting... any plans to extend it in the future?

Thanks again for your support,

Jose Luis.
Post by Dave Sparks
Google Voice Search is a Google application, not part of the Android
platform. It will only be present on devices that have a Google
license agreement.
However, because it uses the intent system, it is possible for someone
else to provide competing solution.
Post by qvark
Hi Dave, I don't understand this very well... does it mean that speech
recognition is not part of the platform but provided by a Google app?
Can we expect it to be present in every device with Android 1.5? Is
the Google Voice Search application always needed even if we are not
using speech recognition to perform web searches?
Thanks,
Jose Luis.
Post by Dave Sparks
This intent is handled by the Google Voice Search application. Do you
have it installed?
Post by Yash Patel
Hi Dave
Here is the error i am getting.
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) }
and here is the code sample that i am using for Sppech recognize in
emulator.
OnClickListener mTabButton = new OnClickListener() {
        public void onClick(View v) {
            try
            {
                 ArrayList<String> potentialResults = new
ArrayList<String>();
                 potentialResults.add("yellow");
                 potentialResults.add("green");
                 potentialResults.add("blue");
                 potentialResults.add("red");
                 // Create Intent
                 Intent intent = new
Intent("android.speech.action.RECOGNIZE_SPEECH");
                 // Settings
                 intent.putExtra("android.speech.extra.LANGUAGE_MODEL",
"free_form");
                 intent.putExtra("android.speech.extra.PROMPT", "Speak
now");
                 intent.putExtra("android.speech.extra.RESULTS",
potentialResults);
                 // Start the Recognition Activity
                 startActivityForResult(intent, RESULT_SPEECH);
            }
            catch(Exception ex) {
                ex.printStackTrace();
            }
        }
Post by Dave Sparks
What is the error?
 I mean to say Speech Recognization. I tried to create one small
application
but it gives me error.
Thanks
Yash Patel
Post by Dave Sparks
Voice recognition is a technology. You need an application to make use
of it, for example the voice dialer.
HI,
does any one know How to  turn on Voice Recognition on Emulator. or
is it
Post by Dave Sparks
required to have phone or dev phone to test voice recognition
application?
I would appreciate if you can reply.
thanks
Yash Patel
Joshua
2009-05-09 00:49:20 UTC
Permalink
I would also like clarification. Is Google Voice going to be default
app on the phone? Why can't we run the sample code (API) within the
1.5 r1 SDK? Does our phone emulator need the google app and simply
not have it?
If so how do we add it?
Post by qvark
Hi Dave, so... this is what I have understood about speech recognition
- The only thing included (and public) in the 1.5 platform is the
RecognizerIntent class, which is just a bunch of constants to
standardize the use of speech recognition applications.
- The actual speech recognition is performed by GoogleVoiceSearch
application which is not part of the platform (nor open source) and it
is not included in the emulator images (even the one with the Google
APIs).
- Anyone is free to implement his own recognition applications but not
using the classes present in android.speech.srec because that package
is private.
If I'm right, then the "Speech recognition framework" included in 1.5
is not what I was expecting... any plans to extend it in the future?
Thanks again for your support,
Jose Luis.
GoogleVoiceSearch is a Google application, not part of the Android
platform. It will only be present on devices that have a Google
license agreement.
However, because it uses the intent system, it is possible for someone
else to provide competing solution.
Post by qvark
Hi Dave, I don't understand this very well... does it mean that speech
recognition is not part of the platform but provided by a Google app?
Can we expect it to be present in every device with Android 1.5? Is
the GoogleVoiceSearch application always needed even if we are not
using speech recognition to perform web searches?
Thanks,
Jose Luis.
This intent is handled by the GoogleVoiceSearch application. Do you
have it installed?
Post by Yash Patel
Hi Dave
Here is the error i am getting.
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.speech.action.RECOGNIZE_SPEECH (has extras) }
and here is the code sample that i am using for Sppech recognize in
emulator.
OnClickListener mTabButton = new OnClickListener() {
        public void onClick(View v) {
            try
            {
                 ArrayList<String> potentialResults = new
ArrayList<String>();
                 potentialResults.add("yellow");
                 potentialResults.add("green");
                 potentialResults.add("blue");
                 potentialResults.add("red");
                 // Create Intent
                 Intent intent = new
Intent("android.speech.action.RECOGNIZE_SPEECH");
                 // Settings
                 intent.putExtra("android.speech.extra.LANGUAGE_MODEL",
"free_form");
                 intent.putExtra("android.speech.extra.PROMPT", "Speak
now");
                 intent.putExtra("android.speech.extra.RESULTS",
potentialResults);
                 // Start the Recognition Activity
                 startActivityForResult(intent, RESULT_SPEECH);
            }
            catch(Exception ex) {
                ex.printStackTrace();
            }
        }
Post by Dave Sparks
What is the error?
 I mean to say Speech Recognization. I tried to create one small
application
but it gives me error.
Thanks
Yash Patel
Voicerecognition is a technology. You need an application to make use
of it, for example thevoicedialer.
HI,
does any one know How to  turn onVoiceRecognition on Emulator. or
is it
required to have phone or dev phone to testvoicerecognition
application?
I would appreciate if you can reply.
thanks
Yash Patel
venkat v
2012-05-03 13:46:39 UTC
Permalink
Hi,

Does anyone succeeded in speech recognition?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
dede pradana
2012-05-03 14:22:30 UTC
Permalink
i think, you can record your voice from the phone microphone.. then,
stream it to your own speech recognition service.. :)
try this, http://java.sun.com/products/java-media/speech/forDevelopers/jsapi-guide/Recognition.html
Post by venkat v
Hi,
Does anyone succeeded in speech recognition?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-***@googlegroups.com
To unsubscribe from this group, send email to
android-developers+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
Continue reading on narkive:
Loading...