Class Recognition
java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.asr.recognition.Recognition
Deprecated.
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Recognition(ConnectionOptions connectionOptions) Deprecated.Recognition(ConnectionOptions connectionOptions, String baseUrl) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidcall(RecognitionParam param, ResultCallback<RecognitionResult> callback) Deprecated.call(RecognitionParam param, File file) Deprecated.SynchronizeFullDuplexApi<com.alibaba.dashscope.legacy_2x.audio.asr.recognition.Recognition.RecognitionParamWithStream>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.voidstop()Deprecated.io.reactivex.Flowable<RecognitionResult>streamCall(RecognitionParam param, io.reactivex.Flowable<ByteBuffer> audioFrame) Deprecated.voidupdateContext(Map<String, Object> payloadInput) Deprecated.Updates the recognition context while the task is running.
-
Constructor Details
-
Recognition
public Recognition()Deprecated. -
Recognition
Deprecated. -
Recognition
Deprecated.
-
-
Method Details
-
streamCall
public io.reactivex.Flowable<RecognitionResult> streamCall(RecognitionParam param, io.reactivex.Flowable<ByteBuffer> audioFrame) throws ApiException, NoApiKeyException Deprecated.- Throws:
ApiExceptionNoApiKeyException
-
call
Deprecated. -
call
Deprecated. -
sendAudioFrame
Deprecated. -
updateContext
Deprecated.Updates the recognition context while the task is running.- Parameters:
payloadInput- conversation context carried in payload.input
-
stop
public void stop()Deprecated. -
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.recognition.Recognition.RecognitionParamWithStream> getDuplexApi()Deprecated.
-