文档

​
​

Development

User Acquisition

Monetization

工业

Vivox Unity SDK

Vivox Unity SDK

Vivox
​
​
Vivox Unity SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
    • Set up your project
    • Create voice and text channels
    • Messaging
    • Player management
    • Device management
    • Audio management
    • Mobile development
    • Text-to-speech
      • Text-to-speech voice options
      • Text-to-speech destinations
      • Inject a text-to-speech message
      • Queue a text-to-speech message
      • Cancel a text-to-speech message
    • Speech-to-text
    • Real-time recording
    • Server-side-recording
    • Troubleshooting
  • Tutorials
  • Reference
  1. Vivox Unity SDK 文档
  2. Vivox Unity 开发者指南
  3. 语音转文本音频听录

文本转语音语音选项

Select voice options for text-to-speech output.
阅读时间1 分钟
最后更新于 8 个月前

在注入文本转语音 (TTS) 消息或在本地读取文本之前,可以选择要用于合成语音的语音。可以随时对每个用户设置此选项。
提供两种语音:男性和女性。可以使用以下脚本列出所有可用语音:
foreach (string voiceName in VivoxService.Instance.TextToSpeechAvailableVoices){ Console.WriteLine($"Available Voice: Name=[{voiceName}]");}// Available Voice: Name=[en_US male]// Available Voice: Name=[en_US female]Console.WriteLine($"Current Voice: {VivoxService.Instance.TextToSpeechCurrentVoice()}");// Current Voice: en_US female
当调用需要语音进行合成的 TTS 方法时,系统会使用设置为该用户的当前语音的 ITTSVoice。如果未选择语音,则系统使用 Vivox SDK 默认值。

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。


    报告此页面的问题