{"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":"http:\/\/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<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Making%20your%20Mac%20speak%20from%20the%20command%20line&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2009%2F03%2F19%2Fmaking-your-mac-speak-from-the-command-line&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"a7d74c40fc\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-1381\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-1381\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-1381\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","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<div class=\"sharedaddy sd-sharing-enabled\"><div class=\"robots-nocontent sd-block sd-social sd-social-icon-text sd-sharing\"><h3 class=\"sd-title\">Share this:<\/h3><div class=\"sd-content\"><ul><li class=\"share-email\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"\" class=\"share-email sd-button share-icon\" href=\"mailto:?subject=%5BShared%20Post%5D%20Making%20your%20Mac%20speak%20from%20the%20command%20line&body=http%3A%2F%2Fwww.bytebot.net%2Fblog%2Farchives%2F2009%2F03%2F19%2Fmaking-your-mac-speak-from-the-command-line&share=email\" target=\"_blank\" title=\"Click to email a link to a friend\" data-email-share-error-title=\"Do you have email set up?\" data-email-share-error-text=\"If you&#039;re having problems sharing via email, you might not have email set up for your browser. You may need to create a new email yourself.\" data-email-share-nonce=\"a7d74c40fc\" data-email-share-track-url=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=email\"><span>Email<\/span><\/a><\/li><li class=\"share-facebook\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-facebook-1381\" class=\"share-facebook sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=facebook\" target=\"_blank\" title=\"Click to share on Facebook\" ><span>Facebook<\/span><\/a><\/li><li class=\"share-linkedin\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-linkedin-1381\" class=\"share-linkedin sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=linkedin\" target=\"_blank\" title=\"Click to share on LinkedIn\" ><span>LinkedIn<\/span><\/a><\/li><li class=\"share-twitter\"><a rel=\"nofollow noopener noreferrer\" data-shared=\"sharing-twitter-1381\" class=\"share-twitter sd-button share-icon\" href=\"http:\/\/www.bytebot.net\/blog\/archives\/2009\/03\/19\/making-your-mac-speak-from-the-command-line?share=twitter\" target=\"_blank\" title=\"Click to share on Twitter\" ><span>Twitter<\/span><\/a><\/li><li class=\"share-end\"><\/li><\/ul><\/div><\/div><\/div>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_options":[]},"categories":[1],"tags":[800,803,5,801,804,802],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4vJD-mh","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":85,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2004\/03\/31\/openofficeorg-111-for-os-x-103x-panther-technology-preview-release","url_meta":{"origin":1381,"position":0},"title":"OpenOffice.org 1.1.1 for OS X 10.3.x (Panther) Technology Preview Release","date":"31\/3\/2004","format":false,"excerpt":"The primary purpose of this release is to get OpenOffice.org 1.1.1 for Mac OS X into the hands of users and testers who can hopefully help find and report any final nits that may still exist. System Requirements Mac OS X 10.3 (Panther), Apple's X11 1.0 installed. A future release\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":596,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2007\/07\/28\/fring-320-is-out-volume-control-fixed","url_meta":{"origin":1381,"position":1},"title":"Fring 3.20 is out &#8211; volume control fixed","date":"28\/7\/2007","format":false,"excerpt":"For those not following the Fring blog, and you're annoyed by their volume control difficulties, you'll be pleased to know that they've released fring 3.20 for your Symbian 9 devices. The E61i is running it, and volume control (really, the only complaint) works well. Only caveat is that you don't\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":204,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2004\/08\/30\/approaching-freeze-now","url_meta":{"origin":1381,"position":2},"title":"Approaching freeze now","date":"30\/8\/2004","format":false,"excerpt":"Spent quite a lot of time fiddling with Rawhide from yesterday. Ran into quite a few bugs, all made it into bugzilla - airport giving anaconda the sig11, system-config-display still broken for the Radeon Mobility 7500, and worse, text mode install on the iMac DV failed (#131346). system-config-network is also\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":15,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2004\/01\/27\/not-utopia","url_meta":{"origin":1381,"position":3},"title":"Not Utopia","date":"27\/1\/2004","format":false,"excerpt":"Watched The Matrix Revolutions and Basic today. Both good shows, I understand Matrix Revelations a lot better now :) OS X 10.3 detected the DVDs like a charm, and also played them automatically for me in full-screen. Excellent, I thought I'd try and replicate this with Fedora. So, I upgraded\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":3362,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2017\/06\/05\/the-touch-bar-can-wow-you-over","url_meta":{"origin":1381,"position":4},"title":"The Touch Bar can wow you over!","date":"5\/6\/2017","format":false,"excerpt":"In the tech space, sometimes people can be notorious for bemoaning new technology. Case in point? The Touch Bar on the new retina MacBook Pro's. I've been using a 15\" retina MacBook Pro with Touch Bar for about six months now. I am a vim user when I SSH to\u2026","rel":"","context":"In &quot;Tech&quot;","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.bytebot.net\/blog\/wp-content\/uploads\/2017\/06\/IMG_5859-300x225.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":754,"url":"http:\/\/www.bytebot.net\/blog\/archives\/2008\/03\/22\/time-machine-best-backup-option-on-leopard","url_meta":{"origin":1381,"position":5},"title":"Time Machine best backup option on Leopard?","date":"22\/3\/2008","format":false,"excerpt":"Dear Lazyweb,Is the best way to backup Mac OS X Leopard, Time Machine? Will it give me full, reliable restores, in case all goes to hell?On Linux, I use rdiff-backup, which is a phenomenal tool, that is quick and easy to use from the command line. Its restores are proven\u2026","rel":"","context":"In &quot;General&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/1381"}],"collection":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/comments?post=1381"}],"version-history":[{"count":1,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/1381\/revisions"}],"predecessor-version":[{"id":1382,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/posts\/1381\/revisions\/1382"}],"wp:attachment":[{"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/media?parent=1381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/categories?post=1381"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.bytebot.net\/blog\/wp-json\/wp\/v2\/tags?post=1381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}