Coder Social home page Coder Social logo

Doesn't Work in Unity about libpyin HOT 6 CLOSED

yahyayyash avatar yahyayyash commented on June 9, 2024
Doesn't Work in Unity

from libpyin.

Comments (6)

xstreck1 avatar xstreck1 commented on June 9, 2024 1

I've just tested on 2020.3.7f1 and it works (see below), so no idea what exactly your issue is. I'd recommend looking for the specific error you get: https://www.google.com/search?q=unity+DllNotFoundException .

image

from libpyin.

xstreck1 avatar xstreck1 commented on June 9, 2024 1

Not out of the box, you have to compile the library for each platform separately. I built the DLL/so back then since I was using it on Windows and Ubuntu. It's a quick process but you need the appropriate tools:
https://docs.unity3d.com/Manual/AndroidNativePlugins.html
https://docs.unity3d.com/Manual/PluginsForIOS.html

from libpyin.

yahyayyash avatar yahyayyash commented on June 9, 2024

Hmmm, I don't know why it's not working on my end then. Thanks for your reply
Just to make sure, all I need to do in the other classes (in your case, TestLibrary) is call LoadLibrary().use right?
And nothing else? Or is there anything that I should do other than that?

Edit :

I'm fairly new to Unity & C#, but I just wanna ask. Is it because I'm using unity on MacOS?
After searching for a while, I got that one of the cause that might lead to DLL not found is due to some dependencies.

from libpyin.

xstreck1 avatar xstreck1 commented on June 9, 2024

Oh, the DLL is native (it's a C code), so it will not work on Mac (or Linux). This project was published before .NET was even ported to Mac so it did not really make sense to specify.

If you want to run on Mac you'll have to build your own library from the source code. I can't do it since I don't even have a Mac...

from libpyin.

yahyayyash avatar yahyayyash commented on June 9, 2024

Ahh I see, that makes sense now. Thanks for your answer!
I have another question, let say I'm developing this on Windows, am I still able to build the project for mobile devices (Android & iOS)?

Thanks

from libpyin.

yahyayyash avatar yahyayyash commented on June 9, 2024

Okay, I get it, thanks!
I do have another question, so I've tried this library in Windows and it works really well with the simple example that you've provided.

However, I'm having a problem when trying to feed the data with audio files such as mp3. I'm not sure what kind of data that I need to provide for the pyin_feed methods. I've tried to feed the GetSpectrumData & GetOutputData from the AudioSource to the methods but still failed.

from libpyin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.