Skip to main content

Natural Persian Text-to-Speech. One command.

Project description

Persian Speech 🎙️

Natural Persian Text-to-Speech. Zero config, one command.

Built on Mana-Persian-Piper, trained on 114 hours of high-quality Persian speech.
Runs on servers, laptops, Raspberry Pi, and mobile devices. Entirely offline.

Why Persian Speech?

  • Natural voice — Trained on the largest Persian speech dataset (Mana-TTS)
  • Runs anywhere — Linux, Windows, macOS, Raspberry Pi, Android, iOS
  • Edge & mobile ready — ONNX runtime, lightweight model, no GPU needed
  • Offline first — No internet after initial model download
  • Blazing fast — 25x faster than realtime on CPU
  • One commandspeech "سلام" and you're done

Install

pip install persian-speech

Model downloads automatically on first use. That's it.

Usage

Command line:

speech "سلام به همگی"
speech "سلام دنیا" hello.wav

Python:

from persian_speech_runtime import talk
talk("سلام به همگی", "output.wav")

Server:

python server.py
# http://localhost:8000/tts?text=سلام

API

from persian_speech_runtime import PiperSpeechEngine, talk

talk("سلام", "out.wav")              # One-liner

tts = PiperSpeechEngine()
tts.save("سلام", "out.wav")          # Save WAV
tts.stream("سلام")                   # WAV bytes
tts.synthesize("سلام")               # NumPy array

License

MIT — Use it anywhere. Built on Mana-Persian-Piper (MIT) and Mana-TTS (CC0).

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

persian_speech-1.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

persian_speech-1.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file persian_speech-1.1.0.tar.gz.

File metadata

  • Download URL: persian_speech-1.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for persian_speech-1.1.0.tar.gz
Algorithm Hash digest
SHA256 a1a5de867976d99fbbde65ae286ac870e721aa72296dbd29d65424a0d7385e27
MD5 2049444e841dbd7b8741efe3143b6c4b
BLAKE2b-256 d5ca2d175ea9db390d6f585bc8e7a9255ff9ca4393841b640a278eda967d93cc

See more details on using hashes here.

File details

Details for the file persian_speech-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: persian_speech-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.9

File hashes

Hashes for persian_speech-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c63ce4ffdf733ff02d9ee4aaf1332684b26f7fc55f626d9d699f72d5552e6a4a
MD5 6bade8c50cc99d93aedb5bd8f79de3ee
BLAKE2b-256 a95e8d49ed66e76f1d9baaa9f6e47d1dec26dd024c2083981f3b19e326b4845c

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