当前位置: win10之家 > win10电脑教程 >

技术员细说win10系统朗读选中文本的修复方法

时间:2021-03-16 04:48 作者:win10系统助手 来源:win10系统教程之家

有很多网友在使用电脑的过程总难免会遇到win10系统朗读选中文本的情况。大部分网友还不知道win10系统朗读选中文本的问题应该怎么处理。最近有不少用户到本站咨询win10系统朗读选中文本的问题该怎么处理。只需要你依照1、将以下代码复制为.ps1文件保存好,打开PowerShell(管理员),把执行.ps1文件。当然也可以复制之后直接执行命令; 2、点击开始菜单 -- windows 系统 -- 控制面板 ;就可以了。下面小编就给大家介绍一下win10系统朗读选中文本具体的操作方法:

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

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

1、将以下代码复制为.ps1文件保存好,打开PowerShell(管理员),把执行.ps1文件。当然也可以复制之后直接执行命令;
 
= "HKLM:SOFTWAREMicrosoftSpeech_OneCoreVoicesTokensMSTTS_V110_zhCN_HongyuM"
= "HKLM:SOFTWAREMicrosoftSpeech_OneCoreVoicesTokensMSTTS_V110_zhCN_HongyuMAttributes"
= "HKLM:SOFTWAREMicrosoftSpeechVoicesTokensMSTTS_V110_zhCN_HongyuM"
= "HKLM:SOFTWAREMicrosoftSpeechVoicesTokensMSTTS_V110_zhCN_HongyuMAttributes"
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系统朗读选中文本的操作方法到这里已经讲解完了,不会的小伙伴们来跟着小编一起学习吧!欢迎继续关注,后续会有更多精彩!

win10下载站-大山系统