Skip to content

NathaliaBarreiros/audio_transcription_deepspeech

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Transcription .wav audio files with DeepSpeech library

The objective of this project is to read a column of a CSV file that contains paths of audio files with a .wav extension, and then transcribe the audios with the help of Mozilla's DeepSpeech library. Finally, another CSV file containing a new column with the transcribed text must be returned. This project uses both object-oriented and functional programming paradigm, so there are folders for each approach.

Audio specifications


Since last DeepSpeed version only supported 16kHz .wav files, audio files must fulfill this requirement. Also, the preproccessing work expects 1 channel English audio files.

Scripts specifications


  • preprocessing.py file: This script is based on vad_transcriber DeepSpeed exaple https://github.com/mozilla/DeepSpeech-examples/tree/r0.9/vad_transcriber. This is in charged of managing .wav files and converting those into segments of voiced PCM audio data that can be processed by DeepSpeech ML model. It also has functions for loading and resolve models.

  • main_audio_transcript.py file: This script iterates over data of the initial CSV file to obtain the audio paths to be transcripted, processes and transcriptes them, using the preprocessing.py functions, and returns a new CSV file with the audio paths and the transcripts.

Pre-trained English model files used


About

Transcription .wav audio files with DeepSpeech library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages