Skip to main content
Category: Display · Reads data: text · Sends commands: no

Mental model

A Text to Speech widget is a loudspeaker. Give it text — static or pushed from a device — and it reads it aloud. The reverse of Voice to Text.

When to use it

  • Spoken alerts and announcements
  • Accessibility / hands-free readout

Settings

General

  • Voice · rate · pitch · volume
  • Auto play · loop playback
  • Show controls

Example — speak an alert from firmware

device.updateWidget(targetId, "announcer", String("Tank is full"));

Script API example

The same interactions from a dashboard script:
// Speak when a switch arms the alarm
widget.on('alarmSwitch', 'on', () => widget.setValue('announcer', 'Alarm armed'));

Voice to Text

The reverse — speech to text.