Class TingWuService
java.lang.Object
com.alibaba.dashscope.resources.tingwu.TingWuService
tingwu resource: offline summarization as a long task (jobs()) plus realtime
understanding over a ws duplex session (realtime(com.alibaba.dashscope.types.tingwu.TingWuRealtimeParams)).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjobs()The offline-task handle: create/fetch/wait/cancel/list.realtime(TingWuRealtimeParams params) Realtime understanding on a dedicated socket; lazy — nothing connects untilstart().realtime(TingWuRealtimeParams params, RequestOptions options) realtime(TingWuRealtimeParams params, WsConnection connection) Realtime understanding multiplexed on a shared connection.realtime(TingWuRealtimeParams params, WsConnection connection, RequestOptions options)
-
Constructor Details
-
TingWuService
-
-
Method Details
-
jobs
The offline-task handle: create/fetch/wait/cancel/list. -
realtime
Realtime understanding on a dedicated socket; lazy — nothing connects untilstart(). -
realtime
-
realtime
Realtime understanding multiplexed on a shared connection.close()on the returned session detaches the task only; if the task was closed before its terminal event while owning the binary uplink, the whole shared connection is torn down. -
realtime
public TingWuRealtimeSession realtime(TingWuRealtimeParams params, WsConnection connection, RequestOptions options)
-