Skip to content

Commit 08d11c3

Browse files
Update talk.py (#88)
handle empty output file path
1 parent 6413888 commit 08d11c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/tts/talk.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def parse_args() -> argparse.Namespace:
5151
)
5252
parser = add_connection_argparse_parameters(parser)
5353
args = parser.parse_args()
54+
if not args.output.strip():
55+
print("Empty output file path not allowed")
56+
return
5457
if args.output is not None:
5558
args.output = args.output.expanduser()
5659
if args.list_devices or args.output_device or args.play_audio:

0 commit comments

Comments
 (0)