question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error uploading audio to timbre_transfer

See original GitHub issue

error uploading audio to timbre_transfer

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-42-30190e9bd204> in <module>()
     28 # Compute features.
     29 start_time = time.time()
---> 30 audio_features = ddsp.training.metrics.compute_audio_features(audio)
     31 audio_features['loudness_db'] = audio_features['loudness_db'].astype(np.float32)
     32 audio_features_mod = None

5 frames
/usr/local/lib/python3.6/dist-packages/numpy/core/_asarray.py in asarray(a, dtype, order)
     83 
     84     """
---> 85     return array(a, dtype, copy=False, order=order)
     86 
     87 

ValueError: negative dimensions are not allowed

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ixjecommented, Jan 17, 2021

so it turns out when uploading a file audio is wrapped in an extra list. replace

  filenames, audios = upload()
  audio = audios[0]

with

  filenames, audios = upload()
  audio = audios[0][0]

to solve file upload usage. Recording with microphone worked fine

0reactions
svjetlonosha141commented, Oct 4, 2022

Is anyone else still having this same issue? Even after changing the audios to [0][0] I keep getting errors when trying to play with timber-transfer and my pre-recorded sounds… Any other ideas about what could be causing this?

Thanks a lot, and excellent work altogether, this is just incredible! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't upload file: "I'm getting an error when I add my audio."
Here are some troubleshooting steps to resolve common errors when trying to upload audio files. Start a new session
Read more >
ddsp/timbre_transfer.ipynb at main - GitHub
This notebook is a demo of timbre transfer using DDSP (Differentiable Digital ... #@title Record or Upload Audio #@markdown * Either record audio...
Read more >
Transcribe not uploading audio file - Microsoft Community
Transcribe not uploading audio file. I'm trying to use "Transcribe" however, the audio file is getting stuck at 93%.
Read more >
Deep Learning DDSP Timbre Transfer in Python: 01 Introduction
Differentiable Digital Signal Processing (DDSP) Timbre Transfer : 01 ... the DDSP Library 00:03:10 Recording or Uploading Audio 00:05:08 ...
Read more >
TimbreTron: A WaveNet(CycleGAN(CQT(Audio))) Pipeline for ...
Abstract: In this work, we address the problem of musical timbre transfer, where the goal is to manipulate the timbre of a sound...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found