Spaces:
Runtime error
Runtime error
File size: 342 Bytes
6bc94ac |
1 2 3 4 5 6 7 8 9 10 |
from pathlib import Path
import numpy as np
from typing import List
from encoder.data_objects.utterance import Utterance
class UtteranceBatch:
def __init__(self, utterance_path: List[Path], n_frames: int):
self.utterance = Utterance(utterance_path, None)
self.data = np.array(self.utterance.random_partial(n_frames)[0]) |