3

How to add google voice search in magento.

Is there any api for this.

4

The easiest way to implement this is in Chrome (webkit) where it only takes some HTML attributes on an input type.

For the small search form input in the top of the page that would be something like below. You can read more about that here.

<input id="search" type="text" name="q" value="" class="input-text" maxlength="50" x-webkit-speech>

On other browsers it might take more effort. Since there isn't a standard browser API yet you will need to capture the audio of the user using either some HTML5 or Flash application and send it of to the Google Speech Recognition API.

ALthough I've never used it this library looks promising http://mikepultz.com/2013/07/google-speech-api-full-duplex-php-version/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.