Google Cloud Speech Recognition 3.0
Google Cloud Speech Recognition How to use First of all, you need to add GCSpeechRecognition prefab from FrostweepGames->GCSpeechRecognition->Prefabs folder to your working scene. Then you need to set your own API key of Google Cloud Speech Recognition into Api Key field and enable IsUseAPIKeyFromPrefab if you want to set api key in prefab, if not – will be used API Key from Constants.cs script. If you don’t have API Key, you can get it from https://cloud.google.com/speech/ , https://cloud.google.com/speech/docs/common/auth#restrictions Frostweep Games, 2017 Then we need to create script with name Example and write base logic: You can handle response of Speech Recognition in SpeechRecognizedSuccessEventHandler To get result of the recognition you can use RecognitionResponse->results->alternatives->transcript path. Where RecognitionResponse is an instance of the RecognitionResponse object. For the start recording you can call this method: Include Boolean parameter for enabling runtime voice detection or not. For the stop recording you can call this method: For set the list of arrays of speech contexts you can call this method: Frostweep Games, 2017 _speechRecognition is an instance of GCSpeechRecognition class: If you want to set language you can call this method (where value is integer converted to LanguageCode enum):
- 粉丝: 15
- 资源: 11
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于 Ant 的 Java 项目示例.zip
- 各种字符串相似度和距离算法的实现Levenshtein、Jaro-winkler、n-Gram、Q-Gram、Jaccard index、最长公共子序列编辑距离、余弦相似度…….zip
- 运用python生成的跳跃的爱心
- 包括用 Java 编写的程序 欢迎您在此做出贡献!.zip
- (源码)基于QT框架的学生管理系统.zip
- 功能齐全的 Java Socket.IO 客户端库,兼容 Socket.IO v1.0 及更高版本 .zip
- 功能性 javascript 研讨会 无需任何库(即无需下划线),只需 ES5 .zip
- 分享Java相关的东西 - Java安全漫谈笔记相关内容.zip
- 具有适合 Java 应用程序的顺序定义的 Cloud Native Buildpack.zip
- 网络建设运维资料库职业