Articles

Text-to-speech (TTS): integrating automatic spoken messages with other systems

· Frederico Conte

With text-to-speech (TTS), a spoken message is generated from text, on the spot. That lets other systems “speak” through the loudspeakers, with content that changes every time, without recording new audio.

Where it is useful

  • Messages with variable data: a dock number, a time, the name of a department.
  • Events from other systems: a machine alarm, an open gate, a completed process step.
  • Many different messages: when recording each one would be impractical.
  • More than one language: the same message generated in different languages.

How the integration works

  1. A system raises the event: automation, a management system, access control, a schedule.
  2. The text is assembled: from a template, with the event’s data (“Truck with plate X, please go to dock 4”).
  3. The TTS engine generates the audio: on a local server or a cloud service.
  4. The audio goes to the sound system: through an audio input, over the network (for example, via SIP or RTP) or as a file, with the zone and priority defined.

Precautions

  • Pronunciation: acronyms, proper names, numbers and plates need reading rules. Most engines accept markup (SSML) to indicate pauses, spelling and emphasis. Every new message should be listened to before it goes into use.
  • Local or cloud: a local engine works without the internet and responds quickly. A cloud service usually has more natural voices, but depends on the connection.
  • Delay: generating the audio takes some time. Frequent messages can be generated in advance and stored.
  • Critical messages: for safety announcements, a recorded and tested version should exist as a fallback in case TTS fails.
  • Logging: recording which message was spoken, where and when helps investigate incidents.

Intelligibility

A clear synthetic voice still depends on the sound system and the space. A slightly slower speaking rate, short sentences and pauses between pieces of information greatly improve understanding in noisy places.

Want your systems to generate automatic spoken messages? Talk to CONTE.