{"id":14985053,"url":"https://github.com/adrielcafe/androidaudioconverter","last_synced_at":"2025-05-16T11:04:49.754Z","repository":{"id":43112935,"uuid":"68232981","full_name":"adrielcafe/AndroidAudioConverter","owner":"adrielcafe","description":"Convert audio files inside your Android app easily. Supported formats: AAC, MP3, M4A, WMA, WAV and FLAC.","archived":false,"fork":false,"pushed_at":"2022-09-09T05:57:08.000Z","size":9308,"stargazers_count":1339,"open_issues_count":48,"forks_count":259,"subscribers_count":38,"default_branch":"master","last_synced_at":"2025-05-16T11:04:42.357Z","etag":null,"topics":["android","audio","convection","ffmpeg","library"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adrielcafe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"ko_fi":"adrielcafe"}},"created_at":"2016-09-14T18:39:35.000Z","updated_at":"2025-05-01T08:19:22.000Z","dependencies_parsed_at":"2022-08-17T14:46:13.159Z","dependency_job_id":null,"html_url":"https://github.com/adrielcafe/AndroidAudioConverter","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrielcafe%2FAndroidAudioConverter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrielcafe%2FAndroidAudioConverter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrielcafe%2FAndroidAudioConverter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrielcafe%2FAndroidAudioConverter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrielcafe","download_url":"https://codeload.github.com/adrielcafe/AndroidAudioConverter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518384,"owners_count":22084374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","audio","convection","ffmpeg","library"],"created_at":"2024-09-24T14:10:12.641Z","updated_at":"2025-05-16T11:04:44.746Z","avatar_url":"https://github.com/adrielcafe.png","language":"Java","funding_links":["https://ko-fi.com/adrielcafe"],"categories":[],"sub_categories":[],"readme":"[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-AndroidAudioConverter-green.svg?style=true)](https://android-arsenal.com/details/1/4341) [![Release](https://jitpack.io/v/adrielcafe/AndroidAudioConverter.svg)](https://jitpack.io/#adrielcafe/AndroidAudioConverter)\n\n# AndroidAudioConverter\n\n\u003e Convert audio files inside your Android app easily. This is a wrapper of [FFmpeg-Android-Java](https://github.com/WritingMinds/ffmpeg-android-java) lib.\n\nSupported formats:\n* AAC\n* MP3\n* M4A\n* WMA\n* WAV\n* FLAC\n\nLib size: ~9mb\n\n## How To Use\n\n1 - Add this permission into your `AndroidManifest.xml` and [request in Android 6.0+](https://developer.android.com/training/permissions/requesting.html)\n```xml\n\u003cuses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/\u003e\n```\n\n2 - Load the lib inside your `Application` class\n```java\npublic class App extends Application {\n    @Override\n    public void onCreate() {\n        super.onCreate();\n        AndroidAudioConverter.load(this, new ILoadCallback() {\n            @Override\n            public void onSuccess() {\n                // Great!\n            }\n            @Override\n            public void onFailure(Exception error) {\n                // FFmpeg is not supported by device\n            }\n        });\n    }\n}\n```\n\n3 - Convert audio files async\n```java\nFile flacFile = new File(Environment.getExternalStorageDirectory(), \"my_audio.flac\");\nIConvertCallback callback = new IConvertCallback() {\n    @Override\n    public void onSuccess(File convertedFile) {\n        // So fast? Love it!\n    }\n    @Override\n    public void onFailure(Exception error) {\n        // Oops! Something went wrong\n    }\n};\nAndroidAudioConverter.with(this)\n    // Your current audio file\n    .setFile(flacFile)  \n    \n    // Your desired audio format \n    .setFormat(AudioFormat.MP3)\n    \n    // An callback to know when conversion is finished\n    .setCallback(callback)\n    \n    // Start conversion\n    .convert();\n```\n\n## Import to your project\nPut this into your `app/build.gradle`:\n```\nrepositories {\n  maven {\n    url \"https://jitpack.io\"\n  }\n}\n\ndependencies {\n  compile 'com.github.adrielcafe:AndroidAudioConverter:0.0.8'\n}\n```\n\n## Dependencies\n* [FFmpeg-Android-Java](https://github.com/WritingMinds/ffmpeg-android-java)\n\n## Want to RECORD AUDIO into your app?\n**Take a look at [AndroidAudioRecorder](https://github.com/adrielcafe/AndroidAudioRecorder)! Example of usage [here](https://github.com/adrielcafe/AndroidAudioRecorder/issues/8#issuecomment-247311572).**\n\n## License\n```\nThe MIT License (MIT)\n\nCopyright (c) 2016 Adriel Café\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrielcafe%2Fandroidaudioconverter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrielcafe%2Fandroidaudioconverter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrielcafe%2Fandroidaudioconverter/lists"}