diff --git a/api/src/structures/schemas.py b/api/src/structures/schemas.py index 2608597..cc6858c 100644 --- a/api/src/structures/schemas.py +++ b/api/src/structures/schemas.py @@ -54,7 +54,7 @@ class OpenAISpeechRequest(BaseModel): ) input: str = Field(..., description="The text to generate audio for") voice: str = Field( - default="af", + default="af_heart", description="The voice to use for generation. Can be a base voice or a combined voice name.", ) response_format: Literal["mp3", "opus", "aac", "flac", "wav", "pcm"] = Field( @@ -98,7 +98,7 @@ class CaptionedSpeechRequest(BaseModel): ) input: str = Field(..., description="The text to generate audio for") voice: str = Field( - default="af", + default="af_heart", description="The voice to use for generation. Can be a base voice or a combined voice name.", ) response_format: Literal["mp3", "opus", "aac", "flac", "wav", "pcm"] = Field( diff --git a/examples/assorted_checks/benchmarks/benchmark_first_token.py b/examples/assorted_checks/benchmarks/benchmark_first_token.py index a9e47bb..16f94c0 100644 --- a/examples/assorted_checks/benchmarks/benchmark_first_token.py +++ b/examples/assorted_checks/benchmarks/benchmark_first_token.py @@ -34,7 +34,7 @@ def measure_first_token( json={ "model": "kokoro", "input": text, - "voice": "af", + "voice": "af_heart", "response_format": "wav", "stream": False, }, diff --git a/examples/assorted_checks/benchmarks/benchmark_first_token_stream_unified.py b/examples/assorted_checks/benchmarks/benchmark_first_token_stream_unified.py index df1855c..c3b6d92 100644 --- a/examples/assorted_checks/benchmarks/benchmark_first_token_stream_unified.py +++ b/examples/assorted_checks/benchmarks/benchmark_first_token_stream_unified.py @@ -34,7 +34,7 @@ def measure_first_token_requests( json={ "model": "kokoro", "input": text, - "voice": "af", + "voice": "af_heart", "response_format": "pcm", "stream": True, }, @@ -123,7 +123,7 @@ def measure_first_token_openai( # Make streaming request using OpenAI client with OPENAI_CLIENT.audio.speech.with_streaming_response.create( model="kokoro", - voice="af", + voice="af_heart", response_format="pcm", input=text, ) as response: diff --git a/examples/assorted_checks/benchmarks/lib/shared_benchmark_utils.py b/examples/assorted_checks/benchmarks/lib/shared_benchmark_utils.py index f44f7eb..4e9657e 100644 --- a/examples/assorted_checks/benchmarks/lib/shared_benchmark_utils.py +++ b/examples/assorted_checks/benchmarks/lib/shared_benchmark_utils.py @@ -56,7 +56,7 @@ def make_tts_request( json={ "model": "kokoro", "input": text, - "voice": "af", + "voice": "af_heart", "response_format": "wav", "stream": True, }, @@ -77,7 +77,7 @@ def make_tts_request( json={ "model": "kokoro", "input": text, - "voice": "af", + "voice": "af_heart", "response_format": "wav", "stream": False, }, diff --git a/examples/assorted_checks/test_formats/test_audio_formats.py b/examples/assorted_checks/test_formats/test_audio_formats.py index 68156b6..efd527a 100644 --- a/examples/assorted_checks/test_formats/test_audio_formats.py +++ b/examples/assorted_checks/test_formats/test_audio_formats.py @@ -246,7 +246,7 @@ def main(): output_dir.mkdir(exist_ok=True, parents=True) # First generate audio in each format using the API - voice = "af" # Using default voice + voice = "af_heart" # Using default voice formats = ["wav", "mp3", "opus", "flac", "pcm"] stats = [] diff --git a/examples/assorted_checks/test_openai/test_openai_tts.py b/examples/assorted_checks/test_openai/test_openai_tts.py index 80e3602..01124af 100644 --- a/examples/assorted_checks/test_openai/test_openai_tts.py +++ b/examples/assorted_checks/test_openai/test_openai_tts.py @@ -23,7 +23,7 @@ def test_format( try: response = client.audio.speech.create( - model="tts-1", voice="af", input=text, response_format=format + model="tts-1", voice="af_heart", input=text, response_format=format ) print("Got response, saving to file...") @@ -43,7 +43,7 @@ def test_speed(speed: float): try: response = client.audio.speech.create( model="tts-1", - voice="af", + voice="af_heart", input="The quick brown fox jumped over the lazy dog.", response_format="wav", speed=speed, diff --git a/ui/depr_tests/conftest.py b/ui/depr_tests/conftest.py index 9b01e6b..f0c2a2e 100644 --- a/ui/depr_tests/conftest.py +++ b/ui/depr_tests/conftest.py @@ -16,7 +16,7 @@ async def mock_model_manager(): async def mock_voice_manager(): """Mock voice manager for UI tests""" manager = AsyncMock() - manager.list_voices = AsyncMock(return_value=["af", "bm_lewis", "af_sarah"]) + manager.list_voices = AsyncMock(return_value=["af_heart", "bm_lewis", "af_sarah"]) return manager