Class TingWuRealtime
java.lang.Object
com.alibaba.dashscope.legacy_2x.multimodal.tingwu.TingWuRealtime
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Gummy Translation and Recognition real-time SDK.TingWuRealtime(String baseUrl) Deprecated.Gummy Translation and Recognition real-time SDK.TingWuRealtime(String baseUrl, ConnectionOptions connectionOptions) Deprecated.TingWu Service Realtime API -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(TingWuRealtimeParam param, TingWuRealtimeCallback callback) Deprecated.Start Speech Translation and Recognition real-time via sendAudioFrame API.SynchronizeFullDuplexApi<com.alibaba.dashscope.legacy_2x.multimodal.tingwu.TingWuRealtime.TingWuRealtimeWithStream>Deprecated.longDeprecated.First Package Delay is the time between start sending audio and receive first words packagelongDeprecated.Last Package Delay is the time between stop sending audio and receive last words packageDeprecated.voidsendAudioFrame(ByteBuffer audioFrame) Deprecated.Send one frame audiovoidstop()Deprecated.Stop Speech Translation and Recognition real-time via call and sendAudioFrame API.
-
Constructor Details
-
TingWuRealtime
public TingWuRealtime()Deprecated.Gummy Translation and Recognition real-time SDK. -
TingWuRealtime
Deprecated.Gummy Translation and Recognition real-time SDK.- Parameters:
baseUrl- Base URL
-
TingWuRealtime
Deprecated.TingWu Service Realtime API- Parameters:
baseUrl- Base URLconnectionOptions- Connection options
-
-
Method Details
-
call
Deprecated.Start Speech Translation and Recognition real-time via sendAudioFrame API. The correct order of calls is: first call, then repeatedly sendAudioFrame, and finally stop.- Parameters:
param- Configuration for speech translation and recognition, including audio format, source language, target languages, etc.callback- ResultCallback
-
sendAudioFrame
Deprecated.Send one frame audio- Parameters:
audioFrame- One frame of binary audio The correct order of calls is: first call, then repeatedly sendAudioFrame, and finally stop.
-
stop
public void stop()Deprecated.Stop Speech Translation and Recognition real-time via call and sendAudioFrame API. The correct order of calls is: first call, then repeatedly sendAudioFrame, and finally stop. -
getFirstPackageDelay
public long getFirstPackageDelay()Deprecated.First Package Delay is the time between start sending audio and receive first words package -
getLastPackageDelay
public long getLastPackageDelay()Deprecated.Last Package Delay is the time between stop sending audio and receive last words package -
getLastRequestId
Deprecated. -
getDuplexApi
public SynchronizeFullDuplexApi<com.alibaba.dashscope.legacy_2x.multimodal.tingwu.TingWuRealtime.TingWuRealtimeWithStream> getDuplexApi()Deprecated.
-