Skip to content

Instantly share code, notes, and snippets.

@m039
Created July 24, 2011 20:14
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m039/1103053 to your computer and use it in GitHub Desktop.
Save m039/1103053 to your computer and use it in GitHub Desktop.
Get an audio file from the Google Translate.
#!/bin/sh
# Author: m039 <flam44 (at) gmail (dot) com>
wget --user-agent --referer='http://translate.google.com' "http://translate.google.com/translate_tts?ie=UTF-8&tl=ja&q=$1" -O ~/.anki/decks/MNN\ I.media/${1}.mp3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment