Skip to content

Instantly share code, notes, and snippets.

View edesaintchamas's full-sized avatar

edesaintchamas

  • Mediasia Interactive
  • Shanghai, China / Melbourne, Australia
View GitHub Profile
# Shell script - Reorganize TIMIT dataset and convert to WAV
# ------------
# Reorganize TIMIT dataset into a simpler folder architecture
# Move all files into 2 folders: TRAIN_ALL and TEST_ALL
# Files will be renamed to (category_1)-(category_2)-(filename).wav
# Batch convert TIMIT MIST files to WAV
# Requires sox ($ sudo apt-get install sox -y)
# Script must be placed in the TIMIT FOLDER, at the root, above TRAIN and TEST folders
@edesaintchamas
edesaintchamas / audio_tools.py
Created September 7, 2018 19:05 — forked from kastnerkyle/audio_tools.py
Audio tools for numpy/python. Constant work in progress.
raise ValueError("DEPRECATED/FROZEN - see https://github.com/kastnerkyle/tools for the latest")
# License: BSD 3-clause
# Authors: Kyle Kastner
# Harvest, Cheaptrick, D4C, WORLD routines based on MATLAB code from M. Morise
# http://ml.cs.yamanashi.ac.jp/world/english/
# MGC code based on r9y9 (Ryuichi Yamamoto) MelGeneralizedCepstrums.jl
# Pieces also adapted from SPTK
from __future__ import division
import numpy as np