Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

PUN AudioClip Streaming using byte[] array

Discussion in 'Multiplayer' started by ScienceTeamKevin, Jan 24, 2023.

  1. ScienceTeamKevin

    ScienceTeamKevin

    Joined:
    Apr 19, 2022
    Posts:
    2
    For my game, I'm using PUN, and I am trying to add a central game mechanic in.

    I want to be able to record audio on a microphone component, convert that AudioClip into a byte[] array, or use some other method, send that array to another client, convert it BACK into a AudioClip, and play the audio.

    NOTE: Im not trying to make a Voice Chat system, because all the audio is recorded BEFORE it's played on other clients. Imagine a PA system.

    All I can find on the forums is either broken, outdated, or strait up not helpful.