Glazelf / NinigiBot

Verified & fully free Discord bot bringing you information and moderation.
GNU General Public License v3.0
19 stars 10 forks source link

Dictionary Voice Memos #933

Open Glazelf opened 2 months ago

Glazelf commented 2 months ago

Feature Description

Add pronounciation as attachment instead of link. Or both. Pronounciation .mp3 files can be found under the pronounciation entries. Example:

[
    {
        "word": "word",
        "phonetic": "/wɜːd/",
        "phonetics": [
            {
                "text": "/wɜːd/",
                "audio": ""
            },
            {
                "text": "/wɝd/",
                "audio": "https://api.dictionaryapi.dev/media/pronunciations/en/word-us.mp3",
                "sourceUrl": "https://commons.wikimedia.org/w/index.php?curid=1197728",
                "license": {
                    "name": "BY-SA 3.0",
                    "url": "https://creativecommons.org/licenses/by-sa/3.0"
                }
            }
        ]
    }
]
Glazelf commented 2 months ago

Dependent on https://github.com/discordjs/discord.js/pull/10462.