Class AsrService
java.lang.Object
com.alibaba.dashscope.resources.audio.AsrService
audio.asr resource: realtime recognize (ws duplex) and async transcribe.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjobs()The async-job handle for transcription: create/fetch/wait/cancel/list.recognize(AsrRecognizeParams params) Realtime recognition on a dedicated socket; lazy — nothing connects untilstart().recognize(AsrRecognizeParams params, RequestOptions options) recognize(AsrRecognizeParams params, WsConnection connection) Realtime recognition multiplexed on a shared connection (audio design §7).recognize(AsrRecognizeParams params, WsConnection connection, RequestOptions options) transcribe(AsrTranscribeParams params) Blocks until a terminal state; equivalent to jobs().create + jobs().wait.transcribe(AsrTranscribeParams params, RequestOptions options) Blocks until a terminal state; equivalent to jobs().create + jobs().wait.
-
Constructor Details
-
AsrService
-
-
Method Details
-
recognize
Realtime recognition on a dedicated socket; lazy — nothing connects untilstart(). -
recognize
-
recognize
Realtime recognition multiplexed on a shared connection (audio design §7).close()on the returned session detaches the task only; the socket stays open. -
recognize
public RecognitionSession recognize(AsrRecognizeParams params, WsConnection connection, RequestOptions options) -
transcribe
Blocks until a terminal state; equivalent to jobs().create + jobs().wait. -
transcribe
Blocks until a terminal state; equivalent to jobs().create + jobs().wait. -
jobs
The async-job handle for transcription: create/fetch/wait/cancel/list.
-