public class SpeechToText
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description | 
|---|
| SpeechToText()Constructs a new `SpeechToText` client. | 
| SpeechToText(com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs a new `SpeechToText` client with the specified Authenticator. | 
| Modifier and Type | Method and Description | 
|---|---|
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | addAudio(AddAudioOptions addAudioOptions)Add an audio resource. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | addCorpus(AddCorpusOptions addCorpusOptions)Add a corpus. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | addGrammar(AddGrammarOptions addGrammarOptions)Add a grammar. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | addWord(AddWordOptions addWordOptions)Add a custom word. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | addWords(AddWordsOptions addWordsOptions)Add custom words. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJob> | checkJob(CheckJobOptions checkJobOptions)Check a job. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJobs> | checkJobs()Check jobs. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJobs> | checkJobs(CheckJobsOptions checkJobsOptions)Check jobs. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModel> | createAcousticModel(CreateAcousticModelOptions createAcousticModelOptions)Create a custom acoustic model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJob> | createJob(CreateJobOptions createJobOptions)Create a job. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModel> | createLanguageModel(CreateLanguageModelOptions createLanguageModelOptions)Create a custom language model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteAcousticModel(DeleteAcousticModelOptions deleteAcousticModelOptions)Delete a custom acoustic model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteAudio(DeleteAudioOptions deleteAudioOptions)Delete an audio resource. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteCorpus(DeleteCorpusOptions deleteCorpusOptions)Delete a corpus. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteGrammar(DeleteGrammarOptions deleteGrammarOptions)Delete a grammar. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteJob(DeleteJobOptions deleteJobOptions)Delete a job. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteLanguageModel(DeleteLanguageModelOptions deleteLanguageModelOptions)Delete a custom language model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteUserData(DeleteUserDataOptions deleteUserDataOptions)Delete labeled data. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | deleteWord(DeleteWordOptions deleteWordOptions)Delete a custom word. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModel> | getAcousticModel(GetAcousticModelOptions getAcousticModelOptions)Get a custom acoustic model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<AudioListing> | getAudio(GetAudioOptions getAudioOptions)Get an audio resource. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<Corpus> | getCorpus(GetCorpusOptions getCorpusOptions)Get a corpus. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<Grammar> | getGrammar(GetGrammarOptions getGrammarOptions)Get a grammar. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModel> | getLanguageModel(GetLanguageModelOptions getLanguageModelOptions)Get a custom language model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModel> | getModel(GetModelOptions getModelOptions)Get a model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<Word> | getWord(GetWordOptions getWordOptions)Get a custom word. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModels> | listAcousticModels()List custom acoustic models. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModels> | listAcousticModels(ListAcousticModelsOptions listAcousticModelsOptions)List custom acoustic models. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<AudioResources> | listAudio(ListAudioOptions listAudioOptions)List audio resources. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<Corpora> | listCorpora(ListCorporaOptions listCorporaOptions)List corpora. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<Grammars> | listGrammars(ListGrammarsOptions listGrammarsOptions)List grammars. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModels> | listLanguageModels()List custom language models. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModels> | listLanguageModels(ListLanguageModelsOptions listLanguageModelsOptions)List custom language models. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModels> | listModels()List models. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModels> | listModels(ListModelsOptions listModelsOptions)List models. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<Words> | listWords(ListWordsOptions listWordsOptions)List custom words. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<SpeechRecognitionResults> | recognize(RecognizeOptions recognizeOptions)Recognize audio. | 
| okhttp3.WebSocket | recognizeUsingWebSocket(RecognizeOptions recognizeOptions,
                       RecognizeCallback callback)Sends audio and returns transcription results for recognition requests over a WebSocket connection. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<RegisterStatus> | registerCallback(RegisterCallbackOptions registerCallbackOptions)Register a callback. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | resetAcousticModel(ResetAcousticModelOptions resetAcousticModelOptions)Reset a custom acoustic model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | resetLanguageModel(ResetLanguageModelOptions resetLanguageModelOptions)Reset a custom language model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<TrainingResponse> | trainAcousticModel(TrainAcousticModelOptions trainAcousticModelOptions)Train a custom acoustic model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<TrainingResponse> | trainLanguageModel(TrainLanguageModelOptions trainLanguageModelOptions)Train a custom language model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | unregisterCallback(UnregisterCallbackOptions unregisterCallbackOptions)Unregister a callback. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | upgradeAcousticModel(UpgradeAcousticModelOptions upgradeAcousticModelOptions)Upgrade a custom acoustic model. | 
| com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> | upgradeLanguageModel(UpgradeLanguageModelOptions upgradeLanguageModelOptions)Upgrade a custom language model. | 
configureClient, configureHttpClient, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toStringpublic SpeechToText()
public SpeechToText(com.ibm.cloud.sdk.core.security.Authenticator authenticator)
authenticator - the Authenticator instance to be configured for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModels> listModels(ListModelsOptions listModelsOptions)
listModelsOptions - the ListModelsOptions containing the options for the callServiceCall with a response type of SpeechModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModels> listModels()
ServiceCall with a response type of SpeechModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModel> getModel(GetModelOptions getModelOptions)
getModelOptions - the GetModelOptions containing the options for the callServiceCall with a response type of SpeechModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<SpeechRecognitionResults> recognize(RecognizeOptions recognizeOptions)
recognizeOptions - the RecognizeOptions containing the options for the callServiceCall with a response type of SpeechRecognitionResultspublic okhttp3.WebSocket recognizeUsingWebSocket(RecognizeOptions recognizeOptions, RecognizeCallback callback)
recognizeOptions - the recognize optionscallback - the RecognizeCallback instance where results will be sentWebSocketpublic com.ibm.cloud.sdk.core.http.ServiceCall<RegisterStatus> registerCallback(RegisterCallbackOptions registerCallbackOptions)
registerCallbackOptions - the RegisterCallbackOptions containing the options for the callServiceCall with a response type of RegisterStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> unregisterCallback(UnregisterCallbackOptions unregisterCallbackOptions)
unregisterCallbackOptions - the UnregisterCallbackOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJob> createJob(CreateJobOptions createJobOptions)
createJobOptions - the CreateJobOptions containing the options for the callServiceCall with a response type of RecognitionJobpublic com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJobs> checkJobs(CheckJobsOptions checkJobsOptions)
checkJobsOptions - the CheckJobsOptions containing the options for the callServiceCall with a response type of RecognitionJobspublic com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJobs> checkJobs()
ServiceCall with a response type of RecognitionJobspublic com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJob> checkJob(CheckJobOptions checkJobOptions)
checkJobOptions - the CheckJobOptions containing the options for the callServiceCall with a response type of RecognitionJobpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteJob(DeleteJobOptions deleteJobOptions)
deleteJobOptions - the DeleteJobOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModel> createLanguageModel(CreateLanguageModelOptions createLanguageModelOptions)
createLanguageModelOptions - the CreateLanguageModelOptions containing the options for the callServiceCall with a response type of LanguageModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModels> listLanguageModels(ListLanguageModelsOptions listLanguageModelsOptions)
listLanguageModelsOptions - the ListLanguageModelsOptions containing the options for the callServiceCall with a response type of LanguageModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModels> listLanguageModels()
ServiceCall with a response type of LanguageModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModel> getLanguageModel(GetLanguageModelOptions getLanguageModelOptions)
getLanguageModelOptions - the GetLanguageModelOptions containing the options for the callServiceCall with a response type of LanguageModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteLanguageModel(DeleteLanguageModelOptions deleteLanguageModelOptions)
deleteLanguageModelOptions - the DeleteLanguageModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<TrainingResponse> trainLanguageModel(TrainLanguageModelOptions trainLanguageModelOptions)
trainLanguageModelOptions - the TrainLanguageModelOptions containing the options for the callServiceCall with a response type of TrainingResponsepublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> resetLanguageModel(ResetLanguageModelOptions resetLanguageModelOptions)
resetLanguageModelOptions - the ResetLanguageModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> upgradeLanguageModel(UpgradeLanguageModelOptions upgradeLanguageModelOptions)
upgradeLanguageModelOptions - the UpgradeLanguageModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Corpora> listCorpora(ListCorporaOptions listCorporaOptions)
listCorporaOptions - the ListCorporaOptions containing the options for the callServiceCall with a response type of Corporapublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> addCorpus(AddCorpusOptions addCorpusOptions)
addCorpusOptions - the AddCorpusOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Corpus> getCorpus(GetCorpusOptions getCorpusOptions)
getCorpusOptions - the GetCorpusOptions containing the options for the callServiceCall with a response type of Corpuspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteCorpus(DeleteCorpusOptions deleteCorpusOptions)
deleteCorpusOptions - the DeleteCorpusOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Words> listWords(ListWordsOptions listWordsOptions)
listWordsOptions - the ListWordsOptions containing the options for the callServiceCall with a response type of Wordspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> addWords(AddWordsOptions addWordsOptions)
addWordsOptions - the AddWordsOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> addWord(AddWordOptions addWordOptions)
addWordOptions - the AddWordOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Word> getWord(GetWordOptions getWordOptions)
getWordOptions - the GetWordOptions containing the options for the callServiceCall with a response type of Wordpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteWord(DeleteWordOptions deleteWordOptions)
deleteWordOptions - the DeleteWordOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Grammars> listGrammars(ListGrammarsOptions listGrammarsOptions)
listGrammarsOptions - the ListGrammarsOptions containing the options for the callServiceCall with a response type of Grammarspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> addGrammar(AddGrammarOptions addGrammarOptions)
addGrammarOptions - the AddGrammarOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions)
getGrammarOptions - the GetGrammarOptions containing the options for the callServiceCall with a response type of Grammarpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteGrammar(DeleteGrammarOptions deleteGrammarOptions)
deleteGrammarOptions - the DeleteGrammarOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModel> createAcousticModel(CreateAcousticModelOptions createAcousticModelOptions)
createAcousticModelOptions - the CreateAcousticModelOptions containing the options for the callServiceCall with a response type of AcousticModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModels> listAcousticModels(ListAcousticModelsOptions listAcousticModelsOptions)
listAcousticModelsOptions - the ListAcousticModelsOptions containing the options for the callServiceCall with a response type of AcousticModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModels> listAcousticModels()
ServiceCall with a response type of AcousticModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModel> getAcousticModel(GetAcousticModelOptions getAcousticModelOptions)
getAcousticModelOptions - the GetAcousticModelOptions containing the options for the callServiceCall with a response type of AcousticModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteAcousticModel(DeleteAcousticModelOptions deleteAcousticModelOptions)
deleteAcousticModelOptions - the DeleteAcousticModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<TrainingResponse> trainAcousticModel(TrainAcousticModelOptions trainAcousticModelOptions)
trainAcousticModelOptions - the TrainAcousticModelOptions containing the options for the callServiceCall with a response type of TrainingResponsepublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> resetAcousticModel(ResetAcousticModelOptions resetAcousticModelOptions)
resetAcousticModelOptions - the ResetAcousticModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> upgradeAcousticModel(UpgradeAcousticModelOptions upgradeAcousticModelOptions)
upgradeAcousticModelOptions - the UpgradeAcousticModelOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<AudioResources> listAudio(ListAudioOptions listAudioOptions)
listAudioOptions - the ListAudioOptions containing the options for the callServiceCall with a response type of AudioResourcespublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> addAudio(AddAudioOptions addAudioOptions)
addAudioOptions - the AddAudioOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<AudioListing> getAudio(GetAudioOptions getAudioOptions)
getAudioOptions - the GetAudioOptions containing the options for the callServiceCall with a response type of AudioListingpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteAudio(DeleteAudioOptions deleteAudioOptions)
deleteAudioOptions - the DeleteAudioOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
deleteUserDataOptions - the DeleteUserDataOptions containing the options for the callServiceCall with a response type of Void