Add speaker names to web interface

This commit is contained in:
Michael Hansen 2022-03-21 16:13:45 -04:00
commit d4ef4744c7
5 changed files with 63 additions and 29 deletions

View file

@ -90,8 +90,13 @@ class Voice:
name: str
language: str
description: str
speakers: typing.Optional[typing.Sequence[str]] = None
properties: typing.Optional[typing.Mapping[str, typing.Any]] = None
@property
def is_multispeaker(self) -> bool:
return (self.speakers is not None) and (len(self.speakers) > 1)
# @dataclass
# class LexiconEntry: