爱意满满的作品展示区。
minibear2021

包装了一个 Python 版 bing 翻译器,开源。

  •  
  •   minibear2021 ·
    minibear2021 · Jul 21, 2023 · 1581 views
    This topic created in 1052 days ago, the information mentioned may be changed or developed.

    后台调用的是 bing.com 提供的免费翻译器,支持中国区和国际区,不会插视频,效果见 B 站吧,自测速度还是不错的。

    https://www.bilibili.com/video/BV1L8411m7K8

    提醒一下,省着点用,不要把主人撸急了。

    开源版,地址:

    github

    gitee

    6 replies    2023-12-29 16:01:01 +08:00
    wangqianqian
        1
    wangqianqian  
       Jul 21, 2023
    好像 telegram 的机器人也可以做到类似的效果
    minibear2021
        2
    minibear2021  
    OP
       Jul 21, 2023
    @wangqianqian 不翻的情况下,cn.bing 还是挺好用的。
    ohayoo
        3
    ohayoo  
       Aug 22, 2023
    from cn_bing_translator import Translator

    if __name__ == "__main__":
    translator = Translator(fromLang='en', toLang='zh')
    source = "China Zhejiang Jinhua China Mobile Communications Corporation"
    result = translator.process(source)
    print(result)

    貌似不能英文翻中文
    minibear2021
        4
    minibear2021  
    OP
       Aug 22, 2023
    @ohayoo 中文请选 zh-Hans
    ohayoo
        5
    ohayoo  
       Aug 22, 2023
    @jstony #4 多谢 OP
    ohayoo
        6
    ohayoo  
       Dec 29, 2023
    用了几个月,现在挂了,不过还是谢谢 op
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   973 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 18:23 · PVG 02:23 · LAX 11:23 · JFK 14:23
    ♥ Do have faith in what you're doing.