diff --git a/demos/automatic_video_subtitiles/README.md b/demos/automatic_video_subtitiles/README.md index b815425ec..9a403dc39 100644 --- a/demos/automatic_video_subtitiles/README.md +++ b/demos/automatic_video_subtitiles/README.md @@ -49,3 +49,11 @@ ffmpeg -i subtitle_demo1.mp4 -ac 1 -ar 16000 -vn input.wav Text Result: 当我说我可以把三十年的经验变成一个准确的算法,他们说不可能。当我说我们十个人就能实现对十九个城市变电站七乘二十四小时的实时监管,他们说不可能。 ``` + When English content needs to be recognized, you need to specify the model and language: + ```py + text = asr_executor( + audio_file='en.wav', + lang='en', + model='transformer_librispeech', + device=paddle.get_device()) + ```