• How To?
  • Tips ‘n Tricks
  • WordPress
  • Snippets
  • Software
    • Browsers
    • Downloads
  • Web
  • Tools
    • Character Counter
    • chmod Calculator
    • Entities Encoder
    • Live HTML Editor
    • My IP
  • Contact
Twitter Facebook Google+ RSS
You are here: SumTips » How To? » Enable Voice Search Feature on WordPress and Other Websites

Enable Voice Search Feature on WordPress and Other Websites

Posted on January 10, 2011 by Renji | Short URL: http://sumtips.com/?p=2829
Voice Input in WordPress

The Voice Search extension enabled voice searching in Google Chrome. Now here I will show you how to enable speech input feature in your WordPress blog and any other website.

If you have the extension installed or are on the Chrome dev build, check out the “Search” box on SumTips and you’ll see a little mic icon. You can do a search-by-voice by clicking on it.

To enable this feature on your WordPress blog open searchform.php file from your theme folder in a text editor. You might get something similar to this:

<form id="searchform" action="<?php bloginfo('home'); ?>/" method="get">
<input id="s" name="s" size="20" type="text" value="<?php _e('Search') ?>..."/>
</form>

Now add “x-webkit-speech speech onwebkitspeechchange="this.form.submit();"” to the input element box. So the final output would be:

<form id="searchform" action="<?php bloginfo('home'); ?>/" method="get">
<input id="s" name="s" size="20" type="text" value="<?php _e('Search') ?>..." x-webkit-speech speech onwebkitspeechchange="this.form.submit();" />
</form>

That’s it!

Similarly, you can enable speech input on other input boxes on any website:
<input id="si" name="si" type="text" x-webkit-speech speech error onwebkitspeechchange="do.this(true);" />

You may have noticed the “x-webkit-speech” attribute, this means it currently works only in Webkit.

Visit this page to learn what more you can do with this feature.


Tweet

Related posts:

  • Do Voice Searches in Google Chrome
  • Get Google Voice on Your Desktop with GVNotifier
  • Create Custom Search Engine of Any Website in Google Chrome
  • New Gmail Labs Feature: Auto-advance
  • Funny Google Image Search with JavaScript
Categories: How To? | Tags: Google Chrome, Google Voice, Tips 'n Tricks, WordPress
Install a Portable Web Server on your USB Pen drive
Know Actual Feedburner Count from Chrome Address Bar

One Response to “Enable Voice Search Feature on WordPress and Other Websites”

  1. Tweets that mention Enable Voice Search Feature on WordPress and Other Websites, Enable Voice Search Feature on WordPress and Other Websites -- Topsy.com says:
    January 11, 2011 at 1:47 PM

    [...] This post was mentioned on Twitter by ilyas teker, SumTips. SumTips said: Enable Voice Search Feature on WordPress and Other Websites http://nblo.gs/cO5XM [...]

  • Get Updates via Email

  • Recent Posts

    • CMS2CMS: Migrate Site from Drupal or Joomla to WordPress
    • WordPress: Add Preview Button in Distraction Free Writing
    • How to Activate or Deactivate Individual Jetpack Modules
    • Windows 8: Auto Update Defender with Windows Update Disabled
    • Automatically Start and Close Programs at Specific Time
    • How to Copy Code from Notepad++ with Syntax Highlighting
  • Random Posts

    • Silence Unwanted Conversations with "Smart Mute" in Gmail
    • New Foursquare Badge Just for Bowlers
    • Change Windows 8 Screenshot Save Location
    • Move Minimize, Maximize & Close Buttons to The Left of a Window
    • Record Skype Calls with Skype Recorder MP3
    • Download Office 2013 Offline Installer, 32-bit and 64-bit versions
  • Categories

    • Blogging
    • Games
    • Google
    • How To?
    • Linux
    • Microsoft
      • Windows
    • Miscellaneous
    • Phone
    • Snippets
      • AutoHotkey Snippets
      • CSS Snippets
      • htaccess Snippets
      • JavaScript Snippets
      • PowerShell Snippets
      • WordPress Snippets
    • Social
    • Software
      • Browsers
    • Tips 'n Tricks
    • Wallpapers
    • Web
© SumTips. Contact | Sitemap | Privacy Policy