Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to use Mirror with Univoice? #22

Open
Akravator91 opened this issue Oct 17, 2023 · 8 comments
Open

Is it possible to use Mirror with Univoice? #22

Akravator91 opened this issue Oct 17, 2023 · 8 comments

Comments

@Akravator91
Copy link

Akravator91 commented Oct 17, 2023

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
Copy link
Owner

adrenak commented Oct 17, 2023

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
Copy link

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

@Akravator91
Copy link
Author

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

@adrenak
Copy link
Owner

adrenak commented Jan 8, 2024 via email

@adrenak
Copy link
Owner

adrenak commented Jan 16, 2024

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
Copy link
Owner

adrenak commented Feb 1, 2024

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
Copy link
Author

nicely Done Adrenak! :D

Thanks for the library

@Akravator91
Copy link
Author

Akravator91 commented Feb 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants