文档

​
​

Development

User Acquisition

Monetization

工业

Vivox Unreal SDK

Vivox Unreal SDK

此页面不支持所选语言。
Vivox
​
​
Vivox Unreal SDK
  • Overview
  • Get started
  • Release notes
  • Developer guide
    • Set up your project
    • Unity Authentication Service in Unreal
    • Create voice and text channels
    • Messaging
    • Audio management
    • Muting
    • In-game moderation
    • Android app development
    • iOS app development
    • Server-side recording
    • Speech-to-text audio transcription
    • Text-to-speech
    • Real-time recording
    • Transmission
    • Troubleshooting
      • Voice activity detection
        • Parameter specifics
        • VAD adjustments
      • Vivox SDK error codes
  • Tutorials
  • Reference
  1. Vivox Unreal SDK documentation
  2. Troubleshooting

Voice Activity Detection

Understand voice activity detection in Vivox.
阅读时间2 分钟
最后更新于 8 个月前

Voice activity detection detects the presence or absence of speech in an application. In most cases, customers do not need to adjust the default voice activity detection (VAD) settings of the Vivox SDK.
The Vivox Unreal SDK does not provide an API to adjust the VAD settings. If you want to modify the code for the Unreal wrapper, you can add support for the
vx_req_aux_set_vad_properties
request from the Core SDK. You can manipulate the VAD mic gating by using these requests and handling their responses.
To use
vx_req_aux_set_vad_properties
and
vx_req_aux_get_vad_properties
, you need to add these requests to an existing endpoint or an exposed function of the Unity API, or create a new endpoint. To confirm your successful requests, ensure that you handle the responses.
Before manually tuning the VAD settings, test your setup using Automatically Adjusted VAD. Automatically Adjusted VAD is better at detecting a player speaking than the default VAD settings.
注意
Use
vad_auto
when a player uses the onboard microphone and speakers on PCs and mobile devices. Players using high-quality Bluetooth earbuds, headsets or USB headsets might not benefit from
vad_auto
as many of those devices have built-in noise reduction or directional microphones that already produce a clean voice signal.
Set
vad_auto
to 1 in the
vx_req_aux_set_vad_properties
call to enable automatic adjustment. See the example shown below to enable
vad_auto
:
vx_req_aux_set_vad_properties_t *req;vx_req_aux_set_vad_properties_create(&req);req->vad_hangover = 2000;req->vad_sensitivity = 43;req->vad_noise_floor = 576;req->vad_auto = 1;vx_issue_request(&req->base);
注意
Although the VAD ignores the other settings when
vad_auto
is enabled, you must provide valid parameters or the call will return an error. This example provides the default values for the
vad_hangover
,
vad_sensitivity
, and
vad_noise_floor
.
If the Automatically Adjusted VAD does not help, disable vad_auto by setting it to 0 and provide values for
vad_hangover
,
vad_sensitivity
, and
vad_noise_floor
.
注意
Changes to the VAD noise floor settings do not affect currently joined channels. If the ability to change VAD settings is available to the end-user, indicate that noise floor changes only take effect in the next voice session or only allow changing the noise floor channel when the client is not in-channel.

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

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

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


    报告此页面的问题