public class TextToSpeechIT extends WatsonServiceTest
CONTENT_TYPE, PLACEHOLDER, properties
Constructor and Description |
---|
TextToSpeechIT() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Sets the up.
|
void |
testGetVoice()
Test get voice.
|
void |
testGetVoices()
Test get voices.
|
void |
testGetWordPronunciation()
Test word pronunciation.
|
void |
testSynthesize()
Synthesize text and write it to a temporary file.
|
void |
testSynthesizeAndFixHeader()
Test the fix wave header not having the size due to be streamed.
|
getDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFile
public void setUp() throws java.lang.Exception
WatsonServiceTest
setUp
in class WatsonServiceTest
java.lang.Exception
- the exceptionpublic void testGetVoices()
public void testGetVoice()
public void testSynthesize() throws java.io.IOException
java.io.IOException
- Signals that an I/O exception has occurred.public void testGetWordPronunciation()
public void testSynthesizeAndFixHeader() throws java.io.IOException, javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
- Signals that an I/O exception has occurred.javax.sound.sampled.UnsupportedAudioFileException
- the unsupported audio file exception