New-CsOnlineAudioFile

 

上次修改主題的時間:2017-06-20

Use the New-CsOnlineAudioFile cmdlet to create a new audio file.

New-CsOnlineAudioFile -Content <Byte[]> -FileName <String> [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-Tenant <Guid>]

This example creates a new audio file using the WAV content that has a filename of Hello.wav.

$content = Get-Content "C:\Media\Welcome.wav" -Encoding byte -ReadCount 0
$audioFile = New-CsOnlineAudioFile -FileName "Hello.wav" -Content $content

The New-CsOnlineAudioFile cmdlet creates a new audio file for use with the Organizational Auto Attendant (OAA) service.

 

Parameter Required Type Description

Content

Required

System.Byte[]

The Content parameter represents the content of the audio file. Supported formats are WAV (uncompressed, linear PCM with 8/16/32-bit depth in mono or stereo), WMA (mono only), and MP3. The audio file content cannot be more 5MB.

FileName

Required

System.String

The FileName parameter is the name of the audio file. For example, the file name for the file C:\Media\Welcome.wav is Welcome.wav.

DomainController

Optional

Microsoft.Rtc.Management.Deploy.Fqdn

PARAMVALUE: Fqdn

Force

Optional

System.Management.Automation.SwitchParameter

PARAMVALUE: SwitchParameter

Tenant

Optional

System.Guid

PARAMVALUE: Guid

BypassDualWrite

Optional

System.Boolean

PARAMVALUE: $true | $false

The New-CsOnlineAudioFile cmdlet creates new instances of the Microsoft.Rtc.Management.Hosted.Online.Models.AudioFile object.

 
顯示: