| 程序包 | 说明 |
|---|---|
| com.alibaba.dashscope | |
| com.alibaba.dashscope.aigc.conversation | |
| com.alibaba.dashscope.audio.asr.recognition | |
| com.alibaba.dashscope.audio.tts | |
| com.alibaba.dashscope.protocol |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BaseConversation.call(ConversationParam param,
ResultCallback<ConversationResult> callback)
Call the server to get the result in the callback function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Conversation.call(ConversationParam param,
ResultCallback<ConversationResult> callback)
Call the server to get the result in the callback function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BaseRecognition.call(RecognitionParam param,
ResultCallback<RecognitionResult> callback)
Call the server to do a callback style realtime recognition.
|
void |
Recognition.call(RecognitionParam param,
ResultCallback<RecognitionResult> callback) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SpeechSynthesizer.call(SpeechSynthesisParam param,
ResultCallback<SpeechSynthesisResult> callback) |
void |
BaseSpeechSynthesizer.call(SpeechSynthesisParam param,
ResultCallback<SpeechSynthesisResult> callback)
Call the server to get the result in the callback function.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
WebsocketRpc.call(io.reactivex.Flowable<Request> requests,
ResultCallback<Response> responseCallback,
java.util.function.Function<String,Boolean> completeCallback)
Do call.
|
void |
WebsocketRpc.call(Request request,
ResultCallback<Response> responseCallback,
java.util.function.Function<String,Boolean> completeCallback)
Do call.
|
static void |
ServiceFacility.streamCall(Map<String,String> extraHeaders,
io.reactivex.Flowable<Param> params,
ResultCallback<Result> resultCallback)
Call the network to do a single-in, stream-out request via a callback.
|
static void |
ServiceFacility.streamingInAndDuplexWithCallback(String url,
Map<String,String> headers,
io.reactivex.Flowable<Request> requests,
ResultCallback<Response> callback)
Call rpc with a callback on stream-in mode, only support websocket.
|
static void |
ServiceFacility.streamingOutWithCallback(Protocol protocol,
String url,
Map<String,String> headers,
Request request,
HttpMethod httpMethod,
StreamingMode mode,
ResultCallback<Response> callback)
Call rpc on single-in mode with a callback.
|
| 构造器和说明 |
|---|
HttpRpc(String url,
ResultCallback<Response> responseCallback)
Construct the class.
|
Copyright © 2023. All rights reserved.