Skip to content

Instantly share code, notes, and snippets.

@fnx4
Last active January 13, 2025 20:50
Show Gist options
  • Save fnx4/41e48ec7b20e490a8b5dc05b61c792c5 to your computer and use it in GitHub Desktop.
Save fnx4/41e48ec7b20e490a8b5dc05b61c792c5 to your computer and use it in GitHub Desktop.
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
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