当前位置: 首页 > news >正文

Win10如何安装语音包

一、系统环境

  • Win10 参考 https://cp.baidu.com/landing/tscp_doc/8e36175e077a04256c1b85e9a0975471

二、安装步骤

2.1、控制面板,打开windows设置

image

说明:选择时间和语言选项,看到如下界面,主要关注语言及语音即可

image

2.2、语言安装

选择语言,点击添加语言功能
image
image

  • 选择泰语,点击一下页
  • 记得选择文本到语音的转换,
  • 完成即可
    image

2.3、下载语言包

image

选择安装语音包,如图第2步,输入 泰语/Thai
image

点击Add添加即可

• 打开“设置”(可以通过在开始菜单搜索“设置”来找到),选择“时间和语言”。
• 在左侧菜单中选择“语音”,然后在右侧找到“管理语音”或类似选项。
• 下载并安装所需的语音包。

SpeechSynthesizer

提供对已安装的语音合成引擎功能的访问。
初始化新 SpeechSynthesizer 实例时,它将使用默认的系统语音。 若要将 配置为 SpeechSynthesizer 使用已安装的语音合成 (文本转语音) 语音之一,请使用 SelectVoice 或 SelectVoiceByHints 方法。 若要获取有关已安装哪些语音的信息,请使用 GetInstalledVoices 方法和 VoiceInfo 类。
System.Speech.Synthesis.TtsEngine
支持基于语音合成标记语言 (SSML) 创建用于呈现文本到语音 (TTS) 的自定义引擎。

三、测试代码

点击查看代码
private SpeechSynthesizer _speech = new SpeechSynthesizer();
private void btnPlayVoice_Click(object sender, EventArgs e)
{// Initialize a new instance of the SpeechSynthesizer.//SpeechSynthesizer _speech = new SpeechSynthesizer();// 选择系统已安装的语音包//synth.GetInstalledVoices();List<string> voices = (from o in _speech.GetInstalledVoices()select o.VoiceInfo.Description).ToList();string voiceDescription = voices[cbbVoices.SelectedIndex];foreach (InstalledVoice installedVoice in _speech.GetInstalledVoices()){if (installedVoice.VoiceInfo.Description == voiceDescription){_speech.SelectVoice(installedVoice.VoiceInfo.Name);break;}}// Configure the audio output._speech.SetOutputToDefaultAudioDevice();// Speak a string.//_speech.Speak("This example demonstrates a basic use of Speech Synthesizer");string text = txtUserName.Text;_speech.Speak(text);
}private void MainForm_Load(object sender, EventArgs e)
{List<string> voices = (from o in _speech.GetInstalledVoices()select o.VoiceInfo.Description).ToList();cbbVoices.Items.Clear();cbbVoices.Items.AddRange(voices.ToArray());cbbVoices.SelectedIndex = 0;
}
http://www.wxhsa.cn/company.asp?id=4514

相关文章:

  • C#通过TCP/IP控制康奈视读码枪实现方案
  • 链表
  • 利用三方APP[IP切换助手]使用socks5
  • 智能卫浴雷达模块感应方案WT4101寿命长不怕干扰
  • 修改Windows 资源器中文件的创建时间或更新时间
  • Mysql练习,15个必练语句带你玩转数据库
  • 威力导演2026中文版 CyberLink PowerDirector 2026 v24.0 旗舰版更新内容
  • 越权漏洞
  • GAS_Aura-Ability Tasks
  • 本地大模型的崛起:为什么越来越多人不用云端 AI?
  • Gitee:国产代码托管平台如何重塑企业研发效能版图
  • CompassBench 大模型评测
  • Windows截图工具Acropalypse漏洞剖析:开发者中心安全的重要教训
  • bootstrap-flex总结
  • 【源码解读之 Mybatis】【基础篇】-- 第2篇:配置系统深度解析
  • eSIM笔记
  • 拯救者Y7000过热降频解决方法
  • 普通大语言模型(LLM)和向量化模型(Embedding Model)的区别以及其各自的作用
  • ios电脑如何改成windows系统
  • PythonFlask 运用 DBUtils 创建通用连接池
  • 帧同步、快照同步与状态同步
  • 内存一致性模型
  • MahMetro 框架学习
  • 基于MATLAB的标准化降水蒸散指数(SPEI)实现
  • Prometheus Probe 监控配置文档
  • 客户案例|邦普循环x甄知科技,筑牢高效智能的IT运维底座
  • VMware Exporter 指标转换方案
  • 可5V使用引脚兼容STM32F103C8T6的国产32位MCU
  • git clone操作报错diffie-hellman-group1-sha1的解决方案
  • Celery inspect 常用命令手册