gensound.exceptions¶
-
exception
gensound.exceptions.
InvalidFrequencyError
(freq: float) → None[source]¶ Bases:
ValueError
The exception that raises when passed invalid frequency
Variables: frequency – Passed frequency.
-
exception
gensound.exceptions.
InvalidSamplerateError
(freq: float) → None[source]¶ Bases:
gensound.exceptions.InvalidFrequencyError
The exception that raises when passed invalid samplerate
Variables: frequency – Passed samplerate.
-
exception
gensound.exceptions.
DifferentSamplerateError
(frequencies: typing.Tuple[float, ...]) → None[source]¶ Bases:
gensound.exceptions.InvalidSamplerateError
The exception that raises when different samplerates of sounds to joint
Variables: frequency – List of passed frequencies.
-
exception
gensound.exceptions.
DifferentChannelsError
(channels: typing.Tuple[int, ...]) → None[source]¶ Bases:
ValueError
The exception that raises when different number of channels of sounds to joint
Variables: channels – List of n_channels of sounds.
-
exception
gensound.exceptions.
InvalidDurationError
(duration: float) → None[source]¶ Bases:
ValueError
The exception that raises when passed sound was invalid duration
Variables: duration – Passed duration.