Skip to main content

Diba-STT

Persian speech-to-text by Dibachain — offline, on CPU, real-time.

Part of the Diba model family. Transcribes Persian audio without a cloud or GPU.

Install

pip install diba-stt

Use

from diba_stt import DibaSTT

stt = DibaSTT("fa-small")            # "fa" for the large, more accurate model
print(stt.transcribe("audio.wav"))   # 16 kHz mono WAV

Real-time from an audio stream:

stt = DibaSTT("fa-small")
for chunk in pcm_chunks:             # 16-bit PCM bytes
    print(stt.accept(chunk))
print(stt.final())

Models: fa-small (~53 MB, default), fa (~1.6 GB, most accurate), fa-small-0.5, fa-0.5. Models are downloaded automatically from Dibachain/Diba-STT on first use.

Live browser demo: https://huggingface.co/spaces/DibaAi/diba-stt

Apache-2.0. See NOTICE for attribution.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

diba_stt-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

diba_stt-0.1.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

Details for the file diba_stt-0.1.0.tar.gz.

File metadata

  • Download URL: diba_stt-0.1.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.3

File hashes

Hashes for diba_stt-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c6ff0c1bed55b9c20eb468384d286f73ff0bc9e59cc5da21b59b5328d05e874f
MD5 dbc12616b8ed06698f8534c7fac60c9d
BLAKE2b-256 5aba9980d2a675612d9c2cf14d16094a4513537dd50322aa9c21010a9805e50a

See more details on using hashes here.

File details

Details for the file diba_stt-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: diba_stt-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.3

File hashes

Hashes for diba_stt-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b5f0e2167b0183b1b9f599cb34713b896c0dfeac8b6c6d834e66b7c01ad2914
MD5 7d79cf13a84f6c325644c07a42eab950
BLAKE2b-256 a0587e4d2aaa1ea5aa80d32af710897b51085ed821342c6ef94ae3e9dda1ff06

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

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