Class VocabularyService
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.asr.vocabulary.VocabularyService
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionVocabularyService(String apikey) Deprecated.VocabularyService(String apikey, String model) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateVocabulary(String targetModel, String prefix, com.google.gson.JsonArray vocabulary) Deprecated.Creates a vocabulary.createVocabulary(String targetModel, String prefix, com.google.gson.JsonArray vocabulary, VocabularyParam customParam) Deprecated.voiddeleteVocabulary(String vocabularyId) Deprecated.Deletes a vocabulary.voiddeleteVocabulary(String vocabularyId, VocabularyParam customParam) Deprecated.Deprecated.Gets the requestId of the last request.listVocabulary(String prefix) Deprecated.Lists all vocabularies.listVocabulary(String prefix, int pageIndex, int pageSize) Deprecated.Lists all vocabularies.listVocabulary(String prefix, int pageIndex, int pageSize, VocabularyParam customParam) Deprecated.queryVocabulary(String vocabularyId) Deprecated.Queries a vocabulary.queryVocabulary(String vocabularyId, VocabularyParam customParam) Deprecated.voidupdateVocabulary(String vocabularyId, com.google.gson.JsonArray vocabulary) Deprecated.Updates a vocabulary.voidupdateVocabulary(String vocabularyId, com.google.gson.JsonArray vocabulary, VocabularyParam customParam) Deprecated.
-
Constructor Details
-
VocabularyService
Deprecated. -
VocabularyService
Deprecated.
-
-
Method Details
-
createVocabulary
public Vocabulary createVocabulary(String targetModel, String prefix, com.google.gson.JsonArray vocabulary) throws NoApiKeyException, InputRequiredException Deprecated.Creates a vocabulary.- Parameters:
targetModel- Speech recognition model version associated with the vocabularyprefix- Custom vocabulary prefix; digits and lowercase letters only, fewer than 10 charactersvocabulary- Vocabulary entries- Returns:
- Vocabulary object
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
listVocabulary
Deprecated.Lists all vocabularies. The default page index is 0, and the default page size is 10.- Parameters:
prefix- Custom vocabulary prefix- Returns:
- Array of vocabulary objects
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
listVocabulary
public Vocabulary[] listVocabulary(String prefix, int pageIndex, int pageSize) throws NoApiKeyException, InputRequiredException Deprecated.Lists all vocabularies.- Parameters:
prefix- Custom vocabulary prefixpageIndex- Page index to querypageSize- Page size to query- Returns:
- Array of vocabulary objects
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
queryVocabulary
public Vocabulary queryVocabulary(String vocabularyId) throws NoApiKeyException, InputRequiredException Deprecated.Queries a vocabulary.- Parameters:
vocabularyId- Vocabulary to query- Returns:
- Vocabulary object
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
updateVocabulary
public void updateVocabulary(String vocabularyId, com.google.gson.JsonArray vocabulary) throws NoApiKeyException, InputRequiredException Deprecated.Updates a vocabulary.- Parameters:
vocabularyId- Vocabulary to updatevocabulary- Vocabulary object- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
deleteVocabulary
Deprecated.Deletes a vocabulary.- Parameters:
vocabularyId- Vocabulary to delete- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
createVocabulary
public Vocabulary createVocabulary(String targetModel, String prefix, com.google.gson.JsonArray vocabulary, VocabularyParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
listVocabulary
public Vocabulary[] listVocabulary(String prefix, int pageIndex, int pageSize, VocabularyParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
queryVocabulary
public Vocabulary queryVocabulary(String vocabularyId, VocabularyParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
updateVocabulary
public void updateVocabulary(String vocabularyId, com.google.gson.JsonArray vocabulary, VocabularyParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
deleteVocabulary
public void deleteVocabulary(String vocabularyId, VocabularyParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
getLastRequestId
Deprecated.Gets the requestId of the last request.- Returns:
- requestId
-