# Achieve high audio quality (/en/realtime-media/broadcast-streaming/build/optimize-quality-and-connection/best-practices-sound-quality/electron)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Some use-cases, such as karaoke sessions, podcasts, and performance-based chats, require a high-quality audio experience. This page shows you how to achieve clear high-definition audio, without noise or interference in your app.

    ## General settings [#general-settings-5]

    To improve the audio quality experience, consider the following:

    ### Set audio encoding properties [#set-audio-encoding-properties-4]

    Call [`setAudioProfile`](https://api-ref.agora.io/en/voice-sdk/electron/4.x/API/class_irtcengine.html#api_irtcengine_setaudioprofile) to set the profile to `AudioProfileMusicHighQuality` (4) and scenario to `AudioScenarioGameStreaming` (3). It uses a 48 kHz sampling rate, music encoding, two channels, and the maximum encoding rate is 128 Kbps.

    ```typescript
    abstract setAudioProfile(
      profile: AudioProfileType,
      scenario?: AudioScenarioType
     ): number;
    ```

    ### Set audio scenario [#set-audio-scenario-3]

    Call [`setAudioScenario`](https://api-ref.agora.io/en/voice-sdk/electron/4.x/API/class_irtcengine.html#api_irtcengine_setaudioscenario) to set the audio scenario to high-quality `AUDIO_SCENARIO_GAME_STREAMING` (3).

    ```typescript
    abstract setAudioScenario(scenario: AudioScenarioType): number;
    ```

    ## Sound card settings [#sound-card-settings-5]

    This section only applies to users using sound cards.

    ### Disable 3A [#disable-3a-5]

    Video SDK turns on 3A by default. In audio processing, 3A stands for Acoustic Echo Cancellation (AEC), Active Noise Suppression (ANS), and Automatic Gain Control (AGC). Sound card devices usually provide some built-in audio processing, such as echo and noise cancellation. Currently, if 3A is enabled in the application layer, it may cause over-processing of the audio signal and interference between different algorithms may impact sound quality. Best practice is that users with sound cards disable the 3A function by calling [`setParameters`](https://api-ref.agora.io/en/video-sdk/electron/4.x/API/class_irtcengine.html#api_irtcengine_setparameters).

    ```typescript
    setParameters("{\"che.audio.aec.enable\":false}") // Turn off echo cancellation
    setParameters("{\"che.audio.ans.enable\":false}") // Turn off noise reduction
    setParameters("{\"che.audio.agc.enable\":false}") // Turn off gain control
    ```

    ### Turn on stereo capture [#turn-on-stereo-capture-4]

    Call [`setAdvancedAudioOptions`](https://api-ref.agora.io/en/video-sdk/electron/4.x/API/class_irtcengine.html#api_irtcengine_setadvancedaudiooptions) to set the number of audio pre-processing channels to `AudioProcessingStereo` (2), that is, use two channels to collect and send stereo sound.

    ```typescript
    abstract setAdvancedAudioOptions(options: AdvancedAudioOptions): number;
    ```

    
  
      
  
      
  
      
  
