Hello everyone.

The Mixed Reality Forums here are no longer being used or maintained.

There are a few other places we would like to direct you to for support, both from Microsoft and from the community.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality.

If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers, or in our Microsoft Tech Communities forums at https://techcommunity.microsoft.com/t5/mixed-reality/ct-p/MicrosoftMixedReality.

And always feel free to hit us up on Twitter @MxdRealityDev.
Options

ISpeechHandler in the latest HoloToolkit

Despite having included "using HoloToolkit.Unity.InputModel" when I implement the "ISpeechHandler" it is underlined red, saying that this namespace cannot be found.

I imported the "HoloToolkitUnity" yesterday 29th October, so I wonder if the Interface name has changed or something?

The old way (adding the "KeywordManager" script and setting keywords and responses) no longer works, as this script no longer exists in the latest toolkit, so I had to use the OnSpeechKeywordRecognized, but is that deprecated too?

I have attached an image showing this situation. Am I doing something wrong or missing something?

Best Answer

  • Options
    mtaultymtaulty ✭✭
    Answer ✓

    Did you take a look at the Speech Input Source and Speech Input Handler scripts that (I think) are closest to what used to live in the Keyword Manager? The input source defines the keywords to be listened for whereas the handler defines the actions to be taken when those keywords are recognised and the action can be local to an object or global across the app.

    Hope that helps you get back to something close to Keyword Manager.

Answers

  • Options
    mtaultymtaulty ✭✭
    Answer ✓

    Did you take a look at the Speech Input Source and Speech Input Handler scripts that (I think) are closest to what used to live in the Keyword Manager? The input source defines the keywords to be listened for whereas the handler defines the actions to be taken when those keywords are recognised and the action can be local to an object or global across the app.

    Hope that helps you get back to something close to Keyword Manager.

  • Options

    Thank you. Now, I can see why there was a red underline; because the interface signature has slightly changed, even though the interface name is still the same.

        public void OnSpeechKeywordRecognized(SpeechEventData eventData)
        {
            Debug.Log(eventData.RecognizedText);

            var voiceCommand = eventData.RecognizedText.ToLower();

            switch (voiceCommand)
            {
                case "reset":
                    {
                        ResetPosition();
                        break;
                    }

                default:
                    break;
            }
        }

  • Options

    See my latest tutorial on using speech based input for the Hololens: https://codeholo.com/2017/12/03/using-voice-based-interactions-on-the-hololens-via-speech-input-source-speech-input-handler/ using 2017 editions of Unity and the MR Toolkit

  • Options

    @codeholo
    Thanks for the link, and sorry for my late "Thanks" cuz for some reason, I did not get a notification about your comment.

Sign In or Register to comment.