Merge pull request #971 from zh794390558/demo

[WIP]asr demo
pull/977/head
TianYuan 3 years ago committed by GitHub
commit b55582ea36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1 @@
data

@ -0,0 +1,3 @@
# echo system
ASR + TTS

@ -0,0 +1,17 @@
#!/bin/bash
mkdir -p data
wav_en=data/en.wav
wav_zh=data/zh.wav
test -e ${wav_en} || wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/en.wav -P data
test -e ${wav_zh} || wget -c https://paddlespeech.bj.bcebos.com/PaddleAudio/zh.wav -P data
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'))"
python -c "${asr_en_cmd}"
python -c "${asr_zh_cmd}"
Loading…
Cancel
Save