CallAutomationModelFactory.AudioMetadata Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of audio meta data.
public static Azure.Communication.CallAutomation.AudioMetadata AudioMetadata(string mediaSubscriptionId, string encoding, int sampleRate, int channels, int length);
static member AudioMetadata : string * string * int * int * int -> Azure.Communication.CallAutomation.AudioMetadata
Public Shared Function AudioMetadata (mediaSubscriptionId As String, encoding As String, sampleRate As Integer, channels As Integer, length As Integer) As AudioMetadata
Parameters
- mediaSubscriptionId
- String
The media subscription id.
- encoding
- String
The audio encoding.
- sampleRate
- Int32
The audio sample rate.
- channels
- Int32
The number of audio channels.
- length
- Int32
The length of the audio in milliseconds.
Returns
A new instance of AudioMetadata(String, String, Int32, Int32, Int32) for mocking.