Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class AudioMapping.
The mapping for the input streams and audio channels.
Generated from protobuf message google.cloud.video.livestream.v1.AudioStream.AudioMapping
Namespace
Google \ Cloud \ Video \ LiveStream \ V1 \ AudioStream
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ input_key
string
Required. The ChannelInputAttachment.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.
↳ input_track
int
Required. The zero-based index of the track in the input stream. All mappings in the same AudioStream must have the same input track.
↳ input_channel
int
Required. The zero-based index of the channel in the input stream.
↳ output_channel
int
Required. The zero-based index of the channel in the output audio stream. Must be consistent with the input_channel.
↳ gain_db
float
Audio volume control in dB. Negative values decrease volume, positive values increase. The default is 0.
getInputKey
Required. The ChannelInputAttachment.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.
Returns
Type
Description
string
setInputKey
Required. The ChannelInputAttachment.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.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getInputTrack
Required. The zero-based index of the track in the input stream.
[[["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."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class AudioMapping (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream.AudioMapping)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.AudioStream.AudioMapping)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.AudioStream.AudioMapping)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.AudioStream.AudioMapping)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.AudioStream.AudioMapping)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.AudioStream.AudioMapping)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.AudioStream.AudioMapping)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.AudioStream.AudioMapping)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.AudioStream.AudioMapping)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.AudioStream.AudioMapping) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class AudioMapping.\n\nThe mapping for the input streams and audio channels.\n\nGenerated from protobuf message `google.cloud.video.livestream.v1.AudioStream.AudioMapping`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1 \\\\ AudioStream\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getInputKey\n\nRequired. The `Channel`\n[InputAttachment.key](/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment#_Google_Cloud_Video_LiveStream_V1_InputAttachment__getKey__)\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### setInputKey\n\nRequired. The `Channel`\n[InputAttachment.key](/php/docs/reference/cloud-video-live-stream/latest/V1.InputAttachment#_Google_Cloud_Video_LiveStream_V1_InputAttachment__getKey__)\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### getInputTrack\n\nRequired. The zero-based index of the track in the input stream.\n\nAll [mapping](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream#_Google_Cloud_Video_LiveStream_V1_AudioStream__getMapping__)s in\nthe same [AudioStream](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream) must\nhave the same input track.\n\n### setInputTrack\n\nRequired. The zero-based index of the track in the input stream.\n\nAll [mapping](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream#_Google_Cloud_Video_LiveStream_V1_AudioStream__getMapping__)s in\nthe same [AudioStream](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream) must\nhave the same input track.\n\n### getInputChannel\n\nRequired. The zero-based index of the channel in the input stream.\n\n### setInputChannel\n\nRequired. The zero-based index of the channel in the input stream.\n\n### getOutputChannel\n\nRequired. The zero-based index of the channel in the output audio stream.\n\nMust be consistent with the\n[input_channel](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream.AudioMapping#_Google_Cloud_Video_LiveStream_V1_AudioStream_AudioMapping__getInputChannel__).\n\n### setOutputChannel\n\nRequired. The zero-based index of the channel in the output audio stream.\n\nMust be consistent with the\n[input_channel](/php/docs/reference/cloud-video-live-stream/latest/V1.AudioStream.AudioMapping#_Google_Cloud_Video_LiveStream_V1_AudioStream_AudioMapping__getInputChannel__).\n\n### getGainDb\n\nAudio volume control in dB. Negative values decrease volume,\npositive values increase. The default is 0.\n\n### setGainDb\n\nAudio volume control in dB. Negative values decrease volume,\npositive values increase. The default is 0."]]