public class TextToSpeech extends WatsonService
VERSION| Constructor and Description | 
|---|
| TextToSpeech()Instantiates a new text to speech. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Voice> | getVoices()Gets the voices. | 
| InputStream | synthesize(String text,
          String format)Synthesize text using a provided format | 
| InputStream | synthesize(String text,
          Voice voice)Synthesize text using a voice. | 
| InputStream | synthesize(String text,
          Voice voice,
          String outputFormat)Synthesize text using a voice and format. | 
configureHttpClient, execute, executeRequest, executeWithoutResponse, getApiKey, getEndPoint, getName, getToken, setApiKey, setAuthentication, setDefaultHeaders, setEndPoint, setUsernameAndPassword, toStringpublic InputStream synthesize(String text, String format)
text - the text to synthesizeformat - the format, it needs to be an audio mime type, for example: audio/wav or
        audio/ogg; codecs=opuspublic InputStream synthesize(String text, Voice voice)
text - the text to synthesizevoice - the voicepublic InputStream synthesize(String text, Voice voice, String outputFormat)
text - the textvoice - the voiceoutputFormat - the output format. e.g: audio/wav or audio/ogg; codecs=opusCopyright © 2015–2016. All rights reserved.