{"id":18439130,"url":"https://github.com/jay-goo/mp3converter","last_synced_at":"2025-10-04T01:56:27.817Z","repository":{"id":49712057,"uuid":"130054282","full_name":"Jay-Goo/Mp3Converter","owner":"Jay-Goo","description":"Use latest Lame to transform PCM, WAV, AIFF and other uncompressed formats into MP3 format files(Andorid使用Lame将PCM、WAV、AIFF格式转为MP3格式文件)","archived":false,"fork":false,"pushed_at":"2021-06-10T16:41:14.000Z","size":40926,"stargazers_count":72,"open_issues_count":9,"forks_count":22,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-07T21:41:02.003Z","etag":null,"topics":["aiff","android","converter","lame","mp3","pcm","wav"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jay-Goo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-18T11:49:31.000Z","updated_at":"2024-08-22T08:48:17.000Z","dependencies_parsed_at":"2022-08-25T13:31:39.585Z","dependency_job_id":null,"html_url":"https://github.com/Jay-Goo/Mp3Converter","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/Jay-Goo/Mp3Converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FMp3Converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FMp3Converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FMp3Converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FMp3Converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jay-Goo","download_url":"https://codeload.github.com/Jay-Goo/Mp3Converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jay-Goo%2FMp3Converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278254462,"owners_count":25956599,"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","status":"online","status_checked_at":"2025-10-03T02:00:06.070Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aiff","android","converter","lame","mp3","pcm","wav"],"created_at":"2024-11-06T06:23:29.935Z","updated_at":"2025-10-04T01:56:27.803Z","avatar_url":"https://github.com/Jay-Goo.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mp3Converter\nUse latest [Lame-3.100](http://lame.sourceforge.net/)  to transform PCM, WAV, AIFF and other uncompressed formats into MP3 format files.\n# Usage\n## Dependencies\n\n```\n//Project build.gradle\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n//Module build.gradle\ndependencies {\n\t        implementation 'com.github.Jay-Goo:Mp3Converter:v0.0.3'\n\t}\n```\n## Methods\n\n```\n /**\n     * init lame\n     * @param inSampleRate\n     *              input sample rate in Hz\n     * @param channel\n     *              number of channels\n     * @param mode\n     *              0 = CBR, 1 = VBR, 2 = ABR.  default = 0\n     * @param outSampleRate\n     *              output sample rate in Hz\n     * @param outBitRate\n     *              rate compression ratio in KHz\n     * @param quality\n     *              quality=0..9. 0=best (very slow). 9=worst.\u003cbr /\u003e\n     *              recommended:\u003cbr /\u003e\n     *              2 near-best quality, not too slow\u003cbr /\u003e\n     *              5 good quality, fast\u003cbr /\u003e\n     *              7 ok quality, really fast\n     */\n Mp3Converter.init(44100, 1, 0, 44100, 96, 7);\n\n /**\n     * file convert to mp3\n     * it may cost a lot of time and better put it in a thread\n     * @param input\n     *          file path to be converted\n     * @param mp3\n     *          mp3 output file path\n     */\n    Mp3Converter.convertMp3(inputPath, mp3Path);\n\n\n  /**\n     * get converted bytes in inputBuffer\n     * @return\n     *          converted bytes in inputBuffer\n     *          to ignore the deviation of the file size,when return to -1 represents convert complete\n     */\n\tMp3Converter.getConvertBytes()\n```\n## Build\nYou can use Android Studio `Make Module 'library'`to create your *.so files, they will be created in your `library/src/jniLibs`Folder.\n\n# ABI\nThis library support `armeabi-v7a`, `arm64-v8a`, `mips`, `mips64`, `x86`, `x86_64`\n\n# Blog\nYou can learn how to build this library through [this article](https://gujinjie.top/2018/04/19/%E6%89%8B%E6%8A%8A%E6%89%8B%E6%95%99%E4%BD%A0Android%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8NDK%E5%AE%9E%E7%8E%B0%E4%B8%80%E4%B8%AAMP3%E8%BD%AC%E7%A0%81%E5%BA%93/).\n\n# Future\nSupport amr format\n\n## 联系我\n\n- Email： 1015121748@qq.com\n- QQ Group: 573830030 有时候工作很忙没空看邮件和Issue,大家可以通过QQ群联系我\n\u003cdiv style=\"text-align: center;\"\u003e\n\u003cimg src=\"https://github.com/Jay-Goo/RangeSeekBar/blob/master/Gif/qq.png\" style=\"margin: 0 auto;\" height=\"250px\"/\u003e\n\u003c/div\u003e\n\n## 一杯咖啡\n\n大家都知道开源是件很辛苦的事情，这个项目也是我工作之余完成的，平时工作很忙，但大家提的需求基本上我都尽量满足，如果这个项目帮助你节省了大量时间，你很喜欢，你可以给我一杯咖啡的鼓励，不在于钱多钱少，关键是你的这份鼓励所带给我的力量~\n\u003cdiv style=\"text-align: center;\"\u003e\n\u003cimg src=\"https://github.com/Jay-Goo/RangeSeekBar/blob/master/Gif/pay.png\" height=\"200px\"/\u003e\n\u003c/div\u003e\n\n# License\nMIT License\nCopyright (c) 2018 Jay-Goo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-goo%2Fmp3converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjay-goo%2Fmp3converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjay-goo%2Fmp3converter/lists"}