sound_calibration

Classes

SoundCalibration(speaker, gain, sound_index, ...)

Class to handle sound calibration procedures.

class SoundCalibration(speaker: int, gain: float, sound_index: int, duration: float)[source]

Bases: object

Class to handle sound calibration procedures.

run() None[source]

Executes the sound calibration process.

Generates sound, loads it to the specified speaker, plays it, and handles errors.

run_in_thread(daemon: bool = True) None[source]

Runs the calibration process in a separate thread.

Parameters:

daemon (bool, optional) – Whether to run as a daemon thread. Defaults to True.

close() None[source]

Closes the calibration instance and releases resources.