Last active
January 13, 2025 20:50
-
-
Save fnx4/41e48ec7b20e490a8b5dc05b61c792c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/fishaudio/fish-speech | |
cd fish-speech | |
py -3.10 -m venv venv | |
.\venv\Scripts\activate | |
python -m pip install --upgrade pip | |
pip install torch==2.4.1 torchvision==0.19.1 torchaudio==2.4.1 --index-url https://download.pytorch.org/whl/cu121 | |
pip install -e . | |
pip install https://github.com/AnyaCoder/fish-speech/releases/download/v0.1.0/triton_windows-0.1.0-py3-none-any.whl | |
mkdir checkpoints | |
cd checkpoints | |
git clone https://huggingface.co/fishaudio/fish-speech-1.5 | |
cd .. | |
python -m tools.api_server --listen 0.0.0.0:8080 --llama-checkpoint-path "checkpoints/fish-speech-1.5" --decoder-checkpoint-path "checkpoints/fish-speech-1.5/firefly-gan-vq-fsq-8x1024-21hz-generator.pth" --decoder-config-name firefly_gan_vq --compile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/api_client.py b/tools/api_client.py | |
index 1e3e18c..d9a08a3 100644 | |
--- a/tools/api_client.py | |
+++ b/tools/api_client.py | |
@@ -202,7 +202,7 @@ if __name__ == "__main__": | |
try: | |
for chunk in response.iter_content(chunk_size=1024): | |
if chunk: | |
- stream.write(chunk) | |
+ # stream.write(chunk) | |
wf.writeframesraw(chunk) | |
else: | |
if not stream_stopped_flag: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment