首页 > 解决方案 > 无法安装 deepspeech 服务器

问题描述

我是 python 新手,我想在我的 Windows 系统上设置 deepspeech 服务器,以便它可以作为服务在后台运行,并且任何应用程序都可以访问数据,

https://pypi.org/project/deepspeech-server/

我也检查了这个链接

如何在 PHP Web 应用程序中实现 Mozilla DeepSpeech 以将语音转换为文本?

但是在运行这个命令时我得到了这个错误:

deepspeech-server --config config.json

'deepspeech-server' 不是内部或外部命令、可运行程序或批处理文件。

我已经在我的 Windows 系统上设置了 deepspeech,并且正在工作和转录数据。

在此处输入图像描述

但我想安装 deepspeech 服务器也可以在后台运行服务。我在 Windows 10 64 位上安装它

请有任何建议,谢谢

标签: python-3.xmozilla-deepspeech

解决方案


运行 python 脚本以在后台运行的最简单方法是使用 cronjob 功能(在 macOS 和 Linux 中)。在windows中,我们可以使用

Windows 任务计划程序

然后,您可以通过提供时间细节来提供在特定时间运行的 python 脚本文件的路径。

参考: https ://medium.com/analytics-vidhya/easiest-way-to-run-a-python-script-in-the-background-4aada206cf29#:~:text=The%20easiest%20way%20of%20running ,can%20use%20Windows%20Task%20Scheduler.&text=你%20can%20then%20give%20the,by%20giving%20the%20time%20详情


推荐阅读