audio_array_to_sha256.py 156 B

123456
  1. import numpy as np
  2. import hashlib
  3. def audio_array_to_sha256(audio_array: np.ndarray) -> str:
  4. return hashlib.sha256(audio_array.tobytes()).hexdigest()