letalker.core#
core
Module
The core
module contains functions and classes which controls the
basic flow of the voice synthesis.
Return the global sampling rate in samples/second |
|
Sets the global sampling rate |
|
Abstract base class of all the pyLeTalker classes |
- letalker.core.get_sampling_rate()#
Return the global sampling rate in samples/second
A common sampling rate is used for the entire pyLeTalker framework. As such, this method outputs the same value as
letalker.fs()
andletalker.get_sampling_rate()
.- Return type:
- letalker.core.set_sampling_rate(fs)#
Sets the global sampling rate
This function will change the common sampling rate across the entire pyLeTalker framework. It this method outputs the same value as
letalker.fs()
andletalker.get_sampling_rate()
.Parameters#
- fs
New sampling rate in samples/second. Must be a positive value. If None, it reverts the sampling rate to the system default (44.1 khz)
- Parameters:
fs (int | None)
- class letalker.core.TimeSampleHandler#
Abstract base class of all the pyLeTalker classes
- classmethod set_fs(new_fs)#
set class-wide sampling rate.
- Parameters:
new_fs (int | None) – sampling rate in samples/second. If None, it reverts the sampling rate to the default (44.1 kHz).
- static ts(nb_samples, n0=0, sample_edges=False, upsample_factor=0)#
Return time vector in seconds.
Parameters#
- nb_samples
Number of samples
- n0, optional
Starting time sample index, by default 0
- sample_edges, optional
True to return time stamps associated with the edges of the samples, by default False
- upsample_factor, optional
Specify a positive integer to increase the sampling rate of the returned time vector, by default 0
Functions
|
|
|
|
|
|
Return the global sampling rate in samples/second |
|
Sets the global sampling rate |
|
|
Return time vector in seconds. |
|
Enable/disable Numba |
|
Returns True if Numba is enabled |
Classes
Abstract base class of all the pyLeTalker classes |