Use the Speakvora Python or JavaScript helper

Single-file Python and JavaScript helpers for Speakvora text-to-speech and speech-to-text. No npm or PyPI package; download directly.

Short answer. Speakvora provides single-file Python and JavaScript helpers at /sdk/ for text-to-speech, speech-to-text, and voice browsing. There is no npm or PyPI package; download the file directly and import it into your project.

What the helpers are

The Speakvora SDK consists of two single-file client libraries—one for Python and one for JavaScript. They wrap the core API endpoints and handle authentication, request formatting, and response parsing. No package manager installation is needed. Both helpers support text-to-speech with catalog voices, speech-to-text transcription, voice and language listing, and phrase search.

Where to find them

Download the helpers directly from Speakvora's SDK directory. The files are ready to use; save them in your project and import them.

  • Python helper at /sdk/speakvora.py
  • JavaScript helper at /sdk/speakvora.js

Why no npm or PyPI package

Speakvora provides the helpers as single files so you can drop them into your project without package manager dependencies. This approach keeps setup simple and gives you direct control over the code. You avoid version conflicts and external package registries.

How to use the Python helper

Download speakvora.py and save it in your project directory. Then import it and pass your API key to create a client.

Python example

import speakvora

client = speakvora.Client(api_key="your-api-key")
result = client.speak(text="Hello world", voice="af_heart", lang="en")
print(result["url"])

How to use the JavaScript helper

Download speakvora.js and import it in your code. The helper works in both the browser and server environments.

JavaScript example

import Speakvora from './speakvora.js';

const client = new Speakvora({ apiKey: 'your-api-key' });
const result = await client.speak({ text: 'Hello world', voice: 'af_heart', lang: 'en' });
console.log(result.url);

Authentication and security

Pass your API key when you create a client instance. Keep your key on a server; do not expose it in browser code. The helpers use the x-api-key header to authenticate requests to the Speakvora API.

What the helpers support

Both helpers cover the main Speakvora endpoints for common tasks:

  • Text to speech with catalog voices
  • Speech to text (audio transcription)
  • Voice and language listing
  • Phrase search by keyword

Frequently asked questions

Is there an npm package for Speakvora?

No. The JavaScript helper is a single file at /sdk/speakvora.js. Download it and import it directly into your project.

Is there a PyPI package?

No. The Python helper is a single file at /sdk/speakvora.py. Download it and import it into your project.

Can I use the helpers in different environments?

Yes. The JavaScript helper works in the browser and server environments. The Python helper works in Python projects.

Do I need to authenticate?

Yes. Pass your API key when you create a client instance. Keep your key on a server; do not expose it in browser code.

What endpoints do the helpers cover?

Both helpers support text-to-speech, speech-to-text, voice listing, language listing, and phrase search.

Related: API documentation, pricing, developer guides and more answers.