UNPKG

microsoft-cognitiveservices-speech-sdk

Version:
1 lines 3.04 kB
{"version":3,"sources":["src/common.speech/ServiceMessages/PronunciationScore/PronunciationAssessmentOptions.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,oBAAY,iBAAiB;IACzB,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC9B;AAED;;GAEG;AACH,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,QAAQ,aAAa;CACxB;AAED;;GAEG;AACH,oBAAY,aAAa;IACrB,KAAK,UAAU;IACf,aAAa,kBAAkB;CAClC;AAED;;GAEG;AACH,oBAAY,mBAAmB;IAC3B,IAAI,SAAS;IACb,GAAG,QAAQ;CACd;AAED;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,iBAAiB,CAAC;IAElC;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC;IAE9B;;OAEG;IACH,SAAS,CAAC,EAAE,aAAa,CAAC;IAE1B;;OAEG;IACH,eAAe,CAAC,EAAE,mBAAmB,CAAC;IAEtC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC;;OAEG;IACH,iCAAiC,CAAC,EAAE,OAAO,CAAC;IAE5C;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB","file":"PronunciationAssessmentOptions.d.ts","sourcesContent":["//\r\n// Copyright (c) Microsoft. All rights reserved.\r\n// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.\r\n//\r\n\r\n/**\r\n * The enum of grading system for the score\r\n */\r\nexport enum GradingSystemKind {\r\n FivePoint = \"FivePoint\",\r\n HundredMark = \"HundredMark\"\r\n}\r\n\r\n/**\r\n * The enum of granularity for score coverage\r\n */\r\nexport enum GranularityKind {\r\n Phoneme = \"Phoneme\",\r\n Word = \"Word\",\r\n FullText = \"FullText\"\r\n}\r\n\r\n/**\r\n * The enum of dimension of the score\r\n */\r\nexport enum DimensionKind {\r\n Basic = \"Basic\",\r\n Comprehensive = \"Comprehensive\"\r\n}\r\n\r\n/**\r\n * The kind of phoneme alphabet\r\n */\r\nexport enum PhonemeAlphabetKind {\r\n SAPI = \"SAPI\",\r\n IPA = \"IPA\"\r\n}\r\n\r\n/**\r\n * The json payload for pronunciation assessment options\r\n */\r\nexport interface PronunciationAssessmentOptions {\r\n /**\r\n * The text that the input speech is following. This can help the assessment when provided.\r\n */\r\n referenceText?: string;\r\n\r\n /**\r\n * The grading system for the score\r\n */\r\n gradingSystem?: GradingSystemKind;\r\n\r\n /**\r\n * The granularity for score coverage\r\n */\r\n granularity?: GranularityKind;\r\n\r\n /**\r\n * The dimension of the score\r\n */\r\n dimension?: DimensionKind;\r\n\r\n /**\r\n * The phoneme alphabet\r\n */\r\n phonemeAlphabet?: PhonemeAlphabetKind;\r\n\r\n /**\r\n * The count of nbest phoneme\r\n */\r\n nBestPhonemeCount?: number;\r\n\r\n /**\r\n * Whether enable miscue or not\r\n */\r\n enableMiscue?: boolean;\r\n\r\n /**\r\n * Whether enable prosody assessment or not\r\n */\r\n enableProsodyAssessment?: boolean;\r\n\r\n /**\r\n * Whether enable two pass unscripted assessment or not\r\n */\r\n enableTwoPassUnscriptedAssessment?: boolean;\r\n\r\n /**\r\n * The scenario ID\r\n */\r\n scenarioId?: string;\r\n}\r\n"]}