Skip to content

Commit

Permalink
Add CustomVoiceResponse TypedDict for create_custom_voice
Browse files Browse the repository at this point in the history
- Added `CustomVoiceResponse` TypedDict for `create_custom_voice` return
  type
- Updated `create_custom_voice` to return `CustomVoiceResponse`
  • Loading branch information
cr2007 committed Jul 10, 2024
1 parent a642341 commit 2d96696
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cambai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ class TaskStatus(TypedDict):
run_id: Optional[int]


# ---------- Custom Voice Information ---------- #

class CustomVoiceResponse(TypedDict):
voice_id: int

# ---------- Transcription Result ---------- #


Expand Down Expand Up @@ -367,7 +372,7 @@ def get_languages(

def create_custom_voice(
self, /, voice_name: str, file: str, gender: Gender, *, age: Optional[int] = 30
) -> dict[str, str]:
) -> CustomVoiceResponse:
"""
Creates a custom voice profile using the provided voice sample.
Expand Down

0 comments on commit 2d96696

Please sign in to comment.