java.lang.Object
com.alibaba.dashscope.legacy_2x.audio.asr.recognition.Recognition

@Deprecated public final class Recognition extends Object
Deprecated.
  • Constructor Details

    • Recognition

      public Recognition()
      Deprecated.
    • Recognition

      public Recognition(ConnectionOptions connectionOptions)
      Deprecated.
    • Recognition

      public Recognition(ConnectionOptions connectionOptions, String baseUrl)
      Deprecated.
  • Method Details

    • streamCall

      public io.reactivex.Flowable<RecognitionResult> streamCall(RecognitionParam param, io.reactivex.Flowable<ByteBuffer> audioFrame) throws ApiException, NoApiKeyException
      Deprecated.
      Throws:
      ApiException
      NoApiKeyException
    • call

      public void call(RecognitionParam param, ResultCallback<RecognitionResult> callback)
      Deprecated.
    • call

      public String call(RecognitionParam param, File file)
      Deprecated.
    • sendAudioFrame

      public void sendAudioFrame(ByteBuffer audioFrame)
      Deprecated.
    • updateContext

      public void updateContext(Map<String,Object> payloadInput)
      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

      public String getLastRequestId()
      Deprecated.
    • getDuplexApi

      public SynchronizeFullDuplexApi<com.alibaba.dashscope.legacy_2x.audio.asr.recognition.Recognition.RecognitionParamWithStream> getDuplexApi()
      Deprecated.