add a init state
This commit is contained in:
@@ -81,6 +81,8 @@ async def make_announcement(text: str, ep_group: EndpointGroup):
|
||||
|
||||
# Initialize all endpoints in the group if they were not initalized before
|
||||
for endpoint in ep_group.endpoints:
|
||||
ep_group.current_state = AnnouncementStates.INIT
|
||||
endpoints_db.update_group(ep_group.id, ep_group)
|
||||
init_endpoint(endpoint, ep_group.languages)
|
||||
|
||||
# Translate the text for each language
|
||||
|
||||
@@ -9,6 +9,7 @@ from pydantic import BaseModel
|
||||
|
||||
class AnnouncementStates(Enum):
|
||||
IDLE = 0
|
||||
INIT = 0.1
|
||||
TRANSLATING = 0.2
|
||||
GENERATING_VOICE = 0.4
|
||||
ROUTING = 0.6
|
||||
|
||||
Reference in New Issue
Block a user