类的使用
com.tencent.asr.service.SpeechRecognitionListener
| 程序包 | 说明 |
|---|---|
| com.tencent | |
| com.tencent.asr.service |
-
com.tencent中SpeechRecognitionListener的使用
参数类型为SpeechRecognitionListener的com.tencent中的方法 修饰符和类型 方法 说明 SpeechRecognizerSpeechClient. newSpeechRecognizer(SpeechRecognitionRequest request, SpeechRecognitionListener speechRecognitionListener)创建SpeechRecognizer,默认使用websocketstatic SpeechRecognizerSpeechClient. newSpeechWsRecognizer(Credential credential, WsClientService clientService, SpeechRecognitionRequest request, SpeechRecognitionListener speechRecognitionListener)asr websocket 支持自定义场景SpeechRecognizerSpeechClient. newWsSpeechRecognizer(SpeechRecognitionRequest request, SpeechRecognitionListener speechRecognitionListener)创建SpeechRecognizer,websocket -
com.tencent.asr.service中SpeechRecognitionListener的使用
声明为SpeechRecognitionListener的com.tencent.asr.service中的字段 修饰符和类型 字段 说明 protected SpeechRecognitionListenerSpeechWsRecognizer. listener用户实时结果监听器protected SpeechRecognitionListenerHttpBaseService. speechRecognitionListener用户结果监听器参数类型为SpeechRecognitionListener的com.tencent.asr.service中的构造器 构造器 说明 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)初始化参数