Librosa is writing an audio file with y
as ndtype=float64
even though I hand it as a float32
. I am using version 0.7.2
. Am I doing something wrong? Here is basically what I'm doing:
y, sr = librosa.load("audio_file", mono=False, sr=None, dtype='float32')
print(y.dtype) # float32
librosa.output.write_wav("output_audio_path", y, sr)
y, sr = librosa.load("output_audio_path", mono=False, sr=None, dtype=None)
print(y.dtype) #float64
Anyone have any idea why?