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
mkdir converted | |
for i in *.aif; do sox -t aif -b 24 $i converted/${i%.aif}.wav; done | |
#-t: to tell sox the input format | |
#-b: bit depth | |
#i%.aif: to remove the file name extension |
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
# DTW distance | |
# Change dtwPath | |
# open terminal, go to your/path/to/sankalp/dtw, then compile: python setup.py build_ext --inplace | |
# use function dtw1d_std, inputs are two pitch contour lists, use udist as distance | |
import os,sys | |
fileDir = os.path.dirname(os.path.realpath('__file__')) | |
dtwPath = os.path.join(fileDir, 'your/path/to/sankalp/dtw') | |
dtwPath = os.path.abspath(os.path.realpath(dtwPath)) |
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
#!/bin/bash | |
### ABOUT | |
### Runs rsync, retrying on errors up to a maximum number of tries. | |
### Simply edit the rsync line in the script to whatever parameters you need. | |
### This bash should be originaly written by Sergio Oramas, originaly posted on HPC page of MTG-services Wiki |
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
#!/bin/bash | |
# task name | |
#$ -N RongGongDNNAcousticModelTraining | |
# use default.q, let HPC automatically distribute the GPU resources | |
#$ -q default.q | |
# use specific GPU node, here we use node02 | |
#$ -l h=node02 |
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
#!/bin/sh | |
# Name the process | |
# ---------------- | |
#$ -N compIden_$JOB_ID | |
# | |
# Call from the current working directory; no need to cd; using default.q configuration, HPC will distribute the best choice of the nodes | |
# ------------------------------------------------------ | |
#$ -cwd | |
# -q default.q | |
# |