Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8386489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:57:13+00:00 2026-06-09T17:57:13+00:00

Introduction Android provides two ways for me to use speech recognition. The first way

  • 0

Introduction

Android provides two ways for me to use speech recognition.

The first way is by an Intent, as in this question: Intent example. A new Activity is pushed onto the top of the stack which listens to the user, hears some speech, attempts to transcribes it (normally via the cloud) then returns the result to my app, via an onActivityResult call.

The second is by getting a SpeechRecognizer, like the code here: SpeechRecognizer example. Here, it looks like the speech is recorded and transcribed on some other thread, then callbacks bring me the results. And this is done without leaving my Activity.

I would like to understand the pros and cons of these two ways of doing speech recognition.

What I’ve got so far

Using the Intent:

  • is simple to code
  • avoids reinventing the wheel
  • gives consistent user experience of speech recognition across the device

but

  • might be slow for the creation of a new activity with it’s own window

Using the SpeechRecognizer:

  • lets me retain control of UI in my app
  • gives me extra possibilities of things to respond to (documentation)

but

  • is limited to be called from the main thread
  • more control requires more error-checking.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T17:57:14+00:00Added an answer on June 9, 2026 at 5:57 pm

    In addition to all this, I’d add at least this point:

    SpeechRecognizer is better for hands-free user interfaces, since your app actually gets to respond to error conditions like “No matches” and perhaps restart itself. When you use the Intent, the app beeps and shows a dialog that the user must press to continue.

    My summary is as follows:

    SpeechRecognizer

    • Show different UI or no UI at all. Do you really want your app’s UI to beep? Do you really want your UI to show a dialog when there is an error and wait for user to click?

    • App can do something else while speech recognition is happening

    • Can recognize speech while running in the background or from a
      service

    • Can Handle errors better

    • Can access low level speech stuff like the raw audio or the RMS. Analyze that audio or use the loudness to make some kind of flashing light to indicate the app is listening

    Intent

    • Consistent, and easy to use UI for users
    • Easy to program
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I added TextToSpeech to my app, following the guidelines in the following post: http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html
Introduction: Now I know this question could be very broad and it would be
i followed the following tutroial for tts http://android-developers.blogspot.com/2009/09/introduction-to-text-to-speech-in.html but now how do i make
Introduction first, question at the end. Please read carefully! I have a master-detail relation
Introduction I know I'm going to lose a lot of reputation for this question
//Introduction Hey, Welcome..... This is the tutorial //EndIntro //Help1 Select a Stock To use
The official introduction to Text-To-Speech in Android says that upon creating your activity, a
Introduction I have a question coming from this one: Loop calling an asynchronous function
I am new to urban airship, and integrating this to my Android application. Got
Introduction : I have prior experience in programming (C, C++, Java), however, this is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.