Coder Social home page Coder Social logo

thesaurus-portal's Introduction

Thesaurus-Portal

A small project for school that I whipped up that pulls random words from the dictionary and displays them on intervals. Very similar to a 'word of the day', but in batches and customizable intervals. Click the 'ear' button to get a pronunciation of the word. Example runs can be found in the media folder

Setup

secrets.py

In the secrets.py file there are 4 fields which need to be updated for your own use.

ssid [REQUIRED]

The SSID of your WiFi. Make sure your wifi uses WPA or WPA2 for the PyPortal.

password [REQUIRED]

Password of your WiFi.

mw_key [REQUIRED]

Go to Merriam-Webster and sign up for a Collegiate Dictionary API key. Put your API key in this field.

voicerss_key [OPTIONAL]

Sometimes Merriam-Webster doesn't have WAV pronunciations, so Voice RSS can be used for pronunciations instead. If opting for MW pronunciations only, set flag USE_VOICERSS to False

code.py

Several settings can be changed to alter the functionality of the program

WORDS_PER_BATCH

How many words to pull from the API for a 'batch'. These words are continuously rotated in order until it is time for a new batch.

TIME_PER_WORD

How many seconds to display a word on screen at once for. Repeated BATCH_REPETITIONS times

BATCH_REPETITIONS

Number of times to display the batch in order before fetching a new batch of words

USE_VOICERSS

Flag to tell the program whether to use Voice RSS as your pronunciation source. Has the benefit that it will always have a pronunciation for a word, no matter how strange that word is.

thesaurus-portal's People

Contributors

aleef02 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.