This bookmarklet will add a key shortcut to lauch the speech on duolinguo.com
This way you can keep your hand on the keyboard without having to lick on the speaker button to hear the pronunciation
By default it set ctrl
as the keyboard but you're free to set the key you want (see install procedure)
Bookmarklets are tiny programs stored inside bookmarks. Similar to add-ons, extensions, and user scripts, they add new tools to your web browser. Bookmarklets are shared on web pages as web links. You don't actually "install" a bookmarklet. You simply add it to your bookmarks. It just sits there patiently until you want to use it.
- Copy the content of shortcutToSpeech.js (click
RAW
then hitctrl+a
thenctrl+c
) - Go to http://ted.mielczarek.org/code/mozilla/bookmarklet.html
- Read instructions
- Put a name e.g.
duolinguo speech
, paste, crunch - Drag the generated bookmarklet to your bookmark bar
- Go to http://keycode.info/ and get the key code of the new shortcut you wish to set
- Copying the content of shortcutToSpeech.js in your text editor
- Click the RAW button (top of the file)
crtl+A
thencrtl+C
- Look for the line with
if(event.keyCode ===...
- Replace the numeric value with the keycode from step 1
- Jump to the step 2 of Install (default)
Note: If your bookmark bar is hidden, google how to display it..
- Go to duolinguo.com
- Click on the bookmarklet
- Whenever the speech is available, hit
ctrl
(or the shortcut you set) to hear the speech
Note: You will have to click on the bookmarket everytime you refresh the page