{"version":3,"sources":["src/common.speech/ServiceMessages/KeywordDetection/KeywordDetection.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,oBAAoB;IAC5B;;OAEG;IACH,YAAY,iBAAiB;CAChC;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,oBAAY,cAAc;IACtB;;OAEG;IACH,SAAS,cAAc;IAEvB;;OAEG;IACH,QAAQ,aAAa;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,MAAM,EAAE,cAAc,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;OAEG;IACH,IAAI,EAAE,oBAAoB,CAAC;IAE3B;;OAEG;IACH,sBAAsB,EAAE,qBAAqB,EAAE,CAAC;IAEhD;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACtB","file":"KeywordDetection.d.ts","sourcesContent":["/**\r\n * Represents the type of keyword detection.\r\n */\r\nexport enum KeywordDetectionType {\r\n    /**\r\n     * Triggered at the start of input.\r\n     */\r\n    StartTrigger = \"StartTrigger\"\r\n}\r\n\r\n/**\r\n * Represents a keyword detected by the client.\r\n */\r\nexport interface ClientDetectedKeyword {\r\n    /**\r\n     * The text of the detected keyword.\r\n     */\r\n    text: string;\r\n\r\n    /**\r\n     * The confidence score of the detection.\r\n     */\r\n    confidence?: number;\r\n\r\n    /**\r\n     * The start offset in 100-nanoseconds.\r\n     */\r\n    startOffset?: number;\r\n\r\n    /**\r\n     * The duration in 100-nanoseconds.\r\n     */\r\n    duration?: number;\r\n}\r\n\r\n/**\r\n * The action to take when a keyword is rejected.\r\n */\r\nexport enum OnRejectAction {\r\n    /**\r\n     * End the current turn.\r\n     */\r\n    EndOfTurn = \"EndOfTurn\",\r\n\r\n    /**\r\n     * Continue processing.\r\n     */\r\n    Continue = \"Continue\"\r\n}\r\n\r\n/**\r\n * Settings for handling keyword rejection.\r\n */\r\nexport interface OnReject {\r\n    /**\r\n     * The action to take on keyword rejection.\r\n     */\r\n    action: OnRejectAction;\r\n}\r\n\r\n/**\r\n * Represents keyword detection configuration.\r\n */\r\nexport interface KeywordDetection {\r\n    /**\r\n     * The type of keyword detection.\r\n     */\r\n    type: KeywordDetectionType;\r\n\r\n    /**\r\n     * Keywords detected by the client.\r\n     */\r\n    clientDetectedKeywords: ClientDetectedKeyword[];\r\n\r\n    /**\r\n     * Settings for handling keyword rejection.\r\n     */\r\n    onReject: OnReject;\r\n}\r\n"]}