mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2025-12-20 20:29:06 +00:00
waveform is a list
This commit is contained in:
@@ -59,7 +59,7 @@ def get_audio_waveform(path: Path | str, segments_count: int = 256) -> list[int]
|
|||||||
digits = 2
|
digits = 2
|
||||||
volumes = np.round(volumes / volumes.max(), digits)
|
volumes = np.round(volumes / volumes.max(), digits)
|
||||||
|
|
||||||
return volumes
|
return volumes.tolist()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user