Class PhrasesService
java.lang.Object
com.alibaba.dashscope.resources.audio.PhrasesService
audio.phrases — paraformer hot phrases (audio design §1.4, Python v2 phrases parity): a
compile job in disguise. create/update POST /fine-tunes with
training_type=compile_asr_phrase and an empty file set; get/list/delete
hit /fine-tunes/outputs. The result's phraseId (wire aliases
phrase_id/finetuned_output/job_id) is what asr.recognize consumes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(PhraseCreateParams params) Compile a new phrase set; the result carriesphraseId.create(PhraseCreateParams params, RequestOptions options) Delete one compiled phrase set.delete(String phraseId, RequestOptions options) Fetch one compiled phrase set (1.xquery_phrases).get(String phraseId, RequestOptions options) list(int pageNo, int pageSize) List compiled phrase sets; pages are 1-based (page_no) on this endpoint.list(int pageNo, int pageSize, RequestOptions options) update(String phraseId, PhraseCreateParams params) Recompile the phrase set behindphraseId.update(String phraseId, PhraseCreateParams params, RequestOptions options)
-
Constructor Details
-
PhrasesService
-
-
Method Details
-
create
Compile a new phrase set; the result carriesphraseId. -
create
-
update
Recompile the phrase set behindphraseId. -
update
-
get
Fetch one compiled phrase set (1.xquery_phrases). -
get
-
list
List compiled phrase sets; pages are 1-based (page_no) on this endpoint. -
list
-
delete
Delete one compiled phrase set. -
delete
-