Skip to content

🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming

feat: + annotations

莘权 马8738831e0fdf
diff --git a/metagpt/learn/text_to_image.py b/metagpt/learn/text_to_image.py
index 2762c2f18..620e58180 100644
--- a/metagpt/learn/text_to_image.py
+++ b/metagpt/learn/text_to_image.py
@@ -6,7 +6,6 @@
@File : text_to_image.py
@Desc : Text-to-Image skill, which provides text-to-image functionality.
"""
-import os
from metagpt.config import CONFIG
from metagpt.tools.metagpt_text_to_image import oas3_metagpt_text_to_image
diff --git a/metagpt/learn/text_to_speech.py b/metagpt/learn/text_to_speech.py
index ba73de04c..66fbba5be 100644
--- a/metagpt/learn/text_to_speech.py
+++ b/metagpt/learn/text_to_speech.py
@@ -7,15 +7,13 @@
@Desc : Text-to-Speech skill, which provides text-to-speech functionality
"""
-
from metagpt.config import CONFIG
from metagpt.tools.azure_tts import oas3_azsure_tts
-
async def text_to_speech(text, lang="zh-CN", voice="zh-CN-XiaomoNeural", style="affectionate", role="Girl",
- subscription_key="", region="", **kwargs):
+ subscription_key="", region="", **kwargs):
"""Text to speech
For more details, check out:`https://learn.microsoft.com/en-us/azure/ai-services/speech-service/language-support?tabs=tts`