该内容对您有帮助吗?
是否更新时间:2022-04-25 02:09:22下载pdf
安卓版小智管家语音 UI 业务包包含了语音控制设备的相关功能。小智管家语音助手是涂鸦智能提供的智能家居语音服务,针对通过涂鸦 IoT 平台开发实现的海量智能设备,能便捷地实现语音控制。
在工程 module
的 build.gradle
添加如下配置:
dependencies {
implementation 'com.tuya.smart:tuyasmart-bizbundle-speech:3.34.5-9'
}
因为安卓版小智管家语音 UI 业务包使用了设备控制 UI 业务包的能力,因此,您需要同时集成 同版本的设备控制 UI 业务包。详情请参考 设备控制 UI 业务包。
打开语音页面:
UrlRouter.execute(UrlRouter.makeBuilder(context, "speech"));
查询设备是否支持小智管家语音功能:
AbsTuyaAssisantGuideService assistantGuideService = MicroServiceManager.getInstance().findServiceByInterface(AbsTuyaAssisantGuideService.class.getName();
if (assistantGuideService != null) {
boolean isSupportSpeech = assistantGuideService.isSupportAssisantSpeech();
}
开通小智管家语音服务后,以下账号情况支持语音识别:
显示添加桌面快捷方式弹窗:
AbsTuyaAssisantGuideService assistantGuideService = MicroServiceManager.getInstance().findServiceByInterface(AbsTuyaAssisantGuideService.class.getName();
if (assistantGuideService != null) {
assistantGuideService.checkAssisantGuideDialog(context);
}
该内容对您有帮助吗?
是否该内容对您有帮助吗?
是否