Numbers Station


Numbers Station


January 3, 2021

example p5.js javascript oop

This sketch uses the SpeechSynthesis class to say random words and numbers, just like a real-life numbers station.

Remix Ideas

  • Use the p5.sound library to play random tones.
  • Set the variables in the SpeechSynthesisUtterance object to give each word a random pitch, rate, and volume.
  • Add random words from other sources. Try the script from your favorite movie, or a public domain book. Do you notice any patterns in the randomness?

Using Objects Examples

Comments

Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!

Comments are powered by the Happy Coding forum. This page has a corresponding forum post, and replies to that post show up as comments here. Click the button above to go to the forum to post a comment!