๐Ÿ”Š sounds#

Generates sounds.json from the sounds folder.

beet_default(ctx: Context)[source]#

Main entry point for the sounds plugin, generating sounds.json from the sounds folder.

For instance, given a sounds folder structure like:

sounds/
โ”œโ”€โ”€ dirt_bullet_impact_01.ogg
โ”œโ”€โ”€ dirt_bullet_impact_02.ogg
โ”œโ”€โ”€ dirt_bullet_impact_03.ogg
โ””โ”€โ”€ fireselect.ogg

The plugin will: - Group numbered variants (e.g. dirt_bullet_impact_01, dirt_bullet_impact_02, dirt_bullet_impact_03) - Process individual sounds (e.g. fireselect) - Generate the appropriate sounds.json configuration

sounds_settings(
stewbeet_meta: JsonDict,
) → tuple[str, list[str]][source]#

The sounds folder and the patterns excluded from it, from meta.stewbeet.sounds.

The deprecated meta.stewbeet.sounds_folder is still read, with a warning and nothing excluded.

group_variants(
sounds_names: list[str],
sounds_folder: str,
) → dict[str, list[str]][source]#

Sound files grouped by name, numbered variants (name_01, name2) under their shared name.

Each name is simplified to lowercase letters, digits, ., _ and /, and the files are given relative to the folder.

variant_sound(
sounds_folder: str,
variant: str,
) → Sound[source]#

One variantโ€™s sound, streamed when longer than 10 seconds, its subtitle the name without the trailing number.

silent#