Files
Personal-API/app/services/voice.py
2025-07-03 10:02:12 +07:00

11 lines
351 B
Python

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