Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fishaudio/types/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PaginatedResponse(BaseModel, Generic[T]):
AudioFormat = Literal["wav", "pcm", "mp3", "opus"]

# Visibility types
Visibility = Literal["public", "unlisted", "private"]
Visibility = Literal["public", "unlist", "private"]

# Training mode types
TrainMode = Literal["fast"]
Expand Down
2 changes: 1 addition & 1 deletion src/fishaudio/types/voices.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Voice(BaseModel):
created_at: Timestamp when the model was created
updated_at: Timestamp when the model was last updated
languages: List of supported language codes (e.g., ["en", "zh"])
visibility: Model visibility. Options: "public", "private", "unlisted"
visibility: Model visibility. Options: "public", "private", "unlist"
lock_visibility: Whether visibility setting is locked
like_count: Number of likes the model has received
mark_count: Number of bookmarks/favorites
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/test_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def test_tts_request_custom_new_parameters(self):
class TestVoiceVisibility:
"""Test Voice model with updated visibility."""

def test_voice_with_unlisted_visibility(self, sample_voice_response):
"""Test Voice model with 'unlisted' visibility."""
sample_voice_response["visibility"] = "unlisted"
def test_voice_with_unlist_visibility(self, sample_voice_response):
"""Test Voice model with 'unlist' visibility."""
sample_voice_response["visibility"] = "unlist"
voice = Voice.model_validate(sample_voice_response)
assert voice.visibility == "unlisted"
assert voice.visibility == "unlist"