modelscope / FunCodec

FunCodec is a research-oriented toolkit for audio quantization and downstream applications, such as text-to-speech synthesis, music generation et.al.
https://funcodec.github.io/
MIT License
370 stars 30 forks source link

(fix)Audio2Mel device inconsistent issue #21

Open voidful opened 10 months ago

voidful commented 10 months ago

set to cpu by default

CLAassistant commented 10 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

ZhihaoDU commented 10 months ago

Thanks for your contribution. After I reviewed the code, I recommend unify the inconsistent devices as the same manner in codec_freq.py. It would be better if you can try this and do a test, and I can merge this PR. Otherwise, I will fix this issue in the next version.