({{, (RefLink[AudioChannelAssignment, paclet:ref/AudioChannelAssignment]) 
is an option for (RefLink[Audio, paclet:ref/Audio]) and related functions that specifies a mapping from audio channels to available speakers of the output audio device.}})

OpenersNotesSection(Spacer1)Details

Channel assignments can be specified when constructing an (RefLink[Audio, paclet:ref/Audio]) or (RefLink[AudioStream, paclet:ref/AudioStream]) object.

Channel assignment specifies a mapping from audio channels to available speakers.

Typical settings include:

Explicit channels (Subscript[out, i]) can be any of the following:

For a 5-channel input and 2 outputs, the channel assignments are equivalent to:

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

By default, a mono signal is played on both output channels:

a=Import["ExampleData/rule30.wav"]

Play it only on the right channel:

Audio[a,AudioChannelAssignment->{2}]

Invert the channels of a stereo recording:

a=ExampleData[{"Audio","MaleVoice"},"Audio"];

Audio[a,AudioChannelAssignment->{2,1}]

OpenersExampleSection1(Spacer1)Scope  (1)

In a multichannel recording, the channels are automatically assigned:

a=ExampleData[{"Audio","Walking"},"Audio"]

For a four-channel audio sample, default assignment is {1,2,1,2}. Switch the left and right channels:

Audio[a,AudioChannelAssignment->{2,1,2,1}]

Only play the left channels:

Audio[a,AudioChannelAssignment->{1,None,1,None}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[Audio, paclet:ref/Audio])  ▪  (RefLink[AudioPlay, paclet:ref/AudioPlay])  ▪  (RefLink[AudioPan, paclet:ref/AudioPan])  ▪  (RefLink[AudioChannelMix, paclet:ref/AudioChannelMix])  ▪  (RefLink[AudioChannels, paclet:ref/AudioChannels])  ▪  (RefLink[AudioOutputDevice, paclet:ref/AudioOutputDevice])  ▪  (RefLink[$AudioOutputDevices, paclet:ref/$AudioOutputDevices])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Audio Representation, paclet:guide/AudioRepresentation])}})}})