We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08d11c3 commit dd53da1Copy full SHA for dd53da1
scripts/tts/talk.py
@@ -51,9 +51,6 @@ def parse_args() -> argparse.Namespace:
51
)
52
parser = add_connection_argparse_parameters(parser)
53
args = parser.parse_args()
54
- if not args.output.strip():
55
- print("Empty output file path not allowed")
56
- return
57
if args.output is not None:
58
args.output = args.output.expanduser()
59
if args.list_devices or args.output_device or args.play_audio:
@@ -63,6 +60,9 @@ def parse_args() -> argparse.Namespace:
63
60
64
61
def main() -> None:
65
62
args = parse_args()
+ if args.output.is_dir():
+ print("Empty output file path not allowed")
+ return
66
if args.list_devices:
67
riva.client.audio_io.list_output_devices()
68
return
0 commit comments