new structure for transcription engine

- found problems with mps
- integrated jinja2 templates for rendering (.tex?)
- raw ui & bad structure
This commit is contained in:
2026-02-24 02:58:28 +03:00
parent 9e67b36842
commit 3d48f473b0
24 changed files with 584 additions and 403 deletions
+17
View File
@@ -0,0 +1,17 @@
from dataclasses import dataclass
import torchaudio
import torch
class Audio:
waveform: torch.Tensor
sr: int
def load(self, filepath):
"""
Loads audio from file's path
"""
self.waveform, self.sr = torchaudio.load(
filepath,
backend="ffmpeg",
)
return self