No Description

liyuyi@c-top.com.cn c07901076e add 4 years ago
.idea e0f51a5335 'update' 4 years ago
config e121efe736 add 4 years ago
data e121efe736 add 4 years ago
logs e121efe736 add 4 years ago
__init__.py 5e6e6df358 'init' 4 years ago
asr_client.py 5e6e6df358 'init' 4 years ago
common_func.py e121efe736 add 4 years ago
database.py 5e6e6df358 'init' 4 years ago
get_data.py 5f502cf47e add 4 years ago
get_high_quality_script.py e121efe736 add 4 years ago
get_script_from_tengxunyun.py e121efe736 add 4 years ago
get_video_from_ocean_engine.py e121efe736 add 4 years ago
main.py f8b0d965de task_submit 添加异常处理:提取原始文本内容和分词内容发生异常,把 task_status 置为 -1 4 years ago
readme.md c07901076e add 4 years ago

readme.md

项目功能介绍

1、每周日从巨量引擎获取近一周的优质素材。 (项目名称可以配置)

(素材数据存为了两张表:ctop_ai_material_info_from_ocean_engine 和 ctop_ai_video_info_from_ocean_engine)

2、每周一导出指定项目近一周的公司内部高质量&低质量素材,巨量引擎优质素材的脚本。(项目名称可以配置)

3、每次请求腾讯云的语音转脚本服务,会过根据md5滤掉已经请求过的素材。

项目启动说明

1、git clone 最新代码 git clone http://git.tjyourong.com.cn/liyuyi/video-to-word.git

2、启动获取腾讯云语音转脚本的服务 切换到目录: cd /data/pythonProject/video-to-word nohup /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/main.py >/dev/null 2>&1 &

3、定时任务配置 3-1 定期从巨量引擎获取优质素材,并转化为脚本。每周日晚上10:30执行一次 30 20 * * 7 /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_video_from_ocean_engine.py >> /data/pythonProject/video-to-word/logs/get_video_from_ocean_engine.log &

-- for test nohup /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_video_from_ocean_engine.py >> /data/pythonProject/video-to-word/logs/get_video_from_ocean_engine.log &

3-2 每周导出内部高质量&低质量,巨量引擎优质素材的脚本。每周一早上08:30 执行一次 30 8 * * 1 /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_high_quality_script.py >> /data/pythonProject/video-to-word/logs/get_high_quality_script.log &

-- for test nohup /data/Miniconda3/envs/video-to-word/bin/python -u /data/pythonProject/video-to-word/get_high_quality_script.py >> /data/pythonProject/video-to-word/logs/get_high_quality_script.log &

4、查看执行日志 cd /data/pythonProject/video-to-word/logs tail -f /data/pythonProject/video-to-word/logs/get_high_quality_script.log tail -f /data/pythonProject/video-to-word/logs/get_video_from_ocean_engine.log

配置定时任务: 查看定时任务:crontab -l 编辑定时任务:crontab -e