treble_tsdk.scene.conversation_rules_presets

Classes

ConversationRulesPresets

Named presets of keyword arguments for ConversationRules.

class treble_tsdk.scene.conversation_rules_presets.ConversationRulesPresets

Named presets of keyword arguments for ConversationRules.

Each member’s value is a dict of ConversationRules constructor kwargs, retrievable via config. Use ConversationRules.from_preset() to build a ConversationRules from a preset, optionally overriding individual fields.

cocktail_party = {'block_duration_range': (3.0, 4.0), 'in_track_level_range_db_spl': (65, 70), 'overlap_probability': 1.0, 'overlap_range': (0.3, 1.0)}

30-100% overlap, all talkers may overlap, block duration fixed to a narrow 3-4 s range.

property config: dict[str, Any]

A copy of this preset’s ConversationRules constructor kwargs.

Type:

return

sequential_talkers_increased_overlap = {'block_duration_range': (2.0, 3.0), 'in_track_level_range_db_spl': (65, 70), 'max_simultaneous_blocks': 3, 'overlap_probability': 0.7, 'overlap_range': (0.6, 0.7)}

60-70% overlap, 70% chance per block (more interruptions), max 3 simultaneous blocks.

Type:

Sequential talkers, high overlap

sequential_talkers_moderate_overlap = {'block_duration_range': (2.0, 3.0), 'in_track_level_range_db_spl': (65, 70), 'max_simultaneous_blocks': 2, 'overlap_probability': 0.5, 'overlap_range': (0.55, 0.65)}

55-65% overlap, 50% chance per block (fewer interruptions), max 2 simultaneous blocks.

Type:

Sequential talkers, moderate overlap

sequential_talkers_no_overlap = {'block_duration_range': (2.0, 5.0), 'in_track_level_range_db_spl': (65, 70), 'overlap_probability': 0.0}

Sequential talkers, no overlap.