Class TranslationRecognizerChat
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.asr.translation.TranslationRecognizerChat
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Gummy Translation and Recognition Chat SDK.TranslationRecognizerChat(String baseUrl) Deprecated.Gummy Translation and Recognition chat SDK.TranslationRecognizerChat(String baseUrl, ConnectionOptions connectionOptions) Deprecated.Gummy Translation and Recognition chat SDK. -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(TranslationRecognizerParam param, ResultCallback<TranslationRecognizerResult> callback) Deprecated.Start Speech Translation and Recognition chat via sendAudioFrame API.SynchronizeFullDuplexApi<com.alibaba.dashscope.legacy_2x.audio.asr.translation.TranslationRecognizerChat.TranslationRecognizerParamWithStream>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.booleansendAudioFrame(ByteBuffer audioFrame) Deprecated.Send one frame audiovoidstop()Deprecated.Stop Speech Translation and Recognition real-time via call and sendAudioFrame API.
-
Constructor Details
-
TranslationRecognizerChat
public TranslationRecognizerChat()Deprecated.Gummy Translation and Recognition Chat SDK. -
TranslationRecognizerChat
Deprecated.Gummy Translation and Recognition chat SDK.- Parameters:
baseUrl- Base URL
-
TranslationRecognizerChat
Deprecated.Gummy Translation and Recognition chat SDK.- Parameters:
baseUrl- Base URLconnectionOptions- Connection options
-
-
Method Details
-
call
public void call(TranslationRecognizerParam param, ResultCallback<TranslationRecognizerResult> callback) Deprecated.Start Speech Translation and Recognition chat 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.- Returns:
- true if send success, false if received sentenceEnd. This chat service will not send any audio after recognize one sentence. You should stop sending audio and call stop API if return is false.
-
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.audio.asr.translation.TranslationRecognizerChat.TranslationRecognizerParamWithStream> getDuplexApi()Deprecated.
-