{"id":19430203,"url":"https://github.com/etherdream/headphone-morse-transmitter","last_synced_at":"2025-06-29T14:32:28.809Z","repository":{"id":235834090,"uuid":"791345622","full_name":"EtherDream/headphone-morse-transmitter","owner":"EtherDream","description":"Send Morse code via ⏮️ ⏸️ ⏯️","archived":false,"fork":false,"pushed_at":"2024-10-29T14:06:15.000Z","size":788,"stargazers_count":413,"open_issues_count":0,"forks_count":23,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-15T03:38:29.610Z","etag":null,"topics":["geek","javascript","mediasession-api","morsecode"],"latest_commit_sha":null,"homepage":"https://etherdream.com/headphone-morse-transmitter/","language":"HTML","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/EtherDream.png","metadata":{"files":{"readme":"README-zh.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":"2024-04-24T14:50:53.000Z","updated_at":"2025-05-08T06:48:34.000Z","dependencies_parsed_at":"2024-04-24T18:02:16.808Z","dependency_job_id":"7fb779c3-d83e-480c-af8e-f4e548c917bf","html_url":"https://github.com/EtherDream/headphone-morse-transmitter","commit_stats":null,"previous_names":["etherdream/headphone-morse-transmitter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EtherDream/headphone-morse-transmitter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fheadphone-morse-transmitter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fheadphone-morse-transmitter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fheadphone-morse-transmitter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fheadphone-morse-transmitter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EtherDream","download_url":"https://codeload.github.com/EtherDream/headphone-morse-transmitter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EtherDream%2Fheadphone-morse-transmitter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262609034,"owners_count":23336618,"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":["geek","javascript","mediasession-api","morsecode"],"created_at":"2024-11-10T14:23:56.601Z","updated_at":"2025-06-29T14:32:28.753Z","avatar_url":"https://github.com/EtherDream.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🎧 摩尔斯码发送器\n\n很多耳机可以发送 ⏮️ ⏸️ ⏯️ 命令，例如 Airpods，按一下可暂停或继续，按两下可播放下一曲，按三下可播放上一曲。\n\n利用这个特征，我们可通过按耳机发送摩尔斯码！\n\n## 在线演示\n\n[https://etherdream.com/headphone-morse-transmitter/](https://etherdream.com/headphone-morse-transmitter/)\n\n由于浏览器限制，你必须点击任意位置才能初始化音频（播放一个几乎静音的背景音乐），从而可接受耳机命令。\n\n请先关闭其他播放器，否则耳机命令可能不会发送到本页面上。如果页面仍无法收到耳机命令，可点击 `Debug` 检测音频是否在播放，如果没有可手动播放。\n\nhttps://github.com/user-attachments/assets/37cf43c2-ec2f-429a-b2b2-47a96a5ad242\n\n\u003e 由于声音是从耳机里发出来的，因此很轻。\n\n## 使用方式\n\n⏸️ = 点 (.)\n\n⏯️ = 划 (-)\n\n⏮️ = 输出 或 退格\n\n按下 ⏮️ 时，如果 `Input` 存在内容，则立即输出内容；如果 `Input` 为空，则相当于退格键，删除 `Words` 最后一个字符。\n\n距上一次按键达到 `Delay` 毫秒时，`Input` 中的内容将会被自动输出。\n\n本程序支持 [国际码](https://en.wikipedia.org/wiki/Morse_code)、[和文码](https://en.wikipedia.org/wiki/Wabun_code)、[中文电码](https://zh.wikipedia.org/wiki/%E4%B8%AD%E6%96%87%E7%94%B5%E7%A0%81) 以及部分私有特征。\n\n## 特殊功能\n\n* `\u003cAA\u003e`: 换行 (`.-.-`)\n\n* `\u003cHH\u003e`: 清空最后行 (`.` x8)\n\n* `\u003cDO\u003e`: 切换到和文码 (`-..---`)\n\n* `\u003cSN\u003e`: 返回到国际码 (`...-.`)\n\n* `\\d{2,4}`: 输入 2~4 个数字，输出 1 个汉字。参考 [1983年标准电码本](https://zh.wiktionary.org/wiki/Appendix:%E4%B8%AD%E6%96%87%E7%94%B5%E7%A0%81/%E4%B8%AD%E5%9B%BD%E5%A4%A7%E9%99%861983)（前两个 0 可忽略）。\n\n## 私有功能\n\n* `\u003cSS\u003e`: 语音朗读最后一行 (`.` x6)\n\n* `\u003cLO\u003e`: 切换到小写/平假名（`.-..---`）\n\n* `\u003cUP\u003e`: 切换到大写/片假名（`..-.--.`）\n\n* `\u003cSP\u003e`: 空格 (`....--.`)\n\n* `\u003cX\u003e` + 假名 = 小假名 (`-..- ?`) \n\n  支持 `っ ゃゅょ ぁぃぅぇぉ ゕゖ` 以及相应的片假名。\n\n## 键盘操作\n\n如果你不想使用耳机，也可使用键盘上的 ⏮️ ⏸️ ⏯️ 键，这样可更快输入：\n\nhttps://github.com/user-attachments/assets/60bc966c-e960-4c0e-82e3-e4769613d91d\n\n此外，点击媒体控制浮层中的 ⏮️ ⏸️ ⏯️ 按钮也可以实现同样的效果。\n\nhttps://github.com/user-attachments/assets/45395d2d-5624-4061-be12-bbe22c645d86\n\n\n## 后台运行\n\n本程序可在后台运行，即使浏览器最小化，甚至锁屏也能运行。\n\n因此你可以在手机上打开该网页，锁屏后盲发摩尔斯电码。只需按耳机，听反馈，无需看屏幕。\n\nhttps://github.com/user-attachments/assets/4fd3d899-7153-4029-8643-4775c699265e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetherdream%2Fheadphone-morse-transmitter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fetherdream%2Fheadphone-morse-transmitter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fetherdream%2Fheadphone-morse-transmitter/lists"}