openclaw - 💡(How to fix) Fix ElevenLabs TTS provider not registering despite valid config [1 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#59979Fetched 2026-04-08 02:38:01
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Author
Timeline (top)
subscribed ×2commented ×1

ElevenLabs TTS provider is not registering in the provider registry despite having valid configuration. The system shows active: elevenlabs but the provider isn't in the available providers list.

Root Cause

ElevenLabs TTS provider is not registering in the provider registry despite having valid configuration. The system shows active: elevenlabs but the provider isn't in the available providers list.

RAW_BUFFERClick to expand / collapse

Summary

ElevenLabs TTS provider is not registering in the provider registry despite having valid configuration. The system shows active: elevenlabs but the provider isn't in the available providers list.

Environment

  • OpenClaw version: 2026.3.28 (npm shows 2026.4.2 available)
  • OS: Windows 10
  • Node: v22.22.1

Configuration

\\json { messages: { tts: { provider: elevenlabs, providers: { elevenlabs: { apiKey: sk_xxx..., voiceId: hJz42h5o2Lo5WQlkv34b, modelId: eleven_v3 } } } } } \\

Observed Behavior

  1. Gateway startup shows warning: voice-call TTS: elevenlabs provider configured but apiKey is missing
  2. openclaw gateway call tts.status returns:
    • provider: elevenlabs
    • providerStates only contains openai (elevenlabs missing entirely)
  3. openclaw gateway call tts.providers returns:
    • providers: [{ id: openai, ... }] - only OpenAI, no ElevenLabs
    • active: elevenlabs
  4. Actual TTS call fails with: elevenlabs: no provider registered; openai: not configured

Expected Behavior

ElevenLabs should appear in the providers list and TTS should work with the configured API key.

Investigation Notes

  • The speech provider code exists in speech-provider-D2E68CBa.js
  • The normalizeElevenLabsProviderConfig function should handle both providers.elevenlabs and flat elevenlabs config structures
  • Provider registration appears to be failing silently somewhere in the chain

Reproduction Steps

  1. Configure ElevenLabs in messages.tts as shown above
  2. Restart gateway
  3. Run openclaw gateway call tts.providers
  4. Observe ElevenLabs missing from providers array

extent analysis

TL;DR

Verify the ElevenLabs API key configuration to ensure it is correctly set and not missing, as indicated by the warning message during gateway startup.

Guidance

  • Check the messages.tts.providers.elevenlabs.apiKey configuration value to ensure it is not empty or missing, despite being redacted in the provided configuration snippet.
  • Review the normalizeElevenLabsProviderConfig function in speech-provider-D2E68CBa.js to understand how it handles the API key configuration and to verify if there are any issues with the normalization process.
  • Compare the configuration structure used (providers.elevenlabs) with the expected structure handled by the normalizeElevenLabsProviderConfig function to ensure compatibility.
  • Investigate why the voice-call TTS: elevenlabs provider configured but apiKey is missing warning is displayed during gateway startup, as this suggests a discrepancy in the configuration or its interpretation.

Example

No specific code example can be provided without altering the original issue's context, but reviewing the normalizeElevenLabsProviderConfig function for how it checks and handles the apiKey within the elevenlabs configuration object could offer insights into the issue.

Notes

The discrepancy between the configured elevenlabs provider and the missing apiKey warning suggests a potential issue with how the configuration is being read or interpreted by the gateway. Ensuring the API key is correctly set and matches the expected format is crucial.

Recommendation

Apply a workaround by directly verifying and potentially correcting the apiKey configuration to match the expected format and ensure it is not missing, as this seems to be the most direct path to resolving the provider registration issue.

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