This is the Voice Receive/Responder Module for AI projects. It takes voice/audio input, translates that input to commands to delegate to other AIs, then returns an audio response to the user stating its actions taken.
This project should be modular, and installable in any other Robot project to provide voice capabilities. Hooking it up to other hardware as a controller is not currently supported. It is more of a "voice assistant installation" for robots.
Workflow for this project is to develop code on your windows machine, push to github, pull from github on the raspberry pi, then run code. cannot currently get the environments right across windows and linux to get a simplified development experience across platforms atm, so this should make the process simpler for now and we can get more platform stuff working later.
For Raspberry Pi:
sudo apt install python3-pyaudiosudo apt install portaudio19-devsudo apt-get install portaudio19-dev python-pyaudio python3-pyaudiomkdir venv && python -m venv venvpip install -r requirements.txtpip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl for the right tensorflow install.I think this is something that will only have to be done at the repo level, and we should commit the resulting .tflite file/model to the repo.
model = TFWav2Vec2ForCTC.from_pretrained("openai/whisper-tiny")
model.save_pretrained("whisper_saved_model", saved_model=True)```
```import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_saved_model("whisper_saved_model")
tflite_model = converter.convert()
with open("whisper_tflite_model.tflite", "wb") as f:
f.write(tflite_model)```
1 commits
Python
100.0%
This is the Voice Receive/Responder Module for AI projects. It takes voice/audio input, translates that input to commands to delegate to other AIs, then returns an audio response to the user stating its actions taken.
This project should be modular, and installable in any other Robot project to provide voice capabilities. Hooking it up to other hardware as a controller is not currently supported. It is more of a "voice assistant installation" for robots.
Workflow for this project is to develop code on your windows machine, push to github, pull from github on the raspberry pi, then run code. cannot currently get the environments right across windows and linux to get a simplified development experience across platforms atm, so this should make the process simpler for now and we can get more platform stuff working later.
For Raspberry Pi:
sudo apt install python3-pyaudiosudo apt install portaudio19-devsudo apt-get install portaudio19-dev python-pyaudio python3-pyaudiomkdir venv && python -m venv venvpip install -r requirements.txtpip install https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.8.0-py3-none-any.whl for the right tensorflow install.I think this is something that will only have to be done at the repo level, and we should commit the resulting .tflite file/model to the repo.
model = TFWav2Vec2ForCTC.from_pretrained("openai/whisper-tiny")
model.save_pretrained("whisper_saved_model", saved_model=True)```
```import tensorflow as tf
converter = tf.lite.TFLiteConverter.from_saved_model("whisper_saved_model")
tflite_model = converter.convert()
with open("whisper_tflite_model.tflite", "wb") as f:
f.write(tflite_model)```
1 commits
Python
100.0%