翻译微软官方HoloLens开发课程 语音识别
来源:互联网 发布:统一网络加速器 编辑:程序博客网 时间:2024/06/11 00:38
该脚本挂在摄像机上
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.Windows.Speech; //关键字识别的API
public class SpeechManagerrr : MonoBehaviour {
KeywordRecognizer recognizer; //能识别关键字S
//存放关键字的字典
private Dictionary<string, System.Action> keyWord = new Dictionary<string, System.Action>();
void Start () {
keyWord.Add("Hi", () => { FindObjectOfType<Cbuerrr>().OnTapped(); });
//初始化关键字识别器
recognizer = new KeywordRecognizer(keyWord.Keys.ToArray());
recognizer.OnPhraseRecognized += Recognizer_OnPhraseRecognized;
recognizer.Start();
}
private void Recognizer_OnPhraseRecognized(PhraseRecognizedEventArgs args)
{
System.Action action;
if (keyWord.TryGetValue(args.text, out action))
{
action();
}
}
}
- 翻译微软官方HoloLens开发课程 语音识别
- 翻译微软官方HoloLens开发课程 手势识别
- 翻译微软官方HoloLens开发课程 凝视
- HoloLens开发手记 - 语音识别(语音命令)
- HoloLens开发手记 - 语音识别(听写识别)
- Hololens入门之语音识别(语音命令)
- Hololens入门之语音识别(语音听写)
- VC++基于微软语音引擎开发语音识别总结
- VC++基于微软语音引擎开发语音识别总结
- VC++基于微软语音引擎开发语音识别总结
- VC++基于微软语音引擎开发语音识别总结
- VC++基于微软语音引擎开发语音识别总结
- VC++基于微软语音引擎开发语音识别总结
- VC++基于微软语音引擎开发语音识别总结
- Hololens语音识别之holotoolkit1.5.7
- 语音识别 VC++基于微软语音引擎SAPI开发语音识别总结
- 微软语音识别网址
- 微软语音识别
- oracle数据库使用mybatis批量插入
- shell命令:暂停进程执行
- 同步、异步与阻塞、非阻塞
- HTML单选按钮(Radio)样式更改以及多选按钮(Checkbox)样式更改
- 欢迎使用CSDN-markdown编辑器
- 翻译微软官方HoloLens开发课程 语音识别
- [LeetCode] Can I Win
- 面向对象
- Mac OS Sierra (v10.12)打开任何来源的应用
- oracle11g安装与完全卸载
- odoo10 debian 8.4 Could not execute command lessc
- x264编码指南——码率控制
- Android中自动跳转到系统设置界面
- 为何要make update -api