public abstract class TTSService extends TTSComponent implements AutoCloseable
This is the interface for communicating with external TTS services. Implementers receive text to synthesize and must interact with their service of choice, sending the resulting audio URL to any specified listeners.
To be used in a speech pipeline, an implementing class must provide a
constructor that accepts a SpeechConfig instance.
TTSComponent| Constructor and Description |
|---|
TTSService() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
synthesize(SynthesisRequest request)
Synthesizes a piece of text or SSML, dispatching the result to any
registered listeners.
|
addListener, dispatch, removeListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic abstract void synthesize(SynthesisRequest request)
request - The synthesis request data.Copyright © 2021. All rights reserved.