From 4ab85d1b224c37d379d8045a64eb68441ba95b14 Mon Sep 17 00:00:00 2001 From: Zth9730 <32243340+Zth9730@users.noreply.github.com> Date: Thu, 10 Nov 2022 19:33:41 +0800 Subject: [PATCH] PP-ASR (#5572) * add PP-ASR * add PP-ASR * add PP-ASR * add PP-ASR * add PP-ASR --- modelcenter/PP-ASR/introduction_cn.ipynb | 5 +++-- modelcenter/PP-ASR/introduction_en.ipynb | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) mode change 100755 => 100644 modelcenter/PP-ASR/introduction_cn.ipynb mode change 100755 => 100644 modelcenter/PP-ASR/introduction_en.ipynb diff --git a/modelcenter/PP-ASR/introduction_cn.ipynb b/modelcenter/PP-ASR/introduction_cn.ipynb old mode 100755 new mode 100644 index 12e9618e..c3eda04e --- a/modelcenter/PP-ASR/introduction_cn.ipynb +++ b/modelcenter/PP-ASR/introduction_cn.ipynb @@ -98,7 +98,8 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install paddlespeech" + "!pip install paddlespeech==1.2.0\n", + "!pip install paddleaudio==1.0.1\n" ] }, { @@ -133,7 +134,7 @@ "from paddlespeech.cli.asr.infer import ASRExecutor\n", "audio = \"zh.wav\"\n", "asr = ASRExecutor()\n", - "result = asr(audio_file=audio)\n", + "result = asr(audio_file=audio, model='conformer_online_wenetspeech')\n", "print(result)" ] }, diff --git a/modelcenter/PP-ASR/introduction_en.ipynb b/modelcenter/PP-ASR/introduction_en.ipynb old mode 100755 new mode 100644 index 093423fe..53c7d668 --- a/modelcenter/PP-ASR/introduction_en.ipynb +++ b/modelcenter/PP-ASR/introduction_en.ipynb @@ -98,7 +98,8 @@ "metadata": {}, "outputs": [], "source": [ - "!pip install paddlespeech" + "!pip install paddlespeech==1.2.0\n", + "!pip install paddleaudio==1.0.1" ] }, { @@ -133,7 +134,7 @@ "from paddlespeech.cli.asr.infer import ASRExecutor\n", "audio = \"zh.wav\"\n", "asr = ASRExecutor()\n", - "result = asr(audio_file=audio)\n", + "result = asr(audio_file=audio, model='conformer_online_wenetspeech')\n", "print(result)" ] }, -- GitLab