From a6cdadc803e1ae1e0c7c3483c4831a72c3de2b5d Mon Sep 17 00:00:00 2001 From: ljh <1964732206@qq.com> Date: Thu, 14 Mar 2024 21:17:05 +0800 Subject: [PATCH] Update README_cn.md When English content needs to be recognized, you need to specify the model and language --- demos/automatic_video_subtitiles/README_cn.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/demos/automatic_video_subtitiles/README_cn.md b/demos/automatic_video_subtitiles/README_cn.md index 990ff6db..5a4b7e45 100644 --- a/demos/automatic_video_subtitiles/README_cn.md +++ b/demos/automatic_video_subtitiles/README_cn.md @@ -44,3 +44,11 @@ ffmpeg -i subtitle_demo1.mp4 -ac 1 -ar 16000 -vn input.wav Text Result: 当我说我可以把三十年的经验变成一个准确的算法,他们说不可能。当我说我们十个人就能实现对十九个城市变电站七乘二十四小时的实时监管,他们说不可能。 ``` + 当需要识别英文内容时,需要指定模型和语言: + ```py + text = asr_executor( + audio_file='en.wav', + lang='en', + model='transformer_librispeech', + device=paddle.get_device()) + ```