(max_abs_value, normalize)
| 210 | |
| 211 | @staticmethod |
| 212 | def _get_normalization_factor(max_abs_value, normalize): |
| 213 | if not normalize and max_abs_value > 1: |
| 214 | raise ValueError('Audio data must be between -1 and 1 when normalize=False.') |
| 215 | return max_abs_value if normalize else 1 |
| 216 | |
| 217 | def _data_and_metadata(self): |
| 218 | """shortcut for returning metadata with url information, if defined""" |
no outgoing calls
no test coverage detected