Spaces:
Runtime error
Runtime error
Upload toolbox/utterance.py with huggingface_hub
Browse files- toolbox/utterance.py +5 -0
toolbox/utterance.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from collections import namedtuple
|
2 |
+
|
3 |
+
Utterance = namedtuple("Utterance", "name speaker_name wav spec embed partial_embeds synth")
|
4 |
+
Utterance.__eq__ = lambda x, y: x.name == y.name
|
5 |
+
Utterance.__hash__ = lambda x: hash(x.name)
|