-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.py
34 lines (28 loc) · 829 Bytes
/
structs.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# -*- coding: utf-8 -*-
"""
Created on Wed Jan 27 21:00:39 2021
@author: Panagiotis Antivasis
"""
class Deterministic:
def __init__(self, ti = [], isSpeech = False, isVoiced = False, a0 = [], amplitudes = [], frange = [], \
pk = []):
self.ti = ti
self.isSpeech = isSpeech
self.isVoiced = isVoiced
self.a0 = a0
self.ak = amplitudes
self.frange = frange
self.pk = pk
def __str__(self):
return str(self.__dict__)
def __repr__(self):
return self.__str__()
class Frame:
def __init__(self, ti, isSpeech, isVoiced):
self.ti = ti
self.isSpeech = isSpeech
self.isVoiced = isVoiced
def __str__(self):
return str(self.__dict__)
def __repr__(self):
return self.__str__()