Text to Speech in Chrome and Chrome OS

Chrome and Chrome OS allow developers to produce synthesized speech. This document is an overview of the relevant code and code structure around synthesized speech.

Code structure

A brief outline of the flow from speech request to the resulting speech on any platform.

Input

Processing

  • The TtsController processes utterances and sends them to the correct output engine

Output

  • May differ by system, including Mac, Wind, Android, Arc++, and Chrome OS

  • In Chrome OS:

    • TtsEngineExtensionAPI forwards speech events to PATTS, or the network speech engine, or, coming soon, third-party speech engines.

    • PATTS is the built-in Chrome OS text-to-speech engine.