Python SDK to interact with the charactr API.
VC - Voice conversion - converting one voice from audio input to another voice.
TTS - Text to speech - converting text to voice audio.
- making TTS requests
- making VC requests
- getting lists of available voices
pip install charactr-api-sdkFor the detailed SDK usage, please refer to the SDK Reference or the ./examples directory.
from charactr_api import CharactrAPISDK, Credentials
sdk = CharactrAPISDK(Credentials(client_key="xxx", api_key="yyy"))
tts_voices = sdk.tts.get_voices()
tts_result = sdk.tts.convert(tts_voices[0]["id"], "Hello world")git clone https://github.com/charactr-platform/charactr-api-sdk-python
cd charactr-api-sdk-python
pip install .Open ./examples/credentials.py and provide your credentials. You can find them in your Client Panel account.
python examples/tts.pypython examples/tts_stream_simplex.pypython examples/tts_stream_duplex.pypython examples/vc.pypython examples/clones.py