feat: add voice transcription
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user