mirror of
https://github.com/liuhaozhe6788/voice-cloning-collab.git
synced 2025-12-22 22:50:11 +01:00
new commits
This commit is contained in:
10
encoder/data_objects/utterance_batch.py
Normal file
10
encoder/data_objects/utterance_batch.py
Normal file
@@ -0,0 +1,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])
|
||||
Reference in New Issue
Block a user