mirror of
https://github.com/liuhaozhe6788/voice-cloning-collab.git
synced 2025-12-16 19:58:01 +01:00
10 lines
342 B
Python
10 lines
342 B
Python
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]) |