Explorar el Código

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

Hao Guan hace 1 año
padre
commit
3147dd26ef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tools/api_client.py

+ 1 - 1
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",
     )