1 Star 0 Fork 5

muicx/GhostCut-自动视频翻译软件

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
call.py 829 Bytes
一键复制 编辑 原始数据 按行查看 历史
zyj 提交于 2年前 . add call api code
# -*- coding: utf-8 -*-
# https://jollytoday.feishu.cn/docx/T971dwGEko0Q6PxN24DcWQOKnQf
import requests
import hashlib
import json
from sign import get_sign
url="https://api.zhaoli.com/v-w-c/gateway/ve/work/translation"
body=json.dumps({
"urls": ["http://xxx/yyy.mp4"],
"voice": 1,
"wyVoiceParam": 62,
"lang": "en",
"sourceLang": "zh",
"removeBgAudio": 1,
"needChineseOcclude": 1,
"needTrim": 0,
"needMask": 0,
"needMirror": 0,
"needRescale": 0,
"music": 0,
"musicRegion": "",
"resolution": 1,
"callback": ""
})
sign = get_sign(body)
print(sign)
headers = {
'Content-type': 'application/json',
'AppKey': appKey,
'AppSign': sign,
}
result=requests.post(url, data=body, headers= headers).json()
# {"code":1000,"msg":"success","body":"ok"}
print(result)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bradhuang/GhostCut.git
git@gitee.com:bradhuang/GhostCut.git
bradhuang
GhostCut
GhostCut-自动视频翻译软件
main

搜索帮助