Speech Blocks
Last updated
Last updated
Speech blocks allow you to incorporate spoken language or text-to-speech functionality into your app. You can use these blocks to make your app speak specific messages, responses, or user inputs aloud, enhancing accessibility and interaction for users who prefer or require auditory cues. By utilizing speech blocks, you enable your app to communicate verbally with users, providing information or instructions in a spoken format.
The "say [text] in [language]" block reads a piece of text aloud in a specified language.
Please refer to IETF BCP 47 to see valid codes.
Incorporating text-to-speech functionality brings written words to life by converting them into spoken audio. In this tutorial, we’ll add text-to-speech functionality to a translation app.
When the "&" symbol exists on the text, the translate block doesn't translate text after the "&". Please check below the screenshot for a workaround to solve this issue.
Template app:
Click Copy Project in the upper right.
The "translate" block translates text from one language to another. It is powered by Yandex.
In this tutorial, we’ll build a translation app that translates the user’s text input from one language to another.
The "recognize speech" block recognizes the language of a piece of audio. It returns a text transcription of the speech.
It is a known limitation that the "recognize speech" block doesn't return the last word on Android devices.