Simon has just finished working on his first library, a #speechlibrary Speechjs. You can find Simon’s library on GitHub: https://github.com/simon-tiger/speechjs
Simon also added a reference page at: https://github.com/simon-tiger/speechjs/wiki/Reference
You can use this library for any project that uses #speechrecognition and/or speech synthesis. Simon has put it under the MIT (permissive) license, to make sure everyone can use it for free, he emphasized.
While writing the library, Simon also recycled various code he found online, but essentially this library is his own code. He calls the library “just a layer on top of the web speech API” (that means you’re limited to what your browser supports).
Following the exciting text-to-speech and speech-to-text projects yesterday, this morning Simon made a basic speech-to-text-to-speech demo, which means that the computer can now repeat (parrot) everything Simon says.
Simon relied on what he learned during Daniel Shiffman’s two latest live streams on the Coding Train channel in building these projects.
This is one of those wow projects, so much fun! Simon built his Text-to-Speech and Speech-to-Text demos following Daniel Shiffman’s recent live streams on working with the p5.Speech library and added some extra style features. This basically means that you can type anything on your computer and hear it say what you’ve typed (in any voice or language!) or, in what Simon said was an easier project, yell something to your computer (I love you!) and watch it type it out for you. The next step will be combining the two and including that code into a chat bot code.
You can play with Simon’s Text-to-Speech demo on GitHub at:
Basic text to speech example: https://simon-tiger.github.io/p5_speech/01_text2speech/
Example using different voices: https://simon-tiger.github.io/p5_speech/02_voices/
Basic speech to text example: https://simon-tiger.github.io/p5_speech/03_speech2text/
Code/ repo: https://github.com/simon-tiger/p5_speech