Tencent Cloud

使用腾讯云 API 密钥调用腾讯云各种服务,包括翻译、CVM、COS等。

caoronglin f7cd34b 2 files · 5.3 KB Updated

File contents

腾讯云 API (Tencent Cloud API)

环境变量

需在 .env 中配置:

TENCENT_SECRET_ID=your_tencent_secret_id_here
TENCENT_SECRET_KEY=your_tencent_secret_key_here

使用方法

命令行翻译

python3 /mnt/workspace/.copaw/active_skills/tencent-cloud/tencent_api.py translate <文本> [目标语言]

支持的语言

代码 语言
zh 中文
en 英文
ja 日语
ko 韩语
fr 法语
de 德语
es 西班牙语
it 意大利语
ru 俄语
pt 葡萄牙语
ar 阿拉伯语
hi 印地语

示例

# 英文翻译成中文
python3 tencent_api.py translate "hello world" zh
# 输出: 你好世界

# 中文翻译成英文
python3 tencent_api.py translate "酶工程" en
# 输出: enzyme engineering

# 日语翻译成中文
python3 tencent_api.py translate "こんにちは" zh
# 输出: 你好

官方文档

caoronglin/copaw-skills/tree/main/skills/tencent-cloud commit f7cd34bbfe

Frequently asked questions

npx skillmds@latest add caoronglin/tencent-cloud