babysor / MockingBird

🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time
Other
34.88k stars 5.18k forks source link

TypeError: resample() takes 1 positional argument but 3 were given #852

Open banner90 opened 1 year ago

banner90 commented 1 year ago

Summary[问题简述(一句话)] TypeError: resample() takes 1 positional argument but 3 were given

Env & To Reproduce[复现与环境] windows10,newest code,i download data\ckpt\synthesizer\pretrained-11-7-21_75k.pt python web.py --》hit synthesize button

Screenshots[截图(如有)] If applicable, add screenshots to help 捕获

Karry-Almond commented 1 year ago

i have the same problem

banner90 commented 1 year ago

i have the same problem

i resolved it, change the code where error, like this:xxx = xxx, but i think it need official solution 44357167

Karry-Almond commented 1 year ago

这是自动回复邮件。  已收到,谢谢!(请勿回复)

babysor commented 1 year ago

It seems that there's compatibility issue of newer version of librosa, could you help to specify the older version in requirement.txt file or fix the parameters in my call?

On Thu, Mar 23, 2023 at 9:59 AM Karry-Almond @.***> wrote:

这是自动回复邮件。 已收到,谢谢!(请勿回复)

— Reply to this email directly, view it on GitHub https://github.com/babysor/MockingBird/issues/852#issuecomment-1480476202, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYUKEGKOM6XR2ZSGNDY6FLW5OVBTANCNFSM6AAAAAAV4W6UQ4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Cordially, Weijia Chen

tianmingling commented 1 year ago

i have the same problem

i resolved it, change the code where error, like this:xxx = xxx, but i think it need official solution 44357167

Thanks for solving this problem! I've been bothered by it for a long time.

Pandaft commented 1 year ago

I solved the same problem by edit models\encoder\audio.py:

image

Then it works. on Python 3.9.16, librosa 0.10.0.post2.

ShareMk commented 1 year ago

I have the same issue. Could you please explain the solution in detail? I haven't tried modifying the code in audio.py as suggested below, but the issue persists. Therefore, I would like to ask for a detailed tutorial on the solution. Thank you.Looking forward to your help. Thank you.

pop1wlf commented 1 year ago

You can solve this problem by specifying the version of the librosa library.Such as: pip install librosa==0.9.2

Karry-Almond commented 1 year ago

这是自动回复邮件。  已收到,谢谢!(请勿回复)

Sivakgpian commented 2 months ago

TypeError: resample() takes 1 positional argument but 3 were given How to resolve this problem

Karry-Almond commented 2 months ago

这是自动回复邮件。  已收到,谢谢!(请勿回复)