openclaw - ✅(Solved) Fix [Bug]: TTS Regression in v2026.4.9 UPDATED [2 pull requests, 2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#64272Fetched 2026-04-11 06:15:36
View on GitHub
Comments
2
Participants
2
Timeline
11
Reactions
0
Author
Participants
Timeline (top)
renamed ×3commented ×2cross-referenced ×2labeled ×2

TTS (text-to-speech) voice note delivery stopped working after upgrading to OpenClaw v2026.4.9. The tts tool reports successful audio generation, but voice notes are never delivered to Telegram. STT (speech-to-text) for inbound voice notes is also non-functional.

Error Message

2026-04-10T10:11:59.515Z error gateway/channels/telegram telegram sendVoice failed: Network request for 'sendVoice' failed! 2026-04-10T10:11:59.521Z error gateway/channels/telegram telegram final reply failed: HttpError: Network request for 'sendVoice' failed!

Root Cause

TTS (text-to-speech) voice note delivery stopped working after upgrading to OpenClaw v2026.4.9. The tts tool reports successful audio generation, but voice notes are never delivered to Telegram. STT (speech-to-text) for inbound voice notes is also non-functional.

Fix Action

Workaround

None available. Manual file attachment via message tool with media path untested but may work as alternative.

PR fix notes

PR #64285: fix(telegram): keep tool media after text preview

Description (problem / solution / changelog)

Summary

  • preserve Telegram tool-generated media delivery even when the reply pipeline already emitted visible text segments
  • send the media-bearing payload after the text lane consumes the preview text instead of returning early and silently dropping attachments
  • add a regression test covering mixed text + media replies so Telegram TTS-style voice-note outputs still deliver their media

Closes #64272

Testing

  • attempted:  ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND  No package.json (or package.yaml, or package.json5) was found in "/root/.openclaw/workspace".
  • blocked locally in this worktree because / are unavailable ()
  • sending to CI for verification

Notes

  • this is intentionally scoped to the Telegram outbound dispatch regression described in #64272
  • I did not include a broader STT/inbound refactor because the reproducible root cause fixed here is the outbound mixed text+media early-return path

Changed files

  • extensions/telegram/src/bot-message-dispatch.test.ts (modified, +38/-0)
  • extensions/telegram/src/bot-message-dispatch.ts (modified, +7/-0)

PR #64314: fix(telegram): keep tool media after text preview

Description (problem / solution / changelog)

Follow-up to #64272 after addressing the Telegram test regressions uncovered by CI.\n\n## Changes\n- align the mixed text+media dispatch test with the actual final-delivery contract\n- remove the dead Telegram dispatch helper state that was no longer used\n- keep the fix scoped to the original Telegram mixed reply regression\n\nCloses #64272

Changed files

  • extensions/telegram/src/bot-message-dispatch.test.ts (modified, +34/-0)
  • extensions/telegram/src/bot.create-telegram-bot.test-harness.ts (modified, +0/-6)

Code Example

{
  "messages": {
    "tts": {
      "provider": "elevenlabs",
      "providers": {
        "elevenlabs": {
          "apiKey": "sk_...",
          "baseUrl": "https://api.elevenlabs.io",
          "modelId": "eleven_multilingual_v2",
          "voiceId":REDACTED"
        }
      }
    }
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "defaultTo": "REDACTED",
      "botToken": "REDACTED"
    }
  },
  "plugins": {
    "entries": {
      "elevenlabs": {
        "enabled": true,
        "config": {}
      }
    }
  }
}

---

Generated audio reply.

---

2026-04-10T10:39:45.453Z error [tools] image failed: Unsupported media type: audio
[NO TTS EVENTS LOGGED HERE]
2026-04-10T10:33:58.570Z info gateway loading configuration…

---

2026-04-10T10:11:59.515Z error gateway/channels/telegram telegram sendVoice failed: Network request for 'sendVoice' failed!
2026-04-10T10:11:59.521Z error gateway/channels/telegram telegram final reply failed: HttpError: Network request for 'sendVoice' failed!

---

2026-04-10T10:21:17.592Z info gateway/channels/telegram telegram sendMessage ok chat=8775399894 message=404
RAW_BUFFERClick to expand / collapse

OpenClaw Bug Report: TTS Voice Note Delivery Regression in v2026.4.9

Summary

TTS (text-to-speech) voice note delivery stopped working after upgrading to OpenClaw v2026.4.9. The tts tool reports successful audio generation, but voice notes are never delivered to Telegram. STT (speech-to-text) for inbound voice notes is also non-functional.

Environment

  • OpenClaw version: 2026.4.9 (updated 2026-04-09)
  • Previous working version: Pre-2026.4.9 (TTS worked before this update)
  • Channel: Telegram
  • OS: Ubuntu (VM in VirtualBox on Intel Mac Mini)
  • TTS Provider: ElevenLabs (eleven_multilingual_v2)

Configuration

{
  "messages": {
    "tts": {
      "provider": "elevenlabs",
      "providers": {
        "elevenlabs": {
          "apiKey": "sk_...",
          "baseUrl": "https://api.elevenlabs.io",
          "modelId": "eleven_multilingual_v2",
          "voiceId": “REDACTED"
        }
      }
    }
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "defaultTo": "REDACTED",
      "botToken": "REDACTED"
    }
  },
  "plugins": {
    "entries": {
      "elevenlabs": {
        "enabled": true,
        "config": {}
      }
    }
  }
}

Steps to Reproduce

TTS Issue (Outbound Voice Notes)

  1. Send a text message to the assistant via Telegram
  2. Assistant calls tts tool with channel: "telegram"
  3. Tool returns Generated audio reply
  4. Expected: Voice note delivered to user
  5. Actual: Only text response received; no voice note

Inbound STT

  1. Send a voice note to the assistant via Telegram
  2. Expected: Audio transcribed and processed
  3. Actual: No transcription available; pdf tool fails with "Expected PDF but got audio/ogg", image tool fails with "Unsupported media type: audio"

Evidence

1. TTS Tool Reports Success

Generated audio reply.

2. No Gateway Activity Logged

Gateway logs show no TTS-related events after tool call:

2026-04-10T10:39:45.453Z error [tools] image failed: Unsupported media type: audio
[NO TTS EVENTS LOGGED HERE]
2026-04-10T10:33:58.570Z info gateway loading configuration…

The gap between 10:33 and 10:39:45 should contain TTS delivery attempts, but nothing appears.

3. Historical Evidence of sendVoice Failure

Earlier logs from ~10:11 UTC show the last sendVoice attempts failing:

2026-04-10T10:11:59.515Z error gateway/channels/telegram telegram sendVoice failed: Network request for 'sendVoice' failed!
2026-04-10T10:11:59.521Z error gateway/channels/telegram telegram final reply failed: HttpError: Network request for 'sendVoice' failed!

After this, no further sendVoice attempts appear in logs.

4. Text Messages Work Fine

2026-04-10T10:21:17.592Z info gateway/channels/telegram telegram sendMessage ok chat=8775399894 message=404

Diagnosis

The TTS audio generation via ElevenLabs API is working (credentials valid, API responsive). However, the tool→channel delivery handoff is broken:

  1. Tool generates audio file successfully
  2. Tool reports Generated audio reply
  3. Audio file is never passed to the gateway's Telegram channel
  4. No sendVoice API call is made to Telegram
  5. User receives no voice note

This suggests a regression in how the tts tool result is handled by the channel delivery layer in v2026.4.9.

Pre-Update Behavior (Prior to v2026.4.9)

TTS was generating audio but it was corrupted. In the webchat interface, corrupted voice notes appeared as long strings of exclamation marks ("!!!!!!!!!!!!!"). This suggests the audio file was being created with malformed content, and the webchat was displaying the raw binary data.

Key observation: The "!!!!!" corruption appeared when using both Telegram AND webchat simultaneously, suggesting session handling issues contributed to the audio corruption.

Post-Update Behavior (v2026.4.9)

After the v2026.4.9 update, TTS still generates audio and reports success, but no audio file is delivered at all. The behavior shifted from "corrupted delivery" to "no delivery."

Impact

  • Critical: Users cannot receive voice note responses (TTS broken)
  • Major: Users cannot send voice notes for transcription (STT broken)
  • Text messaging remains functional

Additional Notes

  • Gateway Telegram channel reconnects successfully after config changes
  • Network connectivity to Telegram API is stable (as evidenced by working text messages)
  • ElevenLabs API credentials are valid and functional (manual API calls succeed)
  • Multi-session factor: Session handling issues suspected when multiple channels (Telegram + webchat) are active simultaneously

Workaround

None available. Manual file attachment via message tool with media path untested but may work as alternative.

Related

  • Pre-v2026.4.9: Corrupted audio delivery ("!!!!!!" in webchat)
  • v2026.4.9+: No audio delivery at all
  • Session handling suspected when multiple channels active

extent analysis

TL;DR

The most likely fix for the TTS voice note delivery regression in OpenClaw v2026.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - ✅(Solved) Fix [Bug]: TTS Regression in v2026.4.9 UPDATED [2 pull requests, 2 comments, 2 participants]