public class TXZVoiceprintRecognitionManager
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
TXZVoiceprintRecognitionManager.CloudUser |
static interface |
TXZVoiceprintRecognitionManager.RecordFileStateCallback |
static interface |
TXZVoiceprintRecognitionManager.ResultCallback<T> |
限定符和类型 | 方法和说明 |
---|---|
void |
getAllUserByGroupId(java.lang.String groupId,
TXZVoiceprintRecognitionManager.ResultCallback<java.util.List<TXZVoiceprintRecognitionManager.CloudUser>> callback)
获取指定用户组Id的所有用户信息
|
java.lang.String |
getCoreGroupId()
获取Core用户组ID
|
static TXZVoiceprintRecognitionManager |
getInstance() |
void |
groupAdd(java.lang.String groupName,
java.lang.String describe,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
添加用户组
|
void |
groupRemove(java.lang.String groupId,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
删除用户组
|
void |
register(java.lang.String username,
java.lang.String describe,
java.lang.String groupId,
java.util.List<java.lang.String> fileIds,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
注册用户声纹
|
void |
removeRecordFileStateCallback() |
void |
removeUser(java.lang.String clientId,
java.lang.String groupId,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
删除用户
|
void |
resetUser(java.lang.String clientId,
java.lang.String username,
java.lang.String groupId,
java.util.List<java.lang.String> fileIds,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
重置用户声纹
|
void |
setRecordFileStateCallback(TXZVoiceprintRecognitionManager.RecordFileStateCallback callback)
设置保存录音文件回调监听,后面设置的回调会覆盖之前的回调
|
void |
upload(java.lang.String path,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
上传录音文件用于声纹功能
|
void |
upload(TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
上传录音文件用于声纹功能,使用语音缓存的录音文件
|
void |
verify(java.lang.String clientId,
java.lang.String groupId,
java.lang.String fileId,
TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
验证用户声纹
|
void |
verify(java.lang.String groupId,
java.lang.String fileId,
TXZVoiceprintRecognitionManager.ResultCallback<java.util.List<TXZVoiceprintRecognitionManager.CloudUser>> callback)
验证用户声纹
|
public static TXZVoiceprintRecognitionManager getInstance()
public void setRecordFileStateCallback(TXZVoiceprintRecognitionManager.RecordFileStateCallback callback)
callback
- public void removeRecordFileStateCallback()
public void upload(java.lang.String path, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
path
- 录音文件路径callback
- 上传结果回调public void upload(TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
callback
- 上传结果回调public void register(java.lang.String username, java.lang.String describe, java.lang.String groupId, java.util.List<java.lang.String> fileIds, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
username
- 用户名groupId
- 用户组IDfileIds
- 上传文件ID列表callback
- 注册结果回调public void resetUser(java.lang.String clientId, java.lang.String username, java.lang.String groupId, java.util.List<java.lang.String> fileIds, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
clientId
- 用户IDusername
- 用户名groupId
- 用户组IDfileIds
- 上传文件ID列表callback
- 注册结果回调public void verify(java.lang.String clientId, java.lang.String groupId, java.lang.String fileId, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
clientId
- 用户IDgroupId
- 用户组IDfileId
- 上传文件IDcallback
- 验证结果回调public void verify(java.lang.String groupId, java.lang.String fileId, TXZVoiceprintRecognitionManager.ResultCallback<java.util.List<TXZVoiceprintRecognitionManager.CloudUser>> callback)
groupId
- 用户组IDfileId
- 上传文件IDcallback
- 验证结果回调public void removeUser(java.lang.String clientId, java.lang.String groupId, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
clientId
- 用户IDgroupId
- 用户组IDcallback
- 删除结果回调public void getAllUserByGroupId(java.lang.String groupId, TXZVoiceprintRecognitionManager.ResultCallback<java.util.List<TXZVoiceprintRecognitionManager.CloudUser>> callback)
groupId
- 用户组IDcallback
- 数据结果回调public void groupAdd(java.lang.String groupName, java.lang.String describe, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.String> callback)
groupName
- 用户组名describe
- 用户组描述callback
- 结果回调public void groupRemove(java.lang.String groupId, TXZVoiceprintRecognitionManager.ResultCallback<java.lang.Boolean> callback)
groupId
- 用户组IDcallback
- 结果回调public java.lang.String getCoreGroupId()