{"id":890,"date":"2009-04-08T20:25:16","date_gmt":"2009-04-08T14:55:16","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=890"},"modified":"2021-05-31T15:07:04","modified_gmt":"2021-05-31T09:37:04","slug":"add-nircmd-speak-to-context-menu-text-files","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/add-nircmd-speak-to-context-menu-text-files\/","title":{"rendered":"Fun Tip: Add &#8220;Speak&#8221; Option to the Context Menu for Text Files"},"content":{"rendered":"<p>The amazing <b>NirCmd<\/b> utility now has a new &#8220;speak&#8221; command that allows you to easily cause your computer to speak the text that you wish. In this command, NirCmd uses the Speech library (SAPI) that is installed in Windows. Here is a fun tip on how to add the <b>Speak<\/b> command to the context menu for Text Documents (.txt).<!--more--><\/p>\n<ol>\n<li>Download <a href=\"http:\/\/www.nirsoft.net\/utils\/nircmd.html\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">NirCmd utility<\/a> and\u00a0unzip the file.<\/li>\n<li>Move NirCmd.exe to the C:\\Windows directory.<\/li>\n<li>Download <a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/speak.zip\">speak.zip<\/a>, unzip, and run the file <b>speak.reg<\/b><\/li>\n<li>Right-Click on a Text Document and click <b>Speak<\/b>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/nircmd-speak.png\" width=\"280\" height=\"335\" \/><\/li>\n<\/ol>\n<p>The system reads out the entire contents of the text file for you!<\/p>\n<p>The REG file adds the following registry key:<\/p>\n<pre>HKEY_CLASSES_ROOT\\txtfile\\shell\\Speak\\Command<\/pre>\n<p>And sets the <code>(default)<\/code> value data to:<\/p>\n<pre>nircmd.exe speak file \"%1\"<\/pre>\n<p>To dictate the entire contents of a text file manually, use this command line:<\/p>\n<pre>nircmd.exe speak file \"&lt;path:\\filename&gt;\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The amazing NirCmd utility now has a new &#8220;speak&#8221; command that allows you to easily cause your computer to speak the text that you wish. In this command, NirCmd uses the Speech library (SAPI) that is installed in Windows. Here is a fun tip on how to add the Speak command to the context menu &#8230; <a title=\"Fun Tip: Add &#8220;Speak&#8221; Option to the Context Menu for Text Files\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/add-nircmd-speak-to-context-menu-text-files\/\" aria-label=\"Read more about Fun Tip: Add &#8220;Speak&#8221; Option to the Context Menu for Text Files\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","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_post_was_ever_published":false},"categories":[6],"tags":[114,335],"class_list":["post-890","post","type-post","status-publish","format-standard","hentry","category-utilities","tag-context-menu","tag-nircmd"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":295,"url":"https:\/\/www.winhelponline.com\/blog\/create-shortcuts-to-eject-and-close-cddvd-drive\/","url_meta":{"origin":890,"position":0},"title":"Shortcuts to Eject and Close CD\/DVD Drive in Windows","author":"Ramesh","date":"May 23, 2008","format":false,"excerpt":"Windows already includes the Eject command in the context menu for optical drives. If you want to add the Close Tray option in the context menu for optical drives, then this article is for you. NirCmd is a small command-line tool that allows you to do some useful tasks without\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/openclosetray.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":4931,"url":"https:\/\/www.winhelponline.com\/blog\/restart-explorer-gracefully-shortcut-command\/","url_meta":{"origin":890,"position":1},"title":"How to Restart Explorer Cleanly Using Shortcut or Command-line","author":"Ramesh","date":"December 31, 2016","format":false,"excerpt":"When you make changes to the Windows registry using the Registry Editor, script or any other automation tool, you may have to logoff and login back for the changes to take effect. That's especially true if you're altering the UI element metrics or changing the shell namespace folder icons etc.\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"restart explorer gracefully","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/restart-explorer-gracefully.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/restart-explorer-gracefully.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/12\/restart-explorer-gracefully.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":907,"url":"https:\/\/www.winhelponline.com\/blog\/disable-empty-recycle-bin-confirmation-windows\/","url_meta":{"origin":890,"position":2},"title":"Empty the Recycle Bin Without the Confirmation Window Showing Up","author":"Ramesh","date":"June 29, 2009","format":false,"excerpt":"When emptying the contents of your Recycle Bin, you'll be asked for confirmation as below. Here is a registry edit to turn off the prompt in Windows 7, 8 and Windows 10, using NirCmd. This registry edit replaces the Empty Recycle Bin command in the right-click menu and the ribbon\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"recycle bin delete confirmation prompt","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2009\/06\/rbin-silent-empty.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1071,"url":"https:\/\/www.winhelponline.com\/blog\/run-program-elevated-right-click-menu-windows\/","url_meta":{"origin":890,"position":3},"title":"How to Add a Right-Click Menu Option to Run a Program Elevated","author":"Ramesh","date":"August 18, 2010","format":false,"excerpt":"From the Windows Taskbar, you can start a program elevated by holding the Ctrl & Shift keys and then clicking on a pinned shortcut. To launch a program elevated from the right-click menu, you can add custom entries and launch it using a script or using the NirCmd utility. Earlier\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"take ownership right-click menu","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/09\/take_ownership_context_menu.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":425,"url":"https:\/\/www.winhelponline.com\/blog\/run-bat-files-invisibly-without-displaying-command-prompt\/","url_meta":{"origin":890,"position":4},"title":"How to run .BAT files invisibly, without displaying the Command Prompt window","author":"Ramesh","date":"August 5, 2008","format":false,"excerpt":"Batch files (.BAT) and Windows NT Command Script (.CMD) files run in console window when double-clicked. This means that the Command Prompt window will be visible until the .BAT or .CMD file execution is complete. To make .BAT or .CMD file execution less intrusive, you can configure it to run\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"run batch file hidden - nircmd exec","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/08\/nircmd-batch-file-hidden.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1006,"url":"https:\/\/www.winhelponline.com\/blog\/nircmd-elevate-switch-useful-uses\/","url_meta":{"origin":890,"position":5},"title":"NirCmd Elevate Switch Added &#8211; Some Useful Uses","author":"Ramesh","date":"February 24, 2010","format":false,"excerpt":"We've covered the excellent multi-purpose command-line tool NirCmd from Nirsoft earlier. This post talks about the new command-line switches added in the current version of NirCmd. Earlier this month, I sent a NirCmd feature request to Nir Sofer, asking to include an \"elevate\" switch, which should launch an application elevated\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=890"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/890\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}