diff --git a/demos/echo/run.sh b/demos/echo/run.sh index c2379c3a741508460f98a0939f43517f7c0f16ca..a52d300f7f6f1e013ea3b2051ae238170668bd7b 100755 --- a/demos/echo/run.sh +++ b/demos/echo/run.sh @@ -10,8 +10,8 @@ test -e ${wav_zh} || wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh. pip install paddlehub -asr_en_cmd="import paddlehub as hub; model = hub.Module(name='u2_conformer_librispeech'); print(model.speech_recognize("${wav_en}", device='gpu'))" -asr_zh_cmd="import paddlehub as hub; model = hub.Module(name='u2_conformer_aishell'); print(model.speech_recognize("${wav_zh}", device='gpu'))" +asr_en_cmd="import paddlehub as hub; model = hub.Module(name='u2_conformer_librispeech'); print(model.speech_recognize(\"${wav_en}\", device='gpu'))" +asr_zh_cmd="import paddlehub as hub; model = hub.Module(name='u2_conformer_aishell'); print(model.speech_recognize(\"${wav_zh}\", device='gpu'))" python -c "${asr_en_cmd}" python -c "${asr_zh_cmd}" \ No newline at end of file