Skip to content

voicevox-client/python

Folders and files

NameName
Last commit message
Last commit date
Apr 16, 2024
Mar 14, 2023
Feb 4, 2024
Apr 10, 2024
May 16, 2024
May 16, 2024
Aug 22, 2023
Apr 14, 2023
Jan 26, 2023
May 13, 2024
Mar 18, 2023
Feb 4, 2024
Feb 4, 2024

Repository files navigation

voicevox client for python.

Documentation Status

Unoffical API wrapper that you can use voicevox easy!

I referred to discord.py.

Requirements

Voicevox engine only!

Well if you want install voicevox engine, please read this.

Install

pip install voicevox-client

All that!

Example

from vvclient import Client
import asyncio


async def main():
    async with Client() as client:
        audio_query = await client.create_audio_query(
            "こんにちは!", speaker=1
        )
        with open("voice.wav", "wb") as f:
            f.write(await audio_query.synthesis(speaker=1))


if __name__ == "__main__":
    ## already in asyncio (in a Jupyter notebook, for example)
    # await main()
    ## otherwise
    asyncio.run(main())