From 80a4e0b25f4feb59b4c39a3109d87f95d218630b Mon Sep 17 00:00:00 2001 From: sudoskys Date: Thu, 18 Apr 2024 20:35:50 +0800 Subject: [PATCH] :recycle: refactor: fix indentation issues in voice module files --- llmkira/extra/voice/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llmkira/extra/voice/__init__.py b/llmkira/extra/voice/__init__.py index 967e2951..3ce6893c 100644 --- a/llmkira/extra/voice/__init__.py +++ b/llmkira/extra/voice/__init__.py @@ -1,6 +1,7 @@ import base64 import json from io import BytesIO +from typing import Optional import aiohttp import edge_tts @@ -144,7 +145,7 @@ async def request_novelai_speech(text): return None -async def request_cn(text, reecho_api_key: str = None): +async def request_cn(text, reecho_api_key: str = None) -> Optional[bytes]: """ Call the Reecho endpoint to generate synthesized voice. :param text: The text to synthesize @@ -160,7 +161,7 @@ async def request_cn(text, reecho_api_key: str = None): return stt -async def request_en(text): +async def request_en(text) -> Optional[bytes]: """ Call the Reecho endpoint to generate synthesized voice. :param text: The text to synthesize