Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

百度小语种翻译支持 #89

Open
BigMy opened this issue Oct 30, 2024 · 12 comments
Open

百度小语种翻译支持 #89

BigMy opened this issue Oct 30, 2024 · 12 comments

Comments

@BigMy
Copy link

BigMy commented Oct 30, 2024

大佬,我想用百度api把目标语言翻译成小语种,不再默认的语言list里面,我如何操作才可以指定目标语种啊

@1c7
Copy link
Owner

1c7 commented Oct 30, 2024

现在暂时不行,不可以自己输入语言 code

@1c7
Copy link
Owner

1c7 commented Oct 30, 2024

https://fanyi-api.baidu.com/product/113

我刚看了一眼,语种还是很多的,你需要哪个语言?

@1c7
Copy link
Owner

1c7 commented Oct 30, 2024

你说一下你需要的语言,我可以很快的改一下网页版(不过网页版需要翻墙使用,因为后端是谷歌云)

@1c7
Copy link
Owner

1c7 commented Oct 30, 2024

通用翻译API支持语种数已达 201种,完整列表如下。其中,对于常见语种列表内的语种,所有用户均可调用。对于非常见语种,仅企业已认证的尊享版用户可调用,未认证的非尊享版用户调用将返回错误。

https://fanyi-api.baidu.com/doc/21
image

@1c7
Copy link
Owner

1c7 commented Oct 30, 2024

image

@BigMy
Copy link
Author

BigMy commented Nov 4, 2024

你说一下你需要的语言,我可以很快的改一下网页版(不过网页版需要翻墙使用,因为后端是谷歌云)

马来语和印尼语!感谢,翻墙ok的

@1c7
Copy link
Owner

1c7 commented Nov 4, 2024

能否麻烦你提供 2 个字幕文件方便我测试呢?一个马来语,一个印尼语,我测试一下翻译成中文

@1c7
Copy link
Owner

1c7 commented Nov 4, 2024

字幕文件格式是 .srt .ass .vtt 都可以

@BigMy
Copy link
Author

BigMy commented Nov 6, 2024

没有,现在场景只有cn to id / cn to may😂

@1c7
Copy link
Owner

1c7 commented Nov 6, 2024

对于非常见语种,仅企业已认证的尊享版用户可调用,未认证的非尊享版用户调用将返回错误。

image

马来语和印尼语在百度这里属于非常见语种。
我自己没办法测试,因为我没有尊享版(要求企业认证)

image

@1c7
Copy link
Owner

1c7 commented Nov 6, 2024

image

线上生产环境 tern.1c7.me 我已经改好了,你如果有"尊享版"可以开始使用了。

@1c7
Copy link
Owner

1c7 commented Nov 6, 2024

新的改动已部署上线,可以开始使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants