Skip to content

feat(openai): add with_audexum() to the OpenAI TTS and STT plugins - #7018

Open
audexum wants to merge 1 commit into
livekit:mainfrom
audexum:openai-with-audexum
Open

feat(openai): add with_audexum() to the OpenAI TTS and STT plugins#7018
audexum wants to merge 1 commit into
livekit:mainfrom
audexum:openai-with-audexum

Conversation

@audexum

@audexum audexum commented Aug 27, 2026

Copy link
Copy Markdown

Audexum serves the OpenAI audio shape — POST /v1/audio/speech and POST /v1/audio/transcriptions — so it already works through livekit-plugins-openai today by passing base_url. These two helpers just follow the existing with_azure / with_ovhcloud pattern so the endpoint and the AUDEXUM_API_KEY lookup are not repeated at every call site.

from livekit.plugins import openai

tts = openai.TTS.with_audexum(voice="nova")
stt = openai.STT.with_audexum(language="en")

61 lines across the two files, plus import os in tts.py (stt.py already had it). No new dependency, no behaviour change for existing users, and nothing outside the two with_audexum methods is touched.

Scope, so it is clear what this is not: 43 TTS voices over 32 languages and STT over 25 languages, EU-hosted. OpenAI's voice names (alloy, nova, shimmer, …) are mapped on the server side, so a config left on an OpenAI default still produces audio.

Disclosure: I maintain Audexum, and this PR was drafted with an AI assistant. If you would rather have a standalone livekit-plugins-audexum package than helpers on the OpenAI plugin, say so and I will close this and write that instead.

Audexum serves the OpenAI audio shape (/v1/audio/speech and
/v1/audio/transcriptions), so it already works through this plugin by passing
base_url. These helpers follow the existing with_azure / with_ovhcloud pattern
so the endpoint and the AUDEXUM_API_KEY lookup do not have to be repeated at
every call site.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@audexum
audexum requested a review from a team as a code owner August 27, 2026 15:55
@CLAassistant

CLAassistant commented Aug 27, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants