public class TextToSpeech extends WatsonService
| Constructor and Description |
|---|
TextToSpeech()
Instantiates a new text to speech.
|
| Modifier and Type | Method and Description |
|---|---|
VoiceSet |
getVoices()
Gets the voices.
|
InputStream |
synthesize(String text,
String format)
Synthesize.
|
InputStream |
synthesize(String text,
Voice voice)
Synthesize.
|
InputStream |
synthesize(String text,
Voice voice,
String format)
Synthesize.
|
execute, getApiKey, getDefaultContentType, getDefaultRequestParams, getEndPoint, getGson, getHttpClient, setApiKey, setEndPoint, setUsernameAndPassword, toStringpublic InputStream synthesize(String text, Voice voice, String format)
text - the textvoice - the voiceformat - the output formatpublic InputStream synthesize(String text, Voice voice)
text - the textvoice - the voicepublic InputStream synthesize(String text, String format)
text - the textformat - the format, it needs to be an audio mime type, for example: audio/wav or audio/ogg; codecs=opuspublic VoiceSet getVoices()
Copyright © 2015. All rights reserved.