Speech Blocks
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
Template app:
Click Copy Project in the upper right.
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.
Please refer to to see valid codes.
Click:
The "translate" block translates text from one language to another. It is powered by .