feat: add voice transcription
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional
|
||||
|
||||
|
||||
# Text-to-Speech Models
|
||||
class VoiceRequest(BaseModel):
|
||||
text: str
|
||||
|
||||
class VoiceResponse(BaseModel):
|
||||
voice: str
|
||||
voice_output: str
|
||||
|
||||
# Speech-to-Text Models
|
||||
class TranscriptionRequest(BaseModel):
|
||||
audio_file_path: str
|
||||
target_language: Optional[str] = "id" # Default to English
|
||||
|
||||
class TranscriptionResponse(BaseModel):
|
||||
text: str
|
||||
|
||||
Reference in New Issue
Block a user