diff --git a/examples/mandarin/run_demo_client.sh b/examples/deploy_demo/run_demo_client.sh similarity index 100% rename from examples/mandarin/run_demo_client.sh rename to examples/deploy_demo/run_demo_client.sh diff --git a/examples/mandarin/run_demo_server.sh b/examples/deploy_demo/run_english_demo_server.sh similarity index 73% rename from examples/mandarin/run_demo_server.sh rename to examples/deploy_demo/run_english_demo_server.sh index ca28a98d5..67532770c 100644 --- a/examples/mandarin/run_demo_server.sh +++ b/examples/deploy_demo/run_english_demo_server.sh @@ -13,7 +13,7 @@ cd - > /dev/null # download well-trained model -cd models/librispeech > /dev/null +cd models/baidu_en8k > /dev/null sh download_model.sh if [ $? -ne 0 ]; then exit 1 @@ -28,19 +28,19 @@ python -u deploy/demo_server.py \ --host_port=8086 \ --num_conv_layers=2 \ --num_rnn_layers=3 \ ---rnn_layer_size=2048 \ ---alpha=0.36 \ ---beta=0.25 \ ---cutoff_prob=0.99 \ +--rnn_layer_size=1024 \ +--alpha=1.15 \ +--beta=0.15 \ +--cutoff_prob=1.0 \ --cutoff_top_n=40 \ ---use_gru=False \ +--use_gru=True \ --use_gpu=True \ ---share_rnn_weights=True \ +--share_rnn_weights=False \ --speech_save_dir='demo_cache' \ --warmup_manifest='data/tiny/manifest.test-clean' \ ---mean_std_path='models/librispeech/mean_std.npz' \ ---vocab_path='models/librispeech/vocab.txt' \ ---model_path='models/librispeech/params.tar.gz' \ +--mean_std_path='models/baidu_en8k/mean_std.npz' \ +--vocab_path='models/baidu_en8k/vocab.txt' \ +--model_path='models/baidu_en8k/params.tar.gz' \ --lang_model_path='models/lm/common_crawl_00.prune01111.trie.klm' \ --decoding_method='ctc_beam_search' \ --specgram_type='linear' diff --git a/models/baidu_en8k/download_model.sh b/models/baidu_en8k/download_model.sh new file mode 100644 index 000000000..7d92fd52e --- /dev/null +++ b/models/baidu_en8k/download_model.sh @@ -0,0 +1,19 @@ +#! /usr/bin/env bash + +. ../../utils/utility.sh + +URL='To-be-added' +MD5=a19d40cb3b558eb696c44d883f32cfda +TARGET=./baidu_en8k_model.tar.gz + + +echo "Download BaiduEn8k model ..." +download $URL $MD5 $TARGET +if [ $? -ne 0 ]; then + echo "Fail to download BaiduEn8k model!" + exit 1 +fi +tar -zxvf $TARGET + + +exit 0