A Speech-To-Text app with Flask in which we can upload a video or an audio file and can get transcripts of the speech in the file we upload.
Once we upload a video file, it takes the audio from the video with the information of the file such as sampling rate by using ffmpeg-python, which is a wrapper of ffmpeg. Based on the information, it converts the audio to a 1-D Numpy array which is fed into the DeepSpeech model which trained by machine learning techniques based on Baidu's Deep Speech research paper. The output from the DeepSpeech model is then fed into a language model in order to improve the prediction accuracy.
For more infomation, please visit my site.
Clone this repository to your local.
git clone https://github.com/boblef/auto_transcript
Set up the environment, and run the application
You can set up the environment in which we run the Flask application either by using Docker or by creating a conda or pip env by yourself.
Strongly recommend to use Docker. Otherwise, you need to install Sox and ffmpeg to your machine.
docker build -t auto_transcript:latest .
docker run -d -p 5000:5000 auto_transcript:latest
http://localhost:5000/
samples/. You can grab one of them or upload a mp4 file you have.
zip file that contains a JSON which includes a list of words with start time and duration and a text file that keeps a sentence of words concatenated with white space.Content type
Image
Digest
Size
216.2 MB
Last updated
over 5 years ago
docker pull boblef/auto_transcript