-
Notifications
You must be signed in to change notification settings - Fork 366
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat add deepgram_asr_python/cartesia_tts extensions (#358)
* feat(): add deepgram_asr_python/cartesia_tts extensions * chore(): modify to use async and keep the connection * chore(): upgrade ten_runtime_python version to 0.3 * chore(): add graph va_deepgram_openai_cartesia * fix(): remove type extension_group
- Loading branch information
1 parent
b120e05
commit e875cbd
Showing
20 changed files
with
1,052 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from . import cartesia_tts_addon | ||
from .extension import EXTENSION_NAME | ||
from .log import logger | ||
|
||
|
||
logger.info(f"{EXTENSION_NAME} extension loaded") |
24 changes: 24 additions & 0 deletions
24
agents/ten_packages/extension/cartesia_tts/cartesia_tts_addon.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,24 @@ | ||
# | ||
# | ||
# Agora Real Time Engagement | ||
# Created by XinHui Li in 2024-07. | ||
# Copyright (c) 2024 Agora IO. All rights reserved. | ||
# | ||
# | ||
|
||
from ten import ( | ||
Addon, | ||
register_addon_as_extension, | ||
TenEnv, | ||
) | ||
from .extension import EXTENSION_NAME | ||
from .log import logger | ||
|
||
|
||
@register_addon_as_extension(EXTENSION_NAME) | ||
class CartesiaTTSExtensionAddon(Addon): | ||
def on_create_instance(self, ten: TenEnv, addon_name: str, context) -> None: | ||
logger.info("on_create_instance") | ||
from .cartesia_tts_extension import CartesiaTTSExtension | ||
|
||
ten.on_create_instance_done(CartesiaTTSExtension(addon_name), context) |
Oops, something went wrong.