You'll find the notebook used to create the model under /notebook.ipynb
.
Open the notebook using Google Colab or Kaggle then run all blocks and download the model.tflite
.
Note:
The model is a Binary classification;
It means in our case, 0 == English, 1 == French
- Clone the project on your machine.
- Create a directory in the project.
Note:
The default directory name is
wav
, create a directory with this name if you don't want to change the code below
- Put your wav files in the directory.
Note:
Non-wav files will not be taken in consideration by the code.
- Install the
requirements.txt
Note:
You might have tensorflow installed, the requirements.txt will not automaticly install tensorflow
- Run the
predict.py
with python3.
Note:
You should have something similar:
- Install Debian x64 Lite using Raspberry Pi Imager on a Raspberry Pi, then follow this guide.
- Install all required dependencies for python3 on the Raspberry Pi.
- Using ssh, upload in the same directory:
formaterio.py
,model.tflite
(or your model),main.py
- Run using python3
main.py
Note: (you must have a microphone plugged on your Raspberry Pi)