TenMinsHot

所属分类:语音合成
开发工具:Python
文件大小:42728KB
下载次数:0
上传日期:2023-04-28 07:23:35
上 传 者sh-1993
说明:  《十分热》是每日自动生成的十分钟左右的时事快讯视频节目。原理是爬取腾讯新闻,用ChatGpt总结,并用微软TTS朗读。
(Very Hot "is a daily, automatically generated ten minute current affairs news video program. The principle is to crawl Tencent News, summarize it using ChatGpt, and read it aloud using Microsoft TTS.)

文件列表:
.pylintrc (18278, 2023-04-28)
.style.yapf (82, 2023-04-28)
LICENSE (11357, 2023-04-28)
Pipfile (385, 2023-04-28)
Pipfile.lock (77196, 2023-04-28)
assets (0, 2023-04-28)
assets\fonts (0, 2023-04-28)
assets\fonts\NotoSansSC (0, 2023-04-28)
assets\fonts\NotoSansSC\NotoSansSC-Black.otf (8933432, 2023-04-28)
assets\fonts\NotoSansSC\NotoSansSC-Bold.otf (8698908, 2023-04-28)
assets\fonts\NotoSansSC\NotoSansSC-Light.otf (8416952, 2023-04-28)
assets\fonts\NotoSansSC\NotoSansSC-Medium.otf (8491248, 2023-04-28)
assets\fonts\NotoSansSC\NotoSansSC-Regular.otf (8464912, 2023-04-28)
assets\fonts\NotoSansSC\NotoSansSC-Thin.otf (7799468, 2023-04-28)
assets\fonts\NotoSansSC\OFL.txt (4444, 2023-04-28)
example.config.json (202, 2023-04-28)
generator.sh (2471, 2023-04-28)
graphviz.svg (6090, 2023-04-28)
process.dot (492, 2023-04-28)
requirements.txt (154, 2023-04-28)
src (0, 2023-04-28)
src\class_news.py (452, 2023-04-28)
src\news_generator.py (7138, 2023-04-28)
src\util.py (949, 2023-04-28)
src\util_bilibili.py (2607, 2023-04-28)
src\util_news.py (1227, 2023-04-28)
src\util_request.py (2076, 2023-04-28)
src\util_summarize.py (3286, 2023-04-28)
src\util_tencent_news.py (7048, 2023-04-28)
src\util_tts.py (1850, 2023-04-28)
src\util_video.py (12506, 2023-04-28)
src\video_uploader.py (1584, 2023-04-28)

# TenMinsHot 《十分热》是每日自动生成的十分钟左右的时事快讯视频节目 https://space.bilibili.com/695795/video ## 原理流程图 ![process](https://github.com/RogerRordo/TenMinsHot/blob/master/./graphviz.svg) ## 用法 1. 安装 python 3.9 和 [pipenv](https://github.com/RogerRordo/TenMinsHot/blob/master/https://pythonguidecn.readthedocs.io/zh/latest/dev/virtualenvs.html) 2. 在本目录下运行 `pipenv install` 以安装依赖 3. 复制 `example.config.json` 为 `config.json`,并填入 openai 的 api key 和*** proxy(如果需要,否则为空) 4. 在本目录下运行 `./generator.sh` 5. 如无意外,将生成当日新闻视频在 `./data/{YYYYMMDD}/video.mp4` 若在 `config.json` 中按[bilibili-api的doc](https://github.com/RogerRordo/TenMinsHot/blob/master/https://nemo2011.github.io/bilibili-api/#/get-credential)配上B站cookies,可将第四步改为 `./generator.sh --upload` 直接在生成视频后自动上传B站。如果要上传已经生成好的视频,请用 ``` pipenv run python3 src/video_uploader.py upload-to-bilibili \ --date {date} \ --video_file {video_file} \ --cover_file {cover_file} \ --description_file {description_file} ```

近期下载者

相关文件


收藏者