slide to video
1.0.0
將幻燈片轉換為視頻的工具,並配有您的語音敘述。支持多種語言。
在Ubuntu 20.04上測試。
ffmpeg : sudo apt-get install ffmpegpip 。git clone [email protected]:Changochen/slide-to-video.git
cd slide-to-video
pip install .slide-to-videoNEWSLIDE分開。slide-to-video --model MODEL_NAME --slide slide --script script --output-dir OUTPUT_PATH --config ADDITIONAL_CONFIG.yaml使用本地語音模型:
slide-to-video --model local --slide example/slide.pdf --script example/script.txt --voice example/sample.mp3 --output-dir output最終視頻將在OUTPUT_PATH目錄中以output.mp4形式生成。
有關更多選項,包括調整語音速度,運行:
slide-to-video --help當前支持的模型:
當前支持的語言:“ en”,“ es”,“ fr”,“ de”,“ it”,“ pt”,“ pl”,“ pl”,“ tr”,“ ru”,“ nl','cs','cs','ar','zh-cn','hu','hu','ko',ko',ja',ja',ja',hi hi'hi''hi'hi''
生成視頻後,輸出目錄將包含一個project.yaml文件,該文件有助於跳過未改變內容的生成。如果輸入保持不變,則該工具會跳過視頻生成過程。
如果修改幻燈片,腳本或設置(例如語音速度),則該工具會再生受影響的內容。要強制特定零件的再生,請在輸出目錄中設置project.yaml中相應項目的force_reset字段。
要支持新的語音模型,您需要在src/slide_to_video/tts_engine中實現新類,並通過調用register_engine註冊類(請參見此處的示例)。
> You must confirm the following:
| > "I have purchased a commercial license from Coqui: [email protected]"
| > "Otherwise, I agree to the terms of the non-commercial CPML: https://coqui.ai/cpml" - [y/n]
| | >
y即可。