Read Aloud Plugin
The Read Aloud plugin adds a read aloud action on each assistant message. Clicking it sends the finished message to the shared speech (text-to-speech) service and plays the audio in the browser. It is play-on-demand, not a real-time voice conversation.
Configuration
plugins:
- module: codumentor.plugins.read_aloud
class: ReadAloudPlugin
# args:
# enabled: true # (default)
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | bool | true | Whether the action is shown. |
The plugin has no other settings of its own. It uses the top-level shared speech: block (the same one Voice Mode and Telegram voice replies use):
speech:
enabled: true
base_url: "https://api.openai.com/v1"
api_key: "${OPENAI_API_KEY}"
tts_model: "tts-1"
tts_voice: "alloy"
If speech is off, the endpoint is unavailable, or neither a usable deployment key nor an allowed authenticated-user key is available, the action is shown disabled with an explanation.
What users see
- A read-aloud control on the final assistant message (never intermediate tool-call narration).
- One message plays at a time; starting another stops the previous one.
Notes
- Requirements: this plugin plus explicit
speech.enabled: trueand usable speech credentials. A usable deploymentspeech.api_keytakes priority; otherwise a dedicated host-side lookup can use the authenticated user's own stored secret.speech.allow_user_api_keydefaults totruein Community andfalsein Enterprise;speech.user_api_key_secretdefaults tospeech_api_key. The account must be active and haveuser_secrets:manage. - For personal setup, omit
speech.api_keyand save the literal provider key under that name in Settings → Extensions → User Secrets, preferably Host-only (ordinary secrets also work). Newly generated personal configurations enable User Secrets; existing instances must enable the plugin. This does not make${secret:…}placeholders resolve outside agent turns. - The shared
speech:provider settings also affect Voice Mode and Telegram voice, but the new authenticated-user/Host-only fallback is for web speech only and does not change Telegram's own credential semantics. - See the English / Hungarian guides for setup, provider billing and privacy. Push-to-talk only needs speech and is independent of hands-free. Optional hands-free requires the enabled Voice Mode plugin; read-aloud does not.
- For a hands-free conversation (listen, talk, steer mid-task), see Voice Mode.