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.

How do I display a speaker's text using DictationRecognizer?

I have a DictationRecognizer object and would like to use the DictationHypothesis event to display the text when the user is speaking. I have it set up and have the method below that takes the text as an argument. How can I use this to display the text on an object or in the camera in Unity?

private void DictationRecognizer_DictationHypothesis(string text)
{
    //Display text
}
Tagged:

Best Answer

Answers

  • @ahillier Thank you for your response - it doesn't look like TextMesh has a text field (I tried TextMesh.text = text; in that method - is that what you meant?)

  • TRRTRR
    edited August 2016

    I think this is the way to do it: GetComponent().text = text; but @ahillier I'm not sure if it's working so can you confirm that this is the way to do it so I know the issue is somewhere else?

  • Nevermind that is the correct way

Sign In or Register to comment.