New-CsOrganizationalAutoAttendantPrompt

 

Topic Last Modified: 2017-02-24

Use the New-CsOrganizationalAutoAttendantPrompt cmdlet to create a new prompt.

New-CsOrganizationalAutoAttendantPrompt -AudioFilePrompt <AudioFile> 

New-CsOrganizationalAutoAttendantPrompt -TextToSpeechPrompt <String> 

New-CsOrganizationalAutoAttendantPrompt -ActiveType <None | TextToSpeech | AudioFile> [-AudioFilePrompt <AudioFile>] [-TextToSpeechPrompt <String>] 

This example creates a new prompt that reads the supplied text.

$ttsPrompt = New-CsOrganizationalAutoAttendantPrompt -TextToSpeechPrompt "Welcome to Contoso!"

This example creates a new prompt that plays the selected audio file.

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

This example creates a new prompt that has both audio file and text-to-speech data, but will play the audio file when the prompt is activated (rendered).

$content = Get-Content "C:\Media\Welcome.wav" -Encoding byte -ReadCount 0
$audioFile = New-CsOnlineAudioFile -FileName "hello.wav" -Content $content
$dualPrompt = New-CsOrganizationalAutoAttendantPrompt -ActiveType -AudioFile AudioFilePrompt $audioFile -TextToSpeechPrompt "Welcome to Contoso!"


The New-CsOrganizationalAutoAttendantPrompt cmdlet creates a new prompt for the Organizational Auto Attendant (OAA) service. A prompt is either an audio file that is played, or text that is read aloud to give callers additional information. A prompt can be disabled by setting the ActiveType to None.

 

Parameter Required Type Description

ActiveType

Optional

Microsoft.Rtc.Management.Hosted.OAA.Models.PromptType

The ActiveType parameter identifies the active type (modality) of the OAA prompt.

This is explicitly required if both Audio File and TTS prompts are specified. Otherwise, it is inferred.

AudioFilePrompt

Optional

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

The AudioFilePrompt parameter represents the audio to play when the prompt is activated (rendered).

This parameter is required when audio file prompts are being created. You can create audio files by using the New-CsOnlineAudioFile cmdlet

TextToSpeechPrompt

Optional

System.String

The TextToSpeechPrompt parameter indicates the Text-to-Speech (TTS) prompt that is to be read when the prompt is activated.

This parameter is required when text to speech prompts are being created.

The New-CsOrganizationalAutoAttendantPrompt cmdlet creates new instances of the Microsoft.Rtc.Management.Hosted.OAA.Models.Prompt object.

 
Show: