How can I record and send a short clip of audio?
EHoops
✭
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.
The discussions that might be what im looking for:
https://forum.photonengine.com/discussion/12918/catching-audio-from-recorder-voice-v2-unity
https://forum.photonengine.com/discussion/10503/output-all-voice-conversations-into-wav-mp3-etc#latest
If there is just a way to save a recording into an audioClip that would be perfect, but like I said I've never done any sort of multiplayer/online development.
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.
The discussions that might be what im looking for:
https://forum.photonengine.com/discussion/12918/catching-audio-from-recorder-voice-v2-unity
https://forum.photonengine.com/discussion/10503/output-all-voice-conversations-into-wav-mp3-etc#latest
If there is just a way to save a recording into an audioClip that would be perfect, but like I said I've never done any sort of multiplayer/online development.
0
Best Answer
-
Hi @EHoops,
Thank you for choosing Photon!
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
-
Hi @EHoops,
Thank you for choosing Photon!
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 -
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.0