I am able to Record and Run Audio from my Microphone using this code snippet:
void OnGUI() {
if (GUI.Button(new Rect(0, 0, 100, 20), "record")) {
// Microphone.End(Microphone.devices[0]);
audsourceAttached.clip = Microphone.Start(Microphone.devices[0], false, 3, 44100);
}
if (GUI.Button(new Rect(0, 30, 100, 20), "Stop"))
{
//Microphone.End(Microphone.devices[0]);
audsourceAttached.Play();
}
}
Now I am willing to send this Audioaudio across Network (on my local network-another instance of the game). How can I do this?
I tried to find this on google but unable to find any useful solution/links.
How can I send audio through microphone like real-time Chat in a game/etc.