Skip to main content

UtteranceGenerator

Stentor API Reference


Stentor API Reference / stentor-interaction-model/src / UtteranceGenerator

Class: UtteranceGenerator

Defined in: packages/stentor-interaction-model/src/Intent/UtteranceGenerator.ts:27

Constructors​

Constructor​

new UtteranceGenerator(props?): UtteranceGenerator

Defined in: packages/stentor-interaction-model/src/Intent/UtteranceGenerator.ts:31

Parameters​

props?​

UtteranceGeneratorProps

Returns​

UtteranceGenerator

Methods​

forIntent()​

forIntent(intent, locale?): string[]

Defined in: packages/stentor-interaction-model/src/Intent/UtteranceGenerator.ts:38

Parameters​

intent​

Intent

locale?​

Locale

Returns​

string[]


forPatterns()​

forPatterns(utterancePatterns, substitutions?): string[]

Defined in: packages/stentor-interaction-model/src/Intent/UtteranceGenerator.ts:80

Parameters​

utterancePatterns​

string[]

substitutions?​

Returns​

string[]