Skip to content

Commit f210d56

Browse files
authored
Merge pull request #68 from voicevox-client/tuna2134-patch-1
Fix example code
2 parents b130abf + 08308c8 commit f210d56

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Example
3838
async def main():
3939
async with Client() as client:
4040
audio_query = await client.create_audio_query(
41-
"こんにちは!", style_id=1
41+
"こんにちは!", speaker=1
4242
)
4343
with open("voice.wav", "wb") as f:
44-
f.write(await audio_query.synthesis(style_id=1))
44+
f.write(await audio_query.synthesis(speaker=1))
4545
4646
4747
if __name__ == "__main__":

vvclient/http.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ async def core_versions(self) -> List[str]:
6161

6262
async def initialize_speaker(self, params: Dict[str, Union[str, int]]) -> None:
6363
return await self.request(Route("POST", "/initialize_speaker"), params=params)
64+
65+
async def is_initialized_speaker(self, params: Dict[str, Union[str, int]) -> bool:
66+
return await self.request(Route("GET", "/is_initialized_speaker"), params=params)

0 commit comments

Comments
 (0)