Fork me on GitHub

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 3.0 4 6 2013 Abuse adslight Android AntiHarvesting AntiMalUser AntiSpam API Apple Battlefield billige Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo docek download Dresses evden eve facebook Fat floor Food for free Gateway Google Guide herre Home Honeypot Human HỘ IP iPhone jQuery Language Law Legal List log Loss mobile module modules Monster new newbb news NHÀ online PARK phone PHP Prevention profile project Protector publisher Rapid RESIDENCE responsive review Rights rmcommon security Sentry site Smartphone Smoking Solution Spam Studio tags tdmcreate template The Theme themes web weight Wishcraft xoops Xortify

New Users

Registering user

# 137849

hometheater

Welcome to XOOPS!

Archives

News Archives

SpeechSearch V1.0

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