Skip to content

CreateVocabulary

Source: src/AWS/Transcribe/CreateVocabulary.ts

Runtime binding for transcribe:CreateVocabulary — create a custom vocabulary that improves transcription accuracy for domain-specific terms (e.g. per-tenant vocabularies created at runtime).

Vocabulary processing is asynchronous: the vocabulary is created in the PENDING state and must reach READY (poll with GetVocabulary) before a transcription job can reference it.

Amazon Transcribe batch actions have no resource-level IAM; the host is granted transcribe:CreateVocabulary on *.

// init
const createVocabulary = yield* AWS.Transcribe.CreateVocabulary();
// runtime
const { VocabularyState } = yield* createVocabulary({
VocabularyName: "tenant-123-vocabulary",
LanguageCode: "en-US",
Phrases: ["Alchemy", "workerd"],
});