Unoffical API wrapper that you can use voicevox easy!
Voicevox engine only!
Well if you want install voicevox engine, please read this.
pip install voicevox-clientAll that!
from voicevox 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())