| 程序包 | 说明 |
|---|---|
| com.tencent | |
| com.tencent.asr.service |
| 限定符和类型 | 方法和说明 |
|---|---|
SpeechRecognizer |
SpeechClient.newSpeechRecognizer(SpeechRecognitionRequest request,
SpeechRecognitionListener speechRecognitionListener)
创建SpeechRecognizer,默认使用websocket
|
static SpeechRecognizer |
SpeechClient.newSpeechWsRecognizer(Credential credential,
WsClientService clientService,
SpeechRecognitionRequest request,
SpeechRecognitionListener speechRecognitionListener)
asr websocket 支持自定义场景
|
SpeechRecognizer |
SpeechClient.newWsSpeechRecognizer(SpeechRecognitionRequest request,
SpeechRecognitionListener speechRecognitionListener)
创建SpeechRecognizer,websocket
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected SpeechRecognitionListener |
SpeechWsRecognizer.listener
用户实时结果监听器
|
protected SpeechRecognitionListener |
HttpBaseService.speechRecognitionListener
用户结果监听器
|
| 构造器和说明 |
|---|
HttpBaseService(java.lang.String streamId,
AsrConfig config,
AsrRequest request,
SpeechRecognitionListener speechRecognitionListener) |
SpeechHttpRecognizer(java.lang.String streamId,
AsrConfig config,
AsrRequest request,
SpeechRecognitionListener speechRecognitionListener) |
SpeechWsRecognizer(WsClientService wsClientService,
java.lang.String streamId,
AsrConfig config,
SpeechRecognitionRequest request,
SpeechRecognitionListener listener)
初始化参数
|
Copyright © 2023. All rights reserved.