New-CsOrganizationalAutoAttendantPrompt

 

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

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

New-CsOrganizationalAutoAttendantPrompt -AudioFilePrompt <AudioFile> <COMMON PARAMETERS>

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

New-CsOrganizationalAutoAttendantPrompt -TextToSpeechPrompt <String> <COMMON PARAMETERS>

COMMON PARAMETERS: [-DomainController <Fqdn>] [-Force <SwitchParameter>] [-Tenant <Guid>]

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

Required

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

Required

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

Required

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.

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-CsOrganizationalAutoAttendantPrompt cmdlet creates new instances of the Microsoft.Rtc.Management.Hosted.OAA.Models.Prompt object.

 
顯示: