feat(openai): add with_audexum() to the OpenAI TTS and STT plugins - #7018
Open
audexum wants to merge 1 commit into
Open
feat(openai): add with_audexum() to the OpenAI TTS and STT plugins#7018audexum wants to merge 1 commit into
audexum wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Audexum serves the OpenAI audio shape —
POST /v1/audio/speechandPOST /v1/audio/transcriptions— so it already works throughlivekit-plugins-openaitoday by passingbase_url. These two helpers just follow the existingwith_azure/with_ovhcloudpattern so the endpoint and theAUDEXUM_API_KEYlookup are not repeated at every call site.61 lines across the two files, plus
import osintts.py(stt.pyalready had it). No new dependency, no behaviour change for existing users, and nothing outside the twowith_audexummethods 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-audexumpackage than helpers on the OpenAI plugin, say so and I will close this and write that instead.