A Python script written in Jupyter notebook to take input commands in the form of speech to play Chess!
For running this script you'll need:
- Jupyter Notebook
- Speech Recognition Module
- PyAudio Module
- Chess Module
- PiP Installer
- An active internet connection as Google API needs internet to function
If you have Python up and running all you need to do is download the external modules from the PiP Installer, just type:
pip install SpeechRecognition
pip install PyAudio
You will also require python-chesss
module, for that:
pip install python-chess
After this, you'll be ready to code!
P.S: If you are unable to open the code from the given Jupyter notebook file, click here. After that, copy+paste the code in your Jupyter Notebook.
Speak your desired moves, first the intiial block, followed by the final block. A matrix of chess board is also printed on the console screen for the ease of the user. Any illegal move or a wrong speech input will require to give the speech command again. All the moves you make will be represented on the GUI board (opens in a separate window)
- Python
- Google Speech-to-Text API
This project is under the MIT License.
- Kushagra Gupta
- Ishan Sethi
Feel free to connect with me on LinkedIn