{"id":334,"date":"2006-11-29T04:00:00","date_gmt":"2006-11-29T12:00:00","guid":{"rendered":"http:\/\/testblog.sapien.com\/index.php\/2006\/11\/29\/make-your-scripts-sing\/"},"modified":"2006-11-29T04:00:00","modified_gmt":"2006-11-29T12:00:00","slug":"make-your-scripts-sing","status":"publish","type":"post","link":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/","title":{"rendered":"Make your scripts sing"},"content":{"rendered":"<p><span style=\"font-family: Arial,Helvetica,sans-serif;\">In an earlier <\/span><a style=\"font-family: Arial,Helvetica,sans-serif;\" href=\"http:\/\/sapien.eponym.com\/blog\/_archives\/2006\/11\/21\/2513727.html\">post<\/a><span style=\"font-family: Arial,Helvetica,sans-serif;\">, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &#8220;speak&#8221; a wav file. Imagine having a script play a sound when it finishes a long query or process.&nbsp; This is pretty easy to do. The limitation is that the object will only play wav files.<\/span><br style=\"font-family: Arial,Helvetica,sans-serif;\"><br style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"font-family: Arial,Helvetica,sans-serif;\">What you need to do is create a&nbsp; <\/span><span style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Times New Roman,Times,serif;\"><span style=\"font-family: Arial,Helvetica,sans-serif;\">SAPI.SpFileStream.1 object and then invoke it&#8217;s OPEN method, passing it the parameter of a filename.<\/span><\/p>\n<p><\/span><\/span><span style=\"font-family: Courier New,Courier,mono;\">Set objFile = CreateObject(&#8220;SAPI.SpFileStream.1&#8221;)<br \/>objFile.Open &#8220;C:\\windows\\media\\tada.wav&#8221;<\/p>\n<p><span style=\"font-family: Arial,Helvetica,sans-serif;\">The voice object uses the SpeakStream method to &#8220;speak&#8221; the file:<\/span><br style=\"font-family: Arial,Helvetica,sans-serif;\"><br \/>objSPVoice.Speakstream objFile<\/p>\n<p><span style=\"font-family: Arial,Helvetica,sans-serif;\">It is good practice to close the file after you are done with it.<\/span><br style=\"font-family: Times New Roman,Times,serif;\"><br \/>objFile.Close<\/p>\n<p><span style=\"font-family: Arial,Helvetica,sans-serif;\">That&#8217;s all there is to it.&nbsp; I&#8217;ve put together a sample script that gets your media directory (typically %windir%\\media) and lists all the files that end in .wav.&nbsp; The default voice will speak each filename and then &#8220;speak&#8221; the file so you can hear it.<\/span><br \/><\/span><br \/><span style=\"font-family: Courier New,Courier,mono;\">On Error Resume Next<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Dim objShell,objFSO,objFiles<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Dim objSPVoice,objFile<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Set objSPVoice=CreateObject(&#8220;SAPI.SpVoice&#8221;)<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Set objFile = CreateObject(&#8220;SAPI.SpFileStream.1&#8221;)<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Set objShell=CreateObject(&#8220;wscript.shell&#8221;)<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\"><br \/>strWinDir= objShell.ExpandEnvironmentStrings(&#8220;%WinDir%&#8221;)<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">strMediaDir=strWinDir &amp; &#8220;\\Media&#8221;<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\"><br \/>Set objFSO=CreateObject(&#8220;Scripting.FileSystemObject&#8221;)<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Set objFiles=objFSO.GetFolder(strMediaDir).Files<br \/><br style=\"font-family: Courier New,Courier,mono;\"><\/span><span style=\"font-family: Courier New,Courier,mono;\">For Each file In objFiles<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&#8216;only get .wav files<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; If Right(file.name,3)=&#8221;wav&#8221; Then <\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; WScript.Echo file<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; DemoWav file<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; End If<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Next<\/span><br style=\"font-family: Courier New,Courier,mono;\"><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">Sub DemoWav(File)<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">On Error Resume Next<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; Err.Clear<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; objFile.Open file<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; If Err.Number&lt;&gt;0 Then Exit Sub &#8216;bail if there is a problem<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8216;opening the file<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; objSPVoice.Speak file.name<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; objSPVoice.SpeakStream objFile<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">&nbsp;&nbsp;&nbsp; objFile.Close<\/span><br style=\"font-family: Courier New,Courier,mono;\"><span style=\"font-family: Courier New,Courier,mono;\">End Sub<\/span><\/p>\n<p><span style=\"font-family: Arial,Helvetica,sans-serif;\">The DemoWav subroutine attempts to opens each file.&nbsp; I added some error handling as on my system some of the wav files caused an error when they were opened, yet they play just fine in Windows Media Player. I just skip those since this is a demo anyway.&nbsp; <\/span><br style=\"font-family: Arial,Helvetica,sans-serif;\"><br style=\"font-family: Arial,Helvetica,sans-serif;\"><span style=\"font-family: Arial,Helvetica,sans-serif;\">Now your scripts can talk back and sing to you.<\/p>\n<p>(The Microsoft Scripting Guys have a nice article on this topic at <a href=\"http:\/\/www.microsoft.com\/technet\/scriptcenter\/funzone\/games\/sapi.mspx\">http:\/\/www.microsoft.com\/technet\/scriptcenter\/funzone\/games\/sapi.mspx<\/a>)<br \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &#8220;speak&#8221; a wav file. Imagine having a script play a sound when it finishes a long query or process.  This is pretty easy to do.<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[2,24],"tags":[],"class_list":["post-334","post","type-post","status-publish","format-standard","hentry","category-general","category-vbscript"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &quot;speak&quot; a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jeffery Hicks\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"DEV SAPIEN Blog - Tools for IT Success\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Make your scripts sing - DEV SAPIEN Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &quot;speak&quot; a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2006-11-29T12:00:00+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2006-11-29T12:00:00+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Make your scripts sing - DEV SAPIEN Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &quot;speak&quot; a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#blogposting\",\"name\":\"Make your scripts sing - DEV SAPIEN Blog\",\"headline\":\"Make your scripts sing\",\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"},\"datePublished\":\"2006-11-29T04:00:00-08:00\",\"dateModified\":\"2006-11-29T04:00:00-08:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#webpage\"},\"articleSection\":\"General, VBScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"name\":\"General\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"position\":2,\"name\":\"General\",\"item\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#listItem\",\"name\":\"Make your scripts sing\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#listItem\",\"position\":3,\"name\":\"Make your scripts sing\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/topics\\\/general\\\/#listItem\",\"name\":\"General\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/\",\"name\":\"Jeffery Hicks\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#webpage\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/\",\"name\":\"Make your scripts sing - DEV SAPIEN Blog\",\"description\":\"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to \\\"speak\\\" a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/2006\\\/11\\\/29\\\/make-your-scripts-sing\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/author\\\/jeffery-hicks\\\/#author\"},\"datePublished\":\"2006-11-29T04:00:00-08:00\",\"dateModified\":\"2006-11-29T04:00:00-08:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/\",\"name\":\"DEV SAPIEN Blog\",\"description\":\"Tools for IT Success\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/dev.sapien.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Make your scripts sing - DEV SAPIEN Blog","description":"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to \"speak\" a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.","canonical_url":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#blogposting","name":"Make your scripts sing - DEV SAPIEN Blog","headline":"Make your scripts sing","author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"},"datePublished":"2006-11-29T04:00:00-08:00","dateModified":"2006-11-29T04:00:00-08:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#webpage"},"isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#webpage"},"articleSection":"General, VBScript"},{"@type":"BreadcrumbList","@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/dev.sapien.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","name":"General"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","position":2,"name":"General","item":"https:\/\/dev.sapien.com\/blog\/topics\/general\/","nextItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#listItem","name":"Make your scripts sing"},"previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#listItem","position":3,"name":"Make your scripts sing","previousItem":{"@type":"ListItem","@id":"https:\/\/dev.sapien.com\/blog\/topics\/general\/#listItem","name":"General"}}]},{"@type":"Organization","@id":"https:\/\/dev.sapien.com\/blog\/#organization","name":"DEV SAPIEN Blog","description":"Tools for IT Success","url":"https:\/\/dev.sapien.com\/blog\/"},{"@type":"Person","@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author","url":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/","name":"Jeffery Hicks"},{"@type":"WebPage","@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#webpage","url":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/","name":"Make your scripts sing - DEV SAPIEN Blog","description":"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to \"speak\" a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/dev.sapien.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/#breadcrumblist"},"author":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"creator":{"@id":"https:\/\/dev.sapien.com\/blog\/author\/jeffery-hicks\/#author"},"datePublished":"2006-11-29T04:00:00-08:00","dateModified":"2006-11-29T04:00:00-08:00"},{"@type":"WebSite","@id":"https:\/\/dev.sapien.com\/blog\/#website","url":"https:\/\/dev.sapien.com\/blog\/","name":"DEV SAPIEN Blog","description":"Tools for IT Success","inLanguage":"en-US","publisher":{"@id":"https:\/\/dev.sapien.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"DEV SAPIEN Blog - Tools for IT Success","og:type":"article","og:title":"Make your scripts sing - DEV SAPIEN Blog","og:description":"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &quot;speak&quot; a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do.","og:url":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/","article:published_time":"2006-11-29T12:00:00+00:00","article:modified_time":"2006-11-29T12:00:00+00:00","twitter:card":"summary_large_image","twitter:title":"Make your scripts sing - DEV SAPIEN Blog","twitter:description":"In an earlier post, I showed you how to make your scripts talk back. Well, you can also use the SAPI object to &quot;speak&quot; a wav file. Imagine having a script play a sound when it finishes a long query or process. This is pretty easy to do."},"aioseo_meta_data":{"post_id":"334","title":null,"description":null,"keywords":null,"keyphrases":null,"focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_custom_url":null,"og_image_custom_fields":null,"og_image_url":null,"og_image_width":null,"og_image_height":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_image_url":null,"twitter_title":null,"twitter_description":null,"schema_type":"default","schema_type_options":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null,"created":"2026-08-28 14:22:41","updated":"2026-08-28 14:22:41"},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/dev.sapien.com\/blog\/topics\/general\/\" title=\"General\">General<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tMake your scripts sing\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/dev.sapien.com\/blog"},{"label":"General","link":"https:\/\/dev.sapien.com\/blog\/topics\/general\/"},{"label":"Make your scripts sing","link":"https:\/\/dev.sapien.com\/blog\/2006\/11\/29\/make-your-scripts-sing\/"}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/comments?post=334"}],"version-history":[{"count":0,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/posts\/334\/revisions"}],"wp:attachment":[{"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/media?parent=334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/categories?post=334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.sapien.com\/blog\/wp-json\/wp\/v2\/tags?post=334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}