Transcribes and summarizes speech or audio
The app requires python3 to be installed in the machine since the programming language used is Python
Once the python is installed, install all the dependencies by running the below command.
pip3 install -r requirements.txt
- Deepspeech model - https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.tflite
- Summarization model - https://huggingface.co/facebook/bart-large-cnn
Speech file to be converted should meet below specifications.
- Sample rate - 16KHz
- Audio channel - Mono
- File format - .wav
Speech summarizer can be built by following below steps.
- Select a development environment of your choice
- Analyse speech files to check if the specifications are met
- Convert Speech to text
- Encode text to tokenized IDs
- Generate and decode summarized text
- Servers and webframeworks can be leveraged for servicing the request as REST API - optional step
- Run Jupyter notebook for quick changes and experiments
- Run speech_summarizer.py by passing audio files and model files as input