keithhon commited on
Commit
063c765
1 Parent(s): 101845c

Upload toolbox/utterance.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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)