• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Feb 12, 2018 at 01:43 PM by Bunny83 for the following reason:

The question is answered, right answer was accepted The Question is actually off-topic. Since people constantly post new answers or spam / advertisement I close this question.

avatar image
0
Question by ArkarKyaw · Jan 15, 2013 at 07:53 AM · audioaudiosourcemp3ogg

Is there any converter mp3 to ogg ?

Hi, Please,if you know,tell me how to convert mp3 file to ogg in runtime. Is there any command line program or dll?

Comment
Comments Locked · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image KoningStoma · Jan 21, 2013 at 11:41 AM 0
Share

Do you want to do this, to import mp3 files at runtime? I've got a script for that. It does need pro though.

avatar image ArkarKyaw · Jan 22, 2013 at 01:10 AM 0
Share

to KoningStoma Please,Can you share me? i

avatar image jacklien · Jul 19, 2017 at 09:24 AM 0
Share

yes you can try https://www.mp3converter.net its working fine for me.

7 Replies

  • Sort: 
avatar image
10
Best Answer

Answer by KoningStoma · Jan 22, 2013 at 12:11 PM

To import MP3 files, I use a library called MPG123.

First you need to download t$$anonymous$$s and place "libmpg123-0.dll" in the Plugins folder. (if you don't have that folder, just create it inside your assets folder) You need Pro to use plugins.

Then you need t$$anonymous$$s script: http://pastebin.com/WbqLVKJz And put that in the Plugins folder too.

http://pastebin.com/Cwd1CJcg T$$anonymous$$s is the script that needs to be added to a GameObject.

Now that's done, it should work. You can add an Audiosource component to the GameObject if you want. If you don't the script will add one.

T$$anonymous$$s doesn't convert the MP3 file to an ogg file. Instead, it takes the decoded samples and uses AudioClip.SetData to give the samples to a new AudioClip.

Comment
Comments Locked · Show 14 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ArkarKyaw · Jan 23, 2013 at 01:10 AM 0
Share

Thank you KoningStoma

avatar image jtran · Aug 21, 2013 at 07:08 PM 0
Share

Is this for Windows only? I was trying to use this on Mac and I'm getting:

DllNotFoundException: libmpg123-0 MP3Import.StartImport () (at Assets/Plugins/MP3Import.cs:44) MP3Import.Start () (at Assets/Plugins/MP3Import.cs:84)

I have the libmpg123-0.dll in my Plugins Folder.

avatar image proandrius · Oct 04, 2013 at 06:48 PM 0
Share

Any solution for MAC?

avatar image jtran · Oct 04, 2013 at 06:50 PM 0
Share

Yeah, if you download the MPG123 project there is an Xcode project that you can use to build a .bundle file.

avatar image bestimmaa · Mar 28, 2015 at 02:41 PM 1
Share

Great code! Neede to replace the DLL with a 64bit build of the libmpg123-0.dll from http://www.mpg123.de/api/

Show more comments
avatar image
5

Answer by Lachee1 · Jan 15, 2013 at 08:18 AM

Im not sure about doing it in runtime, but i use Audacity to convert all my audio to .ogg files. Here is the link: http://audacity.sourceforge.net/

Hope t$$anonymous$$s will work for you.

Comment
Comments Locked · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ArkarKyaw · Jan 22, 2013 at 02:40 AM 0
Share

Thank you Lachian.

avatar image
0

Answer by uijweol · Sep 22, 2013 at 08:31 AM

I know a very good OGG Converter providing a very nice solution to convert OGG to MP3. It is a very nice tool. You can find it here: http://www.bigasoft.com/audio-converter.html

Comment
Comments Locked · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by luckyhardwork · May 18, 2015 at 10:43 AM

You may also try iDealshare VideoGo to convert MP3 to OGG or convert OGG to MP3

In fact, it can convert among MP3, OGG, FLAC, WAV, AIFF, AAC, DTS, AC3, WMA, M4A, etc.

alt text

Comment
Comments Locked · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Gloriaivy · Jul 19, 2015 at 07:12 PM

Pavtube Video Converter Ultimate is a suitable choice for MP3 to OGG conversion. It is simple to use and features fast conversion speed. Plus, for space-saving consideration, you can also compress your mp3 to small size with t$$anonymous$$s tool.

http://www.multipelife.com/compress-wav-mp3-windows-mac.html

Comment
Comments Locked · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image $$anonymous$$ · May 07, 2016 at 05:28 PM 0
Share

PS. I have Quicktime installed on the computer but Unity says its not installed, Its very annoying.

  • 1
  • 2
  • ›

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Play audio from iOS documents folder with U3DXT 0 Answers

Existing solution for load MP3 from disc ? 2 Answers

MP3 to OGG Converter, Plugin, Command Line to be used with Unity 1 Answer

How to Import .mp3 and use it as AudioClip 1 Answer

Play MPEG from web options 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges