Activation Timeout

This module manages the timeout for speech pipeline activation.

class spokestack.activation_timeout.ActivationTimeout(frame_width=20, min_active=500, max_active=5000, **kwargs)[source]

Speech pipeline activation timeout

Parameters
  • frame_width (int) – frame width of the audio (ms)

  • min_active (int) – the minimum length of an activation (ms)

  • max_active (int) – the maximum length of an activation (ms)

close()[source]

Sets active length to zero

Return type

None

deactivate(context)[source]

Deactivates the speech pipeline

Return type

None

reset()[source]

Resets active length

Return type

None