Interface SynthesisBackend

All Known Implementing Classes:
CartesiaSynthesisBackend, KokoroSynthesisBackend

public interface SynthesisBackend
Unified interface for streaming TTS synthesis backends.
  • Method Details

    • init

      void init()
      Load credentials and prewarm the transport. Called once from component init.
    • isReady

      boolean isReady()
      False if the backend cannot synthesize at all (e.g. missing credentials).
    • getSampleRate

      int getSampleRate()
      Output PCM rate (s16le mono), fixed for the backend's lifetime. Valid after init.
    • openSession

      Begin one utterance's synthesis. Never returns null when isReady.
    • shutdown

      void shutdown()
      Release transport resources. Called from shutdownComponent.