|
25 | 25 |
|
26 | 26 |
|
27 | 27 | USE_FFTPACK = False |
28 | | -""" |
| 28 | +"""bool : Whether to use :mod:`scipy.fftpack` |
| 29 | +
|
29 | 30 | The scipy implementation of the FFT can be much faster than the numpy one. This is set |
30 | | -automatically to :obj:`True` if :func:`scipy.fftpack` can be imported. It can be set to |
| 31 | +automatically to :obj:`True` if :mod:`scipy.fftpack` can be imported. It can be set to |
31 | 32 | :obj:`False` to use the numpy implementation. |
| 33 | +
|
| 34 | +:meta hide-value: |
32 | 35 | """ |
33 | 36 | try: |
34 | 37 | from scipy import fftpack # noqa: F401 |
|
38 | 41 | pass |
39 | 42 |
|
40 | 43 | EFFECTIVE_SUPPORT_THRESHOLD = 5e-4 |
41 | | -""" |
| 44 | +"""float : Value considered roughly zero for support computations |
| 45 | +
|
42 | 46 | No function is compactly supported in both the time and Fourier domains, but large |
43 | 47 | regions of either domain can be very close to zero. This value serves as a threshold for |
44 | 48 | zero. The higher it is, the more accurate computations will be, but the longer they will |
45 | 49 | take |
46 | 50 | """ |
47 | 51 |
|
48 | 52 | LOG_FLOOR_VALUE = 1e-5 |
49 | | -"""Value used as floor when taking log in computations""" |
| 53 | +"""float : Value used as floor when taking log in computations""" |
50 | 54 |
|
51 | 55 |
|
52 | 56 | # N.B. libsndfile's sphere support currently can't decode as many sphere encodings |
53 | 57 | # as _sphere.py can |
54 | 58 | _BASE_SOUNDFILE_SUPPORTED_TYPES = {"wav", "ogg", "flac", "aiff"} |
55 | | -_FULL_SOUNDFILE_SUPPORTED_TYPES: Set[str] = set() |
| 59 | +_FULL_SOUNDFILE_SUPPORTED_TYPES = set() |
56 | 60 |
|
57 | 61 | SOUNDFILE_SUPPORTED_FILE_TYPES: Set[str] = set() |
58 | | -f""" |
59 | | -A list of the types of files SoundFile will be responsible for reading. If |
60 | | -:mod:`soundfile` can be imported, it's the intersection of |
61 | | -:func:`soundfile.available_formats` with the set {_BASE_SOUNDFILE_SUPPORTED_TYPES}. |
| 62 | +"""set : A list of the types of files SoundFile will be responsible for reading |
| 63 | +
|
| 64 | +If :mod:`soundfile` can be imported, it's the intersection of |
| 65 | +:func:`soundfile.available_formats` with the set "wav", "ogg", "flac", and "aiff". |
| 66 | +
|
| 67 | +:meta hide-value: |
62 | 68 |
|
63 | 69 | See Also |
64 | 70 | -------- |
65 | 71 | pydrobert.speech.util.read_signal |
66 | 72 | Where this flag is used |
67 | | -
|
68 | | -:meta hide-value: |
69 | 73 | """ |
70 | 74 |
|
71 | 75 | try: |
|
0 commit comments