(max_abs_value, normalize)
| 195 | |
| 196 | @staticmethod |
| 197 | def _get_normalization_factor(max_abs_value, normalize): |
| 198 | if not normalize and max_abs_value > 1: |
| 199 | raise ValueError('Audio data must be between -1 and 1 when normalize=False.') |
| 200 | return max_abs_value if normalize else 1 |
| 201 | |
| 202 | def _data_and_metadata(self): |
| 203 | """shortcut for returning metadata with url information, if defined""" |
no outgoing calls
no test coverage detected