Skip to content

adjustRecordingSignalVolume() not increasing the sound signal volume properly for setAudioProfile(scenario: AudioScenarioType.audioScenarioChatroom) #2339

@mehedi4958

Description

@mehedi4958

I am using: agora_rtc_engine: ^6.5.2.

It is creating the video streaming completely fine. I have also set the AudioProfile, AdvancedAudioOptions, and adjustRecordingSignalVolume to enhance the audio quality. Though changing adjustRecordingSignalVolume() is working for all other AudioScenarioType in AudioProfile, it seems not to increase the input signal volume for setAudioProfile(scenario: AudioScenarioType.audioScenarioChatroom).

Here is my code snippet:

await _engine.setAudioProfile(
      profile: AudioProfileType.audioProfileMusicHighQualityStereo,
      scenario: AudioScenarioType.audioScenarioChatroom, // working properly for other audio scenarios
    );
    await _engine.setAdvancedAudioOptions(
        options: AdvancedAudioOptions(audioProcessingChannels: 1));
    await _engine.adjustRecordingSignalVolume(400); // increasing the signal volume not working properly only for AudioScenarioType.audioScenarioChatroom

Here is the flutter doctor summary:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.2, on macOS 15.5 24F74 darwin-arm64, locale
    en-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.3)
[✓] VS Code (version 1.100.3)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Testing Device:
Samsung A12 (Android 13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions