public class SpeechToTextIT extends WatsonServiceTest
Modifier and Type | Field and Description |
---|---|
org.junit.rules.ExpectedException |
expectedException
The expected exception.
|
CONTENT_TYPE, PLACEHOLDER, properties
Constructor and Description |
---|
SpeechToTextIT() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Sets the up.
|
void |
testAddCorpusFail()
Test add corpus with expected failure.
|
void |
testCreateRecognitionJob()
Test create recognition job.
|
void |
testCreateRecognitionJobWarning()
Test create recognition job with a warning message.
|
void |
testCreateSession()
Test create session.
|
void |
testCreateSessionSpeechModel()
Test create session speech model.
|
void |
testCreateSessionString()
Test create session string.
|
void |
testCustomization()
Test customization.
|
void |
testGetCorpora()
Test get corpora.
|
void |
testGetCorpus()
Test get corpus.
|
void |
testGetCustomizations()
Test get customizations.
|
void |
testGetModel()
Test get model.
|
void |
testGetModels()
Test get models.
|
void |
testGetRecognitionJobs()
Test get recognition jobs.
|
void |
testGetRecognitionJobWithWrongId()
Test get recognition job with wrong id.
|
void |
testGetRecognizeStatus()
Test get recognize status.
|
void |
testGetWord()
Test get word.
|
void |
testGetWordsThree()
Test get words three-parameter version with no type and no sort.
|
void |
testGetWordsThreeSort()
Test get words three-parameter version with no type and sort plus alpha.
|
void |
testGetWordsThreeType()
Test get words three-parameter version with type all and no sort.
|
void |
testGetWordsThreeTypeSort()
Test get words three-parameter version with type all and sort minus count.
|
void |
testGetWordsTwo()
Test get words two-parameter version with no type.
|
void |
testGetWordsTwoType()
Test get words two-parameter version with type corpus.
|
void |
testInactivityTimeoutWithWebSocket()
Test the inactivity timeout parameter for WebSockets
|
void |
testRecognizeFileString()
Test recognize audio file.
|
void |
testRecognizeFileStringRecognizeOptions()
Test recognize file string recognize options.
|
void |
testRecognizeKeywords()
Test keyword recognition.
|
void |
testRecognizeMultipleSpeakers()
Test recognize multiple speakers.
|
void |
testRecognizeWebSocket()
Test recognize webSocket.
|
getDefaultHeaders, getProperty, getStringFromInputStream, loadFixture, writeInputStreamToFile
public final org.junit.rules.ExpectedException expectedException
public void setUp() throws java.lang.Exception
WatsonServiceTest
setUp
in class WatsonServiceTest
java.lang.Exception
- the exceptionpublic void testCreateSession()
public void testCreateSessionSpeechModel()
public void testCreateSessionString()
public void testGetModel()
public void testGetModels()
public void testGetRecognizeStatus()
public void testRecognizeFileString()
public void testRecognizeMultipleSpeakers()
public void testRecognizeFileStringRecognizeOptions()
public void testRecognizeKeywords()
public void testRecognizeWebSocket() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testInactivityTimeoutWithWebSocket() throws java.io.FileNotFoundException, java.lang.InterruptedException
java.io.FileNotFoundException
- the file not found exceptionjava.lang.InterruptedException
- the interrupted exceptionpublic void testCreateRecognitionJob() throws java.lang.InterruptedException, java.io.FileNotFoundException
java.lang.InterruptedException
- the interrupted exceptionjava.io.FileNotFoundException
- the file not found exceptionpublic void testCreateRecognitionJobWarning() throws java.lang.InterruptedException, java.io.FileNotFoundException
java.lang.InterruptedException
- the interrupted exceptionjava.io.FileNotFoundException
- the file not found exceptionpublic void testGetRecognitionJobWithWrongId()
public void testGetRecognitionJobs()
public void testGetCustomizations()
public void testGetCorpora()
public void testGetCorpus()
public void testAddCorpusFail()
public void testGetWordsTwo()
public void testGetWordsTwoType()
public void testGetWordsThree()
public void testGetWordsThreeType()
public void testGetWordsThreeSort()
public void testGetWordsThreeTypeSort()
public void testGetWord()
public void testCustomization() throws java.lang.InterruptedException
java.lang.InterruptedException
- the interrupted exception