Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Content Obsolete

This content is no longer current.

Flame On! Mercury Particle Engine and Kinect

Some of the things you can do with Kinect are just to fun. Like mixing voice control, a particle engine and you...

Kinect SDK with the Mercury Particle Engine

What do you get when you combine the Kinect SDK with the Mercury Particle Engine? Awesome fun Smile

Project Information URL: http://www.soulsolutions.com.au/Blog/tabid/73/EntryId/738/Kinect-SDK-with-the-Mercury-Particle-Engine.aspx

Project Download URL: http://www.soulsolutions.com.au/tools/kinecteffect.zip

Project Source URL: http://www.soulsolutions.com.au/tools/kinecteffect.zip

image

image

image

image

public MainWindow()
{
    InitializeComponent();
    Loaded += WindowLoaded;
    Closed += WindowClosed;

    //audio
    RecognizerInfo ri = SpeechRecognitionEngine.InstalledRecognizers().Where(r => r.Id == RecognizerId).FirstOrDefault();
    if (ri == null) return;

    sre = new SpeechRecognitionEngine(ri.Id);

    var effects = new Choices();
    effects.Add("reset");
    effects.Add("flameon");
    //effects.Add("beam", "me", "up", "scotty");
    effects.Add("paparazzi");
    effects.Add("umbrella");
    effects.Add("jet");
    effects.Add("explode");
    effects.Add("smoking");
    //effects.Add("flower", "power");
    effects.Add("magic");
    //effects.Add("stars");
    effects.Add("fireball");
    
    var gb = new GrammarBuilder();
    //Specify the culture to match the recognizer in case we are running in a different culture.                                 
    gb.Culture = ri.Culture;
    gb.Append(effects);


    // Create the actual Grammar instance, and then load it into the speech recognizer.
    var g = new Grammar(gb);

    sre.LoadGrammar(g);
    sre.SpeechRecognized += SreSpeechRecognized;
}

Contact Information:

Follow the Discussion

Remove this comment

Remove this thread

close

Comment on the Post

Already have a Channel 9 account? Please sign in