Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NathaliaBarreiros/audio_transcription_deepspeech
Transcription .wav audio files with DeepSpeech library
https://github.com/NathaliaBarreiros/audio_transcription_deepspeech
Last synced: 3 months ago
JSON representation
Transcription .wav audio files with DeepSpeech library
- Host: GitHub
- URL: https://github.com/NathaliaBarreiros/audio_transcription_deepspeech
- Owner: NathaliaBarreiros
- License: mit
- Created: 2022-02-15T15:29:32.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-17T03:46:18.000Z (4 months ago)
- Last Synced: 2024-07-17T06:14:37.334Z (4 months ago)
- Language: Python
- Homepage:
- Size: 376 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
---
- curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.pbmm
- curl -LO https://github.com/mozilla/DeepSpeech/releases/download/v0.9.3/deepspeech-0.9.3-models.scorer