petewarden / streaming_speech_metrics

Python library for analyzing the latency and accuracy of streaming speech to text systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streaming Speech Metrics

Python library for analyzing the latency and accuracy of streaming speech to text systems

python calculate_file_metrics.py data/LibriSpeech/test-clean data/transcriptions/amazon.tsv

data/amazon_transcriptions.tsv: WAL=1.42s, WSL=1.47s, WER=0.05 (4.63%)

python calculate_file_metrics.py data/LibriSpeech/test-clean data/transcriptions/google.tsv

data/google_transcriptions.tsv: WAL=1.52s, WSL=1.60s, WER=0.07 (6.77%)

python calculate_file_metrics.py data/LibriSpeech/test-clean data/transcriptions/whisper.tsv

data/transcriptions/whisper.tsv: WAL=2.13s, WSL=2.20s, WER=0.05 (5.06%)

python calculate_file_metrics.py data/LibriSpeech/test-clean data/transcriptions/coqui.tsv

data/transcriptions/coqui.tsv: WAL=1.30s, WSL=1.44s, WER=0.07 (7.10%)

sudo apt install -y git curl https://pyenv.run | bash echo 'export PYENV_ROOT="$HOME/.pyenv" [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc source ~/.bashrc

sudo apt-get update sudo apt-get install -y make build-essential libssl-dev zlib1g-dev
libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev zip pyenv install 3.10.14 pyenv global 3.10.14 python -m pip install aiofile amazon_transcribe google-cloud-speech whisper numpy soundfile stt torch git clone https://github.com/petewarden/streaming_speech_metrics cd streaming_speech_metrics ./download_datasets.sh python gather_predictions.py coqui

About

Python library for analyzing the latency and accuracy of streaming speech to text systems

License:Apache License 2.0


Languages

Language:Python 96.7%Language:Shell 3.3%