Author Topic: [Code] Voice to Text  (Read 647 times)

0 Members and 0 Guests are viewing this topic.

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
[Code] Voice to Text
« 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/

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>
« Last Edit: November 14, 2012, 05:41:06 am by xboi209 »
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

Share on Facebook Share on Twitter


Offline Lionel

  • Newbie
  • *
  • Posts: 30
  • Karma: -2
    • View Profile
Re: [Code] Voice to Text
« Reply #1 on: November 30, 2012, 12:53:12 pm »
Where can I find those boxes?

Offline aIURbliS

  • Hero Member
  • *****
  • Posts: 1215
  • Karma: 45
  • Gender: Male
  • Location: U.S.
    • View Profile
Re: [Code] Voice to Text
« Reply #2 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
All codes I make are tested on the latest version of Google Chrome and upon request of other browsers.

 

Related Topics

  Subject / Started by Replies Last post
12 Replies
3406 Views
Last post December 02, 2014, 06:57:57 pm
by CyanProductions
9 Replies
1023 Views
Last post January 21, 2012, 02:43:23 am
by aIURbliS
1 Replies
598 Views
Last post February 20, 2012, 05:53:59 am
by aIURbliS
2 Replies
939 Views
Last post April 17, 2012, 03:35:47 pm
by conductor
2 Replies
434 Views
Last post September 11, 2017, 06:15:12 pm
by Yvi