forked from santi-pdp/segan
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclean_wav.sh
More file actions
executable file
·26 lines (21 loc) · 925 Bytes
/
clean_wav.sh
File metadata and controls
executable file
·26 lines (21 loc) · 925 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# guia file containing pointers to files to clean up
if [ $# -lt 1 ]; then
echo 'ERROR: at least wavname must be provided!'
echo "Usage: $0 <guia_file> [optional:save_path]"
echo "If no save_path is specified, clean file is saved in current dir"
exit 1
fi
NOISY_WAVNAME="$1"
SAVE_PATH="."
if [ $# -gt 1 ]; then
SAVE_PATH="$2"
fi
echo "INPUT NOISY WAV: $NOISY_WAVNAME"
echo "SAVE PATH: $SAVE_PATH"
mkdir -p $SAVE_PATH
CUDA_VISIBLE_DEVICES="0" python main.py --init_noise_std 0. --save_path segan_cctv_and_tts \
--batch_size 32 --g_nl prelu --weights SEGAN-161508 \
--preemph 0.95 --bias_deconv True \
--bias_downconv True --bias_D_conv True \
--test_wav $NOISY_WAVNAME --save_clean_path $SAVE_PATH --test_wav_list list.txt