Right now I am using the command:
system("say Hello World!")
to have the system say "Hello World!".
How do I decrease the volume?
Right now I am using the command:
system("say Hello World!")
to have the system say "Hello World!".
How do I decrease the volume?
You can use the osascript
utility to set the system volume before invoking say
:
system("osascript -e 'set Volume 1'")
system("say Hello World!")