-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Simplismart Integration in Livekit #4349
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tinalenguyen
merged 32 commits into
livekit:main
from
simpli-smart:integration/simplismart-tts-stt
Jan 21, 2026
+796
−0
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2b032fd
added stt/tts
Tushar-ml 1b8f99c
tested tts
Tushar-ml e1407e3
formatting done
Tushar-ml eacfc72
removed flush
Tushar-ml e0d9849
ruff fix
Tushar-ml 8b2739d
Add default models for STT and TTS
simplipratik d1f4b9a
Fix formatting error
simplipratik 1f2ad42
initial draft for websocket
varadml1707 8e941bd
correct linting
varadml1707 35c576e
corrected websocket
varadml1707 521173c
corrected datatype
varadml1707 c995e9c
Merge pull request #1 from simpli-smart/add/websocket-support
Tushar-ml 6b0d7cb
corrected lint
varadml1707 d00f072
Merge pull request #2 from simpli-smart/add/websocket-support
Tushar-ml 41b0732
alter streaming for whisper
Tushar-ml f201649
changed ws to wss
Tushar-ml 1e648ae
Merge pull request #3 from simpli-smart/feat/add-llm
Tushar-ml a0d7b6d
options added
Tushar-ml b109877
Merge pull request #4 from simpli-smart/tg/patch-1
Tushar-ml c51452c
Update livekit-plugins/livekit-plugins-simplismart/livekit/plugins/si…
dakshisdakshs e3af4cc
change on coderabbit
Tushar-ml e15006f
Merge pull request #5 from simpli-smart/tg/patch-1
Tushar-ml 3583df0
resolve coderabbit review pt2
Tushar-ml 26eb3ef
Merge pull request #6 from simpli-smart/tg/patch-1
Tushar-ml f113f7e
tested implementation with patch
Tushar-ml d77247d
Merge pull request #7 from simpli-smart/tg/patch-1
Tushar-ml 4ab22ee
removed llm plugin
Tushar-ml a2b1b48
Merge pull request #8 from simpli-smart/tg/patch-1
Tushar-ml f61ed8f
fixed type check
Tushar-ml 161e711
Merge pull request #9 from simpli-smart/tg/patch-1
Tushar-ml c4e98bc
resolved language
Tushar-ml 8a79150
Merge pull request #10 from simpli-smart/tg/patch-1
Tushar-ml File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Simplismart Plugin for LiveKit Agents | ||
|
|
||
| Support for [Simplismart.ai](https://simplismart.ai)'s voice AI services in LiveKit Agents. | ||
|
|
||
| ## Features | ||
|
|
||
| - **Speech-to-Text (STT)**: Convert audio to text using Simplismart's STT models. See the [STT docs](https://docs.livekit.io/agents/integrations/stt/simplismart/) for more information. | ||
| - **Text-to-Speech (TTS)**: Convert text to audio using Simplismart's TTS models. See the [TTS docs](https://docs.livekit.io/agents/integrations/tts/simplismart/) for more information. | ||
|
|
||
| ## Installation | ||
|
|
||
| ```bash | ||
| pip install livekit-plugins-simplismart | ||
| ``` | ||
|
|
||
| ## Pre-requisites | ||
|
|
||
| You'll need an API key from Simplismart.ai. It can be set as an environment variable: `SIMPLISMART_API_KEY` |
50 changes: 50 additions & 0 deletions
50
livekit-plugins/livekit-plugins-simplismart/livekit/plugins/simplismart/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| # Copyright 2025 LiveKit, Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """SimpliSmart plugin for LiveKit Agents | ||
|
|
||
| Support for speech-to-text and text-to-speech with [SimpliSmart](https://simplismart.ai/). | ||
|
|
||
| SimpliSmart provides high-quality STT and TTS for Indian languages. | ||
|
|
||
| For API access, visit https://simplismart.ai/ | ||
| """ | ||
|
|
||
| from .stt import STT | ||
| from .tts import TTS | ||
| from .version import __version__ | ||
|
|
||
| __all__ = ["STT", "TTS", "__version__"] | ||
|
|
||
|
|
||
| from livekit.agents import Plugin | ||
|
|
||
| from .log import logger | ||
|
|
||
|
|
||
| class SimplismartPlugin(Plugin): | ||
| def __init__(self) -> None: | ||
| super().__init__(__name__, __version__, __package__, logger) | ||
|
|
||
|
|
||
| Plugin.register_plugin(SimplismartPlugin()) | ||
|
|
||
| # Cleanup docs of unexported modules | ||
| _module = dir() | ||
| NOT_IN_ALL = [m for m in _module if m not in __all__] | ||
|
|
||
| __pdoc__ = {} | ||
|
|
||
| for n in NOT_IN_ALL: | ||
| __pdoc__[n] = False |
3 changes: 3 additions & 0 deletions
3
livekit-plugins/livekit-plugins-simplismart/livekit/plugins/simplismart/log.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import logging | ||
|
|
||
| logger = logging.getLogger("livekit.plugins.simplismart") |
9 changes: 9 additions & 0 deletions
9
livekit-plugins/livekit-plugins-simplismart/livekit/plugins/simplismart/models.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from typing import Literal | ||
|
|
||
| TTSModels = Literal["canopylabs/orpheus-3b-0.1-ft", "maya-research/Veena"] | ||
|
|
||
| STTModels = Literal[ | ||
| "openai/whisper-large-v2", | ||
| "openai/whisper-large-v3", | ||
| "openai/whisper-large-v3-turbo", | ||
| ] | ||
Empty file.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.