Skip to content

Instantly share code, notes, and snippets.

View cveaux's full-sized avatar

Christophe Veaux cveaux

  • London
View GitHub Profile
@Edresson
Edresson / donwload_common_voice.py
Last active February 5, 2023 20:14
Generate download links for all Common Voice 7.0 languages
# 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",
@johnmeade
johnmeade / speech_noise.py
Last active January 3, 2023 12:55
Use VAD to separate out regions without speech content, and estimate mean power of background noise
"""
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
"""
@johnmeade
johnmeade / snr.py
Last active May 24, 2024 19:29
WADA SNR Estimation of Speech Signals in Python
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
@rahul003
rahul003 / linux-cuda-install.sh
Created February 21, 2018 22:47
Install Cuda and Cudnn 9.1 on Ubuntu
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