Win10使用PowerShelll让Cortana朗读小说的操作技巧-游戏攻略-霍普软件下载网

网站首页   软件下载   游戏下载   翻译软件   电子书下载   电影下载   电视剧下载   教程攻略   音乐专区

请输入您要查询的教程攻略:

霍普软件下载网-旗舰软件下载站,将绿色免费商业版破解软件、共享软件、游戏、电影、电视剧一网打尽!

文章 Win10使用PowerShelll让Cortana朗读小说的操作技巧
分类 教程攻略
语言 zh-CN
大小
版本
下载 暂无下载
介绍     
    Win10如何使用PowerShelll让Cortana朗读小说?Cortana是Win10系统的人工智能助手,可以帮忙处理一些基本任务,比如日程安排、回答问题等,其实Cortana还有更为强大的功能,比如让Cortana为我们朗读小说,这才不浪费Cortana甜美的声音嘛!下面给大家介绍Win10使用PowerShelll让Cortana朗读小说的操作技巧。
    使用PowerShelll让Cortana朗读小说
    图1:Cortana
    使用PowerShelll让Cortana朗读小说
    图2:来至微软小娜的问候
    Win10如何使用PowerShelll让Cortana朗读小说?
    1、把下面的代码复制为.ps1文件保存好,打开PowerShell(管理员),把执行.ps1文件。当然也可以复制之后直接执行命令,都是一样的效果。
    
    01= "HKLM:\\SOFTWARE\\Microsoft\\Speech_OneCore\\Voices\\Tokens\\MSTTS_V110_zhCN_HongyuM"02= "HKLM:\\SOFTWARE\\Microsoft\\Speech_OneCore\\Voices\\Tokens\\MSTTS_V110_zhCN_HongyuM\\Attributes"03= "HKLM:\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\MSTTS_V110_zhCN_HongyuM"04= "HKLM:\\SOFTWARE\\Microsoft\\Speech\\Voices\\Tokens\\MSTTS_V110_zhCN_HongyuM\\Attributes"05New-Item -Path ,,,06New-ItemProperty -Path , -Name "(default)" -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"07New-ItemProperty -Path , -Name LangDataPath -PropertyType string -Value "%windir%\\\\Speech_OneCore\\\\Engines\\\\TTS\\\\zh-CN\\\\MSTTSLoczhCN.dat"08New-ItemProperty -Path , -Name LangUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\\\Data\\\\SharedData\\\\Speech_OneCore\\\\Engines\\\\TTS\\\\zh-CN"09New-ItemProperty -Path , -Name VoicePath -PropertyType string -Value "%windir%\\\\Speech_OneCore\\\\Engines\\\\TTS\\\\zh-CN\\\\M2052Hongyu"10New-ItemProperty -Path , -Name VoiceUpdateDataDirectory -PropertyType string -Value "%SystemDrive%\\\\Data\\\\SharedData\\\\Speech_OneCore\\\\Engines\\\\TTS\\\\zh-CN"11New-ItemProperty -Path , -Name 804 -PropertyType string -Value "Microsoft Hongyu Mobile - Chinese (Simplified, PRC)"12New-ItemProperty -Path , -Name CLSID -PropertyType string -Value "{179F3D56-1B0B-42B2-A962-59B7EF59FE1B}"13New-ItemProperty -Path , -Name Version -PropertyType string -Value "11.0"14New-ItemProperty -Path , -Name Language -PropertyType string -Value "804"15New-ItemProperty -Path , -Name Gender -PropertyType string -Value "Female"16New-ItemProperty -Path , -Name Age -PropertyType string -Value "Adult"17New-ItemProperty -Path , -Name DataVersion -PropertyType string -Value "11.0.2013.1022"18New-ItemProperty -Path , -Name SharedPronunciation -PropertyType string -Value ""19New-ItemProperty -Path , -Name Name -PropertyType string -Value "Microsoft Hongyu Mobile"20New-ItemProperty -Path , -Name Vendor -PropertyType string -Value "Microsoft"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\\\\Engines44. 我失去过感情,也知道爱如覆水,去了难收。所以只有把这种忧伤交付给时间去化解,相信爱情走就是走了,而不强加挽留。\\\\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)”,然后单击确定按钮,你就可以让微软小娜为你阅读文本了。阅读文本内容可以使用带有文本阅读功能的文本编辑器,或者使用专门的小说阅读器,大家自己选一个自己喜欢的就行了。
    使用PowerShelll让Cortana朗读小说
    图3:选择小娜的语音
    3、下面贴一段用PowerShell阅读小说的代码,同样保存为.ps1文件,然后在.ps1文件上右键,选择“使用“使用PowerShell运行”,之后把txt小说拖到PowerShell窗口中,回车,小娜就会自动为你朗读小说了,再次回车就会退出朗读!
    
    01= Read-Host -Prompt "把小说拖到此处并回车开始朗读"02= New-Object -ComObject SAPI.SpVoice03.Speak(,5)04Read-Host -Prompt "回车退出朗读"
复制代码
= Read-Host -Prompt "把小说拖到此处并回车开始朗读"= New-Object -ComObject SAPI.SpVoice.Speak(,5)Read-Host -Prompt "回车退出朗读"
    使用PowerShelll让Cortana朗读小说
    图4:使用小娜朗读小说
    上述便是让Cortana为我们朗读小说的操作方法,喜欢阅读的伙伴,如果看书看累了,不妨让小娜为您朗读哦!
    
截图
随便看

免责声明
本网站所展示的内容均来源于互联网,本站自身不存储、不制作、不上传任何内容,仅对网络上已公开的信息进行整理与展示。
本站不对所转载内容的真实性、完整性和合法性负责,所有内容仅供学习与参考使用。
若您认为本站展示的内容可能存在侵权或违规情形,请您提供相关权属证明与联系方式,我们将在收到有效通知后第一时间予以删除或屏蔽。
本网站对因使用或依赖本站信息所造成的任何直接或间接损失概不承担责任。联系邮箱:101bt@pm.me