Add DeepL translation plugin for multilingual agent support#4454
Open
darshankparmar wants to merge 1 commit intolivekit:mainfrom
Open
Add DeepL translation plugin for multilingual agent support#4454darshankparmar wants to merge 1 commit intolivekit:mainfrom
darshankparmar wants to merge 1 commit intolivekit:mainfrom
Conversation
Contributor
Author
|
Hi @davidzhao 👋 |
longcw
reviewed
Jan 9, 2026
| # to avoid blocking the event loop. | ||
| try: | ||
| result = await asyncio.to_thread( | ||
| self._translator.translate_text, |
Contributor
There was a problem hiding this comment.
I don't think it's worth to be a plugin if it's just a wrap to the deepl's SDK. users can call their SDK directly.
Contributor
Author
There was a problem hiding this comment.
Thanks for the feedback.
The main value of the plugin isn’t just wrapping the DeepL SDK, but adapting it to the LiveKit agent runtime:
- DeepL’s SDK is synchronous, while agents require async, non-blocking execution
- The plugin integrates translation directly into the agent lifecycle (e.g. user turns, LLM flow) without users wiring it themselves
That said, I’m open to reducing scope or repositioning it (e.g. example / optional integration) if that fits better with the project direction.
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.
Add a DeepL translation plugin to enable real-time, bidirectional multilingual support for LiveKit agents. The plugin integrates seamlessly into the agent pipeline, acting as a translation layer between STT/LLM and LLM/TTS components.
Supported Languages
DeepL API documentation
Dependencies
deepl>=1.27.0: Python library for the DeepL API.