adrenak / univoice

Voice chat/VoIP solution for unity.
http://www.vatsalambastha.com/univoice
MIT License
359 stars 36 forks source link

Is it possible to use Mirror with Univoice? #22

Open Akravator91 opened 1 year ago

Akravator91 commented 1 year ago

Hei yo!

thanks for creating an open source voice chat for unity. Do you have a sample scene that i can take a look on how to use univoice with mirror ?

adrenak commented 1 year ago

Hi @Akravator91 univoice is network agnostic and can be used with pretty much any network stack, as long as there's an implementation for it.

There currently isn't one for Mirror as I haven't made one yet. But you can make it and use it, it just takes one class that implements the IChatroomNetwork interface.

You can refer to the Telepathy implementation to get some idea. The implementation details for that repo are in the UniVoiceTelepathyNetwork class

Let me know if you need more help.

HoboCatGames commented 10 months ago

any updates on that matter? @Akravator91 did you manage to make it work with mirror?

Akravator91 commented 10 months ago

Not yet, I am waiting for the mirror example from @adrenak :)

adrenak commented 10 months ago

Today may be the day! Going to work on this.

On Mon, 8 Jan, 2024, 19:42 Raymond, @.***> wrote:

Not yet, I am waiting for the mirror example from @adrenak https://github.com/adrenak :)

— Reply to this email directly, view it on GitHub https://github.com/adrenak/univoice/issues/22#issuecomment-1881087659, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ5ZBRZH2I6FJ7PDPL3AI3YNP5DVAVCNFSM6AAAAAA6D3ZEEWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBRGA4DONRVHE . You are receiving this because you were mentioned.Message ID: @.***>

adrenak commented 10 months ago

Update on this. I have a working implementation for Mirror now! Tested locally and now trying with edgegap hosting to make sure it works on the cloud too.

adrenak commented 9 months ago

Took a while but Mirror implementation is available now! Check it out here: https://github.com/adrenak/univoice-mirror-network

Note that it's still in early stages and has not been used in any serious project (2 people are interested in using it in real world applications, so improvements will come over time)

It just uses the NetworkManager of Mirror. You don't need to manage chatrooms (creating/joining/etc). Just initialize the ChatroomAgent and go about using Mirror as you usually do. Univoice takes care of everything.

I've tested on a cloud deployment where I had a continuous conversation for 30 minutes or so. The README is quite descriptive.

Akravator91 commented 8 months ago

nicely Done Adrenak! :D

Thanks for the library

Akravator91 commented 8 months ago

Hi Vatsal!

The mirror example works awesome. :) and much easier to implement than Dissonance.

Do you know how to make it works on WebGL.? I have compiled it using Multiplex(KCP Transport and WebSocketTransport(https://mirror-networking.gitbook.io/docs/manual/transports/websockets-transport)However since Unity microphone is not supported in WebGL, I tried to couple the UniMic with this https://github.com/tgraupmann/UnityWebGLMicrophone.Do you have perhaps the implementation that i can use? Once again Awesome Job!! Thank you very much for finding time in your free time to create UniVoice. Best regards, Raymond

On Thursday, February 1, 2024 at 02:43:08 PM GMT+1, Vatsal Ambastha ***@***.***> wrote:  

Took a while but Mirror implementation is available now! Check it out here: https://github.com/adrenak/univoice-mirror-network

Note that it's still in early stages and has not been used in any serious project (2 people are interested in using it in real world applications, so improvements will come over time)

It just uses the NetworkManager of Mirror. You don't need to manage chatrooms (creating/joining/etc). Just initialize the ChatroomAgent and go about using Mirror as you usually do. Univoice takes care of everything.

I've tested on a cloud deployment where I had a continuous conversation for 30 minutes or so. The README is quite descriptive.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>