Add speaker names to web interface
This commit is contained in:
parent
50d4c2a6c9
commit
d4ef4744c7
5 changed files with 63 additions and 29 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue