Skip to content

Commit

Permalink
fixed help message to enable line break
Browse files Browse the repository at this point in the history
  • Loading branch information
kan-bayashi committed Aug 8, 2019
1 parent 36bdb9a commit 2cac52b
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion utils/data2json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ EOF
. utils/parse_options.sh

if [ $# != 2 ]; then
echo $help_message 1>&2
echo "${help_message}" 1>&2
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/dump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ logdir=$3
dumpdir=$4

if [ $# != 4 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/dump_pcm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [ -f path.sh ]; then . ./path.sh; fi
. parse_options.sh || exit 1;

if [ $# -lt 1 ] || [ $# -gt 3 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/eval_source_separation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ EOF
. utils/parse_options.sh

if [ $# != 3 ]; then
echo $help_message 1>&2
echo "${help_message}" 1>&2
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/feat_to_shape.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ echo "$0 $*" 1>&2 # Print the command line for logging
. parse_options.sh || exit 1;

if [ $# -lt 2 ] || [ $# -gt 3 ]; then
echo $help_message 1>&2
echo "${help_message}" 1>&2
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/make_fbank.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ echo "$0 $*" # Print the command line for logging
. parse_options.sh || exit 1;

if [ $# -lt 1 ] || [ $# -gt 3 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/make_stft.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ echo "$0 $*" # Print the command line for logging
. parse_options.sh || exit 1;

if [ $# -lt 1 ] || [ $# -gt 3 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/pack_model.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ EOF
. utils/parse_options.sh

if [ $# != 4 ]; then
echo $help_message
echo "${help_message}"
exit 1
fi

Expand Down
4 changes: 2 additions & 2 deletions utils/reduce_data_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
help_message="usage: $0 srcdir turnlist destdir"

if [ $1 == "--help" ]; then
echo $help_message
echo "${help_message}"
exit 0;
fi

if [ $# != 3 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/remove_longshortdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ help_message="usage: $0 olddatadir newdatadir"
. utils/parse_options.sh || exit 1;

if [ $# != 2 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
2 changes: 1 addition & 1 deletion utils/score_sclite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ help_message="Usage: $0 <data-dir> <dict>"
. utils/parse_options.sh

if [ $# != 2 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down
20 changes: 17 additions & 3 deletions utils/synth_wav.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,25 @@ models=ljspeech.transformer.v1

help_message=$(cat <<EOF
Usage:
$0 <text>
$ $0 <text>
Example:
echo \"This is a demonstration of text to speech.\" > example.txt
# make text file and then generate it
echo "This is a demonstration of text to speech." > example.txt
$0 example.txt
# you can specify the pretrained models
$0 --models ljspeech.tacotron2.v3 example.txt
Available models:
- libritts.tacotron2.v1
- ljspeech.tacotron2.v1
- ljspeech.tacotron2.v2
- ljspeech.tacotron2.v3
- ljspeech.transformer.v1
- ljspeech.transformer.v2
- ljspeech.fastspeech.v1
- ljspeech.fastspeech.v2
EOF
)
. utils/parse_options.sh || exit 1;
Expand All @@ -64,7 +78,7 @@ txt=$1
download_dir=${decode_dir}/download

if [ $# -ne 1 ]; then
echo $help_message
echo "${help_message}"
exit 1;
fi

Expand Down

0 comments on commit 2cac52b

Please sign in to comment.