NIM Unity SDK
V2.4.2
|
Public 成员函数 | |
delegate void | Audio2TextDelegate (int rescode, string text, object userData) |
语音转文字结果委托 更多... | |
静态 Public 成员函数 | |
static string | GetUserAppDataDir (string appAccount) |
获取SDK里app account对应的app data目录(各个帐号拥有独立的目录,其父目录相同) 更多... | |
static string | GetUserSpecificAppDataDir (string appAccount, NIMAppDataType appdataType) |
获取SDK里app account对应的具体类型的app data目录(如图片消息文件存放目录,语音消息文件存放目录等) 更多... | |
static string | GetLocalAppDataDir () |
获取本地存储路径 更多... | |
static string | GetCurModuleDir () |
获取安装目录(SDK DLL所在的当前目录) 更多... | |
static string | GetMd5 (string input) |
计算md5 更多... | |
static string | GetFileMd5 (string filePath) |
计算文件的md5 更多... | |
static string | GetUuid () |
生成UUID 更多... | |
static void | GetAudioTextAsync (NIMAudioInfo audioInfo, string jsonExtension, NIMTools.GetAudioTextCb cb) |
语音转文字 更多... | |
static void | ConverteAudio2Text (NIMAudioInfo audioInfo, Audio2TextDelegate cb, object userData=null) |
语音转文字 更多... | |
static bool | IsTextMatchedKeywords (string text, string libName) |
字符串是否匹配词库中的模式 更多... | |
static string | ReplaceTextMatchedKeywords (string text, string replace, string libName) |
delegate void NIM.ToolsAPI.Audio2TextDelegate | ( | int | rescode, |
string | text, | ||
object | userData | ||
) |
语音转文字结果委托
rescode | 错误码 |
text | 转换后的文字 |
userData | 自定义数据 |
|
inlinestatic |
获取SDK里app account对应的app data目录(各个帐号拥有独立的目录,其父目录相同)
appAccount | APP account。如果传入空字符串,则将获取到各个帐号目录的父目录(谨慎删除!) |
|
inlinestatic |
获取SDK里app account对应的具体类型的app data目录(如图片消息文件存放目录,语音消息文件存放目录等)
appAccount | APP account。如果传入空字符串,则返回结果为空 |
appdataType | 具体类型的app data。见NIMAppDataType定义 |
|
inlinestatic |
获取本地存储路径
|
inlinestatic |
获取安装目录(SDK DLL所在的当前目录)
|
inlinestatic |
计算md5
input | 需要计算md5的内容 |
|
inlinestatic |
计算文件的md5
filePath | 文件完整路径 |
|
inlinestatic |
生成UUID
|
inlinestatic |
语音转文字
audioInfo | 语音信息 |
jsonExtension | json_extension json扩展参数(备用,目前不需要) |
cb | 语音转文字回调 |
userData | APP的自定义用户数据,SDK只负责传回给回调函数cb,不做任何处理! |
|
inlinestatic |
语音转文字
audioInfo | 语音信息 |
cb | 转换结果回调 |
userData | 自定义数据,在回调函数中使用 |
|
inlinestatic |
字符串是否匹配词库中的模式
text | 目标文本 |
libName | 词库名称 |
|
inlinestatic |
替换在词库中匹配的字符串
text | 目标文本 |
replace | 替换字符串 |
libName | 词库名称 |