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.1.tar.gz (4.1 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.1-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: persian_speech-1.1.1.tar.gz
  • Upload date:
  • Size: 4.1 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.1.tar.gz
Algorithm Hash digest
SHA256 85ccfdafa203452dc3058d9787541ced4ec13fb0b1ca5a244bd2e51bf190536c
MD5 06112f16624f399fe7c7f3346f365b01
BLAKE2b-256 d7303f9dde15989261fdea326a2736b565093b4a4ff491d74d5f8fa0ed592a8f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: persian_speech-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c02d51fe13fe0315c08d32901b2c9db0f0ed74295c176ce7af23b87c80361e45
MD5 df53d12a8b2fab7c3f04a6c0ff695f41
BLAKE2b-256 957e1f6a27e7089e9b2f8c19e6ef2c3736d4c8383679011ad961b9ebd22d3c3d

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