{"id":13762333,"url":"https://github.com/mzdluo123/silk4j","last_synced_at":"2025-04-10T20:58:55.106Z","repository":{"id":113707280,"uuid":"335989674","full_name":"mzdluo123/silk4j","owner":"mzdluo123","description":"[全平台] silkv3编解码器的Java接口，同时支持mp3格式的编解码","archived":false,"fork":false,"pushed_at":"2021-04-18T10:58:22.000Z","size":9299,"stargazers_count":62,"open_issues_count":9,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-10T20:58:49.739Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzdluo123.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-02-04T15:04:33.000Z","updated_at":"2025-03-03T02:20:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"5067adb7-2903-4023-a336-80fb8336d957","html_url":"https://github.com/mzdluo123/silk4j","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzdluo123%2Fsilk4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzdluo123%2Fsilk4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzdluo123%2Fsilk4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzdluo123%2Fsilk4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzdluo123","download_url":"https://codeload.github.com/mzdluo123/silk4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248298415,"owners_count":21080318,"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":[],"created_at":"2024-08-03T14:00:38.985Z","updated_at":"2025-04-10T20:58:55.078Z","avatar_url":"https://github.com/mzdluo123.png","language":"C","funding_links":[],"categories":["C","其他优秀项目"],"sub_categories":[],"readme":"# Silk4j\n\nsilkv3编码器的Java接口，为mirai相关生态提供语音编解码方案\n\n\n# 导入依赖\n\n```\n// 要使用maven仓库导入，需要先为你的账号生成一个访问token才能正常拉取\nrepositories {\n   maven { \n     url 'https://maven.pkg.github.com/mzdluo123/silk4j'\n     credentials {\n            username = '你的用户名'\n            password = '你的token'\n        }\n   }\n}\ndependencies {\n    implementation(\"io.github.mzdluo123:silk4j:版本号\")\n}\n```\n版本号请到https://github.com/mzdluo123/silk4j/packages/ 查看\n\n你也可以到action页面下载AllInOne中的jar来开始使用\n\n# 使用\n\n```java\n\n// 请使用这个类完成编码\n// 所有的编码默认都只使用左声道\npublic class AudioUtils {\n    //使用之前需要初始化\n    public static void init() throws IOException {\n    }\n    // 初始化时可选指定缓存目录，未指定则使用系统目录\n    public static void init(File tmpDir) throws IOException {\n      \n    }\n    // 以下为编码函数，只可以同时进行一个编码任务，如需pcm文件请看源代码\n    // 返回的文件在缓存目录内，使用完毕请删除\n    public static File mp3ToSilk(File mp3File) throws IOException {\n       \n    }\n    public static File mp3ToSilk(InputStream mp3FileStream) throws IOException {\n        \n    }\n\n    public static File silkToMp3(File silkFile) throws IOException {\n      \n    }\n\n    public static File silkToMp3(InputStream silkFileStream) throws IOException {\n        \n    }\n    \n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzdluo123%2Fsilk4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzdluo123%2Fsilk4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzdluo123%2Fsilk4j/lists"}