public interface BaseRecognition
| 限定符和类型 | 方法和说明 |
|---|---|
String |
call(RecognitionParam param,
File file)
Call the server to do a blocking style recognition from file.
|
void |
call(RecognitionParam param,
ResultCallback<RecognitionResult> callback)
Call the server to do a callback style realtime recognition.
|
void |
sendAudioFrame(ByteBuffer audioFrame)
Send audio frame to server.
|
void |
stop()
Stop the recognition.
|
io.reactivex.Flowable<RecognitionResult> |
streamCall(RecognitionParam param,
io.reactivex.Flowable<ByteBuffer> audioFrames)
Call the server to do a stream-in, stream-out realtime recognition.
|
io.reactivex.Flowable<RecognitionResult> streamCall(RecognitionParam param, io.reactivex.Flowable<ByteBuffer> audioFrames)
param - The input param, should be the subclass of `RecognitionParam`.void call(RecognitionParam param, ResultCallback<RecognitionResult> callback)
param - The input param, should be the subclass of `RecognitionParam`.callback - The callback to receive response, should be the subclass of
`RecognitionResult`.String call(RecognitionParam param, File file)
param - The input param, should be the subclass of `RecognitionParam`.file - The file to be recognized.void sendAudioFrame(ByteBuffer audioFrame)
audioFrame - The audio frame to send.void stop()
Copyright © 2023. All rights reserved.