Tunecat:简易网络收音机
Tunecat: Simple Internet Radio

原始链接: https://codeberg.org/lindenii/tunecat/

一个简单而简陋的网络广播程序。提供了一个演示实例,为某个混乱 IRC 网络上的 #chat 频道播放古典音乐合集(遵循 CC Public Domain Mark 1.0 协议)。 **使用说明** 考虑使用 `openssl req -x509 -new -newkey ed25519 -sha256 -nodes -out tunecat.pem -keyout tunecat.pem` 生成证书,并通过 CertFP 注册一个 NickServ 账号。使用随附的 `opusify` 脚本将所有歌曲预转码为 128 kbps 的 Opus 格式。 **tunecat 使用方法:** - `-addr string`:监听地址 - `-dir string`:.opus 文件所在的目录 - `-irc-addr string`:IRC 服务器地址,格式为 host:port - `-irc-cert string`:TLS 客户端证书与私钥的合并文件 - `-irc-channels string`:要加入的 IRC 频道,用逗号分隔 - `-irc-nick string`:IRC 昵称 加上反向代理即可使用。 **为什么还要再造一个?** - 纯 Go 语言编写;无 FFI 或任何原生编解码器包;易于部署 - 轻量级;无需实时转码;全程保持 128 kbps Opus 音质 - 支持基础的 ICY 协议 **致谢** 深受 MeteorLight 和 Kirika 的启发。Opus 分页代码取自 Kirika。 **许可证** 2-clause BSD。详情请参阅 LICENSE。

Hacker News 最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Tunecat: 简易网络电台 (codeberg.org/lindenii) 6 点赞,由 croottree 于 1 小时前发布 | 隐藏 | 过往 | 收藏 | 讨论 | 帮助 社区准则 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文

Simple and dumb internet radio thingy.

There is a demo instance serving Classical Music Mix (CC Public Domain Mark 1.0) for #chat on a very chaotic IRC network.

Usage

Consider openssl req -x509 -new -newkey ed25519 -sha256 -nodes -out tunecat.pem -keyout tunecat.pem and registering a NickServ account with CertFP.

Use the provided opusify script to pre-transcode all your songs to Opus 128 kbps.

Usage of tunecat:
  -addr string
    	listen address
  -dir string
    	directory of .opus files
  -irc-addr string
    	IRC server address as host:port
  -irc-cert string
    	combined TLS client certificate and key
  -irc-channels string
    	comma-separated IRC channels to join
  -irc-nick string
    	IRC nick

Add a reverse proxy and profit.

Why another one

  • Pure Go; no FFI or any native codec packages; easy to deploy
  • Lightweight; no transcoding; Opus 128 kbps all the way
  • Basic ICY support

Acknowledgements

Heavily inspired by MeteorLight and Kirika. The Opus paging code is taken from Kirika.

License

2-clause BSD. See LICENSE.

联系我们 contact @ memedata.com