create_dictionary
async
¶
create_dictionary(
name: ResourceName,
language: DictionaryLanguage,
*,
config_overrides: Optional[AsyncElementalInferenceClientConfig] = None,
entries: Optional[DictionaryEntriesPayload] = None,
tags: Optional[TagMap] = None,
) -> CreateDictionaryResponse
Creates a custom dictionary for improving transcription accuracy. A dictionary contains custom words and phrases that the ASR engine might not recognize, such as brand names, technical terms, or proper nouns. You can reference a dictionary when configuring a smart subtitles output.
Parameters:
-
name(ResourceName) –A user-friendly name for this dictionary.
-
language(DictionaryLanguage) –The language of the dictionary entries. Specify the language using an ISO 639-2/T three-letter code. Supported values: eng, fra, ita, deu, spa, por.
-
entries(Optional[DictionaryEntriesPayload], default:None) –The dictionary entries payload. Contains the custom words and phrases for the dictionary. Maximum size is 40,960 characters.
-
tags(Optional[TagMap], default:None) –Optional tags to associate with the dictionary.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
ConflictException–The request could not be completed due to a conflict.
-
InternalServerErrorException–An internal server error occurred. This is a temporary condition and the request can be retried. If the problem persists, contact AWS Support.
-
ServiceQuotaExceededException–The request was rejected because it would exceed one or more service quotas for your account. Review your service quotas and either delete unused resources or request a quota increase.
-
TooManyRequestException–The request was denied due to request throttling. Too many requests have been made within a given time period. Reduce the frequency of requests and use exponential backoff when retrying.
-
ValidationException–The input fails to satisfy the constraints specified by the service. Check the error message for details about which parameter or field is invalid and correct the request before retrying.
-
UnknownServiceError–The service returned an error code this client does not model.