sayy - My wrapper on macOS's "say" command #15
amterp
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
macOS has a CLI command "say" to get a robotic voice to read out some text, which is a useful utility in some cases.
I had a bash script wrapping this to do a bit of "speech rate" scaling with the contents of the text it was reading (speed up when there's more content). It also hard codes a voice to make it less robotic. I recently ported this script to RSL. Here's the bash bersion:
And here is the RSL version:
The RSL version is the same length, despite being better in several ways:
-h
.-d
(thanks to the global debug flag provided by Rad).One improvement I can make in the RSL version is make the constants (max/mins) into additional args with defaults. However, before I do that, I want to allow referencing other args in
range
constraints (right now it's just number literals). That's on the todo.Beta Was this translation helpful? Give feedback.
All reactions