public class SpeechToText
extends com.ibm.cloud.sdk.core.service.BaseService
Constructor and Description |
---|
SpeechToText()
Deprecated.
Use SpeechToText(AuthenticatorConfig authenticatorConfig) instead
|
SpeechToText(com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
Instantiates a new `SpeechToText` with the specified authentication configuration.
|
SpeechToText(java.lang.String username,
java.lang.String password)
Deprecated.
Use SpeechToText(AuthenticatorConfig authenticatorConfig) instead
|
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, createServiceCall, getApiKey, getAuthenticator, getClient, getEndPoint, getName, getPassword, getUsername, isJsonMimeType, isJsonPatchMimeType, isSkipAuthentication, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setAuthenticator, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString
@Deprecated public SpeechToText()
@Deprecated public SpeechToText(java.lang.String username, java.lang.String password)
username
- the usernamepassword
- the passwordpublic SpeechToText(com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
authenticatorConfig
- the authentication configuration 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 SpeechModels
public com.ibm.cloud.sdk.core.http.ServiceCall<SpeechModels> listModels()
ServiceCall
with a response type of SpeechModels
public 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 SpeechModel
public 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 SpeechRecognitionResults
public 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 RegisterStatus
public 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 RecognitionJob
public 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 RecognitionJobs
public com.ibm.cloud.sdk.core.http.ServiceCall<RecognitionJobs> checkJobs()
ServiceCall
with a response type of RecognitionJobs
public okhttp3.WebSocket recognizeUsingWebSocket(RecognizeOptions recognizeOptions, RecognizeCallback callback)
recognizeOptions
- the recognize optionscallback
- the RecognizeCallback
instance where results will be sentWebSocket
public 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 RecognitionJob
public 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 LanguageModel
public 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 LanguageModels
public com.ibm.cloud.sdk.core.http.ServiceCall<LanguageModels> listLanguageModels()
ServiceCall
with a response type of LanguageModels
public 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 LanguageModel
public 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 TrainingResponse
public 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 Corpora
public 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 Corpus
public 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 Words
public 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 Word
public 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 Grammars
public 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 Grammar
public 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 AcousticModel
public 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 AcousticModels
public com.ibm.cloud.sdk.core.http.ServiceCall<AcousticModels> listAcousticModels()
ServiceCall
with a response type of AcousticModels
public 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 AcousticModel
public 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 TrainingResponse
public 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 AudioResources
public 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 AudioListing
public 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