From 6efdbf53d1d25f64ed5fda483c710c7afa1ab33e Mon Sep 17 00:00:00 2001 From: Dirk Brand Date: Fri, 20 Dec 2024 14:59:12 +0200 Subject: [PATCH] update --- .../47_desi_vocal_audio_gen.py => tools/desi_vocal_tools.py} | 0 cookbook/workflows/startup_idea_validator.py | 2 +- phi/tools/desi_vocal_tools.py | 4 +++- 3 files changed, 4 insertions(+), 2 deletions(-) rename cookbook/{agents/47_desi_vocal_audio_gen.py => tools/desi_vocal_tools.py} (100%) diff --git a/cookbook/agents/47_desi_vocal_audio_gen.py b/cookbook/tools/desi_vocal_tools.py similarity index 100% rename from cookbook/agents/47_desi_vocal_audio_gen.py rename to cookbook/tools/desi_vocal_tools.py diff --git a/cookbook/workflows/startup_idea_validator.py b/cookbook/workflows/startup_idea_validator.py index c4070f622..99bc89dfc 100644 --- a/cookbook/workflows/startup_idea_validator.py +++ b/cookbook/workflows/startup_idea_validator.py @@ -205,7 +205,7 @@ def run(self, startup_idea: str) -> Iterator[RunResponse]: table_name="validate_startup_ideas_workflow", db_file="tmp/workflows.db", ), - debug_mode=True + debug_mode=True, ) final_report: Iterator[RunResponse] = startup_idea_validator.run(startup_idea=idea) diff --git a/phi/tools/desi_vocal_tools.py b/phi/tools/desi_vocal_tools.py index 9c89e5788..adea3d648 100644 --- a/phi/tools/desi_vocal_tools.py +++ b/phi/tools/desi_vocal_tools.py @@ -44,7 +44,9 @@ def get_voices(self) -> str: { "id": voice_id, "name": voice_info["name"], - "description": f"Gender: {voice_info['audio_gender']}, Type: {voice_info['voice_type']}, Languages: {', '.join(voice_info['languages'])}", + "gender": voice_info['audio_gender'], + "type": voice_info['voice_type'], + "language": ', '.join(voice_info['languages']), "preview_url": next(iter(voice_info["preview_path"].values())) if voice_info["preview_path"] else None,