Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
News World of XOOPS Developers Hacks Modules Themes YAXS Archive Submit News

Search

Nominate XOOPS!

Learn XOOPS Core

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $15.00
Net Balance: $14.11
Left to go: $85.89

Donations
Anonymous ($15)Jul-20

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 4 6 adslight Android AntiHarvesting AntiMalUser AntiSpam API Apple Battlefield billige Blocks Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo docek download Dresses evden eve facebook Fat floor for free Gateway Google Guide herre Honeypot HP html5 Human HỘ IP iPhone jQuery Language List log Loss module modules Monster new newbb news NHÀ online PARK Payment phone PHP Prevention profile project Protector publisher RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Smoking Spam stem Studio support tag tdmcreate template The Theme themes User userlog weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137631

promozseo

Welcome to XOOPS!

Archives

News Archives

SpeechSearch V1.0

Posted by geekwright on 2013/2/28 12:51:00 (2551 reads) | Posted on Modules
SpeechSearch adds a search block to XOOPS which can accept input using the Web Speech API included in Google Chrome as of version 25. On compatible systems, the block will include a microphone icon which will launch the speech recognition, and send the results to the standard system search routines. On systems that don't support the API, it will quietly degrade to mimic the normal system search block.

The Google recognizer handles a wide variety of languages and dialects which you can choose in the block editor. In addition to the cool toy appeal, this has significant accessibility enhancement potential. There are even greater potentials when this API makes its way into the mobile browsers.

Download the SpeechSearch module here: http://geekwright.com/modules/wfdownloads/singlefile.php?lid=6


Printer Friendly Page Send this Story to a Friend Create a PDF from the article
Bookmark Me
Bookmark to Google Plus
The comments are owned by the author. We aren't responsible for their content.

Very interesting - works great even in Hebrew !!!
Published: 2013/2/28 16:54 • Updated: 2013/2/28 16:54
Very cool! We need more of these things, helping XOOPS to take advantage of the external APIs.
Published: 2013/2/28 17:15 • Updated: 2013/2/28 17:15
For those (like me) that don't want the block content in non-chrom browsers:

edit / modules/speechsearch/templates/blocks/speechsearch_block.html

change the lines

<div class="txtcenter">
<
form id="speech_search_form" style="margin-top: 0;" action="<{xoAppUrl search.php}>" method="get">
  <
input id="search_query" type="text" name="query" size="14" />
  <
input type="hidden" name="action" value="results" />
  <
button id="start_button" onclick="startButton(null);" type="button" title="<{$block.lang_mic_alt}>" style="border: 0; background-color:transparent; padding: 0;"><img id="start_img" src="<{xoAppUrl modules/speechsearch/images/mic.gif}>" alt="<{$block.lang_mic_alt}>" style="vertical-align:text-top;"></button>
  <
br /><input type="submit" value="<{$block.lang_search}>" />
</
form>
<{if 
$block.show_advanced}><a href="<{xoAppUrl search.php}>" title="<{$block.lang_advsearch}>"><{$block.lang_advsearch}></a><{/if}>
</
div>


with

<script>
if (
navigator.userAgent.indexOf('Chrome')!= -1) {
document.write("<div class="txtcenter"><form id="speech_search_form" style="margin-top0;" action="<{xoAppUrl search.php}>" method="get"><input id="search_query" type="text" name="query" size="14" /><input type="hidden" name="action" value="results" /><button id="start_button" onclick="startButton(null);" type="button" title="<{$block.lang_mic_alt}>" style="border0background-color:transparentpadding0;"><img id="start_img" src="<{xoAppUrl modules/speechsearch/images/mic.gif}>" alt="<{$block.lang_mic_alt}>" style="vertical-align:text-top;"></button><br /><input type="submit" value="<{$block.lang_search}>" /></form><{if $block.show_advanced}><a href="<{xoAppUrl search.php}>" title="<{$block.lang_advsearch}>"><{$block.lang_advsearch}></a><{/if}></div>")
    }
else{
document.write(" ")
}
</script>

Published: 2013/2/28 17:21 • Updated: 2013/2/28 17:21
very interesting.
I even didnt aware of such a API in chrome.
It would be a revolution in Mobile Aps.
thank you.
Published: 2013/3/2 20:44 • Updated: 2013/3/2 20:44