Skip to content

Instantly share code, notes, and snippets.

View mthrok's full-sized avatar
💭
🛵

moto mthrok

💭
🛵
View GitHub Profile
@mthrok
mthrok / my_melspec.py
Last active September 18, 2022 11:35 — forked from eldrin/my_melspec.py
Quick digging in what makes the mel-spectrum discrepancy between torch audio and librosa
import math
from typing import Callable, Optional
from warnings import warn
import librosa
import torch
from torch import Tensor
from torchaudio import functional as F
from torchaudio import transforms as T
from torchaudio.compliance import kaldi