Skip to content

Instantly share code, notes, and snippets.

@mixonic
Created September 1, 2011 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mixonic/1186224 to your computer and use it in GitHub Desktop.
Save mixonic/1186224 to your computer and use it in GitHub Desktop.
Add speech-to-text to Co-op with a bookmarklet!
Just create a new bookmark, then copy and paste the
javascript in bookmarklet.js into the "url" section.
Then open co-op, click the bookmarklet, and you're
using text to speech!
This only works with Chrome right now.
javascript:var attrs = new Object(); $A($('note_text').attributes).each(function(node){ attrs[node.nodeName] = node.nodeValue }); attrs['type'] = 'input'; attrs['x-webkit-speech'] = 'x-webkit-speech'; $('note_text').replace( new Element('input', attrs) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment