Numbers Station
example p5.js javascript oopThis 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?
Comments and Questions
Happy Coding is a community of folks just like you learning about coding.
Do you have a comment or question? Post it here!