Skip to main content

Snorbyte TTS client with streaming and playback

Reason this release was yanked:

Unstable Release

Project description

snorbyte

Minimal Snorbyte TTS client with streaming, PCM ring-buffer playback, and ffplay/ffmpeg required for compressed live playback/encoding.

DEPENDENCIES (VERY IMPORTANT)

We require both ffplay and ffmpeg to be available on your system PATH. We also use sounddevice for PCM playback, which depends on PortAudio (OS package) on Linux.

Windows

Option A (winget)

winget install -e --id Gyan.FFmpeg

Option B (chocolatey)

choco install ffmpeg

Verify

After install, ensure the ffmpeg/bin folder is on your PATH.

ffmpeg -version
ffplay -version

Linux

Debian/Ubuntu

sudo apt-get update
sudo apt-get install -y ffmpeg libportaudio2

Fedora/RHEL/CentOS (dnf)

sudo dnf install -y ffmpeg portaudio

Arch/Manjaro

sudo pacman -S --needed ffmpeg portaudio

Verify

ffmpeg -version
ffplay -version

INSTALL PACKAGE

pip install snorbyte

EXAMPLE USAGE

from snorbyte import Snorbyte

def consume_stream(b: bytes):
    # b is raw stream bytes (PCM aligned for fmt="pcm", raw MP3/WAV chunks otherwise)
    print(f"chunk {len(b)} bytes")

client = Snorbyte(
    api_key="<YOUR-API-KEY>",
    endpoint="http://api.snorbyte.com/tts",
)

path, data, info = client.tts(
    utterance="दोस्त, दिल टूटा है तो क्या, रात भर प्लेलिस्ट रोएगी पर सुबह धूप आएगी, खुद से वादा कर—जो गया, जाने दे, जो आएगा, मुस्कुराकर अपनाएंगे।",
    speaker_id=233,
    speaker_name="",
    tone="Encouraging",
    speed=1.00,
    chunk_size=8192,
    denoise=True,
    stream=True,
    stream_bytes_callback=consume_stream,
    fmt="pcm",               # "mp3" | "wav" | "pcm"
    save_to="out5.mp3",      # optional; auto-name if omitted
    temperature=0.0,
    top_p=1.0,
    repetition_penalty=1.05,
)

print("Saved to:", path)
print("Bytes in memory:", len(data) if data else None)
print("Info (ms):", info["latency_ms"])

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

snorbyte-0.1.8.tar.gz (56.4 kB view details)

Uploaded Source

Built Distributions

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

snorbyte-0.1.8-py3-none-any.whl (58.1 kB view details)

Uploaded Python 3

snorbyte-0.1.8-cp312-cp312-win_amd64.whl (258.8 kB view details)

Uploaded CPython 3.12Windows x86-64

snorbyte-0.1.8-cp312-cp312-win32.whl (246.7 kB view details)

Uploaded CPython 3.12Windows x86

snorbyte-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (940.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

snorbyte-0.1.8-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (894.7 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

snorbyte-0.1.8-cp312-cp312-macosx_10_13_universal2.whl (393.5 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

snorbyte-0.1.8-cp311-cp311-win_amd64.whl (259.8 kB view details)

Uploaded CPython 3.11Windows x86-64

snorbyte-0.1.8-cp311-cp311-win32.whl (249.5 kB view details)

Uploaded CPython 3.11Windows x86

snorbyte-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (973.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

snorbyte-0.1.8-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (939.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

snorbyte-0.1.8-cp311-cp311-macosx_10_9_universal2.whl (395.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

snorbyte-0.1.8-cp310-cp310-win_amd64.whl (259.2 kB view details)

Uploaded CPython 3.10Windows x86-64

snorbyte-0.1.8-cp310-cp310-win32.whl (250.0 kB view details)

Uploaded CPython 3.10Windows x86

snorbyte-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (918.9 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

snorbyte-0.1.8-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (893.1 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

snorbyte-0.1.8-cp310-cp310-macosx_10_9_universal2.whl (390.8 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

snorbyte-0.1.8-cp39-cp39-win_amd64.whl (259.6 kB view details)

Uploaded CPython 3.9Windows x86-64

snorbyte-0.1.8-cp39-cp39-win32.whl (250.3 kB view details)

Uploaded CPython 3.9Windows x86

snorbyte-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (934.8 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

snorbyte-0.1.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl (911.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ i686manylinux: glibc 2.5+ i686

snorbyte-0.1.8-cp39-cp39-macosx_10_9_universal2.whl (391.5 kB view details)

Uploaded CPython 3.9macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file snorbyte-0.1.8.tar.gz.

File metadata

  • Download URL: snorbyte-0.1.8.tar.gz
  • Upload date:
  • Size: 56.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for snorbyte-0.1.8.tar.gz
Algorithm Hash digest
SHA256 41b9466f67021b36cfdc6c2d467111271e35353f2ea2b160d28e29b1b8e128e0
MD5 a98425bdd17b7c06f416209b39d36a66
BLAKE2b-256 ba661053195741eb8c03bca6513c62865cb9afcda28e3aa2516c87f33f18141c

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: snorbyte-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 58.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for snorbyte-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 426ffa31913508c03e55c95410e77d69302347cf7e88c47c7bb64713bdccfb46
MD5 f5297fc006e5bee485000aaf95621d05
BLAKE2b-256 8ac76253db139bd83ce6291ec68e8c150d44fda6ef224dc69fc35c868cae6f25

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 258.8 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a42f409af89e50386403a7023a6d73e5f393db4120cba74b2540e42eafad3d68
MD5 3cb2cd8a3928b61665b5e13ff9dbd7af
BLAKE2b-256 6ea1a9da5c65557e1198aee331832e43536eab3707aa9264a44ec24450151e59

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp312-cp312-win32.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp312-cp312-win32.whl
  • Upload date:
  • Size: 246.7 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 ad229e2178abde2d77e05254ea8e8819f3701f62848cd8b4ef533a60b835a93c
MD5 813ea11318f9f49ab5123bd63b426e0e
BLAKE2b-256 17c6df54d3aae5d140ad34e3228cd151d9e2e07d36b4219bbd8117067c8b78fe

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ca727ef529ffa63ab24e674cbf2642706883684db15d7792d24581b450744a2d
MD5 fcc0cc172e774d8c6f58e719bfed5a99
BLAKE2b-256 ebc953626351d5d553c9f13f881275ae1a8ec832c250207bad32071b3ce37bd7

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 f60ddea6efa08650e3498784c6f6f871778d3b6deb5302eb90d927687cd800db
MD5 01b30a748fff72133a0c6804ca696c0f
BLAKE2b-256 015820448a0d21b6a944fc72d685da64340c1fb452c7a2f801b658535e465275

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 8ae4300c3a9add525b0397524f06608ec2cfe17ae8ce70896f5251b3827a506f
MD5 ec8d50c698b1680ebfaa5ae5d28f9a32
BLAKE2b-256 d3e19f2d8d8e4bcc146094387d42fed7c44926e52380f0787818b77b6a4e05ac

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 259.8 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 53c30af732f6dc9188746490ebc5fbd54e40fc0e25ba3450eef7d9776190c94d
MD5 f656646efb43e282f062465e89e52d31
BLAKE2b-256 bf13a2a5343d99a7fe47cace0b99f8e0d163e0f3c25522975c0dbeee56925559

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp311-cp311-win32.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp311-cp311-win32.whl
  • Upload date:
  • Size: 249.5 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 6f08209fe8a2e8755cfa6fd40f8c43c4a35c97b9867292a1e6cc9fd607716343
MD5 9477c78f3735defd156b70dc1f6e1805
BLAKE2b-256 670df2c957be722485719ce4bd11ec0da2d13613bb2bfb375312d1097d9a4e69

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a0bb55027748f0ea9d488e7ff6ff0b864463017e3cd416f605079b4b234b1269
MD5 1557caec65a496bd970e6f03bc47487c
BLAKE2b-256 c7e7d0b04e154f5ce69d25ab6751b76139b02581d1fdcd6bda634961f9c7f2e6

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 fc87e63262d3d07da41575b71962b9bd8dfb0dc8af20e35863ef181749ff2b3d
MD5 74efac8ef3b47ccbeb7a580b675f3ebf
BLAKE2b-256 aaa144f9e69c87f9dafe93e24e01572b92e7a2272b9efd6e854b34901e322d08

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 aec735d66bdb79e15216107ece446fab6487b2ab9b2d96678ce20b0c6250e1e9
MD5 b5ede97240dc56da030d11046f83c28b
BLAKE2b-256 0435dbe26e193a0c147c297844ac1319f2004115ec21f8abffab60c4a5890891

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 259.2 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 e5be028a8af159c0e2cbde0a4c84104cbe490bb7846768e2c06f18eccd97014e
MD5 91881550c7b818a1235842abe7578c73
BLAKE2b-256 74359ebed0b4b776298c86696df2a64379019fb1bcce9b6963f70d9e7d893c76

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp310-cp310-win32.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp310-cp310-win32.whl
  • Upload date:
  • Size: 250.0 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 fe5532aca0be18672866d1773a9afe8dbe97c5cf503838d5ded14228b6512027
MD5 50f31689ef32856cfe7cac127036d6d8
BLAKE2b-256 8072f57928cb98eb77b1e043f993ca9a69ea7d36a2eef85ab5df024ba9a472df

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d392c4d90b396bc1a75256c7b0d3475d3d67cdab6eac145a2fffb367e3fc73cf
MD5 4c73f0514967c6c403adce48f6f24c3c
BLAKE2b-256 70efce89db944e3dca1763fd76152ebb0f72cc3df36b846e98aa86b065bc51b2

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 dd8919718ddf3e2a189d4df27335a99053e2150c341aada2c6d2a813b549d08a
MD5 01e072d61e894eb44a28bb00d84a732e
BLAKE2b-256 16e80020a9a8d0aa0acdd4c49bb1e20d63e914467403a45baf604aa97220769a

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 48b1f57c750ae9c1c446b3ee7b4db44411544a46c4a04645d3f58d8e36097ad7
MD5 0cc16132ecdd3e13bea5ade6fa5fd480
BLAKE2b-256 b1c9390611da06b99379b5337a851d74649205c62e8bd758b78ca2a3c1e7fbb4

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 259.6 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 0d0969e45cbd587877657fb7692e2ff22e0097a701954488f660408b7096f784
MD5 5427cdca69da8be929f6248229ca7290
BLAKE2b-256 da2a6a877dae2101fd32014f76ce2716543aabce9f4c24b765bb7cedeb2c35c4

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp39-cp39-win32.whl.

File metadata

  • Download URL: snorbyte-0.1.8-cp39-cp39-win32.whl
  • Upload date:
  • Size: 250.3 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for snorbyte-0.1.8-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 463bfa1c2986d25c6305db31ff8f3596f455507e3a620460f54eaa0b3b925841
MD5 41b1f52dd65b54a4ec59641fd667c472
BLAKE2b-256 a79f3fb9d6d935171b085b72b35bee441ce8b82a26da8b261ff76e61b03d8636

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c952da070924808ab96d1e67b4b9765071871ee20c0f26b303abc9d2d194f1b9
MD5 9389ffa286ce429628430738232b0b69
BLAKE2b-256 b738e2c515ca8c81ba96fd4c8d09406588cc13bf8b14b4f50e061c488a9df7c7

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 85bfd07098ee1a61f754f3a097904f5495354e9ba93f7e27a62e55ab1d7ea9e0
MD5 ef53d8422c9ee3d96b88da1446894756
BLAKE2b-256 2f82229b74e669e9cb19b189c1c8b6db9a8e27afcbe99817cad78e852b4c3585

See more details on using hashes here.

File details

Details for the file snorbyte-0.1.8-cp39-cp39-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for snorbyte-0.1.8-cp39-cp39-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 86415984009eb1b16a341791713219dcda6dedc7e4c0ddb7c28eae5cb15ab072
MD5 81af51f037aa8c641aa06ab8b3bdbcc7
BLAKE2b-256 4f8391b8ef454d9969ce8455926b785570b40da15639229e6932527a7ecb900d

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