<dependency> <groupId>com.ibm.watson.developer_cloud</groupId> <artifactId>text-to-speech</artifactId> <version>3.7.2</version> </dependency>
'com.ibm.watson.developer_cloud:text-to-speech:3.7.2'Use the Text to Speech service to get the available voices to synthesize.
TextToSpeech service = new TextToSpeech(); service.setUsernameAndPassword("<username>", "<password>"); List<Voice> voices = service.getVoices().execute(); System.out.println(voices);