Code Monkey home page Code Monkey logo

pocketsphinxunitydemo's Introduction

PocketSphinxUnityDemo

A sample Unity project showing how to use PocketSphinx.

Why was this created?

When I stumbled across CMUSphinx and PocketSphinx, I was amazed at the capabilities these programs offered. However, there's very little documentation for anyone looking to implement this system within Unity. The only publicly available Unity Demo was created by nshmyrev, and hasn't been updated in quite some time. This project is an improved adaptation of his demo project.

General notes:

  • You should be able to achieve basic speech recognition within Unity using this project. (Simple commands like "open folder" will work) However if you would like to recognize longer sentences, please look into adapting the default acoustic model or building your own language model.
  • Keyphrases are cAsE SenSitiVe! When entering keyphrases and using the default 'en-us' model enter them as lowercase.
  • This library / project does support VR platforms! (Tested with Oculus Quest)
  • The great thing with PocketSphinx is that you can have an offline / on-board speech recognition solution. (My particular use case was an offline solution for the Oculus Quest)

This project supports and includes libraries for the following platforms:

  • Windows x86 & x64
  • OSX
  • Android
  • iOS

Installation (Tested in Unity 2018.4.13f1 LTS)

Simply clone this project and open it in your version of Unity. This Project uses Git Large Files Support (LFS). Downloading a zip file using the green button on Github does not work. You must clone the Project with a version of git that has LFS.

You can download Git LFS here: https://git-lfs.github.com/.

TODO:

  • Add an example showing how to use a custom language model.
  • Add an example showing how to handle multiple keywords with KWS.
  • (?) Add video example showing in-game use.

Other great resources:

Thanks!

Thanks for checking out my PocketSphinx Unity Demo, if you have any questions open a GitHub issue. :)

pocketsphinxunitydemo's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.