Skip to content

Get words audio from Merriam Webster and Generate webpage for words and audios

License

Notifications You must be signed in to change notification settings

chen172/Merriam-Webster-api-example

Repository files navigation

Get words audio from Merriam Webster

See Website for Word Power Made Easy Audio and Merriam-Webster's Vocabulary Builder Audio

Prerequisite

You need provide your Merriam Webster api key in here.

Note: You can get api key from https://www.dictionaryapi.com/

Usage

  1. Create a XX.txt file contains words.

  2. Run ruby pronunciation.rb XX.txt to get needed files, prs_XX.txt, audio_XX.txt, audio files for the words in XX.txt.

  3. Run ruby generate_webpage_audio.erb XX.txt to generate a webpage.

  4. Run ruby generate_webpage_index_by_root.erb to generate webpage Merriam-Webster's_Vocabulary_Builder_Audio.html.

  5. Run ruby generate_webpage_audio_with_root.erb XX.txt to generate a webpage.

How to get a XX.txt file as the input file

Ruby Version

ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

About

Get words audio from Merriam Webster and Generate webpage for words and audios

Topics

Resources

License

Stars

Watchers

Forks