diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index e3f12b777..b1ee275e4 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -866,6 +866,9 @@ CONFIG_METADATA_2 = { "provider_type": "text_to_speech", "enable": False, "edge-tts-voice": "zh-CN-XiaoxiaoNeural", + "rate": "+0%", + "volume": "+0%", + "pitch": "+0Hz", "timeout": 20, }, "GSV TTS(本地加载)": { diff --git a/packages/python_interpreter/main.py b/packages/python_interpreter/main.py index eec98607f..b63885634 100644 --- a/packages/python_interpreter/main.py +++ b/packages/python_interpreter/main.py @@ -463,11 +463,11 @@ class Main(star.Star): yield event.image_result(image_path) elif match.group(1) == "FILE": file_path = os.path.join(workplace_path, match.group(2)) - logger.debug(f"Sending file: {file_path}") - file_s3_url = await self.file_upload(file_path) - logger.info(f"文件上传到 AstrBot 云节点: {file_s3_url}") + # logger.debug(f"Sending file: {file_path}") + # file_s3_url = await self.file_upload(file_path) + # logger.info(f"文件上传到 AstrBot 云节点: {file_s3_url}") file_name = os.path.basename(file_path) - chain = [File(name=file_name, file=file_s3_url)] + chain = [File(name=file_name, file=file_path)] yield event.set_result(MessageEventResult(chain=chain)) elif "Traceback (most recent call last)" in log or "[Error]: " in log: