微软官方MSDN原版Win10系统下载

现在位置: 首页  > 系统教程  > Win10教程

Win10使用PowerShelll让Cortana朗读小说的操作技巧

时间:2024-09-22 07:14:07   

大家好,今天Win10系统之家小编给大家分享「Win10使用PowerShelll让Cortana朗读小说的操作技巧」的知识,如果能碰巧解决你现在面临的问题,记得收藏本站或分享给你的好友们哟~,现在开始吧!

连尚免费读书的小说系列软件最新版本下载

  Win10如何使用PowerShelll让Cortana朗读小说?Cortana是Win10系统的人工智能助手,可以帮忙处理一些基本任务,比如日程安排、回答问题等,其实Cortana还有更为强大的功能,比如让Cortana为我们朗读小说,这才不浪费Cortana甜美的声音嘛!下面给大家介绍Win10使用PowerShelll让Cortana朗读小说的操作技巧。

图1:Cortana

图2:来至微软小娜的问候

  Win10如何使用PowerShelll让Cortana朗读小说?

  1、把下面的代码复制为.ps1文件保存好,打开PowerShell(管理员),把执行.ps1文件。当然也可以复制之后直接执行命令,都是一样的效果。

  1. 01= "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_zhCN_HongyuM"
  2. 02= "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_zhCN_HongyuM\Attributes"
  3. 03= "HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_zhCN_HongyuM"
  4. 04= "HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_zhCN_HongyuM\Attributes"
  5. 05New-Item -Path ,,,
  6. 06New-ItemProperty -Path , -Name "(default)" -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"
  7. 07New-ItemProperty -Path , -Name LangDataPath -PropertyType string -Value "%windir%\\Speech_OneCore\\Engines\\TTS\\zh-CN\\MSTTSLoczhCN.dat"
  8. 08New-ItemProperty -Path , -Name LangUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\Data\\SharedData\\Speech_OneCore\\Engines\\TTS\\zh-CN"
  9. 09New-ItemProperty -Path , -Name VoicePath -PropertyType string -Value "%windir%\\Speech_OneCore\\Engines\\TTS\\zh-CN\\M2052Hongyu"
  10. 10New-ItemProperty -Path , -Name VoiceUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\Data\\SharedData\\Speech_OneCore\\Engines\\TTS\\zh-CN"
  11. 11New-ItemProperty -Path , -Name 804 -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"
  12. 12New-ItemProperty -Path , -Name CLSID -PropertyType string -Value "{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
  13. 13New-ItemProperty -Path , -Name Version -PropertyType string -Value "11.0"
  14. 14New-ItemProperty -Path , -Name Language -PropertyType string -Value "804"
  15. 15New-ItemProperty -Path , -Name Gender -PropertyType string -Value "Female"
  16. 16New-ItemProperty -Path , -Name Age -PropertyType string -Value "Adult"
  17. 17New-ItemProperty -Path , -Name DataVersion -PropertyType string -Value "11.0.2013.1022"
  18. 18New-ItemProperty -Path , -Name SharedPronunciation -PropertyType string -Value ""
  19. 19New-ItemProperty -Path , -Name Name -PropertyType string -Value "Microsoft Hongyu Mobile"
  20. 20New-ItemProperty -Path , -Name Vendor -PropertyType string -Value "Microsoft"
  21. 21New-ItemProperty -Path , -Name PersonalAssistant -PropertyType string -Value "1"
复制代码
= "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_zhCN_HongyuM" = "HKLM:\SOFTWARE\Microsoft\Speech_OneCore\Voices\Tokens\MSTTS_V110_zhCN_HongyuM\Attributes" = "HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_zhCN_HongyuM" = "HKLM:\SOFTWARE\Microsoft\Speech\Voices\Tokens\MSTTS_V110_zhCN_HongyuM\Attributes" New-Item -Path ,,, New-ItemProperty -Path , -Name "(default)" -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)" New-ItemProperty -Path , -Name LangDataPath -PropertyType string -Value "%windir%\\Speech_OneCore\\Engines\\TTS\\zh-CN\\MSTTSLoczhCN.dat" New-ItemProperty -Path , -Name LangUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\Data\\SharedData\\Speech_OneCore\\Engines\\TTS\\zh-CN" New-ItemProperty -Path , -Name VoicePath -PropertyType string -Value "%windir%\\Speech_OneCore\\Engines\\TTS\\zh-CN\\M2052Hongyu" New-ItemProperty -Path , -Name VoiceUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\Data\\SharedData\\Speech_OneCore\\Engines\\TTS\\zh-CN" New-ItemProperty -Path , -Name 804 -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)" New-ItemProperty -Path , -Name CLSID -PropertyType string -Value "{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}" New-ItemProperty -Path , -Name Version -PropertyType string -Value "11.0" New-ItemProperty -Path , -Name Language -PropertyType string -Value "804" New-ItemProperty -Path , -Name Gender -PropertyType string -Value "Female" New-ItemProperty -Path , -Name Age -PropertyType string -Value "Adult" New-ItemProperty -Path , -Name DataVersion -PropertyType string -Value "11.0.2013.1022" New-ItemProperty -Path , -Name SharedPronunciation -PropertyType string -Value "" New-ItemProperty -Path , -Name Name -PropertyType string -Value "Microsoft Hongyu Mobile" New-ItemProperty -Path , -Name Vendor -PropertyType string -Value "Microsoft" New-ItemProperty -Path , -Name PersonalAssistant -PropertyType string -Value "1"

  2、接下来打开“控制面板”,找到“语音识别”,点击左侧窗口中的“文本到语音转换”,在“语音选择”框中选择“Microsoft Hongyu Mobile - Chinese (Simplified, PRC)”,然后单击确定按钮,你就可以让微软小娜为你阅读文本了。阅读文本内容可以使用带有文本阅读功能的文本编辑器,或者使用专门的小说阅读器,大家自己选一个自己喜欢的就行了。

图3:选择小娜的语音

  3、下面贴一段用PowerShell阅读小说的代码,同样保存为.ps1文件,然后在.ps1文件上右键,选择“使用“使用PowerShell运行”,之后把txt小说拖到PowerShell窗口中,回车,小娜就会自动为你朗读小说了,再次回车就会退出朗读!

  1. 01= Read-Host -Prompt "把小说拖到此处并回车开始朗读"
  2. 02= New-Object -ComObject SAPI.SpVoice
  3. 03.Speak(,5)
  4. 04Read-Host -Prompt "回车退出朗读"
复制代码
= Read-Host -Prompt "把小说拖到此处并回车开始朗读" = New-Object -ComObject SAPI.SpVoice .Speak(,5) Read-Host -Prompt "回车退出朗读"

图4:使用小娜朗读小说

  上述便是让Cortana为我们朗读小说的操作方法,喜欢阅读的伙伴,如果看书看累了,不妨让小娜为您朗读哦!

以上就是关于「Win10使用PowerShelll让Cortana朗读小说的操作技巧」的全部内容,本文讲解到这里啦,希望对大家有所帮助。如果你还想了解更多这方面的信息,记得收藏关注本站~

【此②文为Win10系统之家www.ghost580.net文♀章,转载请联系网站管理人员!】

相关文章

  • Win10使用PowerShelll让Cortana朗读小说的操作技巧

    Win10使用PowerShelll让Cortana朗读小说的操作技巧


      Win10如何使用PowerShelll让Cortana朗读小说?Cortana是Win10系统的人工智能助手,可以帮忙处理一些基本任务,比如日程安排、回答问题等,其实Cortana还有更为强大的功能,比如让Cortana为我们朗读小说,这才不浪费Cortana甜美的声音嘛!下面给大家介绍Win10使用PowerShelll让Cortana朗读小说的操作技巧。图1:Cortana图2...
  • Win10使用Cortana添加提醒的小妙招

    Win10使用Cortana添加提醒的小妙招


      Cortana(小娜)想必大家已经不再陌生了,她就像苹果iOS中的Siri一样,是个智能秘书。现在你要添加一个提醒,可以不必手动设置,对Cortana说一句话,她会自动帮你添加提醒。
      操作方法
      1.点击搜索框,对Cortana说“提醒我今天下午三点开会”,小编这里以输入代替。
      2.Cortana自动识别,点击提醒。
      3.设置便完成了。&...
  • Win10使用命令修复桌面图标缓存的操作技巧

    Win10使用命令修复桌面图标缓存的操作技巧


      大家在使用Win10系统的过程中,肯定会碰到桌面图标缓存的问题,很多伙伴可能会使用第三方工具来进行修复,其实我们只需使用一个命令,即可轻松搞定桌面图标缓存,操作方法非常简单,下面我们一起来看看。
      Win10使用命令修复桌面图标缓存的操作方法:
      1、按Win+R键打开“运行”窗口,输入如下命令后按回车键执行:
    01ie4uinit-show复制代码
  • Win10 2004蓝屏后如何让系统自动重启?蓝屏自动重启的设置方法

    Win10 2004蓝屏后如何让系统自动重启?蓝屏自动重启的设置方法


      如果安装了一些与系统不兼容的程序,经常会遇到系统崩溃,显示蓝屏的现象。在遇到这类问题的时候,我们都需要去重启电脑来解决问题,但是每次都手动重启十分麻烦,有什么办法让它自动重启呢?下面小编就跟大家分享一下Win102004蓝屏后自动重启的设置方法。
      详细如下:
      1、右键此电脑(我的电脑),选择“属性”;
      2、此时将打开“控制”窗口,在左侧找到“高级系...