public final class SpokestackTTSService extends TTSService
A TTS service component that uses the SpokestackTTSClient
to
synthesize text.
This component supports the following properties:
Modifier and Type | Field and Description |
---|---|
protected TTSCallback |
callback
The callback used to process asynchronous responses from the underlying
HTTP client.
|
Constructor and Description |
---|
SpokestackTTSService(SpeechConfig config)
Creates a new TTS service component.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
synthesize(SynthesisRequest request)
Synthesizes a piece of text or SSML, dispatching the result to any
registered listeners.
|
addListener, dispatch, removeListener
protected final TTSCallback callback
public SpokestackTTSService(SpeechConfig config)
config
- The component configuration that supplies authentication
information and the location of the TTS endpoint.public void close()
public void synthesize(SynthesisRequest request)
TTSService
synthesize
in class TTSService
request
- The synthesis request data.Copyright © 2021. All rights reserved.