• Stars
    star
    143
  • Rank 257,007 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Speech recognition in Unity3D.

Speech Recognition in Unity

Speech (Voice) Recognition using C# and Unity3D.

Speech recognition game in Unity3D

Prerequisites

To run the project, you’ll need the following software components:

  • Unity3D 5.5+
  • Visual Studio 2015+
  • Windows 10

Source Code

We'll be using the KeywordRecognizer class to detect the voice commands:

private KeywordRecognizer recognizer;

private void Start()
{
    if (keywords != null)
    {
        recognizer = new KeywordRecognizer(keywords, confidence);
        recognizer.OnPhraseRecognized += Recognizer_OnPhraseRecognized;
        recognizer.Start();
    }
}

private void OnApplicationQuit()
{
    if (recognizer != null && recognizer.IsRunning)
    {
        recognizer.Stop();
    }
}

private void Recognizer_OnPhraseRecognized(PhraseRecognizedEventArgs args)
{
    word = args.text;
    results.text = "You said: <b>" + word + "</b>";
}

Exporting the project

KeywordRecognizer is available for Windows Standalone and Windows Store (Windows 8.1 or Windows 10):

  • PC
  • Phone
  • XBOX
  • HoloLens

Contributors

The project is brought to you by LightBuzz

More Repositories

1

Vitruvius

A set of easy-to-use Kinect utilities that will speed-up the development of your projects.
C#
228
star
2

Kinect-Finger-Tracking

The most accurate way to track fingers using Kinect v2.
C#
126
star
3

Body-Tracking-ARKit

Sample use of Unity's ARFoundation and ARKit3 body tracking
C#
108
star
4

Kinect-HTML5

Display Kinect data on an HTML5 canvas using WebSockets
C#
66
star
5

Azure-Unity

The definitive Azure SDK for Unity3D with local SQLite database support.
C#
56
star
6

Archiver-Unity

Compress and decompress files and folders in Unity3D.
C#
40
star
7

Hololens-Pokemon-Go

Pokemon Go Demo in HoloLens
C#
23
star
8

Kinect-Drawing

A simple drawing app using Kinect, C#, and XAML.
C#
23
star
9

Kinect-2-CSV

Save Kinect body data into a CSV file (and view it as an Excel spreadsheet)
C#
21
star
10

SMTP-WinRT

An SMTP client for WinRT. Send emails from within your Windows 8 and Windows Phone app.
C#
21
star
11

Kinect-Weight-Lifting-Bar

Detect a weight-lifting bar using Kinect for Windows version 2.
C#
20
star
12

RealSense

C# utilities for the Intel RealSense D415/435
C#
16
star
13

Kinect-Floor

Floor detection using Kinect v2.
C#
14
star
14

OpenCV

OpenCV for iOS and VisionOS.
C++
11
star
15

Settings-Unity

Settings utility for Unity3D.
C#
9
star
16

Speech-Recognition-Android

Speech (Voice) Recognition using Java and Android.
Java
9
star
17

Kinect-Basketball-Spinner

Basketball Spinner using Kinect v2 and Unity3D. Augmented Reality App.
C#
8
star
18

Unity-Package-Export

Export an existing Unity Package as a tarball (.tgz) file.
C#
5
star
19

Azure-HoloLens

Connects to an Azure App Service and fetches data to a HoloLens application.
C#
4
star
20

Mobile-AR

Showcasing ARFoundation, ARCore and ARKit
C#
4
star
21

Localization-UWP

Explicit Localization in Windows Universal Platform
C#
4
star
22

Encryption-WinRT

A simple encryption provider for WinRT apps. Can be used with SQLite databases.
C#
3
star
23

Unity-Canvas-Scaler

An handy canvas scaler for cross-platform Unity apps and games.
C#
3
star
24

HoloLens-App

Showcasing Microsoft HoloLens features
C#
3
star
25

Archiver-WinRT

Compress and decompress files and folders in WinRT
C#
2
star
26

Settings-WinRT

Settings utility for WinRT
C#
1
star