Skip to content

Commit 96fb4f3

Browse files
authored
Add is initialized speaker
1 parent b130abf commit 96fb4f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vvclient/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,11 @@ async def init_speaker(self, speaker: int, *, skip_reinit: bool = False, core_ve
9393
if core_version:
9494
params["core_version"] = core_version
9595
await self.http.initialize_speaker(params)
96+
97+
async def is_inited_speaker(self, speaker: int, *, core_version: Optional[str] = None) -> bool:
98+
params = {
99+
"speaker": speaker
100+
}
101+
if core_version:
102+
params["core_version"] = core_version
103+
return await self.http.is_initialized_speaker(params)

0 commit comments

Comments
 (0)