{"id":24,"date":"2010-10-26T15:56:59","date_gmt":"2010-10-26T15:56:59","guid":{"rendered":"http:\/\/aceplaza.com\/?p=24"},"modified":"2011-07-12T00:26:02","modified_gmt":"2011-07-12T00:26:02","slug":"my-computer-talks-2","status":"publish","type":"post","link":"https:\/\/blog.aceplaza.com\/?p=24","title":{"rendered":"My Computer Talks"},"content":{"rendered":"<p>I was exposed to a VBScript recently that had code to make the computer speak with the Microsoft Speech API.<!--more--><\/p>\n<p>Being the weirdo I am, I wanted to make a PowerShell version of this script, so I did.<\/p>\n<pre lang=\"powershell\">$engine=new-object -comobject sapi.spvoice\r\n$username=[Environment]::UserName\r\n$speech=\"Hi, $username\"\r\n$engine.Speak($speech)<\/pre>\n<p>The $speech variable above can be any text. In my test, I had a job description there. In other testing, I had it read the content of a text file by using the get-content cmdlet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was exposed to a VBScript recently that had code to make the computer speak with the Microsoft Speech API.<\/p>\n","protected":false},"author":721,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[26],"class_list":["post-24","post","type-post","status-publish","format-standard","hentry","category-powershell","tag-powershell"],"_links":{"self":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts\/24","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/users\/721"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24"}],"version-history":[{"count":8,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=\/wp\/v2\/posts\/24\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.aceplaza.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}