Skip to content

Force iOS speakers for Unity audio path - #387

Merged
MaxHeimbrock merged 1 commit into
mainfrom
max/ios-force-speakers-when-recording
Sep 22, 2026
Merged

MaxHeimbrock merged 1 commit into
mainfrom
max/ios-force-speakers-when-recording

Conversation

@MaxHeimbrock

@MaxHeimbrock MaxHeimbrock commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Background

When using Unity Audio on iOS in our samples today, unmuting the mic changes the audio session playout from speaker to earpiece. With this setting change they will stay on speaker.

Changes

  • Enable Force iOS Speakers When Recording in the iOS player settings of the Basic, Meet and Agents samples.
  • Scope: the setting only acts while Unity's Microphone API is recording. The PlatformAudio path is unaffected; it already configures the session itself with DefaultToSpeaker.
  • If bluetooth headsets are connected, they still win over speaker

In the Unity-audio path the SDK leaves the iOS audio session to Unity,
whose engine switches it to PlayAndRecord when Microphone.Start runs.
PlayAndRecord routes output to the receiver by default, so opening the
microphone moved playout from the loudspeaker to the earpiece. The
player setting keeps it on the speaker; verified on an iPhone with the
Meet sample.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@MaxHeimbrock MaxHeimbrock changed the title Force iOS speakers when recording in all samples Force iOS speakers for Unity audio path Sep 17, 2026
@MaxHeimbrock
MaxHeimbrock merged commit 61427d0 into main Sep 22, 2026
18 of 19 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the max/ios-force-speakers-when-recording branch September 22, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants