Skip to content

filipemir/trump

Repository files navigation

The Best Words

A small sampling of Donald Trump's best words. Heavily inspired by (and indebted to) the now defunct They Don't Want You To Win, a far funnier and less depressing project. See it live at the-best-words.now.sh.

Development

yarn
yarn start

The site should start running at http://localhost:8080/

Contributing

If you want to contribute more quotes, please open a PR. It's as simple as adding an MP3 file in the src/audio and an entry to the object in src/quotes.js. To test the quote locally in local development you can use the q=quote_id query param, which will queue it up as the first quote. E.g: http://localhost:8080/?q=poorly_educated

Normalization

If the quote you add sounds either too loud or too quiet, you can normalize the sound volume using the ffmpeg-normalize utility.

To use it you'll need to have installed:

  • Python 3
  • ffmpeg: brew install ffmpeg
  • ffmpeg-normalize: pip3 install ffmpeg-normalize

Then just run ./normalize-audio.sh file_name.mp3 from the project root. To normalize all audio files, you can also use globbing: ./normalize-audio.sh "*.mp3"