ryunix / python

Unoffical API wrapper that you can use voicevox easy!

Home Page:https://voicevox-client.tuna2134.jp/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

voicevox client for python.

Documentation Status

Unoffical API wrapper that you can use voicevox easy!

Requirements

Voicevox engine only!

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

Install

pip install voicevox-client

All that!

Example

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=4))


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

About

Unoffical API wrapper that you can use voicevox easy!

https://voicevox-client.tuna2134.jp/

License:MIT License


Languages

Language:Python 100.0%