import torch
from acoustics.generator import noise
from djtransgan.config import settings

def generate_noise(secs, color='white'):
    return torch.from_numpy(noise(secs * settings.SR, color)).to(torch.float32)
import torch
from acoustics.generator import noise
from djtransgan.config import settings

def generate_noise(secs, color='white'):
    return torch.from_numpy(noise(secs * settings.SR, color)).to(torch.float32)