Skip to main content

PolyRead TTS SDK — ElevenLabs-compatible Python client

Project description

PolyRead TTS — Python SDK

ElevenLabs-compatible SDK for the PolyRead TTS API. Switch from ElevenLabs by changing one line of code.

Installation

pip install polyread

Quick Start

from elevenlabs import ElevenLabs

client = ElevenLabs(api_key="pr_live_...")

audio = client.text_to_speech.convert(
    voice_id="VOICE_ID",
    text="Hello from PolyRead!",
    model_id="polyread-tts-1",
    voice_settings={"stability": 0.5, "similarity_boost": 0.75},
)

Switching from ElevenLabs

Before (ElevenLabs) After (PolyRead)
from elevenlabs import ElevenLabs from elevenlabs import ElevenLabsunchanged
pip install elevenlabs pip install polyread
ElevenLabs(api_key="el_...") ElevenLabs(api_key="pr_live_...")
client.text_to_speech.convert(...) client.text_to_speech.convert(...)unchanged

All class names, method names, and parameter shapes are identical. Only the package and API key change.

API Keys

Create an API key from your PolyRead Developer Dashboard. Keys start with pr_live_.

Supported Models

model_id Description
polyread-tts-1 Standard quality, lowest latency (default)
polyread-tts-1-hd Higher quality, slightly higher latency
polyread-multilingual-v1 20+ language support

Base URL

All requests go to the PolyRead API automatically. You can override it:

client = ElevenLabs(
    api_key="pr_live_...",
    base_url="https://your-custom-endpoint.com/api",
)

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

polyread-1.0.0.tar.gz (483.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polyread-1.0.0-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

Details for the file polyread-1.0.0.tar.gz.

File metadata

  • Download URL: polyread-1.0.0.tar.gz
  • Upload date:
  • Size: 483.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.0 Windows/11

File hashes

Hashes for polyread-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2024f98edbcb78d90ce739f9ecc4e6ad7992a3afec40d637ea87d69e384f6458
MD5 171fc8beb198102a4493501777aef489
BLAKE2b-256 c190c64d8510bf5a35d8946bab77285c9f7ae810537ca321288d051789309f40

See more details on using hashes here.

File details

Details for the file polyread-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: polyread-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.0 Windows/11

File hashes

Hashes for polyread-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ba2761ea56d36a9f228919de3879837c95874eee09af7f617231868b24c3eed
MD5 b86d51dd183cf815863d95386fc7e41b
BLAKE2b-256 58f32c0da60b60e0e777c4c2dee1a5abfbb227a03e41bf2f75e33c145eb2d598

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page