Skip to content

Instantly share code, notes, and snippets.

View ankurdhuriya's full-sized avatar
🎯
Focussing

Ankur Dhuriya ankurdhuriya

🎯
Focussing
  • ThoughtWorks
  • India
View GitHub Profile
@ankurdhuriya
ankurdhuriya / notebook.ipynb
Created November 21, 2019 07:28
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ankurdhuriya
ankurdhuriya / notebook.ipynb
Created November 24, 2019 10:35
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ankurdhuriya
ankurdhuriya / notebook.ipynb
Created November 25, 2019 07:38
Practising Classification Algorithm while predicting whether loan will be paid off or not.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# python generate_spectrogram.py --audio-dir /path/to/audio_dir/ --spectrogram-dir /path/to/spectrogram_dir/
import argparse
from __future__ import division, print_function
from os import listdir
from os.path import isfile, join
from matplotlib import pyplot as plt
import scipy.io.wavfile as wav
from pydub import AudioSegement
def load_audio(audio_path, ext):
return AudioSegement.from_file(audio_path, format=ext)
def speed_change(audio, speed):
audio_with_altered_frame_rate = audio._spawn(
audio.raw_data, overrides={
"frame_rate": int(audio.frame_rate * speed)
})
@ankurdhuriya
ankurdhuriya / resample_wavs.py
Created November 20, 2021 03:30
resample wav files in paralled
import argparse
import librosa
import numpy as np
import os
import scipy
import scipy.io.wavfile
import sys
from glob import glob
from tqdm import tqdm
@ankurdhuriya
ankurdhuriya / glow_tts_hindi_multi_speaker_training.ipynb
Created January 21, 2022 16:41
glow_tts_hindi_multi_speaker_training.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ankurdhuriya
ankurdhuriya / hifi_gan_training.ipynb
Created January 22, 2022 08:30
hifi_gan_training.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.