API
和 Web界面
1080x1920
1920x1080
字体
、位置
、颜色
、大小
,同时支持字幕描边
设置背景音乐音量
中国用户建议使用 DeepSeek 或 Moonshot 作为大模型提供商(国内可直接访问,不需要VPN。注册就送额度,基本够用)
免去本地环境配置,点击直接在 Google Colab 中快速体验 MoneyPrinterTurbo
下载一键启动包,解压直接使用(路径不要有 中文、特殊字符、空格)
下载后,建议先双击执行 update.bat
更新到最新代码,然后双击 start.bat
启动
启动后,会自动打开浏览器(如果打开是空白,建议换成 Chrome 或者 Edge 打开)
config.example.toml
文件复制一份,命名为 config.toml
config.toml
文件中的说明,配置好 pexels_api_keys
和 llm_provider
,并根据 llm_provider 对应的服务商,配置相关的 API Key如果未安装 Docker,请先安装 https://www.docker.com/products/docker-desktop/
如果是Windows系统,请参考微软的文档:
注意:最新版的docker安装时会自动以插件的形式安装docker compose,启动命令调整为docker compose up
打开浏览器,访问 http://0.0.0.0:8501
打开浏览器,访问 http://0.0.0.0:8080/docs 或者 http://0.0.0.0:8080/redoc
视频教程
建议使用 conda 创建 python 虚拟环境
Windows:
配置文件 config.toml
中的 imagemagick_path
为你的 实际安装路径MacOS:
Ubuntu:
CentOS:
注意需要到 MoneyPrinterTurbo 项目 根目录
下执行以下命令
启动后,会自动打开浏览器(如果打开是空白,建议换成 Chrome 或者 Edge 打开)
启动后,可以查看 API文档
http://127.0.0.1:8080/docs 或者 http://127.0.0.1:8080/redoc 直接在线调试接口,快速体验。
所有支持的声音列表,可以查看:[声音列表](./docs/voice-list.txt)
2024-04-16 v1.1.2 新增了9种Azure的语音合成声音,需要配置API KEY,该声音合成的更加真实。
当前支持2种字幕生成方式:
可以修改 config.toml
配置文件中的 subtitle_provider
进行切换
建议使用 edge
模式,如果生成的字幕质量不好,再切换到 whisper
模式
由于国内无法访问 HuggingFace,可以使用以下方法下载 whisper-large-v3
的模型文件
模型下载后解压,整个目录放到 .\MoneyPrinterTurbo\models
里面,
最终的文件路径应该是这样:
用于视频的背景音乐,位于项目的 resource/songs
目录下。
用于视频字幕的渲染,位于项目的 resource/fonts
目录下,你也可以放进去自己的字体。
通常情况下,ffmpeg 会被自动下载,并且会被自动检测到。
但是如果你的环境有问题,无法自动下载,可能会遇到如下错误:
此时你可以从 https://www.gyan.dev/ffmpeg/builds/ 下载ffmpeg,解压后,设置 ffmpeg_path
为你的实际安装路径即可。
可以在ImageMagick的配置文件policy.xml中找到这些策略。
这个文件通常位于 /etc/ImageMagick-X
/ 或 ImageMagick 安装目录的类似位置。
修改包含pattern="@"
的条目,将rights="none"
更改为rights="read|write"
以允许对文件的读写操作。
这个问题是由于系统打开文件数限制导致的,可以通过修改系统的文件打开数限制来解决。
查看当前限制
如果过低,可以调高一些,比如
LocalEntryNotfoundEror: Cannot find an appropriate cached snapshotfolderfor the specified revision on the local disk and outgoing trafic has been disabled. To enablerepo look-ups and downloads online, pass 'local files only=False' as input.
或者
An error occured while synchronizing the model Systran/faster-whisper-large-v3 from the Hugging Face Hub: An error happened while trying to locate the files on the Hub and we cannot find the appropriate snapshot folder for the specified revision on the local disk. Please check your internet connection and try again. Trying to load the model directly from the local cache, if it exists.
解决方法:点击查看如何从网盘手动下载模型
可以提交 issue 或者 pull request。
点击查看 `LICENSE` 文件