Class TranslationRecognizerRealtime
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.asr.translation.TranslationRecognizerRealtime
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Gummy Translation and Recognition real-time SDK.TranslationRecognizerRealtime(String baseUrl) Deprecated.Gummy Translation and Recognition real-time SDK.TranslationRecognizerRealtime(String baseUrl, ConnectionOptions connectionOptions) Deprecated.Gummy Translation and Recognition real-time SDK. -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(TranslationRecognizerParam param, ResultCallback<TranslationRecognizerResult> callback) Deprecated.Start Speech Translation and Recognition real-time via sendAudioFrame API.call(TranslationRecognizerParam param, File file) Deprecated.Speech Translation and Recognition real-time from local file.SynchronizeFullDuplexApi<com.alibaba.dashscope.legacy_2x.audio.asr.translation.TranslationRecognizerRealtime.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.voidsendAudioFrame(ByteBuffer audioFrame) Deprecated.Send one frame audiovoidstop()Deprecated.Stop Speech Translation and Recognition real-time via call and sendAudioFrame API.io.reactivex.Flowable<TranslationRecognizerResult>streamCall(TranslationRecognizerParam param, io.reactivex.Flowable<ByteBuffer> audioFrame) Deprecated.Speech Translation and Recognition real-time using Flowable features
-
Constructor Details
-
TranslationRecognizerRealtime
public TranslationRecognizerRealtime()Deprecated.Gummy Translation and Recognition real-time SDK. -
TranslationRecognizerRealtime
Deprecated.Gummy Translation and Recognition real-time SDK.- Parameters:
baseUrl- Base URL
-
TranslationRecognizerRealtime
Deprecated.Gummy Translation and Recognition real-time SDK.- Parameters:
baseUrl- Base URLconnectionOptions- Connection options
-
-
Method Details
-
streamCall
public io.reactivex.Flowable<TranslationRecognizerResult> streamCall(TranslationRecognizerParam param, io.reactivex.Flowable<ByteBuffer> audioFrame) throws ApiException, NoApiKeyException Deprecated.Speech Translation and Recognition real-time using Flowable features- Parameters:
param- Configuration for speech translation and recognition, including audio format, source language, target languages, etc.audioFrame- The audio stream to be recognized- Returns:
- The output event stream, including real-time asr and translation results and timestamps
- Throws:
ApiExceptionNoApiKeyException
-
call
public void call(TranslationRecognizerParam param, ResultCallback<TranslationRecognizerResult> callback) 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
-
call
Deprecated.Speech Translation and Recognition real-time from local file.- Parameters:
param- Configuration for speech translation and recognition, including audio format, source language, target languages, etc.file- Local audio file
-
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.audio.asr.translation.TranslationRecognizerRealtime.TranslationRecognizerParamWithStream> getDuplexApi()Deprecated.
-