public sealed class AudioStream.Types.AudioMapping : IMessage<AudioStream.Types.AudioMapping>, IEquatable<AudioStream.Types.AudioMapping>, IDeepCloneable<AudioStream.Types.AudioMapping>, IBufferMessage, IMessage
Reference documentation and code samples for the Live Stream v1 API class AudioStream.Types.AudioMapping.
The mapping for the input streams and audio channels.
Required. The Channel
[InputAttachment.key][google.cloud.video.livestream.v1.InputAttachment.key]
that identifies the input that this audio mapping applies to. If an
active input doesn't have an audio mapping, the primary audio track in
the input stream will be selected.
Required. The zero-based index of the track in the input stream.
All [mapping][google.cloud.video.livestream.v1.AudioStream.mapping]s in
the same [AudioStream][google.cloud.video.livestream.v1.AudioStream] must
have the same input track.
Required. The zero-based index of the channel in the output audio stream.
Must be consistent with the
[input_channel][google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel].
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAudioStream.Types.AudioMapping\u003c/code\u003e class is used for mapping input audio streams and channels for Live Stream v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for deep cloning and message handling.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties to control audio mapping, like \u003ccode\u003eGainDb\u003c/code\u003e for volume adjustment, \u003ccode\u003eInputChannel\u003c/code\u003e and \u003ccode\u003eInputTrack\u003c/code\u003e to identify input audio, \u003ccode\u003eInputKey\u003c/code\u003e to match the correct input, and \u003ccode\u003eOutputChannel\u003c/code\u003e to define the output audio channel.\u003c/p\u003e\n"],["\u003cp\u003eThere are multiple versions available for the \u003ccode\u003eAudioStream.Types.AudioMapping\u003c/code\u003e, with version 1.8.0 being the most recent and version 1.0.0 being the oldest, found in the reference documentation.\u003c/p\u003e\n"]]],[],null,["# Live Stream v1 API - Class AudioStream.Types.AudioMapping (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.8.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.7.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.6.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.5.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.4.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.3.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.2.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.1.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/1.0.0/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping) \n\n public sealed class AudioStream.Types.AudioMapping : IMessage\u003cAudioStream.Types.AudioMapping\u003e, IEquatable\u003cAudioStream.Types.AudioMapping\u003e, IDeepCloneable\u003cAudioStream.Types.AudioMapping\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Live Stream v1 API class AudioStream.Types.AudioMapping.\n\nThe mapping for the input streams and audio channels. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AudioStream.Types.AudioMapping \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AudioStream](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream)[Types](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types)[AudioMapping](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AudioStream](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream)[Types](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types)[AudioMapping](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AudioStream](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream)[Types](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types)[AudioMapping](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1.AudioStream.Types.AudioMapping), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Video.LiveStream.V1](/dotnet/docs/reference/Google.Cloud.Video.LiveStream.V1/latest/Google.Cloud.Video.LiveStream.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Video.LiveStream.V1.dll\n\nConstructors\n------------\n\n### AudioMapping()\n\n public AudioMapping()\n\n### AudioMapping(AudioMapping)\n\n public AudioMapping(AudioStream.Types.AudioMapping other)\n\nProperties\n----------\n\n### GainDb\n\n public double GainDb { get; set; }\n\nAudio volume control in dB. Negative values decrease volume,\npositive values increase. The default is 0.\n\n### InputChannel\n\n public int InputChannel { get; set; }\n\nRequired. The zero-based index of the channel in the input stream.\n\n### InputKey\n\n public string InputKey { get; set; }\n\nRequired. The `Channel`\n\\[InputAttachment.key\\]\\[google.cloud.video.livestream.v1.InputAttachment.key\\]\nthat identifies the input that this audio mapping applies to. If an\nactive input doesn't have an audio mapping, the primary audio track in\nthe input stream will be selected.\n\n### InputTrack\n\n public int InputTrack { get; set; }\n\nRequired. The zero-based index of the track in the input stream.\nAll \\[mapping\\]\\[google.cloud.video.livestream.v1.AudioStream.mapping\\]s in\nthe same \\[AudioStream\\]\\[google.cloud.video.livestream.v1.AudioStream\\] must\nhave the same input track.\n\n### OutputChannel\n\n public int OutputChannel { get; set; }\n\nRequired. The zero-based index of the channel in the output audio stream.\nMust be consistent with the\n\\[input_channel\\]\\[google.cloud.video.livestream.v1.AudioStream.AudioMapping.input_channel\\]."]]