Of course this is not in the SDK because it is not supported, so of no use
to the topic of this list. :)

On Tue, Feb 10, 2009 at 2:27 PM, devileper <[email protected]> wrote:

>
> You simply need to checkout the source tree.  Please follow the
> instructions at http://source.android.com to checkout framework/base.
> The android.speech.srec.RecognizerIntent can then be found under the
> core module.  If you can't check the source out yourself I have added
> the intent documentation below.
>
>    /**
>     * Starts an activity that will prompt the user for speech and
> sends it through a
>     * speech recognizer.
>     *
>     * <p>Required extras:
>     * <ul>
>     *   <li>{...@link #EXTRA_LANGUAGE_MODEL}
>     * </ul>
>     *
>     * <p>Optional extras:
>     * <ul>
>     *   <li>{...@link Intent#EXTRA_PROMPT}
>     *   <li>{...@link #EXTRA_LANGUAGE}
>     *   <li>{...@link #EXTRA_MAX_RESULTS}
>     * </ul>
>     *
>     * <p> Result extras:
>     * <ul>
>     *   <li>{...@link #EXTRA_RESULTS}
>     * </ul>
>     *
>     * <p>NOTE: There may not be any applications installed to handle
> this action, so you should
>     * make sure to catch {...@link ActivityNotFoundException}.
>     */
>    public static final String ACTION_RECOGNIZE_SPEECH =
> "android.speech.action.RECOGNIZE_SPEECH";
>
>    /**
>     * Informs the recognizer which speech model to prefer when
> performing
>     * {...@link #ACTION_RECOGNIZE_SPEECH}. The recognizer uses this
>     * information to fine tune the results. This extra is required.
> Activities implementing
>     * {...@link #ACTION_RECOGNIZE_SPEECH} may interpret the values as
> they see fit.
>     *
>     *  @see #LANGUAGE_MODEL_FREE_FORM
>     *  @see #LANGUAGE_MODEL_WEB_SEARCH
>     */
>    public static final String EXTRA_LANGUAGE_MODEL =
> "language_model";
>
>    /** Free form speech recognition */
>    public static final String LANGUAGE_MODEL_FREE_FORM = "free_form";
>    /** Use a language model based on web search terms */
>    public static final String LANGUAGE_MODEL_WEB_SEARCH =
> "web_search";
>
>    /** Optional text prompt to show to the user when asking them to
> speak. */
>    public static final String EXTRA_PROMPT = "prompt";
>
>    /**
>     * Optional language override to inform the recognizer that it
> should expect speech in
>     * a language different than the one set in the {...@link
> java.util.Locale#getDefault()}.
>     */
>    public static final String EXTRA_LANGUAGE = "lang";
>
>    /**
>     * Optional limit on the maximum number of results to return. If
> omitted the recognizer
>     * will choose how many results to return. Must be an integer.
>     */
>    public static final String EXTRA_MAX_RESULTS = "max_results";
>
>    /** Result code returned when no matches are found for the given
> speech */
>    public static final int RESULT_NO_MATCH =
> Activity.RESULT_FIRST_USER;
>    /** Result code returned when there is a generic client error */
>    public static final int RESULT_CLIENT_ERROR =
> Activity.RESULT_FIRST_USER + 1;
>    /** Result code returned when the recognition server returns an
> error */
>    public static final int RESULT_SERVER_ERROR =
> Activity.RESULT_FIRST_USER + 2;
>    /** Result code returned when a network error was encountered */
>    public static final int RESULT_NETWORK_ERROR =
> Activity.RESULT_FIRST_USER + 3;
>    /** Result code returned when an audio error was encountered */
>    public static final int RESULT_AUDIO_ERROR =
> Activity.RESULT_FIRST_USER + 4;
>
>    /**
>     * An ArrayList<String> of the potential results when performing
>     * {...@link #ACTION_RECOGNIZE_SPEECH}. Only present when {...@link
> Activity#RESULT_OK} is returned.
>     */
>    public static final String EXTRA_RESULTS = "results";
>
> On Feb 10, 2:18 pm, Markus Junginger <[email protected]> wrote:
> > On Feb 10, 5:53 am, "[email protected]" <[email protected]> wrote:
> >
> > > The package android.speech.srec is in the master SDK.  It's documented
> > > as a simple, synchronous SREC speech recognition API.
> >
> > Where do I find information on the "master SDK"?
> > There's no JavaDoc in the SDK 1.1 of this package. Maybe there is an
> > Intent though?
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to