This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# reference: https://github.com/huggingface/datasets/blob/master/datasets/common_voice/common_voice.py | |
# DATA_URL = "https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-6.1-2020-12-11/{}.tar.gz" | |
DATA_URL = "https://voice-prod-bundler-ee1969a6ce8178826482b88e843c335139bd3fb4.s3.amazonaws.com/cv-corpus-7.0-2021-07-21/cv-corpus-7.0-2021-07-21-{}.tar.gz" | |
LANGUAGES = { | |
"ab": { | |
"Language": "Abkhaz", | |
"Date": "2020-12-11", | |
"Size": "39 MB", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Estimate background noise power level of a speech waveform. | |
Requires some non-speech regions in the wave. | |
Requirements: | |
pip install numpy librosa soundfile webrtcvad | |
MIT License John Meade 2021 | |
""" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
def wada_snr(wav): | |
# Direct blind estimation of the SNR of a speech signal. | |
# | |
# Paper on WADA SNR: | |
# http://www.cs.cmu.edu/~robust/Papers/KimSternIS08.pdf | |
# | |
# This function was adapted from this matlab code: | |
# https://labrosa.ee.columbia.edu/projects/snreval/#9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y linux-headers-$(uname -r) | |
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/cuda-repo-ubuntu1604_9.1.85-1_amd64.deb | |
sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb | |
sudo apt-key adv --fetch-keys http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub | |
sudo dpkg -i cuda-repo-ubuntu1604_9.1.85-1_amd64.deb | |
sudo apt-get update | |
sudo apt-get install -y cuda | |
/usr/bin/nvidia-persistenced --verbose | |
sudo apt-get install -y g++ freeglut3-dev build-essential libx11-dev libxmu-dev libxi-dev libglu1-mesa libglu1-mesa-dev | |
wget http://developer2.download.nvidia.com/compute/machine-learning/cudnn/secure/v7.0.5/prod/9.0_20171129/Ubuntu16_04-x64/libcudnn7_7.0.5.15-1%2Bcuda9.0_amd64.deb?B6oKBFMYCPOY-7IYUsEd5RXHqo4X7I6Y7Ocbi0HI3sKsDx58Lyrsw921spJrwCNsOaLkJuMGkGsNLqGX6FJRAa0qXMfv5E38ZVCRdEspFRIcz7tYXUm6SGdsC-w4Vm5sxwoxmk1a7j0hNVKnj5uMF7ZMrt80tiOM9MdfjvtSV-RRNdFGmavFjX7pqGvpTcFHFwxdYCYZtvzOvD6t10hltLcrA7tJXRdwkQQGaid2W-yjnx7e4lI |