Class RealtimeService
java.lang.Object
com.alibaba.dashscope.resources.audio.RealtimeService
audio.realtime resource (audio design §1.3): OpenAI-Realtime-style sessions on a
dedicated socket per session.
Endpoint resolution order: explicit RealtimeParams.getUrl() >
DASHSCOPE_WEBSOCKET_OMNI_BASE_URL (2.x parity) > derived from the resolved HTTP base url. The
generic ws base-url override does NOT apply to realtime (audio design §2). Since a session cannot
be pooled, prefer connecting slightly ahead of first use to hide the handshake latency.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconnect(RealtimeParams params) Connects eagerly; the returned session is ready forupdateSession.connect(RealtimeParams params, RequestOptions options)
-
Constructor Details
-
RealtimeService
-
-
Method Details
-
connect
Connects eagerly; the returned session is ready forupdateSession. -
connect
-