{"id":15095817,"url":"https://github.com/zwcway/castserver-go","last_synced_at":"2025-08-25T08:13:03.919Z","repository":{"id":65951552,"uuid":"603275572","full_name":"zwcway/castserver-go","owner":"zwcway","description":"局域网数字扬声器管理系统服务端","archived":false,"fork":false,"pushed_at":"2024-03-09T11:55:52.000Z","size":11535,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T23:08:48.103Z","etag":null,"topics":["aoip","audio","audio-player","audio-processing","audio-streaming","dlna","dsp","ffmpeg","golang","homeassistant","libavcodec","linux","multicast","multiroom-audio-server","smarthome","vue2","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zwcway.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":"2023-02-18T02:25:54.000Z","updated_at":"2025-03-17T13:51:09.000Z","dependencies_parsed_at":"2024-03-09T12:50:42.255Z","dependency_job_id":null,"html_url":"https://github.com/zwcway/castserver-go","commit_stats":{"total_commits":33,"total_committers":3,"mean_commits":11.0,"dds":"0.12121212121212122","last_synced_commit":"2156f6d8b24a975e61b5d2b60cfd568b308fc1cc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zwcway/castserver-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwcway%2Fcastserver-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwcway%2Fcastserver-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwcway%2Fcastserver-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwcway%2Fcastserver-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zwcway","download_url":"https://codeload.github.com/zwcway/castserver-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zwcway%2Fcastserver-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272031255,"owners_count":24861686,"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-08-25T02:00:12.092Z","response_time":1107,"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":["aoip","audio","audio-player","audio-processing","audio-streaming","dlna","dsp","ffmpeg","golang","homeassistant","libavcodec","linux","multicast","multiroom-audio-server","smarthome","vue2","windows"],"created_at":"2024-09-25T15:42:20.202Z","updated_at":"2025-08-25T08:13:03.883Z","avatar_url":"https://github.com/zwcway.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Castspeaker\r\nCastspeaker 是一个应用于基于以太网/WIFI局域网，C/S 架构，在带宽允许内支持更多数量扬声器客户端的数字扬声器管理系统，使用时钟同步保证所有扬声器客户端高质量的同步播放。Castspeaker可以自动发现局域网内的扬声器客户端，自动匹配采样率和位宽。支持设备分组，可以为每个分组单独指定播放源，通过在移动设备或者电脑端播放到指定的设备分组。可应用在智能家居中全屋音响，支持使用 homeassitant 作为管理端。\r\n\r\n![overview](https://raw.githubusercontent.com/zwcway/castserver-go/main/doc/web.png)\r\n\r\n# 编译\r\n## 依赖\r\n- `golang` / `nodejs` / `make` / `pkg-config`\r\n- `libavcodec` / `libavformat` / `libavutil` / `libswresample`\r\n- linux 下本地播放使用 alsa， 还需依赖 `libasound2-dev`\r\n\r\n## 编译\r\n```bash\r\nmake\r\n```\r\n\r\n## 运行\r\n```bash\r\ncastserver --help\r\n```\r\n\r\n# web 后台\r\nhttp://localhost:4415\r\n\r\n# 交叉编译（香橙派）\r\n## 安装工具链 gcc-arm-9.2\r\n- 香橙派 linux 系统的库版本 `GLIBC_2.30`\r\n- 下载并解压 [gcc](https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu.tar.xz)\r\n```bash\r\nln -s `realpath gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu` /aarch64\r\nexport PATH=/aarch64/bin:$PATH\r\nexport PKG_CONFIG_LIBDIR=/aarch64/lib/pkgconfig \r\nexport CC=aarch64-none-linux-gnu-gcc\r\n```\r\n\r\n## 编译 ffmpeg-4.4.4 (libavcodec libavformat libswresample libavutil)\r\n```bash\r\ngit clone --depth=1 https://git.ffmpeg.org/ffmpeg.git -b n4.4.4\r\ncd ffmpeg\r\n./configure --prefix=/aarch64 --arch=arm64 --enable-cross-compile --target-os=linux --cross-prefix=aarch64-none-linux-gnu- --disable-all --enable-gpl --enable-shared --enable-network --enable-autodetect --enable-avcodec --enable-avformat  --enable-avutil  --enable-swresample --enable-asm --enable-decoder=*\r\nmake -j12\r\nmake install\r\n\r\n# 验证是否安装成功\r\npkg-config --exists libavcodec libavformat libswresample libavutil \u0026\u0026 echo true || echo false\r\n```\r\n\r\n## 编译 alsa-1.2.4\r\n- 下载并解压后进目录 [alsa](https://codeload.github.com/alsa-project/alsa-lib/zip/refs/tags/v1.2.4)\r\n```bash\r\n./gitcompile --prefix=/aarch64 --host=aarch64-none-linux-gnu\r\nmake install\r\n\r\n# 验证是否安装成功\r\npkg-config --exists alsa \u0026\u0026 echo true || echo false\r\n```\r\n\r\n## 编译 castserver-go\r\n```bash\r\nCGO_ENABLED=1 GOOS=linux GOARCH=arm64 GOARM=7 go build -ldflags '-s -w' -o castserver ./\r\n```\r\n\r\n# 安装进香橙派并运行\r\n```bash\r\nscp castserver orangepi:/bin/\r\nssh orangepi castserver -i wlan0\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwcway%2Fcastserver-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzwcway%2Fcastserver-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzwcway%2Fcastserver-go/lists"}