forked from livekit/agents
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ebe2fe
commit 5502d2b
Showing
16 changed files
with
40 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
3 changes: 0 additions & 3 deletions
3
livekit-plugins/livekit-plugins-smallest/livekit/plugins/smallest/log.py
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
livekit-plugins/livekit-plugins-smallest/livekit/plugins/smallest/models.py
This file was deleted.
Oops, something went wrong.
This file contains 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
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
livekit-plugins/livekit-plugins-smallestai/livekit/plugins/smallest/log.py
This file contains 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.smallestai") |
23 changes: 23 additions & 0 deletions
23
livekit-plugins/livekit-plugins-smallestai/livekit/plugins/smallest/models.py
This file contains 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,23 @@ | ||
from typing import Literal, List, Tuple, cast | ||
Check failure on line 1 in livekit-plugins/livekit-plugins-smallestai/livekit/plugins/smallest/models.py
|
||
import aiohttp | ||
import asyncio | ||
|
||
API_BASE_URL = "https://waves-api.smallest.ai/api/v1" | ||
Check failure on line 5 in livekit-plugins/livekit-plugins-smallestai/livekit/plugins/smallest/models.py
|
||
|
||
async def _fetch_voice_and_model() -> Tuple[List[str], List[str]]: | ||
async with aiohttp.ClientSession() as session: | ||
async with session.get(f"{API_BASE_URL}/voice/get-all-models") as response: | ||
api_response = await response.json() | ||
|
||
voices = [] | ||
for model in api_response: | ||
for voice in model['voiceIds']: | ||
voices.append(voice['voiceId']) | ||
models = [model['modelName'] for model in api_response] | ||
return models, voices | ||
|
||
models, voices = asyncio.run(_fetch_voice_and_model()) | ||
|
||
TTSLanguages = ["en", "hi"] | ||
TTSModels = models | ||
TTSVoices = voices |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ins/livekit-plugins-smallest/package.json → ...s/livekit-plugins-smallestai/package.json
This file contains 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
File renamed without changes.
This file contains 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
This file contains 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