Skip to content

Commit

Permalink
feat: add Mfcc skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Teagum committed Jul 3, 2024
1 parent 11384f2 commit dfe89d8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/apollon/signal/cepstral.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
"""
Spectral transforms
====================
"""

from typing import Self

import numpy as np
from pydantic import BaseModel

from .filter import triang_filter_bank
from .spectral import Dft, Stft


class TriagFilterSpec(BaseModel):
low: float
high: float
n_filters: int


class Mfcc:

@classmethod
def from_stft(cls, stft: Stft, spec: TriangFilterSpec) -> Self:
pass

@classmethod
def from_dft(cls, dft: Dft, spec: TriangFilterSpec) -> Self:
pass

0 comments on commit dfe89d8

Please sign in to comment.