{"id":19317016,"url":"https://github.com/henkelmax/lame4j","last_synced_at":"2025-04-22T17:30:35.203Z","repository":{"id":54422350,"uuid":"522208061","full_name":"henkelmax/lame4j","owner":"henkelmax","description":"A Java wrapper for LAME.","archived":false,"fork":false,"pushed_at":"2024-08-16T08:36:58.000Z","size":1938,"stargazers_count":10,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-02T02:03:47.572Z","etag":null,"topics":["java","jna","lame","lame-wrapper","lame4j"],"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/henkelmax.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-07T12:34:42.000Z","updated_at":"2025-03-20T01:28:15.000Z","dependencies_parsed_at":"2024-08-16T10:08:07.666Z","dependency_job_id":null,"html_url":"https://github.com/henkelmax/lame4j","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkelmax%2Flame4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkelmax%2Flame4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkelmax%2Flame4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/henkelmax%2Flame4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/henkelmax","download_url":"https://codeload.github.com/henkelmax/lame4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250287369,"owners_count":21405598,"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":["java","jna","lame","lame-wrapper","lame4j"],"created_at":"2024-11-10T01:13:26.225Z","updated_at":"2025-04-22T17:30:34.740Z","avatar_url":"https://github.com/henkelmax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lame4J\n\nA Java wrapper for [LAME](https://lame.sourceforge.io/index.php) written in Rust using JNI.\nThis also includes [minimp3](https://github.com/lieff/minimp3) to decode mp3 files.\n\nThis library includes natives for:\n\n- `Windows x86`\n- `Windows x64`\n- `MacOS x64`\n- `MacOS aarch64`\n- `Linux x86`\n- `Linux x64`\n- `Linux aarch64`\n\n## Usage\n\n**Maven**\n\n``` xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ede.maxhenkel.lame4j\u003c/groupId\u003e\n  \u003cartifactId\u003elame4j\u003c/artifactId\u003e\n  \u003cversion\u003e2.0.3\u003c/version\u003e\n\u003c/dependency\u003e\n\n\u003crepositories\u003e\n  \u003crepository\u003e\n    \u003cid\u003ehenkelmax.public\u003c/id\u003e\n    \u003curl\u003ehttps://maven.maxhenkel.de/repository/public\u003c/url\u003e\n  \u003c/repository\u003e\n\u003c/repositories\u003e\n```\n\n**Gradle**\n\n``` groovy\ndependencies {\n  implementation 'de.maxhenkel.lame4j:lame4j:2.0.3'\n}\n\nrepositories {\n  maven {\n    name = \"henkelmax.public\"\n    url = 'https://maven.maxhenkel.de/repository/public'\n  }\n}\n```\n\n## Example\n\n``` java\nDecodedAudio decodedAudio = Mp3Decoder.decode(Files.newInputStream(Paths.get(\"myfile.mp3\")));\n\nshort[] decode = decodedAudio.getSamples();\n\nSystem.out.println(\"Sample Rate: \" + decodedAudio.getSampleRate());\nSystem.out.println(\"Bit Rate: \" + decodedAudio.getBitRate());\nSystem.out.println(\"Channels: \" + decodedAudio.getChannelCount());\nSystem.out.println(\"Frame Size: \" + decodedAudio.getSampleSizeInBits());\n\nSystem.out.println(\"Length: \" + decode.length + \" samples\");\nSystem.out.println(\"Duration: \" + ((float) decode.length / (float) decodedAudio.getSampleRate()) + \" seconds\");\n\nMp3Encoder encoder = new Mp3Encoder(decodedAudio.getChannelCount(), decodedAudio.getSampleRate(), decodedAudio.getBitRate(), 5, Files.newOutputStream(Paths.get(args[1])));\nencoder.write(decode);\nencoder.close();\n```\n\n\n## Credits\n\n- [LAME](https://lame.sourceforge.io/)\n- [LAME License](https://sourceforge.net/p/lame/svn/HEAD/tree/tags/RELEASE__3_100/lame/COPYING)\n- [mp3lame-sys](https://github.com/DoumanAsh/mp3lame-sys)\n- [minimp3-rs](https://github.com/germangb/minimp3-rs)\n- [minimp3](https://github.com/lieff/minimp3)\n- [jni-rs](https://github.com/jni-rs/jni-rs)\n\n\u003cdetails\u003e\n  \u003csummary\u003eOther stuff\u003c/summary\u003e\n\n- [API](https://sourceforge.net/p/lame/svn/HEAD/tree/tags/RELEASE__3_100/lame/API)\n- [Headers](https://sourceforge.net/p/lame/svn/HEAD/tree/tags/RELEASE__3_100/lame/include/lame.h)\n- [Docs.rs](https://docs.rs/lame-sys/0.1.2/lame_sys/)\n\n\u003c/details\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenkelmax%2Flame4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhenkelmax%2Flame4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhenkelmax%2Flame4j/lists"}