Retrieve sound from MedDict Database of a specific word, from its id.

GET /words/sound/{lang}/{id}

Get the sound of a specific word, from its id and target language. The sound is retrieved from gTTS library.

Path parameters

  • lang string Required

    The target language to retrieve the sound from. Must be either "en" or "vn".

    Values are en or vn.

  • id string Required

    The id of the word to retrieve the sound from.

Responses

  • 200 audio/mpeg

    OK, with a blob of sound.

  • 404

    The word id's is not found.

GET /words/sound/{lang}/{id}
curl \
 -X GET http://localhost:5000/words/sound/{lang}/1