Skip to content

Commit

Permalink
♻️ refactor: fix indentation issues in voice module files
Browse files Browse the repository at this point in the history
  • Loading branch information
sudoskys committed Apr 18, 2024
1 parent c519189 commit 80a4e0b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions llmkira/extra/voice/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import base64
import json
from io import BytesIO
from typing import Optional

import aiohttp
import edge_tts
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 80a4e0b

Please sign in to comment.