utterance.py 222 B

12345
  1. from collections import namedtuple
  2. Utterance = namedtuple("Utterance", "name speaker_name wav spec embed partial_embeds synth")
  3. Utterance.__eq__ = lambda x, y: x.name == y.name
  4. Utterance.__hash__ = lambda x: hash(x.name)