You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m running into an issue where I can’t change the audio output mode (ear speaker vs. loudspeaker) while using the SDK.
The Problem:
• The SDK automatically configures AVAudioSession every time audio starts.
• Because of this, I can’t override the settings to switch between the earpiece (like a phone call) and the loudspeaker.
• overrideOutputAudioPort(.none) has no effect because the SDK resets the audio session each time playback begins.
• Restarting AVAudioEngine isn’t an option since that’s also controlled by the SDK.
What I Need:
• A way to dynamically change the audio output (without stopping/restarting anything).
• Either:
• An exposed setting that lets me choose whether audio plays from the ear speaker or loudspeaker.
• A callback or delegate that lets me adjust AVAudioSession before playback starts.
Why This Matters:
• Apps that use this SDK (like AI assistants, chatbots, or VoIP-style features) often need a toggle for users to switch between private mode (ear speaker) and public mode (speaker) dynamically.
• Right now, the SDK locks the audio setup, and I have no way to modify it once playback starts.
Any Workarounds?
If there’s an existing way to do this without breaking the SDK’s built-in setup, I’d love to know! Thanks! 🚀
The text was updated successfully, but these errors were encountered:
Hey team,
I’m running into an issue where I can’t change the audio output mode (ear speaker vs. loudspeaker) while using the SDK.
The Problem:
• The SDK automatically configures AVAudioSession every time audio starts.
• Because of this, I can’t override the settings to switch between the earpiece (like a phone call) and the loudspeaker.
• overrideOutputAudioPort(.none) has no effect because the SDK resets the audio session each time playback begins.
• Restarting AVAudioEngine isn’t an option since that’s also controlled by the SDK.
What I Need:
• A way to dynamically change the audio output (without stopping/restarting anything).
• Either:
• An exposed setting that lets me choose whether audio plays from the ear speaker or loudspeaker.
• A callback or delegate that lets me adjust AVAudioSession before playback starts.
Why This Matters:
• Apps that use this SDK (like AI assistants, chatbots, or VoIP-style features) often need a toggle for users to switch between private mode (ear speaker) and public mode (speaker) dynamically.
• Right now, the SDK locks the audio setup, and I have no way to modify it once playback starts.
Any Workarounds?
If there’s an existing way to do this without breaking the SDK’s built-in setup, I’d love to know! Thanks! 🚀
The text was updated successfully, but these errors were encountered: