PyHAL
PyHAL copied to clipboard
HAL-9000 Speech Simulator
PyHAL
HAL-9000 Speech Simulator
Required External Modules
- PyAudio (https://pypi.python.org/pypi/PyAudio)
- Speech Recognition (https://pypi.python.org/pypi/SpeechRecognition/)
- FLAC (https://xiph.org/flac/)
Description
Using the Google Speech Recognition API and corresponding .wav files the user is able to speak to HAL-9000 and depending on what the input is determined to be, HAL-9000 is able to respond to the user. For example:
- User says "open the pod bay doors"
- HAL appropriately responds with "I'm sorry Dave, I'm afraid I can't do that"
- User then says "Ok, I'll go through the emergency airlock"
- HAL responds "Without your space helmet Dave? Your going to find that rather difficult"
General Requirements
- Python
- Microphone
- Internet Connection
Instructions
- Download the project, keeping all directories relative.
- Install Speech_Recognition, PyAudio, and FLAC.
- Navigate to the directory containing hal3.py via the command line.
- Type python hal3.py and hit enter.
- Prosper.