Asryesno
此説明頁面適用於 Desktop Studio。 此資訊亦適用於 Studio。
|
|
允許您捕獲聯絡人所提供的「是」或「否」回應,並將其儲存在指令碼變數中。 此動作常用於確認之前的回應是否正確。 Asryesno包含一個預先填入的語法檔案,可識別「是」和「no」的常見替代說法。 例如,下列任何回應都會觸發 OnYes 分支:yes、是的、當然、對的。 ASR 動作僅在已為您的組織啟用 ASR 時顯示。 ASR 是一項可選功能。 請向您的客戶代表查詢更多資訊。 |
支援的程式碼類型
|
|
| 電話 |
輸入屬性
這些屬性定義了動作執行時使用的資料。
|
屬性 |
描述 |
|---|---|
| Caption |
Enter a short phrase that uniquely identifies this action in the script. The caption appears on the script canvas under the action icon. |
| 序列 |
```
定義動作播放的提示。 Prompt可以是預先錄製的WAV音訊檔案,或是文字轉語音 如果提示是一個音訊檔案,請輸入括在雙引號中的檔案名。 例如,「greeting.wav」。 如果音訊檔案位於不同的資料夾中,請包含檔案路徑。 例如,如果指令碼在根資料夾中,而音訊檔案在向下兩層的子資料夾中,則輸入 "Subfolder\Subfolder2\Audio-file.wav"。 如果程式碼位於根目錄下一層的子資料夾中,而音訊檔案位於同一層級的另一個子資料夾中,請輸入 "\..\Subfolder\Audio-file.wav". 如果Prompt為文字轉語音,請輸入您想要TTS "%Your account balance is""silence.wav" "${accountBalance}" |
| 短語 |
使用此屬性來記錄提示包含的文字。 該指令碼不會使用此屬性。 由於某些提示可能很複雜並且包含多個區段,因此包括並非按序列欄位所要求之格式編寫的文字可能會很有用。 |
| MinConfidence |
確定某個識別匹配項可接受的最低識別率 (%)。 如果識別率低於此值,則將採用 OnNoConfidence 分支。 若要變更值,可輸入 1 到 100 的整數。 預設值為 50。 |
| TimeoutSeconds |
決定IVR 重要 計時器僅在 Prompt 完全結束後才會開始計時。 但是,系統具有兩分鐘(120 秒)的內建限制,其中包括提示的持續時間。 如果在執行動作期間達到此限制,則所有使用中的提示將會中止,且程式碼將採用 OnError 分支。 因此,您應該知道提示的持續時間,並為該欄位設定一個值,以確保該動作處於有效狀態的時間少於兩分鐘。 |
| ResultVarName | Determines the name of the variable that holds the recognized result of the contact's spoken or manually entered input. For example, if the prompt asked the contact to say or enter their date of birth, the result would be stored in the variable defined by this property. The default value is the name of the action + "Result" (for example, ASRDIGITSResult). If the contact provides spoken input and the ASR engine fails to find a match, this variable is not populated. Note that if the action has an OnDTMF branch, you must use a Capture action to pull a variable value out of the buffer (DTMF values are automatically stored in a buffer). |
| ConfidenceVarName\n\t\t\t\t | ``` Determines the name of the variable that holds the confidence percentage returned by the ASR engine. The default value is ASRConf. ``` |
| DetectDTMF |
允許您配置 IVR 指令碼來處理所說和手動輸入的 DTMF 如果值為True,則同時接受語音及 DTMF 輸入。 如果聯絡人按下 DTMF 數字,該指令碼將立即停止任何正在執行的提示序列,並採用 OnDTMF 分支。 在此動作執行期間,不會考慮聯絡人的話語。 如果值為 False,即使聯絡人按下按鍵,系統亦不會識別 DTMF 輸入。 雖然在此動作執行期間按下的任何 DTMF 數字都將儲存在 DTMF 緩衝區中,但此動作將會採用 NoConfidence 分支。 此動作有 OnDTMF 分支,因此聯絡人的任何 DTMF 項目都將導致採用此分支。 DTMF 選擇產生的任何變數都均不會沿此分支傳遞。 您必須在 OnDTMF 分支上使用 Capture 動作,以從 DTMF 輸入擷取並傳遞變數。 如果您將此屬性設定為True,則Use1And2屬性必須設定為False。 無法在同一動作中同時啟用兩個屬性。 |
| ClearDigits |
```
當聯絡人在其電話按鍵上按下某個按鍵時,所產生的 DTMF 音會儲存在緩衝區中。 當ClearDigits 設定為 True時,該緩衝區會在此動作開始時清除。 如果設定為 False,且 DTMF 音調在緩衝區中被傳到此動作,則 DTMF 音調會被立即檢測到。 該動作接著會呼叫 OnDigit 或 OnDTMF 分支,即使該按鍵是與較早的動作相關聯。 是/True 是預設值。 \t ``` |
| Use1And2 |
Allows you to use the DTMF tones for 1 and 2 to mean yes and no. 預設值為 False。如果您接受預設值,請設定您的程式碼,以便將適當的按鍵選項連接至 是 和 否 分支條件。 如果您啟用此屬性,則必須將 DetectDTMF 屬性設定為 False。 無法在同一動作中同時啟用兩個屬性。 |
結果分支條件
結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。
|
條件 |
描述 |
|---|---|
| Default | ``` Path taken unless the script meets a condition that requires it to take one of the other branches. It is also taken if the action's other branches are not defined. ``` |
| OnYes |
如果聯絡人提供是的答覆,採用的分支。 |
| OnNo |
如果聯絡人提供否的答覆,採用的分支。 |
| OnNoConf | Path taken if the recognition percentage returned by the ASR engine is less than the MinConfidence value. |
| OnTimeout | Path taken if there is no response for the number of seconds specified. |
| OnDTMF | Path taken if the DetectDTMF property is set to TRUE and DTMF digits are present in the buffer. |
| OnError | Path taken when there is an unexpected problem (for example, poor connectivity, syntax errors, and so forth). The _ERR variable should be populated with a condensed explanation of the problem. |
小貼士及技巧
- 您可以傳遞來自Voiceparams動作的languageLocale變數,此變數會設定該動作所偵測的語言。
- If you set Use1And2 property to True, you are not required to pull the variable values with a Capture action. 如果您將Use1And2屬性設定為True,則不需要使用Capture動作來提取變數值。
- DTMF 音調將儲存在緩衝區。 如果動作包含 OnDTMF 或者 OnDigits 分支,雙音多頻值必須透過 Capture 動作從緩衝區中提取。
- 如果您想擷取多個雙音多頻,該動作會在您按下第一個 OnDTMF 分支(包括 * 和 #)時立即執行 DTMF。 在此範例中,您必須使用Capture動作來捕獲多次按鍵。
- 如緩衝區中存在任何 DMTF,且 ClearDigits 未設定為 True,則會立即採用 OnDTMF 分支,並需要 Capture 動作。