(raw_settings)
return AudioSettings(
        enabled=raw_audio_settings["Enabled"] == "True",
        text_to_speech_settings_list=text_to_speech_settings_list,
    )
Creates an AudioSettings() object based on the data structure in the YAML
    file
Creates an AudioSettings() object based on the data structure in the YAML
    file
Creates an AudioSettings () object based on the data structure in the YAML file
def _convert_audio_settings(raw_settings):
    """
    Creates an AudioSettings() object based on the data structure in the YAML
    file
    """
    if "Audio" not in raw_settings:
        return AudioSettings()

    raw_audio_settings = raw_settings["Audio"]

    if raw_audio_settings["Enabled"]:
        text_to_speech_settings_list = _convert_text_to_speech_settings_list(
            raw_audio_settings
        )
    else:
        text_to_speech_settings_list = []

    return AudioSettings(
        enabled=raw_audio_settings["Enabled"] == "True",
        text_to_speech_settings_list=text_to_speech_settings_list,
    )
def _convert_audio_settings ( raw_settings ) : if "Audio" not in raw_settings : return AudioSettings ( ) raw_audio_settings = raw_settings [ "Audio" ] if raw_audio_settings [ "Enabled" ] : text_to_speech_settings_list = _convert_text_to_speech_settings_list ( raw_audio_settings ) else : text_to_speech_settings_list = [ ] return AudioSettings ( enabled = raw_audio_settings [ "Enabled" ] == "True" , text_to_speech_settings_list = text_to_speech_settings_list , )