Skip to content

Instantly share code, notes, and snippets.

@RickCarlino
RickCarlino / eartrainer.rb
Created November 29, 2012 14:40
Use the Lingq API to practice your foreign listening language skills
require 'rest_client'
require 'json'
#Initialization: Load the words into a usable format from the API.
#These are the only settings you would need to change if you were a different user:
#Goto: https://www.lingq.com/accounts/apikey/ to find your API Key
api_key = 'YOUR API KEY GOES HERE. CHANGE THIS!'
lang_code = 'ko' #for Korean, en for English, etc.
#The voice to use for your target language