如何解决运行此 python 脚本以导入语音到文本模型时遇到运行时错误
import nemo
import ffmpeg
import nemo.collections.asr as nemo_asr
model = nemo_asr.models.EncDecCTCModel.from_pretrained(model_name="QuartzNet15x5Base-En")
files=["D:\archive\medical speech transcription and intent\Medical Speech,Transcription,and Intent\recordings\test\1249120_1853182_11719913.wav"]
transcription=model.transcribe(paths2audio_files=files)
我收到警告和运行时错误
警告:警告(“找不到 ffmpeg 或 avconv - 默认为 ffmpeg,但可能不起作用”,RuntimeWarning)
运行时错误: 已尝试在开始之前启动一个新进程 当前进程已完成其引导阶段。
This probably means that you are not using fork to start your
child processes and you have forgotten to use the proper idiom
in the main module:
if __name__ == '__main__':
freeze_support()
...
The "freeze_support()" line can be omitted if the program
is not going to be frozen to produce an executable.
任何有关如何进行的帮助将不胜感激!
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。