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.

What is the best way to handle long audio files?

See original GitHub issue

Hello! I need to separate speakers in long audio files (2min and more). Could this be done with Asteroid? If yes, then what is the best way to achieve this?

I tried to do it like this, but it throws CUDA out of memmory error.

from asteroid.models import ConvTasNet

nnet = ConvTasNet.from_pretrained('SeparatorModels/ConvTasNet_LibriMix_sepclean.pth')
nnet.cuda(3)
nnet.separate('2_min_long.wav')

Here’s the error RuntimeError: CUDA out of memory. Tried to allocate 14.68 GiB (GPU 3; 10.92 GiB total capacity; 527.54 MiB already allocated; 9.92 GiB free; 530.00 MiB reserved in total by PyTorch)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
DizzyProtoscommented, Aug 14, 2020

Thank you! I’ll try that and add an example if it going to work out.

0reactions
mparientecommented, Aug 21, 2020

Solved in #221

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Compress Large Audio Files: 5 Easy and Effective Ways
Another go-to tool used for audio compression is Audacity. The software is available for Windows, Mac, and Linux. Audacity has plenty of ...
Read more >
Best Free Audio Tools for Splitting Up Large Files - Lifewire
Free audio file splitters are useful for slicing large MP3s to create free ringtones, individual tracks from an album, and audiobook ...
Read more >
How to Compress Large Audio Files on Android
How to Compress Large Audio Files on Android · 1. WinZip · 2. MP3, MP4 Audio Video Cutter, Trimmer, Converter · 3. Audio...
Read more >
Analysing long audio files - Sound Design Stack Exchange
Analysing long audio files ... I have a 9 hour audio recording. ... What's the best way to do this, preferably without resorting...
Read more >
How to Send Large Audio Files | FileWhopper Blog
It is a very common problem: you want to get a new ringtone or cut your audiobook into pieces, but have no idea...
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