ASR

此説明頁面適用於 Studio。 此資訊亦適用於 Desktop Studio。

相依性

  • 在表述數字值中,「負數」採用硬式編碼。

  • 在表述數字值中,「點」採用硬式編碼。

支援的程式碼類型

Icon of purple telephone handset

電話

輸入屬性

這些屬性定義了動作執行時使用的資料。

屬性

描述

新增標題

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音訊檔案,或是文字轉語音Closed 讓使用者能夠以文字輸入錄製的提示,並使用電腦生成的語音說出內容。(TTS)。

如果提示是一個音訊檔案,請輸入括在雙引號中的檔案名。 例如,「greeting.wav」。 如果音訊檔案位於不同的資料夾中,請包含檔案路徑。 例如,如果指令碼在根資料夾中,而音訊檔案在向下兩層的子資料夾中,則輸入 "Subfolder\Subfolder2\Audio-file.wav"。 如果程式碼位於根目錄下一層的子資料夾中,而音訊檔案位於同一層級的另一個子資料夾中,請輸入 "\..\Subfolder\Audio-file.wav".

如果Prompt為文字轉語音,請輸入您想要TTSClosed 讓使用者能夠以文字輸入錄製的提示,並使用電腦生成的語音說出內容。服務讀出的文字。 每個分段必須括在雙引號中,並包括一個字串參考字元,以識別它的資訊類型。 For example:

"%Your account balance is""silence.wav" "${accountBalance}"

如需有關在此屬性中格式化提示的更多資訊,包括要使用的字串參考前置字元,請參閱提示頁。 某些具有 序列 屬性的動作可存取序列編輯,這是一個圖形介面,您可以使用它來建立提示。此動作不會存取此編輯。但是,您可以從支援它的動作(例如 Play)使用序列編輯。將 Play 加入您的腳本,並建立您的提示序列。將 Play 中 序列 欄位的序列文字貼上至此動作,然後刪除 Play。

短語

使用此屬性來記錄提示包含的文字。 該指令碼不會使用此屬性。 由於某些提示可能很複雜並且包含多個區段,因此包括並非按序列欄位所要求之格式編寫的文字可能會很有用。

高度信任 When the ASR engine recognizes a phrase spoken by a caller, it also returns a percentage that indicates how confident it is in a voice recognition match. The script compares this recognition percentage to the value in this property, and if the percentage is equal or greater to the value, the OnHighConfidence branch is taken. Enter a whole number between the MinConfidence value and 100.

預設值為 70。

最小可信度 Defines the minimum acceptable confidence percentage for a recognition match. If the recognition percentage is between this value and the HighConfidence value, the OnMedConfidence branch is taken, which typically lets the contact confirm the ASR understanding of an utterance. If the recognition percentage is less than this value, the OnNoConfidence branch is taken. Enter a whole number between 1 and the HighConfidence value.

預設值為 50。

逾時秒數

決定IVRClosed 互動式語音回應。聯絡人可透過語音或按鍵輸入,使用自動電話選單以取得資訊、轉接來電語音通話,或同時進行兩者。在採取OnTimeout分支之前,等待輸入(語音或按鍵)的時間長短。 這是線路上完全無說話聲的臨界值。 預設值為 10(秒)。 若要變更值,請輸入一個整數。

重要 計時器僅在 Prompt 完全結束後才會開始計時。 但是,系統具有兩分鐘(120 秒)的內建限制,其中包括提示的持續時間。 如果在執行動作期間達到此限制,則所有使用中的提示將會中止,且程式碼將採用 OnError 分支。 因此,您應該知道提示的持續時間,並為該欄位設定一個值,以確保該動作處於有效狀態的時間少於兩分鐘。

結果變數名稱 ``` 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). ```
可信度 Var Name Determines the name of the variable that holds the confidence percentage returned by the ASR engine. The default value is ASRConf.
偵測 DTMF

允許您配置 IVR 指令碼來處理所說和手動輸入的 DTMFClosed 當聯絡人按下電話鍵盤上的按鍵時所產生的訊號音。 輸入。

如果值為True或是,則同時接受語音及 DTMF 輸入。 如果聯絡人按下 DTMF 數字,該指令碼將立即停止任何正在執行的提示序列,並採用 OnDTMF 分支。 在此動作執行期間,不會考慮聯絡人的話語。

如果值為 False 或 No,即使聯絡人按下按鍵,系統亦不會識別 DTMF 輸入。 雖然在此動作執行期間按下的任何 DTMF 數字都將儲存在 DTMF 緩衝區中,但此動作將會採用 NoConfidence 分支。

值模式中: 按一下是以啟用 DTMF 偵測。

在運算式模式中: 輸入 True 以啟用 DTMF 檢測。

清除數字 \n

當聯絡人在其電話按鍵上按下某個按鍵時,所產生的 DTMF 音會儲存在緩衝區中。 當清除數字設定為 是 或 True時,該緩衝區會在此動作開始時清除。 如果設定為 False,且 DTMF 音調在緩衝區中被傳到此動作,則 DTMF 音調會被立即檢測到。 該動作接著會呼叫 OnDigit 或 OnDTMF 分支,即使該按鍵是與較早的動作相關聯。

是/True 是預設值。 \t

值模式中:點擊 否以啟用。

在運算式模式中:輸入 False 以啟用。

\n
內容類型 Specifies how the ASR engine should identify utterances provided by callers during this action. The ASR engine compares the caller's utterance to the values in the specified content type. If a match is detected, the engine returns the match and a percentage value indicating its confidence in the accuracy of the match. Choose one of the following from the drop-down: Phrase List or Grammar File. The default value is Phrase List .
短語列表 Allows you to build a phrase list for the action. Click the ellipsis and type each phrase on a separate line in the String Editor window.
語法檔案

可讓您提供 ContentType 屬性中指定的語法檔案Closed 包含一組呼叫者可能針對 IVR Prompt 所說出的短語的編碼檔案。的路徑。語法檔案必須格式正確,並儲存在您的平台檔案中。您可以使用 Studio Actions 或第三方工具建立自訂語法檔案。語法檔案的最大檔案大小為 15 MB。

結果分支條件

結果分支條件允許您在指令碼中建立分支,以處理執行動作時的不同結果。

條件

描述

預設 ``` 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. ```
HighConfidence Path taken if confidence levels are above the value set in the High Confidence property.
MedConfidence Branch taken if the recognition percentage returned by the ASR engine is between the HighConfidence value and the MinConfidence value. This branch is often used to allow a caller to confirm the information provided using an ASRYESNO action.
NoConfidence ``` Path taken if the recognition percentage returned by the ASR engine is less than the MinConfidence value. ```
逾時 Path taken if there is no response for the number of seconds specified.
錯誤 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.
DTMF Path taken if the DetectDTMF property is set to TRUE and DTMF digits are present in the buffer.

小貼士

  • 您可以從 Voiceparams 動作傳遞 languageLocale 變數,此變數會設定該動作所偵測的語言。
  • 更多資訊,請參閱 ASR 概覽。
  • 透過使用ASR動作中的序列屬性播放提示,以改善聯絡人的體驗。如果您使用PLAY動作播放提示序列Closed 向聯絡人播放的音訊提示片段。,則當語音識別系統準備聆聽聯絡人的語音時,音訊可能會出現間隔。

  • DTMF 音調將儲存在緩衝區。 如果動作包含 OnDTMF 或者 OnDigits 分支,雙音多頻值必須透過 Capture 動作從緩衝區中提取。
  • 如果您想擷取多個雙音多頻,該動作會在您按下第一個 OnDTMF 分支(包括 * 和 #)時立即執行 DTMF。 在此範例中,您必須使用Capture動作來捕獲多次按鍵。
  • 如緩衝區中存在任何 DMTF,且 ClearDigits 未設定為 True,則會立即採用 OnDTMF 分支,並需要 Capture 動作。