New-CsOnlineAudioFile

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

Syntax

New-CsOnlineAudioFile
   -FileName <String>
   -Content <Byte[]>
   [-Tenant <Guid>]
   [<CommonParameters>]

Description

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

Examples

-------------------------- Example 1 --------------------------

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

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

Required Parameters

-Content

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.

Type:System.Byte[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-FileName

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.

Type:System.string
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

Optional Parameters

-Tenant
Type:System.Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

Inputs

None

Outputs

Microsoft.Rtc.Management.Hosted.Online.Models.AudioFile