Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Speech input / voice recognition for HoloLens not updating on client with UNET- Unity

Discussion in 'VR' started by Tezelian, Nov 20, 2018.

  1. Tezelian

    Tezelian

    Joined:
    Oct 22, 2013
    Posts:
    256
    Hey everyone,

    I'm trying to create a shared experience with UNET for the hololens in Unity. The good news is that dragging an object on the host hololens updates the position on the client however the colour of the cube does not update for the client with voice recognition, only the host, the holo player who creates the game session.

    The cube is supposed to change colour after the user shouts 'red.' The voice input works for the host but it doesn't update on the client. Why is this? What am I doing wrong? I added an identity. I also tried creating a separate game object, adding the speech inputhandler and source on it and then turning it into a prefab and adding it into the 'registered spawnable objects' within the UNETSharingStage but this still doesn't work.

    I have uploaded screenshots so you can all understand the problem in-depth

    https://ibb.co/c7uTS0

    https://ibb.co/dOS40L

    https://ibb.co/cRM8S0


    I just don't understand how it works for the movable object called 'NetOrgan' but not the voice recognition. Could this be because of the 'Network Transform' script I attached to the 'NetOrgan' object which does what it says, transform the position within the network.

    In which case, what do I have to attach onto the speech object for it to update for the client! Should it all be in a separate game object or part of the NetOrgan which consists of the cube that is supposed to change colour.

    Would appreciate all the help. Also if there are full fledged examples and tutorials of UNET for the hololens I would love to be directed to one. At the moment the materials and resources for learning networking on hololens, or at least using UNET are limited. I imported the latest holotoolkit package and I am working from the UNET example

    Thank you,
     
  2. Unity_Wesley

    Unity_Wesley

    Unity Technologies

    Joined:
    Sep 17, 2015
    Posts:
    558
    Are you sending down commands from the host /or server to update the color when you issue the voice command to change the color?