To use console for input text:
python3 main.py
To use asr to recognize text:
python3 main.py --asr
brew install espeak
pip install pyttsx3
pip3 install SpeechRecognition
pip3 install pyaudio
pip3 install google-api-python-client
pip3 install gcloud
pip3 install pocketsphinx
pip3 install PyAudio
pip install -U spacy
python -m spacy download en_core_web_sm
Setup your Google Cloud Account and set the environment variable GOOGLE_APPLICATION_CREDENTIALS (add it on bash_profile!!) to the file path of the JSON file that contains your service account key: https://cloud.google.com/speech-to-text/docs/quickstart-client-libraries
Modify the file asr/keypath.txt with your JSON path
Troubleshooting pip3 install pocketsphinx
:
bambocher/pocketsphinx-python#28
#this is a test
https://drive.google.com/open?id=1YAXUxJB9JZ3LmcVz-amh_N1jnGcECgld