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.1.tar.gz (483.2 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.1-py3-none-any.whl (1.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: polyread-1.0.1.tar.gz
  • Upload date:
  • Size: 483.2 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.1.tar.gz
Algorithm Hash digest
SHA256 1e0e9810fe58bd2c12f6255464a963a977f8ffdae2747b1b2e9fc13fc17563e0
MD5 bbc67f02cb13bdcda967eccc20cf1884
BLAKE2b-256 d024cad63835e6e24600def7167fb66cc589aeb45cb525ad42d3c354b4906f63

See more details on using hashes here.

File details

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

File metadata

  • Download URL: polyread-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ca6f098bf662423a239ef5b6e9f39917df3380041ccab59fabd61c1c112b7c8
MD5 29da028530428c6ebcfa8f95ad57ec66
BLAKE2b-256 ff7f35d893aa70b75638391a6b37580d971ea0cfd2df82d8e555d55ef23f4747

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