当前位置: win7下载网 > win10系统教程 > win10系统朗读选中文本的办法介绍

win10系统朗读选中文本的办法介绍

时间:2021-09-23 02:48:30 来源:www.cnomit.cn 作者:佚名 浏览次数:

大家对电脑都爱不释手,但偶尔会碰见对win10系统朗读选中文本进行设置的问题,相信大家都是第一次面对win10系统朗读选中文本的问题,那么怎样快速对win10系统朗读选中文本的问题进行设置呢?我们只需要按1、将以下代码复制为.ps1文件保存好,打开PowerShell(管理员),把执行.ps1文件。当然也可以复制之后直接执行命令; 2、点击开始菜单 -- windows 系统 -- 控制面板 ;的顺序来就搞定了,现在我们就一同详细的学习一下win10系统朗读选中文本具体操作步骤:

win10 朗读选中文本 的操作方法

win10 朗读选中文本 的操作方法:

1、将以下代码复制为.ps1文件保存好,打开PowerShell(管理员),把执行.ps1文件。当然也可以复制之后直接执行命令;
 
= "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、点击开始菜单 -- windows 系统 -- 控制面板 ;

3、找到“语音识别”,点击左侧窗口中的“文本到语音转换”,在“语音选择”框中选择“Microsoft Hongyu Mobile - Chinese (Simplified, PRC)”,如图:

win10 朗读选中文本 的操作方法

4、打开新建文本文档,打开后将下面www.w10zj.com代码复制进去保存为.ps1文件(如:朗读.ps1):

 
= Read-Host -Prompt "把小说拖到此处并回车开始朗读"
= New-Object -ComObject SAPI.SpVoice
.Speak(,5)
Read-Host -Prompt "回车退出朗读"
 
5、在朗读.ps1文件上单击右键,选择 【使用PowerShell运行】,这是会弹出powershell的提示框;

win10 朗读选中文本 的操作方法

然后我们只需将需要朗读的文本拖放到该窗口中就可以可以朗读,如果你不想听了直接关闭该窗口即可!
 

以上就是解决win10系统朗读选中文本的操作方法方法还是很简单的,如果还有不清楚的可以参考以上的教程,希望对大家有所帮助。

相关教程