Borrowing it
Nothing to install: this file belongs to geekfujiwara/CodeAppsDevelopmentStandard. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/geekfujiwara/CodeAppsDevelopmentStandard/main/.github/skills/realtime-speech/SKILL.mdgit clone --depth 1 https://github.com/geekfujiwara/CodeAppsDevelopmentStandardWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/geekfujiwara/codeappsdevelopmentstandard/realtime-speech)<a href="https://agentmods.dev/skills/geekfujiwara/codeappsdevelopmentstandard/realtime-speech"><img src="https://agentmods.dev/badge/skills/geekfujiwara/codeappsdevelopmentstandard/realtime-speech/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/geekfujiwara/codeappsdevelopmentstandard/realtime-speech"><img src="https://agentmods.dev/badge/skills/geekfujiwara/codeappsdevelopmentstandard/realtime-speech.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00152 | $0.03100 |
| Opus 5.5 | $0.00061 | $0.01240 |
| Sonnet 5.5 | $0.00030 | $0.00620 |
| Haiku 4.5 | $0.00015 | $0.00310 |
Grade A, and why
realtime-speech scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
リアルタイム音声文字起こしスキル
ブラウザ アプリ(主に Code Apps)で、話している内容をその場で文字にしながら録音する機能を作る。
マイク ─▶ AudioContext ─▶ AudioWorklet(同一オリジン)─▶ 16 kHz PCM ─▶ Push ストリーム ─▶ Speech SDK ─(WebSocket)─▶ Azure AI Speech
└────▶ MediaRecorder(録音・opus) ▲ 短期トークン
Code Apps ─(カスタム コネクタ)─▶ トークン発行 Function(Managed Identity)────────────────────────────┘
| 判断 | 理由 |
|---|---|
| ブラウザから Speech へ直結する | 途中結果を 0.2〜0.4 秒間隔で受け取れる。サーバー中継は遅延と運用が増える |
| トークンはコネクタ経由の Function から受け取る | キーをブラウザに置かない(キー認証が無効なテナントでも動く)。コネクタ呼び出しは CSP の追加が不要 |
| 音声は自前で PCM にして Push ストリームで渡す | SDK にマイクを直接渡すと、Code Apps では音声が SDK に届かない |
リファレンス: 認証とロール / 遅延と精度 / 連続録音の区切り / 名乗りからの話者の特定 / MAI-Transcribe との組み合わせ / 異常系 / パラメータ
Step 0: 事前確認(会話の最初に 1 回だけ)
standard の共通契約に加え、1 回の AskUserQuestion で確認する。
| # | 質問 | 合格条件 |
|---|---|---|
| 1 | Speech リソースのサブスクリプション・リージョン・既存リソースの有無 | リージョンが決まり、カスタム サブドメインを付けられる |
| 2 | 環境の CSP に connect-src wss://<region>.stt.speech.microsoft.com を追加してよいか |
CSP は環境全体に効く。変更の承認者が決まっている |
| 3 | ロール付与・コネクタ作成・DLP 分類の担当者 | Azure RBAC、Power Platform のコネクタ、DLP の担当が分かれて記録されている |
| 4 | 音声と文字起こしのデータ分類・保存期間・保存先 | 録音を扱ってよい根拠と保存先が決まっている |
| 5 | 利用端末と会場(マイク、ブラウザ、ほかに動かすアプリ) | 端末の負荷とマイクの経路(ミキサー等)が分かっている |
Step 1: Speech リソースと権限を用意する
- Speech リソース(
kind=SpeechServices)をカスタム サブドメイン付きで作る。キー認証が無効でもよい(Entra ID で認証する) - 開発者とトークン発行 Function の Managed Identity に Foundry User を付ける。Managed Identity はリソース グループの範囲で付ける (実測で数秒〜2 分で反映。リソース範囲は反映に約 12 分かかった。通らなかったロールは 認証とロール)
Step 2: 端末で往復検証する
アプリを作る前に、リソース・権限・リージョンが正しいことを端末だけで確かめる。 Speech SDK を入れたプロジェクトのフォルダーで実行する。
$env:SPEECH_TOKEN = (powershell -File .github/skills/realtime-speech/scripts/get_speech_token.ps1 -Raw)
node .github/skills/realtime-speech/scripts/verify_speech_roundtrip.mjs --out samples/question.wav --phrase <専門用語>
node .github/skills/realtime-speech/scripts/verify_push_stream.mjs --wav samples/question.wav
What ships with it
35 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/.env.example 1.0 KB
- references/auth.md 4.6 KB
- references/continuous-segmentation.md 5.9 KB
- references/latency-accuracy.md 2.5 KB
- references/mai-transcribe.md 4.8 KB
- references/speaker-identification.md 5.1 KB
- references/troubleshooting.md 7.0 KB
- scripts/get_speech_token.ps1 1.9 KB runs code
- scripts/synthesize_script_wav.ps1 2.4 KB runs code
- scripts/verify_push_stream.mjs 3.2 KB runs code
- scripts/verify_speech_roundtrip.mjs 4.0 KB runs code
- templates/code-apps-addon/public/pcm-capture-worklet.js 1.2 KB runs code
- templates/code-apps-addon/README.md 3.4 KB
- templates/code-apps-addon/scaffold.json 900 B
- templates/code-apps-addon/src/hooks/use-transcription-session.ts 12 KB runs code
- templates/code-apps-addon/src/lib/debug-log.ts 3.4 KB runs code
- templates/code-apps-addon/src/lib/speech/audio-pipeline.ts 4.3 KB runs code
- templates/code-apps-addon/src/lib/speech/pcm-segmenter.ts 2.3 KB runs code
- templates/code-apps-addon/src/lib/speech/recognizer.ts 2.8 KB runs code
- templates/code-apps-addon/src/lib/speech/token.ts 4.1 KB runs code
- templates/speech-token-broker/.funcignore 63 B
- templates/speech-token-broker/.gitignore 46 B
- templates/speech-token-broker/connector/apiDefinition.swagger.json 2.0 KB
- templates/speech-token-broker/connector/apiProperties.json 1.0 KB
- templates/speech-token-broker/host.json 267 B
- templates/speech-token-broker/local.settings.sample.json 142 B
- templates/speech-token-broker/package.json 573 B
- templates/speech-token-broker/README.md 2.7 KB
- templates/speech-token-broker/scaffold.json 1.4 KB
- templates/speech-token-broker/src/functions/speechToken.ts 1.4 KB runs code
- templates/speech-token-broker/src/index.ts 33 B runs code
- templates/speech-token-broker/src/lib/auth.ts 4.4 KB runs code
- templates/speech-token-broker/src/lib/speech.ts 1.7 KB runs code
- templates/speech-token-broker/test/auth.test.cjs 2.3 KB runs code
- templates/speech-token-broker/tsconfig.json 250 B
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 150 lines · 152 tokens per session scan A dfea0b542e98
realtime-speech is a skill published in the GitHub repository geekfujiwara/CodeAppsDevelopmentStandard (78 stars, last pushed yesterday), licensed MIT. It adds 152 tokens to every session and 3,100 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-03.
realtime-speech compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| realtime-speechgeekfujiwara/CodeAppsDevelopmentStandard | Skill | 78 | yesterday | MIT | A | 152 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | today | MIT | A | 103 | Claude Code |