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

Unity-Python communication (the python client is running in the browser) #16

Closed
Vishav3 opened this issue Jul 23, 2021 · 2 comments
Closed

Comments

@Vishav3
Copy link

Vishav3 commented Jul 23, 2021

I tried this code and it is working well for unity-python communication when I ran both on my local machine. But since i need to run python in browser and send audio files to unity. Does this code work for that?

@offchan42
Copy link
Owner

offchan42 commented Jul 23, 2021

That's a general question about ZeroMQ. The code works to show you the example how to send a text to Unity but there's nothing preventing you to extend it to work with images, audio, or arbitrary blob of data.
Just encode your audio file as a binary string and send it, then decode back to audio in unity.

@Vishav3
Copy link
Author

Vishav3 commented Jul 23, 2021

Thanks for the response! I think the question was not clearly deliver to you. The issue was not about type of data. The issue is that i need to run python code in web browser (using Jupyter notebook). But i am not able to send data from browser to unity. Please give some guidance on that.

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

2 participants