All Projects → gsssrao → Unityandroidspeechrecognition

gsssrao / Unityandroidspeechrecognition

Licence: gpl-3.0
This repository is a Unity plugin for Android Speech Recognition (based on Java implementation)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Unityandroidspeechrecognition

Admob Unity Plugin
👾 An extension for Unity3d to place AdMob banners in your Android games.
Stars: ✭ 86 (+17.81%)
Mutual labels:  unity3d, unity3d-plugin, plugin
Ubernet
Flexible networking library for Unity
Stars: ✭ 10 (-86.3%)
Mutual labels:  unity3d, unity3d-plugin
Uduino
Simple and easy connection between Arduino and Unity
Stars: ✭ 25 (-65.75%)
Mutual labels:  unity3d, unity3d-plugin
Unitypluginwithwsl
Unity native plugin with WSL (Windows Subsystem for Linux)
Stars: ✭ 39 (-46.58%)
Mutual labels:  unity3d, plugin
Mmmm
Stars: ✭ 645 (+783.56%)
Mutual labels:  unity3d, unity3d-plugin
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (+824.66%)
Mutual labels:  unity3d, unity3d-plugin
Minimumaudioplugin
Minimum implementation of a native audio plugin for Unity
Stars: ✭ 33 (-54.79%)
Mutual labels:  unity3d, plugin
Jengine
JEngine是针对Unity开发者设计的开箱即用的框架,封装了强大的功能,小白也能快速上手,轻松制作可以热更新的游戏 | JEngine is a streamlined and easy-to-use framework designed for Unity Programmers which contains powerful features, beginners can start up quickly and making hot update-able games easily
Stars: ✭ 564 (+672.6%)
Mutual labels:  unity3d, unity3d-plugin
Meshstreaminggrasshopper
Plugin for Grasshopper to stream mesh geometry through web socket.
Stars: ✭ 52 (-28.77%)
Mutual labels:  unity3d, plugin
X Postprocessing Library
Unity Post Processing Stack Library | Unity引擎的高品质后处理库
Stars: ✭ 1,079 (+1378.08%)
Mutual labels:  unity3d, unity3d-plugin
Unityasync
Task and Async Utility Package for Unity. Start co-routines from anywhere.
Stars: ✭ 58 (-20.55%)
Mutual labels:  unity3d, unity3d-plugin
Lunar Unity Console
High-performance Unity iOS/Android logger built with native platform UI
Stars: ✭ 628 (+760.27%)
Mutual labels:  unity3d, unity3d-plugin
Unitymeshsimplifier
Mesh simplification for Unity.
Stars: ✭ 592 (+710.96%)
Mutual labels:  unity3d, unity3d-plugin
Unity Quicksheet
Unity-QuickSheet enables you to use spreadsheet file data within Unity editor.
Stars: ✭ 742 (+916.44%)
Mutual labels:  unity3d, unity3d-plugin
Spritedicing
Unity extension for reusing sprite texture areas
Stars: ✭ 589 (+706.85%)
Mutual labels:  unity3d, unity3d-plugin
Savegamepro
A Complete and Powerful Save Game Solution for Unity (Game Engine)
Stars: ✭ 30 (-58.9%)
Mutual labels:  unity3d, unity3d-plugin
Awesome Unity Open Source On Github
A categorized collection of awesome Unity open source on GitHub (800+)
Stars: ✭ 1,124 (+1439.73%)
Mutual labels:  unity3d, unity3d-plugin
Unity3d Rainbow Folders
This asset allows you to set custom icons for any folder in unity project browser.
Stars: ✭ 519 (+610.96%)
Mutual labels:  unity3d, unity3d-plugin
Absystem
Unity3D AssetBundle 打包与管理系统
Stars: ✭ 526 (+620.55%)
Mutual labels:  unity3d, unity3d-plugin
Documentation
Online documentation and tracking tools for Naninovel — writer-friendly visual novel engine
Stars: ✭ 48 (-34.25%)
Mutual labels:  unity3d, plugin

UnityAndroidSpeechRecognition

This repository is a Unity plugin for Android Speech Recognition (based on Java implementation). This is just a basic implementation which uses the inbuilt Android Speech Recognition. I have implemented some additional functions to give some basic functionality.

Features

  • Set Recognition Language
  • Set the max number of results
  • Set the prompt question

Usage

  • You can first test out the SpeechRecognition.apk from here. You need a minimum of Android Lollipop (API Level 21) to use this apk.
  • Next, import SpeechRecognition.unitypackage into your Unity project. (Tested latest on Unity 2018.1.0f2)
  • To include SpeechReconginition in your own project copy the contents of Plugins/Android/ into the same folder in your project and have a look at Test.cs and ReceiveResult.cs for an example usage. Test.cs has function for calling the speech recognition popoup whereas ReceiveResult.cs has function which receives the recognized text.
  • When you press the button, a speech recognition itent should pop up. This intent sends the recognized text to 'void onActivityResult(string recognizedText)' function of the object 'Main Camera' (You can change the object to which ReceiveResult.cs should be attached by changing the object name in Test.cs. The default return object is set to 'Main Camera').
  • You can change the following line pluginClass.CallStatic("setLanguage", "en_US") in Test.cs to change the language. A list of languages along with their tags is present in the languages.txt file. This file is not exhaustive.
  • Similarly you can also manipulate other features like maximum number of results etc (In case of the max number of results, this is literally maximum and the number of results you get may not always be this number, but it would be definitely less than this number).

Experimenting

  • You can import SpeechPlugin to Android Studio to experiment with it (pluginlibrary module is only important).
  • Once you make changes and build the module you should have a pluginlibrary-release.aar file in SpeechPlugin/pluginlibrary/build/outputs/aar folder. Rename this to speechassist-debug.zip and then unzip it. On unzipping you will get a classes.jar file which you will have to copy into Plugins/Android folder in Unity along with the AndroidManifest.xml. The manifest specifies the activity class which extends the UnityPlayerActivity and hence is necessary. If you already have a manifest in plugins folder, I would recommend against copying this manifest as it can cause confilict. Instead, you can modify the manifest which you already have to specify the activity class which extends the UnityPlayerActivity.
  • One more thing to observe is that I have classes.jar in my libs folder of my AndroidStudio project. Have a look at this post to know where you can find it.

Note

  • I have extended UnityPlayerActivity with my custom activity and forced to subsitute it by changing the manifest file. Though, this works it is undesirable when you want to make/use multiple plugins. An ideal way would be to create a custom activity that will be short-lived and its sole purpose would be to get created, do the job (user picks photo from gallery e.g.), deliver result (picked image) into onActivityResult and terminate itself. Please refer this post for more details on this approach. I will update the plugin once I have more free time.

  • On experiencing a problem, feel free to create an issue.

  • If you want any additional features too, feel free to create an issue.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].