synthesis-service.
and translate-service.
APIsThese retrieve the speech synthesis and translation results for their respective extensions.
https://translate-service.scratch.mit.edu/
GET /translate?language=<locale>&text=<text>
Retrieves the translation of the input text in the given language. locale
is generally a two-letter language code. Refer to this gist for a list of supported languages, or check the exports from scratch-translate-extension-languages
.
Uses Google Translate as of Dec. 9, 2019.
GET https://translate-service.scratch.mit.edu/supported
Retrieves a list of supported language codes for translating text.
Legacy endpoint - still online, but no longer used.
https://synthesis-service.scratch.mit.edu/
GET /synth?locale=<speech locale>&gender=<gender>&text=<text>
Retrieves the synthesis of the input text as an audio file. gender
is either “male” or “female”; speech locale
is a “speech synth locale” as described in the extension’s source code.
Likely uses Amazon Polly.