Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
codingl2k1 committed Jan 15, 2025
1 parent c4c225a commit 99edf44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xinference/model/audio/tests/test_melotts.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def test_melotts(setup):
input_string = (
"chat T T S is a text to speech model designed for dialogue applications."
)
response = model.speech(input_string)
assert type(response) is bytes
assert len(response) > 0

response = model.speech(input_string, voice="EN-Newest")
assert type(response) is bytes
Expand All @@ -42,7 +45,7 @@ def test_melotts(setup):

client = openai.Client(api_key="not empty", base_url=f"{endpoint}/v1")
with client.audio.speech.with_streaming_response.create(
model=model_uid, input=input_string, voice="echo"
model=model_uid, input=input_string, voice="EN-Newest"
) as response:
with tempfile.NamedTemporaryFile(suffix=".mp3", delete=True) as f:
response.stream_to_file(f.name)
Expand Down

0 comments on commit 99edf44

Please sign in to comment.