Speech Blocks
Overview
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.
Text-to-Speech
The "say [text] in [language]" block reads a piece of text aloud in a specified language.
Regular Block

Advanced Block
To access the advanced version of a block:
Drag and drop the regular block into your workspace.
Right-click on the block.
Select Show advanced block.
Inputs
text
Text to generate speech.
language
A parameter that specifies the preferred language for the generated speech. Please refer to IETF BCP 47 for the valid codes.
pitch
A parameter that defines the baseline pitch the speech synthesizer uses when speaking the utterance. Set this property to a value within the range of 0.5 for lower pitch to 2.0 for higher pitch. The default value is 1.0.
rate
A parameter that defines the rate the speech synthesizer uses when speaking the utterance. Lower values correspond to slower speech, and higher values correspond to faster speech.
Outputs
error
If an error is encountered while making the API call, the error block returns the error message.
Note
The sound plays automatically by the "say [text] in [language]" block. It is not possible to pause or stop the sound.
Video Tutorial
How to Create a Text-to-Speech App in Thunkable
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: https://x.
Click Copy Project in the upper right.
Translation
The "translate" block translates text from one language to another. It is powered by Google Translate.

Video Tutorial
How to Build a Translation App in Thunkable
In this tutorial, we’ll build a translation app that translates the user’s text input from one language to another.
Recognize Speech
The "recognize speech" block recognizes the language of a piece of audio. It returns a text transcription of the speech.

Last updated
Was this helpful?