Skip to content
Tools

SDKs

Python and JavaScript clients.


Python

pip install lipivo              # add [streaming] for live speech to text

Lipivo and AsyncLipivo read LIPIVO_API_KEY when no key is given. Errors are exceptions:AuthenticationError, InsufficientCreditsError, RateLimitError (with retry_after),ContentBlockedError, InvalidRequestError, AccountSuspendedError, APIConnectionError.

JavaScript

npm install lipivo

Works in Node 18+ and browsers, with no dependencies. Errors are LipivoError with status, code and retryAfter. Rate limits, server errors and network failures are retried twice (maxRetries).

from lipivo import Lipivo

client = Lipivo(api_key="ind_...")  # or set LIPIVO_API_KEY
speech = client.text_to_speech("Hello! Your order arrives tomorrow.", language_code="en-IN", voice_id="voice:shubh")
open("reply.mp3", "wb").write(speech.audio)
print(speech.credits_remaining)