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 7760477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T13:53:54+00:00 2026-06-01T13:53:54+00:00

I am trying to create a button that can pop up the speech input

  • 0

I am trying to create a button that can pop up the speech input panel (in HTML5), and I tried to use <label> for that:

<label>
    <input type="text" x-webkit-speech />
    ​<button>Speak</button>
</label>​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​

http://jsfiddle.net/DerekL/XzD2U/

But it only focus on the <input> D: And that is not I wanted to do.
Any suggestion? (it does not have to support IE nor Firefox, just Google Chrome)

Added

This is what I want it to be: http://jsfiddle.net/DerekL/RWCJR/
but I want to use a real button instead of this fake <input> button.

  • 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-01T13:53:55+00:00Added an answer on June 1, 2026 at 1:53 pm

    You are pretty limited in what you can accomplish. What you are after isn’t possible. The only way to trigger the speech is to click on that microphone icon in the textbox. If you are willing to use javascript then I think you might be able to cram something in. This is how I would do it.

    1. Create a text input that is only large enough to contain the microphone icon
    2. Use a transform to make it button sized
    3. Make it transparent and overlay it on a real button
    4. When the invisible microphone is clicked, use javascript to copy the new value into your real text field.

    http://jsfiddle.net/Lu3Vb/

    You can see in this example how I hacked it together. There are two buttons, one with the microphone overlayed completely transparent, and one with it partially transparent and a red border so that you can see the effect.

    CSS

    input.speechbutton {
        position: absolute;
        top: 0;
        left: 0;
        opacity: 0;
        height: 20px;
        width: 20px;
        margin-left: 30px;
        -webkit-transform: scale(3.0, 1.0);
    }
    

    HTML

    <div style="position: relative;">
        <button>Speech</button>
        <input class="speechbutton" type="text" value="" x-webkit-speech />
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a button linked to a text field that will let
I'm trying to create a post button that inserts the latest posts into a
I'm trying to create a simple button that deletes a row from the database.
I'm trying to create the effect of a button that 'lifts' from the page
I am trying to create a delete button over each image that appears in
I'm trying to create a jTable that, once a button is clicked, adds rows
I'm trying to create a top panel menu that contains 5 buttons. I configured
I'm trying to create a button that will simply link back to the context
I'm trying to create a button that changes color of the background and then
I am trying to create a custom command button that defaults width and height

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.