# NousResearch/hermes-agent · TTS audio container mismatch and Opus conversion patches

## Open now

- Nothing open on GitHub.

Several TTS providers (Edge, Piper, MiniMax, xAI) were saving non-Opus audio under .ogg extensions, breaking Telegram voice bubbles and on-device transcription. Patches add magic-byte container detection and proper transcoding to Opus before delivery.

## TL;DR

- 11 member(s): 0 open issue(s), 3 closed issue(s), 0 open PR(s), 1 merged PR(s), 7 PR(s) closed without merging.
- A fix was merged to main in PR #73507. Verify it addresses your case.
- **Recommended:** read PR #73507 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `partially_resolved` · deciding PR(s): `pr-73507`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.16`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #36131: \[BUG\]Audio attachments cached with wrong .ogg extension (real format MP4/QuickTime+AAC) → on-device transcription fails
- #57048: Edge TTS provider silently saves MP3 bytes under a .ogg extension when given an explicit .ogg output_path (breaks Telegram voice bubbles)
- #58845: \[Bug\]: Piper TTS writes raw WAV to .ogg output path — Opus conversion skipped, Telegram shows 0-second voice bubble

## Prior & competing PRs

- **#36179: fix(gateway): sniff audio magic bytes in cache_audio_from_bytes to fix wrong .ogg extension**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#36166`, `#36176`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#73507: fix(gateway): central magic-byte container detection for all inbound audio**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `contributors/emails/[redacted:email]`, `contributors/emails/[redacted:email]`, `gateway/platforms/base.py`, `gateway/platforms/signal.py`, `plugins/platforms/telegram/adapter.py`, `tests/gateway/test_document_cache.py`, `tests/gateway/test_extract_local_files.py`, `tests/gateway/test_platform_base.py`, `tests/gateway/test_signal.py`, `tests/gateway/test_telegram_documents.py`, `tests/tools/test_audio_container.py`, `tests/tools/test_send_message_tool.py`, `tests/tools/test_transcription_tools.py`, `tools/audio_container.py`, `tools/send_message_tool.py`, `tools/transcription_tools.py`, `tools/tts_tool.py`
- **#36166: fix(gateway): sniff cached audio container type**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `156edc5ded`, `a1582a75ae`, `#73507`
- **#57069: fix(tts): convert Edge TTS MP3 to Opus when caller supplies .ogg path**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#20882`, `#20882`, `#57048`
- **#57080: fix(tts): convert explicit Edge OGG output**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#57190: fix(tts): transcode edge ogg output paths**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#73072`
- **#58848: fix(tts): convert Piper WAV-in-OGG to real Opus on Telegram**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#73072`
- **#59196: fix(tts): convert Piper raw WAV to Opus before sending as .ogg**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#58848`, `#58845`, `#58848`, `#59092`

## Fix status

- Merged to main in PR #73507 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-28`.
- Subsystem: `agent/transports`
