How can I record and send a short clip of audio?

Hello,I am brand new to any sort of online networking/Photon and could use a point in the right direction.I am currently trying to make a game in Unity that sends a short(5 sec) audio recording to another person.I looked through the discussions and found a few that might apply, but I had trouble understanding how it works.

Best Answer

I don't think you need Photon Voice to record audio locally in Unity.I don't think you need Photon Voice or Photon to send an audio file or any file to someone. Photon is not built as a file exchange system.

That being said you still can stream audio clips via Photon Voice or send a file as byte[] in Photon Realtime or PUN or Photon Chat.You could also record yourself using Photon Voice.

But first I would do some research on how to record audio locally in Unity only.And look for options in sending small files reliably in Unity.

5

Answers

I don't think you need Photon Voice to record audio locally in Unity.I don't think you need Photon Voice or Photon to send an audio file or any file to someone. Photon is not built as a file exchange system.

That being said you still can stream audio clips via Photon Voice or send a file as byte[] in Photon Realtime or PUN or Photon Chat.You could also record yourself using Photon Voice.

But first I would do some research on how to record audio locally in Unity only.And look for options in sending small files reliably in Unity.

Thank you for such a fast response!I will definitely try to find more research on sending files through Unity. It's not a super ambitious feature I thought lol but examples and documentation on sending files is somewhat sparse. Good to be narrowing it down.