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

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.5.5 2.6 3.0 2013 Abuse alimento AntiHarvesting AntiMalUser AntiSpam API ASP Beats billige black block Blocking Blocks blue Bytes Captcha cell Christmas chronolabs Client content Conversion demo Dictionary docek download Dresses editor evden eve facebook floor forms framework free herre Honeypot Human Hymn instant-zero IP jQuery kantor lamps Load log logger mobile module modules Monster MyAlbum-p newbb news online PageRank Party Permissions pink Plugin pollos portal Prevention profile project Protector publisher REST Rights rmcommon Room sale security Server site Smarty Spam SQL stem Studio tag tags tdmcreate Theme themes Transaction userlog website Whitepaper Wishcraft XFriendica xoops Xortify ZendFramework

New Users

Registering user

# 136024

ngochuyen

Welcome to XOOPS!

Archives

News Archives

SpeechSearch V1.0

Posted by geekwright on 2013/2/28 12:51:00 (1375 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