Skip to content

SOTA Open Source TTS

fix: no-play argument for API client (#745)

Hao Guan3147dd26efd9
diff --git a/tools/api_client.py b/tools/api_client.py
index c6cb6a4..b47a10d 100644
--- a/tools/api_client.py
+++ b/tools/api_client.py
@@ -61,7 +61,7 @@ def parse_args():
)
parser.add_argument(
"--play",
- type=bool,
+ action=argparse.BooleanOptionalAction,
default=True,
help="Whether to play audio after receiving data",
)