Interface SynthesisBackend.Session

Enclosing interface:
SynthesisBackend

public static interface SynthesisBackend.Session
One utterance's worth of synthesis. sendPhrase and finish are called in order from a single dispatch thread; abort can arrive from any thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Stop producing.
    void
    No more phrases.
    void
    Submit one non-empty, already-sanitized phrase.
  • Method Details

    • sendPhrase

      void sendPhrase(String phrase)
      Submit one non-empty, already-sanitized phrase. May block until the backend accepts it.
    • finish

      void finish()
      No more phrases. The backend must eventually make exactly one terminal sink call.
    • abort

      void abort()
      Stop producing. Must not block, must unblock an in-flight sendPhrase, and no sink calls may follow.