기술 자료

​
​

Development

User Acquisition

Monetization

산업 분야

Vivox Core SDK

Vivox Core SDK

이 페이지는 선택한 언어로 제공되지 않습니다.
Vivox
​
​
Vivox Core SDK
  • Overview
  • Before you begin
  • Get started
  • Release notes
  • Developer Guide
    • Client SDK basics
    • Channels
      • Channel name criteria
      • Channel types
      • Echo channels
      • Positional channels
        • Large 3D channels setting
        • Positional channel parameters
        • Positional channel configuration
      • Volume differences
      • Channel identifiers for large scale games
      • Participant events
      • Channel webhooks
      • Join a channel
      • Leave a channel
      • Kick a user from a channel
      • Manage session groups
      • Audio injection
      • Methods for setting audio levels
      • Derumbler
      • Automatic connection recovery
    • Presence management
    • Messaging
    • Manage audio
    • Couch co-op
    • Android app development
    • iOS app development
    • macOS app development
    • Windows app development
    • Real-time recording
    • Speech-to-text audio transcription
    • Text-to-speech
    • Troubleshooting
  • Reference
  • Privacy overview
  1. Vivox Core SDK documentation

Positional channel parameters

Configure positional audio for 3D voice.
읽는 시간 3분
최근 업데이트: 8달 전

Developers can optionally specify parameters for positional (d) channels by using an extended syntax in the channelid portion of the channel URI.
참고
Positional channel URIs with different 3D property parameters are considered different channels.
Immediately following the channelid, and before the "@", add "!p-" followed by hyphen-delimited parameters that indicate 3D channel property values in the following format:
!p-{max_range}-{clamping_distance}-{rolloff}-{distance_model}
참고
You can represent the
max_range
and
clamping_distance
in any units, but their units must match.
The channel parameters are:
  • {max_range}
    : The maximum distance from the listener at which you can hear a speaker. This must be an integer > 0.
    • If you want a lower
      max_range
      (For example, to limit the range of received texts), you can increase rolloff accordingly.
  • {clamping_distance}
    : The distance from the listener at which a speaker’s voice is heard at its original volume. This must be an integer in the range 0 <=
    clamping_distance
    <=
    max_range
    . Consider this to be the expected close-by conversational distance.
    • The
      clamping_distance
      sounds the most realistic when it is half the height of a typical speaking entity in your game. Consider adjusting this value if your players are shorter or taller than typical adult humans.
  • {rolloff}
    : The strength of the audio fade effect as the speaker moves away from the listener. This must be a floating point value >= 0 that is rounded to three decimal places. The best starting point for each
    distance_model
    is a rolloff of 1.0.
  • {distance_model}
    : The model that determines voice volume at different distances.
    • 1 = inverse-clamped (Default, most acoustically accurate.)
    • 2 = linear-clamped
    • 3 = exponent-clamped
      • When using the default
        distance_model
        value, if you want voice chat to naturally fade to near zero loudness at the edge of the
        max_range
        instead of being abruptly cut off, then set the
        max_range
        to a minimum of: 32 ×
        clamping_distance
        ÷
        rolloff
        .
참고
You must use the same units as those used for the channel parameters when reporting your actor’s position by using the Set3DPosition method.
Depending on the amount of ambient game noise or music, you might want to adjust the parameter values to ensure that voice chat is heard only at the distances you want.
When using the exponent-clamped
distance_model
, we recommend keeping the
clamping_distance
value at 1 or greater. We also recommend that you adjust the value of the rolloff parameter based on the following formula: rolloff = 3 ÷ (1 + 1.75 × log10(
clamping_distance
)).
The following code displays an example string with parameter syntax. You can construct the string manually or by using the method
vx_get_positional_channel_uri()
:
// The Vivox SDK must be initializedchar *uri = vx_get_positional_channel_uri("channelid", "domain.vivox.com", 30, 1, 1.000, channel_rolloff_curve_type_inverse_distance_clamped, "issuer");// returns "sip:confctl-d-issuer.channelid!p-30-1-1.000-1@domain.vivox.com". . .vx_free(uri);
The following channel name is an example of what is passed to the Vivox servers when working with access tokens:
sip:confctl-d-blindmelon-AppName.match72-team1-prox!p-30-1-1.000-1@tla.vivox.com
For more information, refer to the Access Token Developer Guide.

Copyright © 2026 Unity Technologies
법률 정보개인정보 처리방침쿠키Documentation Terms of Use개인 정보 판매 또는 공유 금지개인정보 보호 선택(쿠키 설정)

'Unity', Unity 로고 및 기타 Unity 상표는 미국 및 기타 지역 내 Unity Technologies 또는 그 계열사의 상표 또는 등록상표입니다(자세한 내용은 여기에서 확인하세요). 기타 명칭 또는 브랜드는 해당 소유자의 상표입니다.

일부 페이지는 편의를 위해 기계 번역되었으며 부정확한 내용이 있을 수 있습니다. 정보가 상충되는 경우, 영어 버전을 우선으로 참조하세요.


    이 페이지의 문제 보고