diff options
Diffstat (limited to 'become_yukarin/data_struct.py')
| -rw-r--r-- | become_yukarin/data_struct.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/become_yukarin/data_struct.py b/become_yukarin/data_struct.py index 73b9b3b..78c8cf3 100644 --- a/become_yukarin/data_struct.py +++ b/become_yukarin/data_struct.py @@ -60,3 +60,13 @@ class AcousticFeature(NamedTuple): mfcc=order + 1, voiced=1, ) + + +class LowHighSpectrogramFeature(NamedTuple): + low: numpy.ndarray + high: numpy.ndarray + + def validate(self): + assert self.low.ndim == 2 + assert self.high.ndim == 2 + assert self.low.shape == self.high.shape |
