기술 자료

​
​

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
      • 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

Methods for setting audio levels

Learn how to set audio input levels.
읽는 시간 2분
최근 업데이트: 8달 전

The Vivox SDK uses various methods for setting audio input levels. You can use these requests to set the render device and capture device level for a user, for specific users in a single session, for specific users in an entire session, or for every participant in every session.
  • vx_req_session_set_participant_volume_for_me
    • Takes in the session handle for a session, the participant URI (as a char* string) for the target user, and the volume to set (between 0 and 100, with 50 acting as normal speaking volume).
    • The server sets the participant volume in the specified section to the indicated value for only the local user, and sends out a
      vx_resp_session_set_participant_volume_for_me
      response.
  • vx_req_aux_set_speaker_level
    • Sets the incoming audio level for all sessions playing through the user’s output device.
    • Takes in an int for volume (between 0 and 100, with 50 acting as normal speaking volume), and then sets the volume of the user’s output device to that int.
  • vx_req_aux_set_mic_level
    • Sets the input device’s level.
    • Takes in a single int for volume (between 0 and 100, with 50 acting as normal speaking volume), and then sets the local user's input device volume in the Vivox SDK to that level.
  • vx_req_sessiongroup_set_focus
    • Focus on a single session group.
    • The audible volume of this group is raised relative to the channels that are not being focused on.
    • Takes in the session handle for the target session group to focus on, and then begins boosting all audio that is playing through that channel.
    • Use this with the session handle of a single session to undo this effect
    • Use this with a single session group to give all sessions in a session group equal priority and focus.
The following code displays an example implementation for setting both input and output audio levels:
void SetMicrophoneVolume(int level){ vx_req_aux_set_mic_level_t *req; vx_req_aux_set_mic_level_create(&req); req->level = level; vx_issue_request3(&req->base, &request_count);}void SetSpeakerVolume(int volume){ vx_req_aux_set_speaker_level_t *req; vx_req_aux_set_speaker_level_create(&req); req->level = level; vx_issue_request3(&req->base, &request_count);}

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

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

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


    이 페이지의 문제 보고