Skip to content

Commit

Permalink
Update audio_query.py to use speaker instead of style_id
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 committed Feb 4, 2024
1 parent b353b30 commit c78095b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
@pytest.mark.asyncio
async def test_basic():
async with Client() as client:
audio_query = await client.create_audio_query("こんにちは!", style_id=1)
await audio_query.synthesis(style_id=1)
audio_query = await client.create_audio_query("こんにちは!", speaker=1)
await audio_query.synthesis(speaker=1)
4 changes: 2 additions & 2 deletions voicevox/audio_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,11 @@ async def synthesis(
self,
*,
enable_interrogative_upspeak: bool = True,
style_id: int,
speaker: int,
core_version: Optional[str] = None,
) -> bytes:
params = {
"style_id": style_id,
"speaker": speaker,
"enable_interrogative_upspeak": enable_interrogative_upspeak,
}
if core_version is not None:
Expand Down

0 comments on commit c78095b

Please sign in to comment.