Reader small image

You're reading from  Build Your Own Metaverse with Unity

Product typeBook
Published inSep 2023
PublisherPackt
ISBN-139781837631735
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
David Cantón Nadales
David Cantón Nadales
author image
David Cantón Nadales

David Cantón Nadales, software engineer from Seville, Spain, with more than 15 years of experience. He is currently a Technical Leader at Grupo Viajes El Corte Inglés, a leading travel company in Europe. He has done a multitude of projects and video games with Unity, VR/AR with Oculus, Hololens, HTC Vive, DayDream and LeapMotion. He was ambassador of the Samsung community "Samsung Dev Spain", and organizer of "Google Developers Group Sevilla". He led more than 100 projects throughout his career. As a social entrepreneur stands out Grita, a social network that emerged during the confinement of COVID-19 that allowed to talk to other people and help each other psychologically. In 2022 he won the Top Developers Awards organized by Samsung.
Read more about David Cantón Nadales

Right arrow

Transmitting your voice to the network

Transmitting our voice to the multiplayer server of our metaverse is really easy with Photon. The SDK has ready-to-use components that will make all the hard work easier.

To start, we need to find the Prefab we’ve used for our character. Find the PlayerInstance Prefab, which is located in the Assets | _App | Photon | PhotonUnityNetworking | Resources path, and double-click to edit it.

With the PlayerInstance Prefab in Edit Mode, we will follow these steps to add voice functionality:

  1. Select the PlayerArmature GameObject and display its Inspector panel.
  2. Add a new component called Audio Source.
  3. Add another component, called Photon Voice View.
  4. We will also need another component, called Recorder.
  5. Finally, add the Speaker component.

Great, now the Inspector panel of the PlayerArmature GameObject will look as in the following screenshot:

Figure 10.15 – PlayerArmature Inspector panel

Figure 10.15 – PlayerArmature Inspector...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Build Your Own Metaverse with Unity
Published in: Sep 2023Publisher: PacktISBN-13: 9781837631735

Author (1)

author image
David Cantón Nadales

David Cantón Nadales, software engineer from Seville, Spain, with more than 15 years of experience. He is currently a Technical Leader at Grupo Viajes El Corte Inglés, a leading travel company in Europe. He has done a multitude of projects and video games with Unity, VR/AR with Oculus, Hololens, HTC Vive, DayDream and LeapMotion. He was ambassador of the Samsung community "Samsung Dev Spain", and organizer of "Google Developers Group Sevilla". He led more than 100 projects throughout his career. As a social entrepreneur stands out Grita, a social network that emerged during the confinement of COVID-19 that allowed to talk to other people and help each other psychologically. In 2022 he won the Top Developers Awards organized by Samsung.
Read more about David Cantón Nadales