Search in sources :

Example 6 with GetLanguageModelOptions

use of com.ibm.watson.speech_to_text.v1.model.GetLanguageModelOptions in project java-sdk by watson-developer-cloud.

the class SpeechToTextIT method isCustomizationReady.

private boolean isCustomizationReady(String customizationId) {
    GetLanguageModelOptions getLanguageModelOptions = new GetLanguageModelOptions.Builder().customizationId(customizationId).build();
    LanguageModel model = service.getLanguageModel(getLanguageModelOptions).execute().getResult();
    return model.getStatus().equals(LanguageModel.Status.READY) || model.getStatus().equals(LanguageModel.Status.AVAILABLE);
}
Also used : GetLanguageModelOptions(com.ibm.watson.speech_to_text.v1.model.GetLanguageModelOptions) LanguageModel(com.ibm.watson.speech_to_text.v1.model.LanguageModel)

Aggregations

LanguageModel (com.ibm.watson.speech_to_text.v1.model.LanguageModel)4 GetLanguageModelOptions (com.ibm.watson.speech_to_text.v1.model.GetLanguageModelOptions)3 GetLanguageModelOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.GetLanguageModelOptions)2 LanguageModel (com.ibm.watson.developer_cloud.speech_to_text.v1.model.LanguageModel)2 File (java.io.File)2 MockResponse (okhttp3.mockwebserver.MockResponse)2 RecordedRequest (okhttp3.mockwebserver.RecordedRequest)2 RequestBuilder (com.ibm.cloud.sdk.core.http.RequestBuilder)1 Authenticator (com.ibm.cloud.sdk.core.security.Authenticator)1 IamAuthenticator (com.ibm.cloud.sdk.core.security.IamAuthenticator)1 WatsonServiceUnitTest (com.ibm.watson.developer_cloud.WatsonServiceUnitTest)1 AddCorpusOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.AddCorpusOptions)1 AddWordOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.AddWordOptions)1 Corpora (com.ibm.watson.developer_cloud.speech_to_text.v1.model.Corpora)1 Corpus (com.ibm.watson.developer_cloud.speech_to_text.v1.model.Corpus)1 CreateLanguageModelOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.CreateLanguageModelOptions)1 DeleteLanguageModelOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.DeleteLanguageModelOptions)1 GetCorpusOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.GetCorpusOptions)1 ListCorporaOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.ListCorporaOptions)1 ListWordsOptions (com.ibm.watson.developer_cloud.speech_to_text.v1.model.ListWordsOptions)1