๐ 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,
The sounds folder and the patterns excluded from it, from
meta.stewbeet.sounds.The deprecated
meta.stewbeet.sounds_folderis still read, with a warning and nothing excluded.
- group_variants(
- sounds_names: list[str],
- sounds_folder: str,
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,
One variantโs sound, streamed when longer than 10 seconds, its subtitle the name without the trailing number.