univoice icon indicating copy to clipboard operation
univoice copied to clipboard

Is it possible to use Mirror with Univoice?

Open Akravator91 opened this issue 1 year ago • 8 comments

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 ?

Akravator91 avatar Oct 17 '23 13:10 Akravator91

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.

adrenak avatar Oct 17 '23 18:10 adrenak

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

HoboCatGames avatar Jan 08 '24 10:01 HoboCatGames

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

Akravator91 avatar Jan 08 '24 14:01 Akravator91

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 avatar Jan 08 '24 14:01 adrenak

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 avatar Jan 16 '24 17:01 adrenak

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.

adrenak avatar Feb 01 '24 13:02 adrenak

nicely Done Adrenak! :D

Thanks for the library

Akravator91 avatar Feb 26 '24 13:02 Akravator91

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: @.***>

Akravator91 avatar Feb 27 '24 09:02 Akravator91