RealKai42 / qwerty-learner

为键盘工作者设计的单词记忆与英语肌肉记忆锻炼软件 / Words learning and English muscle memory training software designed for keyboard workers
https://qwerty.kaiyi.cool/
GNU General Public License v3.0
15.61k stars 1.48k forks source link

【bug】有道日语发音API在发送同一个单词的日语汉字和假名时返回不同语音 #756

Closed Oshibuki closed 8 months ago

Oshibuki commented 8 months ago

https://dict.youdao.com/dictvoice?audio=%E3%81%AF%E3%81%97&le=jap (はし) https://dict.youdao.com/dictvoice?audio=%E7%AE%B8&le=jap(箸

个人认为可能有用的方法: 不使用name字段,而改用notation.replaceAll(/(.+?)/g,‘’),即notation的值去掉括号内容传给api查询语言

{
        "name": "igai",
        "trans": [
            "⓪ 名·ナ形  意外;意想不到的"
        ],
        "notation": "意外(いがい)"
    },