{"id":1381,"date":"2009-03-19T05:39:29","date_gmt":"2009-03-19T10:39:29","guid":{"rendered":"http:\/\/www.bytebot.net\/blog\/?p=1381"},"modified":"2009-03-19T05:39:29","modified_gmt":"2009-03-19T10:39:29","slug":"making-your-mac-speak-from-the-command-line","status":"publish","type":"post","link":"https:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line","title":{"rendered":"Making your Mac speak from the command line"},"content":{"rendered":"<p>The xkcd comic <a href=\"http:\/\/xkcd.com\/530\/\">I&#8217;m an idiot<\/a> has some context to this (no, I wasn&#8217;t locked out or anything).<\/p>\n<p>It seems like one can do wonders within the command line in Mac OS X. For example, to mute the volume, you do: <tt>osascript -e \"set Volume 0\"<\/tt>. Similarly, to make the volume the loudest, you can do: <tt>osascript -e \"set Volume 10\"<\/tt>.<\/p>\n<p>Then you know, in OS X there is also a magic <tt>say(1)<\/tt> command. It converts text to audible speech, and you can even specify the voice. Something as simple as <tt>say \"Hello World\"<\/tt> will use the system voice to execute.<\/p>\n<p>One can imagine this being useful. Now, I know there&#8217;s another variation (from a little searching) to changing the volume: doing <tt>osascript -e \"set volume output volume 100\"<\/tt> makes the volume as loud as possible. Note that if you do it this way, it ranges from 0-100. The method two paragraphs ago, is 0-10. Weird?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The xkcd comic I&#8217;m an idiot has some context to this (no, I wasn&#8217;t locked out or anything). It seems like one can do wonders within the command line in Mac OS X. For example, to mute the volume, you do: osascript -e &#8220;set Volume 0&#8221;. Similarly, to make the volume the loudest, you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[800,803,5,801,804,802],"class_list":["post-1381","post","type-post","status-publish","format-standard","hentry","category-general","tag-applescript","tag-audio","tag-macosx","tag-say","tag-text-to-speech","tag-volume"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/p4vJD-mh","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"amp_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/1381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=1381"}],"version-history":[{"count":1,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/1381\/revisions"}],"predecessor-version":[{"id":1382,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/1381\/revisions\/1382"}],"wp:attachment":[{"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}