Skip to content

Latest commit

 

History

History
78 lines (49 loc) · 2.88 KB

tts.md

File metadata and controls

78 lines (49 loc) · 2.88 KB

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

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.

Testing

  • Unit tests

    • TtsControllerUnittest in content/browser/speech

    • TtsControllerDelegateImplUnittest in chrome/browser/speech

    • ArcTtsServiceUnittest for ARC++ voices

  • Browser tests

    • TtsApiTest tests Chrome TTS extension APIs
  • Fuzzer

    • In content_unittests, content/browser/speech/tts_platform_fuzzer.cc (currently Windows only).