Class VoiceEnrollmentService
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.ttsv2.enrollment.VoiceEnrollmentService
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionVoiceEnrollmentService(String apikey) Deprecated.VoiceEnrollmentService(String apikey, String model) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptioncreateVoice(String targetModel, String prefix, String url) Deprecated.Creates a cloned voice.createVoice(String targetModel, String prefix, String url, VoiceEnrollmentParam customParam) Deprecated.createVoiceWithAudio(String targetModel, String prefix, String audio) Deprecated.Create a cloned voice from a base64 audio data URI instead of a URL.createVoiceWithAudio(String targetModel, String prefix, String audio, VoiceEnrollmentParam customParam) Deprecated.voiddeleteVoice(String voiceId) Deprecated.Deletes a voice.voiddeleteVoice(String voiceId, VoiceEnrollmentParam customParam) Deprecated.Deprecated.Gets the requestId of the last request.Voice[]Deprecated.Lists all voices.Voice[]Deprecated.Lists all voices.Voice[]listVoice(String prefix, int pageIndex, int pageSize, VoiceEnrollmentParam customParam) Deprecated.queryVoice(String voiceId) Deprecated.Queries a voice.queryVoice(String voiceId, VoiceEnrollmentParam customParam) Deprecated.voidupdateVoice(String voiceId, String url) Deprecated.Updates a voice.voidupdateVoice(String voiceId, String url, VoiceEnrollmentParam customParam) Deprecated.voidupdateVoiceWithAudio(String voiceId, String audio) Deprecated.Update an existing voice with a base64 audio data URI instead of a URL.voidupdateVoiceWithAudio(String voiceId, String audio, VoiceEnrollmentParam customParam) Deprecated.
-
Constructor Details
-
VoiceEnrollmentService
Deprecated. -
VoiceEnrollmentService
Deprecated.
-
-
Method Details
-
createVoice
public Voice createVoice(String targetModel, String prefix, String url) throws NoApiKeyException, InputRequiredException Deprecated.Creates a cloned voice.- Parameters:
targetModel- Speech recognition model version associated with the cloned voiceprefix- Custom voice prefix; digits and lowercase letters only, fewer than 10 charactersurl- URL of the audio file used for cloning- Returns:
- Voice Voice object
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
listVoice
Deprecated.Lists all voices. The default page index is 0, and the default page size is 10.- Parameters:
prefix- Custom voice prefix; digits and lowercase letters only, fewer than 10 characters. May be null.- Returns:
- Vocie[] Array of voice objects
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
listVoice
public Voice[] listVoice(String prefix, int pageIndex, int pageSize) throws NoApiKeyException, InputRequiredException Deprecated.Lists all voices.- Parameters:
prefix- Custom voice prefix; digits and lowercase letters only, fewer than 10 characterspageIndex- Page index to querypageSize- Page size to query- Returns:
- Vocie[] Array of voice objects
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
queryVoice
Deprecated.Queries a voice.- Parameters:
voiceId- Voice to query- Returns:
- Voice Voice object containing status information and the URL of the audio file used for cloning
- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
updateVoice
public void updateVoice(String voiceId, String url) throws NoApiKeyException, InputRequiredException Deprecated.Updates a voice.- Parameters:
voiceId- Voice to updateurl- URL of the audio file used for cloning- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
deleteVoice
Deprecated.Deletes a voice.- Parameters:
voiceId- Voice to delete- Throws:
NoApiKeyException- If apikey is emptyInputRequiredException- If a required parameter is empty
-
createVoice
public Voice createVoice(String targetModel, String prefix, String url, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
createVoiceWithAudio
public Voice createVoiceWithAudio(String targetModel, String prefix, String audio) throws NoApiKeyException, InputRequiredException Deprecated.Create a cloned voice from a base64 audio data URI instead of a URL. -
createVoiceWithAudio
public Voice createVoiceWithAudio(String targetModel, String prefix, String audio, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
listVoice
public Voice[] listVoice(String prefix, int pageIndex, int pageSize, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
queryVoice
public Voice queryVoice(String voiceId, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
updateVoice
public void updateVoice(String voiceId, String url, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
updateVoiceWithAudio
public void updateVoiceWithAudio(String voiceId, String audio) throws NoApiKeyException, InputRequiredException Deprecated.Update an existing voice with a base64 audio data URI instead of a URL. -
updateVoiceWithAudio
public void updateVoiceWithAudio(String voiceId, String audio, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
deleteVoice
public void deleteVoice(String voiceId, VoiceEnrollmentParam customParam) throws NoApiKeyException, InputRequiredException Deprecated. -
getLastRequestId
Deprecated.Gets the requestId of the last request.- Returns:
- requestId
-