番茄系统家园 - 免费重装系统!简单装系统,人人都是装机大师!
当前位置:首页>系统教程 > Win10使用PowerShelll让Cortana朗读小说的操作技巧

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

来源:番茄系统家园浏览:时间:2022-05-06 10:00:50

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

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

图1:Cortana

Win10使用PowerShelll让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. 05 New-Item -Path ,,,
  6. 06 New-ItemProperty -Path , -Name "(default)" -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"
  7. 07 New-ItemProperty -Path , -Name LangDataPath -PropertyType string -Value "%windir%\\Speech_OneCore\\Engines\\TTS\\zh-CN\\MSTTSLoczhCN.dat"
  8. 08 New-ItemProperty -Path , -Name LangUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\Data\\SharedData\\Speech_OneCore\\Engines\\TTS\\zh-CN"
  9. 09 New-ItemProperty -Path , -Name VoicePath -PropertyType string -Value "%windir%\\Speech_OneCore\\Engines\\TTS\\zh-CN\\M2052Hongyu"
  10. 10 New-ItemProperty -Path , -Name VoiceUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\Data\\SharedData\\Speech_OneCore\\Engines\\TTS\\zh-CN"
  11. 11 New-ItemProperty -Path , -Name 804 -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"
  12. 12 New-ItemProperty -Path , -Name CLSID -PropertyType string -Value "{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"
  13. 13 New-ItemProperty -Path , -Name Version -PropertyType string -Value "11.0"
  14. 14 New-ItemProperty -Path , -Name Language -PropertyType string -Value "804"
  15. 15 New-ItemProperty -Path , -Name Gender -PropertyType string -Value "Female"
  16. 16 New-ItemProperty -Path , -Name Age -PropertyType string -Value "Adult"
  17. 17 New-ItemProperty -Path , -Name DataVersion -PropertyType string -Value "11.0.2013.1022"
  18. 18 New-ItemProperty -Path , -Name SharedPronunciation -PropertyType string -Value ""
  19. 19 New-ItemProperty -Path , -Name Name -PropertyType string -Value "Microsoft Hongyu Mobile"
  20. 20 New-ItemProperty -Path , -Name Vendor -PropertyType string -Value "Microsoft"
  21. 21 New-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)" -PropertyTypestring -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 "MicrosoftHongyu Mobile - Chinese (Simplified, PRC)" New-ItemProperty -Path , -NameCLSID -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 HongyuMobile - Chinese (Simplified,PRC)”,然后单击确定按钮,你就可以让微软小娜为你阅读文本了。阅读文本内容可以使用带有文本阅读功能的文本编辑器,或者使用专门的小说阅读器,大家自己选一个自己喜欢的就行了。

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

图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. 04 Read-Host -Prompt "回车退出朗读"

复制代码

= Read-Host -Prompt "把小说拖到此处并回车开始朗读" = New-Object -ComObject SAPI.SpVoice.Speak(,5) Read-Host -Prompt "回车退出朗读"

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

图4:使用小娜朗读小说

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

推荐系统

  • 雨林木风 winxp下载 纯净版 永久激活 winxp ghost系统 sp3 系统下载

    雨林木风 winxp下载 纯净版 永久激活 winxp ghost系统 sp3 系统下载64位
    系统大小:0MB系统类型:WinXP

    雨林木风在系统方面技术积累雄厚深耕多年,打造了国内重装系统行业知名品牌,雨林木风WindowsXP其系统口碑得到许多人认可,积累了广大的用户群体,是一款稳定流畅的系统,雨林木风 winxp下载 纯净版 永久激活 winxp ghost系统 sp3 系统下载,有需要的朋友速度下载吧。

    系统等级:
    进入下载 >
  • 萝卜家园win7纯净版 ghost系统下载 x64 联想电脑专用

    萝卜家园win7纯净版 ghost系统下载 x64 联想电脑专用64位
    系统大小:0MB系统类型:Win7

    萝卜家园win7纯净版是款非常纯净的win7系统,此版本优化更新了大量的驱动,帮助用户们进行舒适的使用,更加的适合家庭办公的使用,方便用户,有需要的用户们快来下载安装吧。

    系统等级:
    进入下载 >
  • 雨林木风xp系统 xp系统纯净版 winXP ghost xp sp3 纯净版系统下载

    雨林木风xp系统 xp系统纯净版 winXP ghost xp sp3 纯净版系统下载64位
    系统大小:1.01GB系统类型:WinXP

    雨林木风xp系统 xp系统纯净版 winXP ghost xp sp3 纯净版系统下载,雨林木风WinXP系统技术积累雄厚深耕多年,采用了新的系统功能和硬件驱动,可以更好的发挥系统的性能,优化了系统、驱动对硬件的加速,加固了系统安全策略,运行环境安全可靠稳定。

    系统等级:
    进入下载 >
  • 萝卜家园win10企业版 免激活密钥 激活工具 V2023 X64位系统下载

    萝卜家园win10企业版 免激活密钥 激活工具 V2023 X64位系统下载64位
    系统大小:0MB系统类型:Win10

    萝卜家园在系统方面技术积累雄厚深耕多年,打造了国内重装系统行业的萝卜家园品牌,(win10企业版,win10 ghost,win10镜像),萝卜家园win10企业版 免激活密钥 激活工具 ghost镜像 X64位系统下载,其系统口碑得到许多人认可,积累了广大的用户群体,萝卜家园win10纯净版是一款稳定流畅的系统,一直以来都以用户为中心,是由萝卜家园win10团队推出的萝卜家园

    系统等级:
    进入下载 >
  • 萝卜家园windows10游戏版 win10游戏专业版 V2023 X64位系统下载

    萝卜家园windows10游戏版 win10游戏专业版 V2023 X64位系统下载64位
    系统大小:0MB系统类型:Win10

    萝卜家园windows10游戏版 win10游戏专业版 ghost X64位 系统下载,萝卜家园在系统方面技术积累雄厚深耕多年,打造了国内重装系统行业的萝卜家园品牌,其系统口碑得到许多人认可,积累了广大的用户群体,萝卜家园win10纯净版是一款稳定流畅的系统,一直以来都以用户为中心,是由萝卜家园win10团队推出的萝卜家园win10国内镜像版,基于国内用户的习惯,做

    系统等级:
    进入下载 >
  • windows11下载 萝卜家园win11专业版 X64位 V2023官网下载

    windows11下载 萝卜家园win11专业版 X64位 V2023官网下载64位
    系统大小:0MB系统类型:Win11

    萝卜家园在系统方面技术积累雄厚深耕多年,windows11下载 萝卜家园win11专业版 X64位 官网正式版可以更好的发挥系统的性能,优化了系统、驱动对硬件的加速,使得软件在WINDOWS11系统中运行得更加流畅,加固了系统安全策略,WINDOWS11系统在家用办公上跑分表现都是非常优秀,完美的兼容各种硬件和软件,运行环境安全可靠稳定。

    系统等级:
    进入下载 >