기술 자료

​
​

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
    • Presence management
    • Messaging
    • Manage audio
    • Couch co-op
    • Android app development
    • iOS app development
      • Required Info.plist settings for iOS apps
      • Acoustic echo cancellation
      • Initialize the AVAudioSession on app startup
      • AVAudioSessionModeVoiceChat
      • Disable the Vivox SDK internal AEC
      • iOS known limitations
    • 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
  2. iOS app development

Acoustic echo cancellation

Learn about acoustic echo cancellation on iOS.
읽는 시간 2분
최근 업데이트: 8달 전

When an iOS device plays and records audio at the same time, there is the possibility that a capture device could pick up the audio that is playing. The Vivox SDK includes acoustic echo cancellation (AEC), which helps to prevent this type of audio capture from occurring.
By default, the Vivox SDK leverages the platform AEC provided by Apple, which is enabled or disabled by using dynamic voice processing switching (DVPS).
DVPS is enabled by default. To disable DVPS, perform either of the following actions:
참고
Disabling DVPS is not recommended.
  • When you initialize the Vivox SDK, configure the dynamic_voice_processing_switching parameter.
  • After the you initialize the Vivox SDK, call vx_set_dynamic_voice_processing_switching_enabled().
DVPS uses the following logic for enabling or disabling platform AEC:
  • When the client attempts to access the microphone (for example, when joining a session), platform AEC gets enabled.
  • When the client stops accessing the microphone (for example, when setting the capture device to “No Device” or when leaving all sessions), platform AEC gets disabled.
DVPS causes Vivox to play and record audio by using a Voice-Processing I/O audio unit. It also makes changes to the shared AVAudioSession instance to ensure that the right category and mode are selected. When platform AEC is enabled, the AVAudioSessionCategory is set to AVAudioSessionCategoryPlayAndRecord, and the AVAudioSessionMode is set to AVAudioSessionModeVoiceChat. After all Vivox voice sessions are removed, DVPS automatically switches back to the original AVAudioSession configuration. For optimal results, before you initialize the Vivox SDK, we recommend that you set the AVAudioSessionCategory to AVAudioSessionCategoryPlayback.
DVPS enforces the use of the Bluetooth Headset Profile (HSP) when accessing the microphone on a connected Bluetooth device. This ensures that the headset microphone is used instead of the device microphone to provide a better voice chat experience.
In some scenarios, it might be preferable to prevent the Vivox SDK from making changes to the shared AVAudioSession instance. To manually control platform AEC, disable dynamic voice processing switching (DVPS), and then use the
vx_set_platform_aec_enabled()
function to enable or disable platform AEC. This function reconfigures the audio unit in the Vivox SDK to Voice-Processing I/O or Remote I/O when enabled or disabled, respectively.

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

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

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


    이 페이지의 문제 보고