@euirim/microsoft-cognitiveservices-speech-sdk
Version:
Microsoft Cognitive Services Speech SDK for JavaScript
1 lines • 1.78 kB
Source Map (JSON)
{"version":3,"sources":["src/common.speech/DynamicGrammarInterfaces.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACnC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,qBAAqB,EAAE,GAAG,sBAAsB,EAAE,CAAC;CAC7D;AAED,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB","file":"DynamicGrammarInterfaces.d.ts","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\n// Licensed under the MIT license.\n\n// Interfaces in this file represent the various nodes in the JSON that the speech service accepts\n// for dynamic grammars.\n\n/**\n * Top level grammar node\n */\nexport interface IDynamicGrammar {\n ReferenceGrammars?: string[];\n Groups?: IDynamicGrammarGroup[];\n}\n\n/**\n * Group of Dynamic Grammar items of a common type.\n */\nexport interface IDynamicGrammarGroup {\n Type: string;\n Name?: string;\n SubstringMatch?: string; // None, LeftRooted, PartialName\n Items: IDynamicGrammarPeople[] | IDynamicGrammarGeneric[];\n}\n\nexport interface IDynamicGrammarPeople {\n Name: string;\n First?: string;\n Middle?: string;\n Last?: string;\n Synonyms?: string[];\n Weight?: number;\n}\n\n/**\n * Generic phrase based dynamic grammars\n */\nexport interface IDynamicGrammarGeneric {\n Text: string;\n Synonyms?: string[];\n Weight?: number;\n}\n"]}