mirror of https://github.com/drowe67/LPCNet.git
utils for Librispeech
parent
ae72068708
commit
cc0ecbaf7e
|
|
@ -1,6 +1,8 @@
|
|||
# Place in 16k-LP7 from TSPSpeech.iso and run to concatenate wave files
|
||||
# into one headerless training file
|
||||
for i in */*.wav
|
||||
#!/bin/bash
|
||||
# Concatenate .wav files into one headerless .sw training file
|
||||
# usage: ./concat.sh concatfile.sw
|
||||
|
||||
for i in `find . -name '*.wav'`
|
||||
do
|
||||
sox $i -r 16000 -c 1 -t sw -
|
||||
done > input.s16
|
||||
done > $1
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
# Convert all .flac files under this folder to .wav files
|
||||
# source: several GitHub repos
|
||||
|
||||
find . -iname "*.flac" | wc
|
||||
|
||||
for flacfile in `find . -iname "*.flac"`
|
||||
do
|
||||
ffmpeg -y -f flac -i $flacfile -ab 64k -ac 1 -ar 16000 -f wav "${flacfile%.*}.wav"
|
||||
done
|
||||
Loading…
Reference in New Issue