Skip to content

improve(talk): live transcription uses a saved Deepgram, ElevenLabs or Mistral API key - #199858

Merged
hannesrudolph merged 5 commits into
openclaw:mainfrom
daniel-lxs:live-transcription-saved-keys
Nov 16, 2026
Merged

hannesrudolph merged 5 commits into
openclaw:mainfrom
daniel-lxs:live-transcription-saved-keys

Conversation

@daniel-lxs

@daniel-lxs daniel-lxs commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Closes #199684

What Problem This Solves

Live transcription with Deepgram, ElevenLabs or Mistral reads its API key only from the Voice Call streaming config or the Gateway's environment. A key for the same provider that is already saved in OpenClaw, the one voice notes use, is not used there, so it has to be entered a second time.

User Impact

When Deepgram, ElevenLabs or Mistral is the named live transcription provider and has no key in the Voice Call streaming config or the environment, it uses the provider's saved API key. A key saved with openclaw models auth paste-api-key --provider deepgram (or, for Mistral, in Settings → Models) is then enough.

A provider is named by any of these:

  • plugins.entries.voice-call.config.streaming.provider (Talk and Voice Call)
  • a meeting plugin's realtime.transcriptionProvider, for example plugins.entries.google-meet.config.realtime.transcriptionProvider
  • the provider a client passes to talk.session.create

Apart from the two changes listed below, every setup behaves as on main:

  • Key order. The Voice Call streaming config, then the environment (DEEPGRAM_API_KEY; ELEVENLABS_API_KEY or XI_API_KEY; MISTRAL_API_KEY), then the saved key. When the config or the environment has a key, the saved key is not looked up.
  • Automatic selection. With no provider named, the Gateway and Voice Call pick the first ready candidate. A saved key of these three providers does not count there, so the same provider is picked as on main, and a provider that has only a saved key is never picked ahead of one that has a config or environment key.
  • Preferred transcription model. A Deepgram, ElevenLabs or Mistral model in agents.defaults.voiceModel is tried as a candidate, not as a named provider. With only a saved key it stays "not ready" there, as on main.
  • OpenAI and xAI. Untouched. Their live providers count a saved key in every case, as on main.

What changes:

  1. A named provider whose only key is a saved one goes from "not configured" to working, and talk.catalog lists it as configured.
  2. With no key anywhere, code that creates a session for one of these providers gets "API key missing" when the session connects instead of when it is created, with the same message, because the saved key is looked up asynchronously. The Gateway does not get that far: as on main, it refuses the session with "not configured". The Talk relay, Voice Call and the meeting bot all check isConfiguredAsync first and handle a failed connect.

Plugin SDK, additive only:

  • RealtimeTranscriptionProviderConfiguredContext, the argument of a live transcription provider's isConfiguredAsync, gains an optional boolean selectedExplicitly.
  • resolveConfiguredCapabilityProviderAsync and its deprecated synchronous twin pass selectedExplicitly to their isProviderConfigured callback.
  • The Gateway's Talk selection, Voice Call (through that helper) and the meeting bot set it when a provider is named. Deepgram, ElevenLabs and Mistral count their saved key only when it is true. A caller that leaves it out gets the same readiness as on main.

Not in this PR: a place in the Control UI to enter a Deepgram or ElevenLabs key, any config option, any protocol change. The saved key is read from the default agent's store, as the OpenAI and xAI live providers do, so a key saved only for another agent is not used.

Why This Change Was Made

One saved key should serve both voice notes and live transcription. The OpenAI and xAI live transcription providers already fall back to the provider's saved API key (its auth profile). Deepgram, ElevenLabs and Mistral take the same lookup, after their existing key sources, and only for saved API keys (not token or OAuth profiles).

The saved key counts only for a named provider, so it cannot change which provider automatic selection picks. A provider's readiness is a single boolean and its autoSelectOrder is fixed, so a provider cannot tell "I am the named provider" from "I am one of several candidates" unless the caller says so. selectedExplicitly is that statement, and it is opt-in: without it, readiness is what it is on main.

Evidence

Real behavior on a built Gateway

An isolated Gateway built from main (the PR's merge base) and one built from this branch ran the same scenario script. The Deepgram, ElevenLabs and Mistral endpoints were replaced by local WebSocket stand-ins that log the credential they receive, and every key is made up. No real provider key or service was used.

Settings → Talk, with Deepgram named in streaming.provider and only a saved Deepgram key:

main This branch
Speech to text status on main: active provider deepgram, Not configured Speech to text status on this branch: active provider deepgram, Ready

What the Gateway did, with the same result for Deepgram, ElevenLabs and Mistral in the first four rows:

Setup main This branch
Named, no key anywhere Not configured, talk.session.create refused, no connection The same
Named, only a saved key (openclaw models auth paste-api-key) Not configured, refused, no connection Configured, session created, endpoint receives the saved key
Named, a saved key and the provider's environment key Not run (the unit tests below cover it) Endpoint receives the environment key
Named, a saved key, the environment key and a config key Not run (the unit tests below cover it) Endpoint receives the config key
All three under streaming.providers, none named, ELEVENLABS_API_KEY set ElevenLabs transcribes with the environment key The same
The same Gateway after a Deepgram key is saved ElevenLabs transcribes with the environment key The same, and Deepgram stays "not configured"
Captured output of the scenario script on main (key lines)
Gateway built from: main at the PR merge base 8656c447df0 (its files, built in the PR worktree)

deepgram named in streaming.provider, no key anywhere
  talk.session.create refused: Error: Realtime transcription provider "deepgram" is not configured
  stand-in endpoint received: (no connection)

deepgram: the same Gateway after a key is saved
  talk.session.create refused: Error: Realtime transcription provider "deepgram" is not configured
  stand-in endpoint received: (no connection)

elevenlabs named in streaming.provider, no key anywhere
  talk.session.create refused: Error: Realtime transcription provider "elevenlabs" is not configured
  stand-in endpoint received: (no connection)

elevenlabs: the same Gateway after a key is saved
  talk.session.create refused: Error: Realtime transcription provider "elevenlabs" is not configured
  stand-in endpoint received: (no connection)

mistral named in streaming.provider, no key anywhere
  talk.session.create refused: Error: Realtime transcription provider "mistral" is not configured
  stand-in endpoint received: (no connection)

mistral: the same Gateway after a key is saved
  talk.session.create refused: Error: Realtime transcription provider "mistral" is not configured
  stand-in endpoint received: (no connection)

Automatic selection: the three providers under streaming.providers, none named, ELEVENLABS_API_KEY in the environment
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-env-key

Automatic selection: the same Gateway after a Deepgram key is saved (Deepgram ranks ahead of ElevenLabs)
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-env-key
Captured output of the scenario script on this branch (key lines)
Gateway built from: this PR at cb29c520786

deepgram named in streaming.provider, no key anywhere
  talk.session.create refused: Error: Realtime transcription provider "deepgram" is not configured
  stand-in endpoint received: (no connection)

deepgram: the same Gateway after a key is saved
  talk.session.create: {"provider":"deepgram","mode":"transcription"}
  stand-in deepgram endpoint received: Token deepgram-made-up-saved-key

deepgram named, a saved key plus DEEPGRAM_API_KEY in the Gateway's environment
  talk.session.create: {"provider":"deepgram","mode":"transcription"}
  stand-in deepgram endpoint received: Token deepgram-made-up-env-key

deepgram named, a saved key, DEEPGRAM_API_KEY and a key in the Voice Call streaming config
  talk.session.create: {"provider":"deepgram","mode":"transcription"}
  stand-in deepgram endpoint received: Token deepgram-made-up-config-key

elevenlabs named in streaming.provider, no key anywhere
  talk.session.create refused: Error: Realtime transcription provider "elevenlabs" is not configured
  stand-in endpoint received: (no connection)

elevenlabs: the same Gateway after a key is saved
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-saved-key

elevenlabs named, a saved key plus ELEVENLABS_API_KEY in the Gateway's environment
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-env-key

elevenlabs named, a saved key, ELEVENLABS_API_KEY and a key in the Voice Call streaming config
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-config-key

mistral named in streaming.provider, no key anywhere
  talk.session.create refused: Error: Realtime transcription provider "mistral" is not configured
  stand-in endpoint received: (no connection)

mistral: the same Gateway after a key is saved
  talk.session.create: {"provider":"mistral","mode":"transcription"}
  stand-in mistral endpoint received: Bearer mistral-made-up-saved-key

mistral named, a saved key plus MISTRAL_API_KEY in the Gateway's environment
  talk.session.create: {"provider":"mistral","mode":"transcription"}
  stand-in mistral endpoint received: Bearer mistral-made-up-env-key

mistral named, a saved key, MISTRAL_API_KEY and a key in the Voice Call streaming config
  talk.session.create: {"provider":"mistral","mode":"transcription"}
  stand-in mistral endpoint received: Bearer mistral-made-up-config-key

Automatic selection: the three providers under streaming.providers, none named, ELEVENLABS_API_KEY in the environment
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-env-key

Automatic selection: the same Gateway after a Deepgram key is saved (Deepgram ranks ahead of ElevenLabs)
  talk.session.create: {"provider":"elevenlabs","mode":"transcription"}
  stand-in elevenlabs endpoint received: elevenlabs-made-up-env-key

Tests

The focused tests (80 in 6 files), run against the production code on main and on this branch:

Case main This branch
Named, only a saved key (each of the three providers) Not configured Connects with the saved key
Not named, only a saved key (each provider) Not configured Not configured
A config key and a saved key Config key sent Config key sent, saved key not looked up
An environment key and a saved key Environment key sent Environment key sent, saved key not looked up
No key "API key missing" when the session is created "API key missing" when the session connects
A provider that is ready only when named, through Gateway Talk, Voice Call and the meeting bot Refused when named Used when named, not used otherwise

9 of the 80 fail on main's code and all 80 pass on this branch: the saved-key test and the no-key test of each provider (6), and the named case of each of the three selection owners (3). The other 71 pass on both, including the 7 key-precedence cases (ElevenLabs has two environment variables).

The 80 are Deepgram 18, ElevenLabs 15, Mistral 18, Gateway Talk selection 1, meeting bot selection 1 and Voice Call webhook 27. 391 tests in 29 files that consume the changed code pass: the Talk catalog and session handlers, the transcription relay, the meeting bot, Voice Call media streaming, the SDK selection helper and its other caller, the capability catalog contract, plugin loading, and the three plugins' other tests. Typecheck (core, extensions, and the test projects that hold the changed tests), lint, formatting and the test-line budget (+189 lines of the 400 allowed) pass. The full suite was not run locally.

Three existing tests assert the "no key" error at connect instead of at creation, following change 2 above: Deepgram's DEEPGRAM_API_KEY validation case, ElevenLabs "rejects whitespace-only environment keys", and Mistral "requires an API key".

Size: production +141 and -41 lines, tests +197 and -8, docs +38 and -26 (the API key row and one note on each of the three provider pages, and one sentence in the Talk docs).

Gaps:

  • No real Deepgram, ElevenLabs or Mistral key was used, so the real services are not covered. The stand-in endpoints show which key the Gateway sends, not that a service accepts it.
  • Voice Call phone calls and the meeting bot were not run. Their selection is covered by the unit tests above.
  • pnpm plugin-sdk:api:diff was not run locally. It will list the optional selectedExplicitly field and the added callback argument.

…tral live transcription

Live transcription for these three providers read its key only from the Voice
Call streaming config and the environment, while voice notes and the OpenAI
and xAI live providers also read the provider's saved API key.

When the config and the environment have no key, the three providers look up
the saved API key, the same lookup the OpenAI and xAI live providers use. A
config or environment key is used as before and the saved key is not read.

With no key anywhere, "API key missing" is reported when the session connects
instead of when it is created, because the saved key is looked up
asynchronously. Callers check isConfiguredAsync first and handle a failed
connect.
Deepgram, ElevenLabs and Mistral live transcription count their saved API
key only when config or the request names the provider. Automatic
selection among candidates sees the same readiness as without a saved
key, so it picks the same provider.

The selection owners (Gateway Talk, the capability provider selection
helper that Voice Call uses, and the meeting bot) pass
`selectedExplicitly` in the readiness context when a provider is named.
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: voice-call Channel integration: voice-call app: web-ui App: web-ui gateway Gateway runtime extensions: elevenlabs extensions: mistral extensions: deepgram size: M labels Nov 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 16, 2026
@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: ready, awaiting a maintainer decision.

What this changes

Explicitly selected Deepgram, ElevenLabs, and Mistral live transcription providers can use saved API keys after existing credential sources.

Example: streaming.provider is deepgram, with only a saved Deepgram API key.

  • Before: Talk reports Not configured and refuses session creation.
  • After: Talk reports Ready and the WebSocket connection sends the saved key.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused production-path evidence resolves the earlier proof gap, and no actionable defect was found; unresolved SDK direction caps overall readiness.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Built-Gateway captures exercise all three production provider factories through talk.session.create and real WebSocket connections to local stand-ins, showing saved-key headers, credential precedence, missing-key refusal, and stable automatic selection; inspected screenshots show the corresponding readiness change, while real provider-service acceptance and phone/meeting transports are outside the demonstrated scope.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Needs a maintainer decision · Fix scope: Complete
User problem: Users must enter a provider key again for live transcription even when OpenClaw already stores that provider's API key.
Reason: Credential reuse has clear convenience value, but accepting the new SDK selection context is an unresolved owner decision.

Merge readiness

⏳ Ready, awaiting maintainer decision

Keep open: this PR supplies a distinct, demonstrated credential-reuse feature with no concrete introduced bug found; SDK owner acceptance and successful exact-head CI remain outstanding.

Priority: P3
Reviewed head: d3c2001b962e549d15f2df4ab53e10591e0956a0
Owner decision: Required. See Decision needed.

Decision needed

  • Question: Should explicitly selected transcription providers gain saved-key fallback through the proposed selectedExplicitly SDK context?
  • Recommendation: Accept the narrow additive contract: Approve the optional readiness field and shared selection callback member while retaining existing automatic-selection behavior.
  • Why: This is an additive feature and public SDK contract change; the discussion contains no recorded owner approval, and the previous review's owner-acceptance request remains unresolved.

Before merge

None.

Findings

None.

Agent review details

How this fits together

Talk, Voice Call, and meeting-bot selection pass readiness context to provider plugins, which obtain credentials from existing host auth operations and connect through the shared WebSocket transport.

flowchart LR
  A[Talk Voice Call and meetings] --> B[Provider selection]
  B --> C[Transcription provider plugin]
  D[Config and environment keys] --> C
  E[Host saved credential resolver] --> C
  C --> F[Shared WebSocket transport]
  F --> G[Transcription endpoint]
Loading

Technical review

Best possible solution:

Reuse the existing provider factories and host credential resolver, preserving current selection and credential precedence, subject to owner acceptance of the additive SDK context.

Do we have a high-confidence way to reproduce the issue?

Current-main source and the contributor's paired Gateway captures establish that saved-only credentials are unavailable to these live providers; no target code was executed during this review.

Is this the best way to solve the issue?

The implementation uses existing plugin, auth, selection, and transport owners without adding parallel machinery, and its explicit-selection flag preserves the demonstrated automatic-selection behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7d90a907c0de.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still lacks the capability: Current main checks Deepgram config/environment credentials and throws when neither exists; its readiness context has no explicit-selection indicator. (extensions/deepgram/realtime-transcription-provider-factory.ts:133, 7d90a907c0de)
  • Pinned introduced change: The introduced diff adds saved-key resolution within the three existing provider factories and propagates explicit selection through existing selection owners. (src/realtime-transcription/provider-contexts.ts:20, d3c2001b962e)
  • Existing credential owner reused: The existing host resolver selects usable provider profiles in configured order; the PR restricts its lookups to api_key profiles and preserves direct-key precedence. (src/plugins/provider-auth-availability-core.ts:376, d3c2001b962e)
  • Contributor supplied production-entry-point evidence: The complete PR body contains paired built-Gateway traces for all three providers: saved credentials reach local WebSocket endpoints, config/environment precedence holds, and saving a Deepgram key leaves automatic selection on ElevenLabs. The linked Talk screenshots were directly inspected and show Not configured before and Ready after. (cb29c520786a)
  • Proof remains applicable to the reviewed production change: Tree comparison establishes that the final commit changes only the reverted UI provider-label files; transcription production code matches the head used for the Gateway captures. (d3c2001b962e)
  • Feature and SDK history: Provider-factory and Talk history repeatedly identifies Peter Steinberger's ownership work; Vincent Koc authored the current host-context separation in refactor(transcription): separate provider host contexts #193390, which explicitly preserved runtime behavior. (src/realtime-transcription/provider-contexts.ts:12, 89ac5490831b)

PR surface

Source +100, Tests +189, Docs +12. Total +301 across 24 files. Added test files: 2.

View PR surface stats
Area Files Added Removed Net
Source 11 141 41 +100
Tests 9 197 8 +189
Docs 4 38 26 +12
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 24 376 75 +301

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
SDK contract additions 1 optional readiness field and 1 selection callback member The callback member is supplied by both synchronous and asynchronous helpers; no user configuration option is added.

Root-cause cluster

Relationship: same_root_cause
Canonical: #199684
Summary: This PR implements the paired feature request's missing saved-key fallback.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: ⏳ waiting on maintainer.

Label justifications:

  • P3: This is a credential-reuse convenience with existing working config/environment alternatives.
  • merge-risk: 🚨 compatibility: The PR extends the public transcription readiness context and provider-selection callback contract, requiring owner acceptance despite being additive.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: ⏳ waiting on maintainer: Only explicit maintainer approvals or decisions remain; merge is still blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-16T00:36:08.102Z sha e278b9a :: needs real behavior proof before merge. :: none

Reviewed November 15, 2026, 8:41 PM ET / November 16, 2026, 01:41 UTC (Revision 2).

…y when named

The fixture provider is ready only when it is told it was selected
explicitly. Media streaming starts when `streaming.provider` names it and
stays off under automatic selection.
@daniel-lxs

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

This reverts commit 70322ea. The label
is outside this change's purpose and no screen shows it today.
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Nov 16, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Nov 16, 2026
@clawsweeper clawsweeper Bot added the status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. label Nov 16, 2026
@hannesrudolph
hannesrudolph merged commit d275ff6 into openclaw:main Nov 16, 2026
135 of 138 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 17, 2026
…r Mistral API key (openclaw#199858)

* feat(providers): use a saved API key for Deepgram, ElevenLabs and Mistral live transcription

Live transcription for these three providers read its key only from the Voice
Call streaming config and the environment, while voice notes and the OpenAI
and xAI live providers also read the provider's saved API key.

When the config and the environment have no key, the three providers look up
the saved API key, the same lookup the OpenAI and xAI live providers use. A
config or environment key is used as before and the saved key is not read.

With no key anywhere, "API key missing" is reported when the session connects
instead of when it is created, because the saved key is looked up
asynchronously. Callers check isConfiguredAsync first and handle a failed
connect.

* fix(ui): show ElevenLabs with its brand capitalization

* fix(talk): count a saved transcription key only for the named provider

Deepgram, ElevenLabs and Mistral live transcription count their saved API
key only when config or the request names the provider. Automatic
selection among candidates sees the same readiness as without a saved
key, so it picks the same provider.

The selection owners (Gateway Talk, the capability provider selection
helper that Voice Call uses, and the meeting bot) pass
`selectedExplicitly` in the readiness context when a provider is named.

* test(voice-call): show the streaming outcome for a provider ready only when named

The fixture provider is ready only when it is told it was selected
explicitly. Media streaming starts when `streaming.provider` names it and
stays off under automatic selection.

* revert(ui): leave the ElevenLabs display label as it is

This reverts commit 70322ea. The label
is outside this change's purpose and no screen shows it today.
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 23, 2026
…r Mistral API key (openclaw#199858)

* feat(providers): use a saved API key for Deepgram, ElevenLabs and Mistral live transcription

Live transcription for these three providers read its key only from the Voice
Call streaming config and the environment, while voice notes and the OpenAI
and xAI live providers also read the provider's saved API key.

When the config and the environment have no key, the three providers look up
the saved API key, the same lookup the OpenAI and xAI live providers use. A
config or environment key is used as before and the saved key is not read.

With no key anywhere, "API key missing" is reported when the session connects
instead of when it is created, because the saved key is looked up
asynchronously. Callers check isConfiguredAsync first and handle a failed
connect.

* fix(ui): show ElevenLabs with its brand capitalization

* fix(talk): count a saved transcription key only for the named provider

Deepgram, ElevenLabs and Mistral live transcription count their saved API
key only when config or the request names the provider. Automatic
selection among candidates sees the same readiness as without a saved
key, so it picks the same provider.

The selection owners (Gateway Talk, the capability provider selection
helper that Voice Call uses, and the meeting bot) pass
`selectedExplicitly` in the readiness context when a provider is named.

* test(voice-call): show the streaming outcome for a provider ready only when named

The fixture provider is ready only when it is told it was selected
explicitly. Media streaming starts when `streaming.provider` names it and
stays off under automatic selection.

* revert(ui): leave the ElevenLabs display label as it is

This reverts commit 70322ea. The label
is outside this change's purpose and no screen shows it today.

(cherry picked from commit d275ff6)

Release adaptation: Use the existing provider-types context owner instead of importing an absent extracted module; preserve synchronous session creation, config/environment precedence and automatic selection. Adapt Deepgram documentation to the release owner. Provider baselines reproduce six failures; fixed media 32, Mistral 18, Voice Call 27, selection 7, Gateway 1 and meeting 1 pass. Live provider qualification remains outstanding.

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 42b5318700bbd56a994938f5fc52638a6b1833e8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: voice-call Channel integration: voice-call docs Improvements or additions to documentation extensions: deepgram extensions: elevenlabs extensions: mistral gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Use a saved Deepgram, ElevenLabs or Mistral API key for live transcription

2 participants