AdrianBZG / Medieval_Warfare_VR-Unity

Virtual Reality game for the Intelligent Interfaces subject, made with Unity Engine.
Apache License 2.0
11 stars 2 forks source link

Implement Voice Recognition for certain actions #6

Open AdrianBZG opened 7 years ago

AdrianBZG commented 7 years ago

Implement Voice Recognition for certain actions Actions like:

AdrianBZG commented 7 years ago

Implementing an voice-to-text recognition, after that we'll apply a filter to compare the generated text against the possible "predefined" actions over the scene, probably with a string distance algorithm (Hamming algorithm?).

Possible max number of predefined actions: 4

AdrianBZG commented 7 years ago

Sphinx added b195871

AdrianBZG commented 7 years ago

To change the used dictionary to Spanish:

Script: Assets/Scripts/SpeechRecognizerDemo.cs

// Code // Set path to acoustic model. configuration.setAcousticModelPath("resource:/edu/cmu/sphinx/models/es-es/es-es"); // Set path to dictionary. configuration.setDictionaryPath("resource:/edu/cmu/sphinx/models/es-es/cmudict-es-es.dict"); // Set language model. configuration.setLanguageModelPath("resource:/edu/cmu/sphinx/models/es-es/es-es.lm.bin");

More info: https://sourceforge.net/p/cmusphinx/discussion/sphinx4/thread/7d14eca1/