营销号视频生成器
营销号视频生成器~仅供娱乐
功能:自动生成文本,自动添加字幕,自动给视频配音(人声)
args.txt文件中的第五行进行设置
$ git clone https://github.com/wmathor/Rubbish-Video-Generator.git
moviepy == 1.0.0
python > 3.5
自行安装ImageMagick
缺少的库自行pip
如果报错'module 'websocket' has no attribute 'enableTrace'',请参考下面的解决方案
pip uninstall websocket pip uninstall websocket-client pip install websocket-client
in.mp4
in.mp3
args.txt文本中定义好主体、事件、另一种说法
args.txt文本中添加讯飞语音合成(流式版)的
APPID、
APIKey、
APISecret,以英文分号
;分隔
getVideo()
getText(file)
getLength(video)
add_audio(video, mp3, output='out.mp4')
subTitle(text_file, video_file, output='out_sub.mp4')
add_people(mp3_file, video_file)
clean()
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可