Create A Forum - Support Forums

Support => Create a Forum Codes and Support => Topic started by: aIURbliS on November 14, 2012, 05:23:43 am

Title: [Code] Voice to Text
Post by: aIURbliS on November 14, 2012, 05:23:43 am
Description: Adds a small icon to some boxes that allows text which will activate Voice to Text recognition where you can speak through a mic and text gets outputted. ONLY WORKS IN GOOGLE CHROME!!!

This code utilizes jQuery, please use the latest version found in this thread: http://support.createaforum.com/5/jquery-v1-8-update/ (http://support.createaforum.com/5/jquery-v1-8-update/)

Footers:
Code: [Select]
<script>/*Created by Xboi209 - 11.13.12*/$("input:not(:password)").attr("x-webkit-speech","x-webkit-speech");$("textarea[name='message']").each(function(){var $this=$(this);$(this).after("<form action='javascript:void(0);'><input type='text' class='copy_speech' size='100' x-webkit-speech='x-webkit-speech'></form><a href='javascript:;' class='append_speech'>Copy text to textarea</a>");$("a.append_speech").click(function(){$this.append($(this).closest("div").children("form").children("input.copy_speech").val())})});</script>
Title: Re: [Code] Voice to Text
Post by: Lionel on November 30, 2012, 12:53:12 pm
Where can I find those boxes?
Title: Re: [Code] Voice to Text
Post by: aIURbliS on November 30, 2012, 06:56:46 pm
It's on almost any box, look at the quick search box for an example. Note that it only works on Google Chrome