---
title: "cs-radio"
url: "https://claudemods.dev/zh-tw/builds/cs-radio-6f4dbf"
source: "https://github.com/ben-rogerson/claude-counter-strike"
source_type: "github"
repo: "https://github.com/ben-rogerson/claude-counter-strike"
author: "ben-rogerson"
author_handle: "ben-rogerson"
stars: 2
category: "通知與提醒"
categories: ["notifications"]
tags: ["audio", "claude-code", "counter-strike", "hooks", "macos", "plugin", "radio"]
permission_level: 2
scan_complete: true
install: "claude plugin marketplace add ben-rogerson/claude-counter-strike\nclaude plugin install cs-radio@cs-radio"
added: "2026-10-04T08:02:09.937Z"
updated: "2026-10-18T11:17:00Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# cs-radio

為 Claude Code 提供 Counter-Strike 1.6 無線電語音：部署時播放「Fire in the hole」，長回合結束時播放「Bomb has been defused」。用 /radio 切換。

## Description

# Claude Counter-Strike

為 [Claude Code](https://claude.com/claude-code) 提供 Counter-Strike 1.6 無線電語音。

| 時機 | 你會聽到 |
| --- | --- |
| 工作階段開始 | "Locked and loaded" |
| 長回合結束（45 秒以上） | "Bomb has been defused" |
| 回合發生錯誤 | "Negative" |
| 你中斷回合 | "Fall back" |
| 部署開始 | "Fire in the hole" |
| 部署成功 | "Counter-Terrorists win" |
| 部署失敗 | "Terrorists win" |

Claude 執行的指令只要看起來像部署就算，例如：`pnpm/npm/yarn/bun run deploy`、`wrangler deploy`、`vercel --prod`、`fly deploy`、`scripts/deploy.sh`。

## 安裝

在 Claude Code 中：

```
/plugin marketplace add ben-rogerson/claude-counter-strike
/plugin install cs-radio@cs-radio
```

或從終端機執行：

```
claude plugin marketplace add ben-rogerson/claude-counter-strike
claude plugin install cs-radio@cs-radio
```

函式掛鉤外掛（mods）在 Claude Code 中仍屬搶先體驗，因此需要較新的版本。

## 音效

Claude Counter-Strike 依下列順序尋找音效：

1. **Valve 原版音效**：取自你自己的 Counter-Strike 1.6 安裝（本儲存庫不包含）。它會檢查常見的 Steam 資料夾：
   - macOS：`~/Library/Application Support/Steam/steamapps/common/Half-Life/cstrike/sound/radio`
   - Linux：`~/.steam/steam/...` 或 `~/.local/share/Steam/...`（從 `steamapps` 起的路徑相同）

   若你的安裝在其他位置，請在 `/config` 中將 **CS 1.6 radio folder** 設為 `cstrike/sound/radio` 資料夾。
2. **隨附的仿製音效**：位於 `sounds/`，找不到安裝時使用。它們專為本儲存庫以 [Kokoro](https://huggingface.co/hexgrad/Kokoro-82M)（Apache-2.0）文字轉語音加上無線電濾波器製作，可以自由再散布。用 `uv run scripts/make-sounds.py` 重新產生（請參閱腳本開頭）。
3. **系統語音**：音訊片段無法播放時使用。

音訊片段以 `afplay` 播放，因此 wav 目前只能在 macOS 播放。

## 指令

- `/radio`：切換開啟／關閉（跨工作階段記憶）
- `/radio on` / `/radio off`
- `/radio test`：播放 "Counter-Terrorists win"，並告訴你音效來源

## 選項（`/config`）

- **CS 1.6 radio folder**：`cstrike/sound/radio` 的路徑
- **Long turn (seconds)**：回合執行多久後才播放 "Bomb has been defused"。預設 45。

## 開發

```
claude --plugin-dir .          # load it from this checkout
claude plugin validate .
claude plugin test .
```

## 授權

程式碼與隨附仿製音效採用 MIT 授權。Counter-Strike 及其原版音效屬於 Valve。

## Install

```
claude plugin marketplace add ben-rogerson/claude-counter-strike
claude plugin install cs-radio@cs-radio
```

## Original README

# Claude Counter-Strike

Counter-Strike 1.6 radio calls for [Claude Code](https://claude.com/claude-code).

| When | You hear |
| --- | --- |
| Session starts | "Locked and loaded" |
| A long turn finishes (45s+) | "Bomb has been defused" |
| A turn errors | "Negative" |
| You interrupt a turn | "Fall back" |
| A deploy starts | "Fire in the hole" |
| The deploy succeeds | "Counter-Terrorists win" |
| The deploy fails | "Terrorists win" |

A deploy is any command Claude runs that looks like one: `pnpm/npm/yarn/bun run deploy`, `wrangler deploy`, `vercel --prod`, `fly deploy`, `scripts/deploy.sh`.

## Install

In Claude Code:

```
/plugin marketplace add ben-rogerson/claude-counter-strike
/plugin install cs-radio@cs-radio
```

Or from your terminal:

```
claude plugin marketplace add ben-rogerson/claude-counter-strike
claude plugin install cs-radio@cs-radio
```

Function-hook plugins (mods) are early access in Claude Code, so you need a recent build.

## Sounds

Claude Counter-Strike looks for sounds in this order:

1. **Valve's originals** from your own Counter-Strike 1.6 install (they're not in this repo). It checks the usual Steam folders:
   - macOS: `~/Library/Application Support/Steam/steamapps/common/Half-Life/cstrike/sound/radio`
   - Linux: `~/.steam/steam/...` or `~/.local/share/Steam/...` (same path from `steamapps` on)

   If yours is somewhere else, set **CS 1.6 radio folder** in `/config` to the `cstrike/sound/radio` folder.
2. **Bundled soundalikes** in `sounds/`, used when no install is found. They were made for this repo with [Kokoro](https://huggingface.co/hexgrad/Kokoro-82M) (Apache-2.0) text-to-speech plus a radio filter, so they're free to redistribute. Regenerate them with `uv run scripts/make-sounds.py` (see the script header).
3. **Your system voice**, if a clip can't play.

Clip playback uses `afplay`, so wavs only play on macOS for now.

## Commands

- `/radio` - toggle on/off (remembered across sessions)
- `/radio on` / `/radio off`
- `/radio test` - plays "Counter-Terrorists win" and tells you where the sounds come from

## Options (`/config`)

- **CS 1.6 radio folder** - path to `cstrike/sound/radio`
- **Long turn (seconds)** - how long a turn runs before "Bomb has been defused" plays. Default 45.

## Develop

```
claude --plugin-dir .          # load it from this checkout
claude plugin validate .
claude plugin test .
```

## License

MIT for the code and the bundled soundalikes. Counter-Strike and its original sounds are Valve's.
