Skip to main content

PyPI Python License: MIT

Installation

pip install voicelab-sdk

Initialization

import os

from voicelab import VoiceLab

client = VoiceLab(api_key=os.environ["VOICELAB_API_KEY"])

Generate speech

speech = client.tts.synthesize(
    text="Hello from VoiceLab.",
    language="en",
    voice_id="voice_01J9NEUTRAL0000000000000001",
)

with open("speech.wav", "wb") as audio_file:
    audio_file.write(speech.audio)

Transcribe audio

result = client.stt.transcribe(audio="meeting.mp3", language="en")

if result.transcript is not None:
    print(result.transcript)

Stream speech

with client.realtime.connect_text_to_speech() as stream:
    stream.synthesize(
        text="This audio arrives as PCM chunks.",
        language="en",
        voice_id="voice_01J9NEUTRAL0000000000000001",
    )
    for message in stream:
        if isinstance(message, bytes):
            playback_queue.put(message)

Metadata

Release files for voicelab-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for voicelab-sdk 0.1.0
File Size Uploaded Provenance
voicelab_sdk-0.1.0.tar.gz 92.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for voicelab-sdk 0.1.0
File Interpreter ABI Platform
voicelab_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 117.2 kB

Release files / voicelab_sdk-0.1.0.tar.gz

Download URL voicelab_sdk-0.1.0.tar.gz
Size 92.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b3bf10b9c9eacefcc39d42f730193e446c58abc81fc5dee316aec8977340752c
BLAKE2b-256 checksum
How to use checksums
0cd294108b0a4c1e5b1f7db4849b789d1443b2f88a638b716799fbf10e081d4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / voicelab_sdk-0.1.0-py3-none-any.whl

Download URL voicelab_sdk-0.1.0-py3-none-any.whl
Size 24.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
92fbe288a9627b0784b2057869f87b500cada359eb30e6f0b7042f21bd6b2081
BLAKE2b-256 checksum
How to use checksums
ef759c482a402b9c4022eeb1f9fae249781d00a31289389fd44da2d689909b30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for voicelab-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page