public final class SpeechSynthesizer extends Object implements BaseSpeechSynthesizer
| Constructor and Description |
|---|
SpeechSynthesizer() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
call(SpeechSynthesisParam param)
Call the server to get the result.
|
void |
call(SpeechSynthesisParam param,
ResultCallback<SpeechSynthesisResult> callback)
Call the server to get the result in the callback function.
|
io.reactivex.Flowable<SpeechSynthesisResult> |
streamCall(SpeechSynthesisParam param)
Call the server to get the result by stream.
|
public void call(SpeechSynthesisParam param, ResultCallback<SpeechSynthesisResult> callback)
BaseSpeechSynthesizercall in interface BaseSpeechSynthesizerparam - The input param, should be the subclass of `SynthesisParam`.callback - The callback to receive response, should be the subclass of `SynthesisResult`.public io.reactivex.Flowable<SpeechSynthesisResult> streamCall(SpeechSynthesisParam param)
BaseSpeechSynthesizerstreamCall in interface BaseSpeechSynthesizerparam - The input param, should be the subclass of `SynthesisParam`.public ByteBuffer call(SpeechSynthesisParam param)
BaseSpeechSynthesizercall in interface BaseSpeechSynthesizerparam - The input param, should be the subclass of `SynthesisParam`.Copyright © 2023. All rights reserved.