update_bot_locale
async
¶
update_bot_locale(
bot_id: Id,
bot_version: DraftBotVersion,
locale_id: LocaleId,
nlu_intent_confidence_threshold: ConfidenceThreshold,
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
description: Optional[Description] = None,
voice_settings: Optional[VoiceSettings] = None,
unified_speech_settings: Optional[UnifiedSpeechSettings] = None,
audio_filler_settings: Optional[AudioFillerSettings] = None,
speech_recognition_settings: Optional[SpeechRecognitionSettings] = None,
generative_ai_settings: Optional[GenerativeAISettings] = None,
speech_detection_sensitivity: Optional[SpeechDetectionSensitivity] = None,
speaker_diarization_settings: Optional[SpeakerDiarizationSettings] = None,
) -> UpdateBotLocaleResponse
Updates the settings that a bot has for a specific locale.
Parameters:
-
bot_id(Id) –The unique identifier of the bot that contains the locale.
-
bot_version(DraftBotVersion) –The version of the bot that contains the locale to be updated. The version can only be the
DRAFTversion. -
locale_id(LocaleId) –The identifier of the language and locale to update. The string must match one of the supported locales. For more information, see Supported languages.
-
description(Optional[Description], default:None) –The new description of the locale.
-
nlu_intent_confidence_threshold(ConfidenceThreshold) –The new confidence threshold where Amazon Lex inserts the
AMAZON.FallbackIntentandAMAZON.KendraSearchIntentintents in the list of possible intents for an utterance. -
voice_settings(Optional[VoiceSettings], default:None) –The new Amazon Polly voice Amazon Lex should use for voice interaction with the user.
-
unified_speech_settings(Optional[UnifiedSpeechSettings], default:None) –Updated unified speech settings to apply to the bot locale.
-
audio_filler_settings(Optional[AudioFillerSettings], default:None) –Updated audio filler settings to apply to the bot locale. When enabled, requires
unifiedSpeechSettings(speech-to-speech) to be configured on the bot locale. -
speech_recognition_settings(Optional[SpeechRecognitionSettings], default:None) –Updated speech-to-text settings to apply to the bot locale.
-
generative_ai_settings(Optional[GenerativeAISettings], default:None) –Contains settings for generative AI features powered by Amazon Bedrock for your bot locale. Use this object to turn generative AI features on and off. Pricing may differ if you turn a feature on. For more information, see LINK.
-
speech_detection_sensitivity(Optional[SpeechDetectionSensitivity], default:None) –The new sensitivity level for voice activity detection (VAD) in the bot locale. This setting helps optimize speech recognition accuracy by adjusting how the system responds to background noise during voice interactions.
-
speaker_diarization_settings(Optional[SpeakerDiarizationSettings], default:None) –The updated speaker diarization settings to apply to the bot locale. If you omit this field, Amazon Lex keeps the setting currently stored on the bot locale. To turn speaker diarization off, set
enabledtofalseexplicitly.
Raises:
-
ConflictException–The action that you tried to perform couldn't be completed because the resource is in a conflicting state. For example, deleting a bot that is in the CREATING state. Try your request again.
-
InternalServerException–The service encountered an unexpected condition. Try your request again.
-
PreconditionFailedException–Your request couldn't be completed because one or more request fields aren't valid. Check the fields in your request and try again.
-
ServiceQuotaExceededException–You have reached a quota for your bot.
-
ThrottlingException–Your request rate is too high. Reduce the frequency of requests.
-
ValidationException–One of the input parameters in your request isn't valid. Check the parameters and try your request again.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lex_models_v2/_services/async_lex_models_v2.py
7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 | |