blob: c21fc3d0ca1c43c88b3fec55df226cc745829df8 [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.accessibility.tts;
/// An interface for TTS Engines provide speech output.
@discoverable
closed protocol EngineRegistry {
/// A TTS engine registers itself to start listening for incoming speech
/// output requests through `engine`.
/// At the moment, only one TTS Engine can be registered at a time.
/// This registry owners the first engine to register itself.
/// If an engine crashes and wants to register again, calling this method
/// will restart the connection. An error is returned if another engine is
/// already registered.
strict RegisterEngine(resource struct {
engine client_end:Engine;
}) -> () error Error;
};