Music-and-Culture-Technology-Lab / omnizart

Omniscient Mozart, being able to transcribe everything in the music, including vocal, drum, chord, beat, instruments, and more.
https://music-and-culture-technology-lab.github.io/omnizart-doc/
MIT License
1.62k stars 98 forks source link

Colab: ValueError: rate must be specified when data is a numpy array or list of audio samples. #86

Closed GameParrot closed 6 months ago

GameParrot commented 1 year ago

When Using Google Colab, I get "ValueError: rate must be specified when data is a numpy array or list of audio samples." I tried with multiple input audio files and did the Environment Setup. I am using the music-assemble mode.

BreezeWhite commented 1 year ago

Hi @GameParrot, could you provide the complete traceback?

GameParrot commented 1 year ago
ValueError                                Traceback (most recent call last)

<ipython-input-3-2f85af0277f2> in <module>
     62 out_name = synth_name.replace(".wav", ".mp3")
     63 print(f"Finished: {out_name}")
---> 64 dsp.Audio(out_name)

/usr/local/lib/python3.8/dist-packages/IPython/lib/display.py in __init__(self, data, filename, url, embed, rate, autoplay, normalize, element_id)
    112         if self.data is not None and not isinstance(self.data, bytes):
    113             if rate is None:
--> 114                 raise ValueError("rate must be specified when data is a numpy array or list of audio samples.")
    115             self.data = Audio._make_wav(data, rate, normalize)
    116 

ValueError: rate must be specified when data is a numpy array or list of audio samples.
BreezeWhite commented 6 months ago

The colab should work now.