Skip to content

Commit

Permalink
BUG: Compat with ChatTTS 0.2.1 (#2520)
Browse files Browse the repository at this point in the history
  • Loading branch information
codingl2k1 authored Nov 6, 2024
1 parent 325626f commit 8f084b8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ jobs:
${{ env.SELF_HOST_PYTHON }} -m pip install -U WeTextProcessing<1.0.4
${{ env.SELF_HOST_PYTHON }} -m pip install -U librosa
${{ env.SELF_HOST_PYTHON }} -m pip install -U xxhash
${{ env.SELF_HOST_PYTHON }} -m pip install -U "ChatTTS>=0.2,!=0.2.1"
${{ env.SELF_HOST_PYTHON }} -m pip install -U "ChatTTS>=0.2.1"
${{ env.SELF_HOST_PYTHON }} -m pip install -U HyperPyYAML
${{ env.SELF_HOST_PYTHON }} -m pip uninstall -y matcha-tts
${{ env.SELF_HOST_PYTHON }} -m pip install -U onnxruntime-gpu==1.16.0; sys_platform == 'linux'
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ all =
librosa # For ChatTTS
xxhash # For ChatTTS
torchaudio # For ChatTTS
ChatTTS>=0.2,!=0.2.1
ChatTTS>=0.2.1
lightning>=2.0.0 # For CosyVoice, matcha
hydra-core>=1.3.2 # For CosyVoice, matcha
inflect # For CosyVoice, matcha
Expand Down Expand Up @@ -194,7 +194,7 @@ audio =
librosa
xxhash
torchaudio
ChatTTS>=0.2,!=0.2.1
ChatTTS>=0.2.1
tiktoken # For CosyVoice, openai-whisper
torch>=2.0.0 # For CosyVoice, matcha
lightning>=2.0.0 # For CosyVoice, matcha
Expand Down
2 changes: 1 addition & 1 deletion xinference/deploy/docker/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nemo_text_processing<1.1.0 # 1.1.0 requires pynini==2.1.6.post1
WeTextProcessing<1.0.4 # 1.0.4 requires pynini==2.1.6
librosa # For ChatTTS
torchaudio # For ChatTTS
ChatTTS>=0.2,!=0.2.1
ChatTTS>=0.2.1
xxhash # For ChatTTS
torch>=2.0.0 # For CosyVoice
lightning>=2.0.0 # For CosyVoice, matcha
Expand Down
2 changes: 1 addition & 1 deletion xinference/deploy/docker/requirements_cpu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ nemo_text_processing<1.1.0 # 1.1.0 requires pynini==2.1.6.post1
WeTextProcessing<1.0.4 # 1.0.4 requires pynini==2.1.6
librosa # For ChatTTS
torchaudio # For ChatTTS
ChatTTS>=0.2,!=0.2.1
ChatTTS>=0.2.1
xxhash # For ChatTTS
torch>=2.0.0 # For CosyVoice
lightning>=2.0.0 # For CosyVoice, matcha
Expand Down
2 changes: 1 addition & 1 deletion xinference/model/audio/model_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"model_name": "ChatTTS",
"model_family": "ChatTTS",
"model_id": "2Noise/ChatTTS",
"model_revision": "3b34118f6d25850440b8901cef3e71c6ef8619c8",
"model_revision": "1a3c04a8b0651689bd9242fbb55b1f4b5a9aef84",
"model_ability": "text-to-audio",
"multilingual": true
},
Expand Down
5 changes: 4 additions & 1 deletion xinference/model/audio/tests/test_chattts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def test_chattts(setup):
client = Client(endpoint)

model_uid = client.launch_model(
model_name="ChatTTS", model_type="audio", compile=False
model_name="ChatTTS",
model_type="audio",
compile=False,
download_hub="huggingface",
)
model = client.get_model(model_uid)
input_string = (
Expand Down

0 comments on commit 8f084b8

Please sign in to comment.