Skip navigation links
C G O S 

C

close() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
关闭连接
com.alibaba.nls.client.protocol.asr - package com.alibaba.nls.client.protocol.asr
 

G

getConfidence() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerResponse
置信度.(语音识别结果的置信度,范围0~1)
getFormat() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
 
getLexicalText() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerResponse
后处理之前的结果
getRecognizedText() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerResponse
最终识别结果
getSampleRate() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
 

O

onClose(int, String) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
onError(Throwable) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
onFail(int, String) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
失败状况处理
onMessage(String) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
onMessage(ByteBuffer) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
onOpen() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
onRecognitionCompleted(SpeechRecognizerResponse) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
语音识别结束后返回的最终结果
onRecognitionResultChanged(SpeechRecognizerResponse) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
语音识别过程中返回的结果

S

send(byte[]) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
自己控制发送,需要控制发送速率
send(InputStream) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
实时采集音频流
send(InputStream, int, int) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
语音数据来自文件,发送时需要控制速率,使单位时间内发送的数据大小接近单位时间原始语音数据存储的大小 <对于8k pcm 编码数据,建议每发送3200字节 sleep 200 ms/li> 对于16k pcm 编码数据,建议每发送6400字节 sleep 200 ms/li> 对于其它编码格式的数据,用户根据压缩比,自行估算,比如压缩比为10:1的 16k opus ,需要每发送6400/10=640 sleep 200ms/li>
setEnableIntermediateResult(boolean) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
是否返回中间识别结果,默认为false
setEnableITN(boolean) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
设置开启ITN(Inverse Text Normalization),,开启后汉字数字将转为阿拉伯数字输出,默认关闭
setEnablePunctuation(boolean) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
是否在识别结果中添加标点,默认值为false
setFormat(InputFormatEnum) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
输入音频格式
setSampleRate(SampleRateEnum) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
输入音频采样率 8000 16000
setSpeechRecognizer(SpeechRecognizer) - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
SpeechRecognizer - Class in com.alibaba.nls.client.protocol.asr
Created by zhishen on 2017/11/24.
SpeechRecognizer(NlsClient, SpeechRecognizerListener) - Constructor for class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
 
SpeechRecognizerListener - Class in com.alibaba.nls.client.protocol.asr
Created by zhishen on 2017/11/2.
SpeechRecognizerListener() - Constructor for class com.alibaba.nls.client.protocol.asr.SpeechRecognizerListener
 
SpeechRecognizerResponse - Class in com.alibaba.nls.client.protocol.asr
Created by zhishen on 2017/11/3.
SpeechRecognizerResponse() - Constructor for class com.alibaba.nls.client.protocol.asr.SpeechRecognizerResponse
 
start() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
开始语音识别:发送识别请求,同步接收服务端确认
stop() - Method in class com.alibaba.nls.client.protocol.asr.SpeechRecognizer
结束语音识别:发送结束识别通知,接收服务端确认
C G O S 
Skip navigation links

Copyright © 2018. All rights reserved.