Skip to content

Commit

Permalink
fix: SSML related args didn't work without -t/-s
Browse files Browse the repository at this point in the history
Close #9
  • Loading branch information
kxxt committed May 8, 2022
1 parent a0ed540 commit 498ea8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aspeak/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def main():
handle_result(speech_function_selector(synthesizer, preprocess_text(args.text, args)))
else:
# Neither --text nor --ssml is provided, pretend --text is provided and empty
handle_result(synthesizer.text_to_speech(read_file(args)))
handle_result(speech_function_selector(synthesizer, preprocess_text(read_file(args), args)))
except Exception as e:
print(f"{COLOR_RED}Error{COLOR_CLEAR}: {e}")
exit(4)
Expand Down

0 comments on commit 498ea8c

Please sign in to comment.