feat: add voice transcription

This commit is contained in:
bladeclara42
2025-07-03 10:02:12 +07:00
parent f047a3c1c2
commit 0fd8170c5b
5 changed files with 53 additions and 7 deletions

View File

@@ -1,7 +1,10 @@
from app.core.openai_voice_client import generate_voice
from app.core.openai_voice_transcription_client import generate_voice, generate_transcription
async def generate_voice(text: str) -> str:
voice = await generate_voice(text)
return voice
async def generate_transcription(audio_file_path: str) -> str:
transcription = await generate_transcription(audio_file_path)
return transcription