Skip to content

ListLexicons

Source: src/AWS/Polly/ListLexicons.ts

Runtime binding for polly:ListLexicons — list the pronunciation lexicons stored in the region (name plus attributes; use the names as LexiconNames in synthesis requests).

The binding takes no arguments and grants the function polly:ListLexicons. Provide the implementation with Effect.provide(AWS.Polly.ListLexiconsHttp).

// init
const listLexicons = yield* AWS.Polly.ListLexicons();
// runtime
const result = yield* listLexicons();
const names = (result.Lexicons ?? []).map((lexicon) => lexicon.Name);