Skip to content

SOTA Open Source TTS

Update API Usage (#310)

spicysama55ffbf3cff90
diff --git a/API_FLAGS.txt b/API_FLAGS.txt
index c60d796..edd3566 100644
--- a/API_FLAGS.txt
+++ b/API_FLAGS.txt
@@ -1,7 +1,6 @@
# --infer
# --api
--listen 0.0.0.0:8000 \
---llama-checkpoint-path "checkpoints/text2semantic-sft-medium-v1.1-4k.pth" \
---llama-config-name dual_ar_2_codebook_medium \
+--llama-checkpoint-path "checkpoints/fish-speech-1.2" \
--decoder-checkpoint-path "checkpoints/fish-speech-1.2/firefly-gan-vq-fsq-4x1024-42hz-generator.pth" \
--decoder-config-name firefly_gan_vq
diff --git a/tools/post_api.py b/tools/post_api.py
index 018061f..8e325d2 100644
--- a/tools/post_api.py
+++ b/tools/post_api.py
@@ -30,7 +30,11 @@ if __name__ == "__main__":
)
parser.add_argument(
- "--url", "-u", type=str, required=True, help="URL of the server"
+ "--url",
+ "-u",
+ type=str,
+ default="http://127.0.0.1:8000/v1/invoke",
+ help="URL of the server",
)
parser.add_argument(
"--text", "-t", type=str, required=True, help="Text to be synthesized"