Skip to main content

Daktilo

Multilingual audio transcription for Moroccan Arabic (Darija), Amazigh and major languages.

Turn an audio recording into text with Sawalni API. Use it for interviews, voice notes or the transcript step of a caption workflow. Built by Omneity Labs.

Quick start

pip install daktilo
export SAWALNI_API_KEY="your-key"
daktilo transcribe interview.wav --output transcript.txt

Create an API key and enable transcription access. Requests use API credits. This package calls the hosted service; it does not run a model locally.

Python

from pathlib import Path
from daktilo import Daktilo

with Daktilo() as client:
    result = client.transcribe("interview.wav")

Path("transcript.txt").write_text(result["text"], encoding="utf-8")
print(result.get("language"))
print(result.get("warnings", []))

The response preserves the service's text, detected language, segments, warnings and usage when available. Review the words before using the transcript for captions or another downstream task.

Languages

Daktilo supports Moroccan Arabic (Darija), Amazigh varieties such as Tachelhit, and major languages including Arabic, English, French, Spanish, German, Italian, Portuguese, Chinese, Japanese, Korean, Russian, Turkish and Dutch. Leave language unset for automatic selection, especially for Amazigh and mixed-language audio recordings.

The API currently accepts forced hints ar, ary, en, fr, es, de, it, pt, zh, ja, ko, ru, tr and nl. A forced Amazigh hint such as shi is not accepted; use automatic selection. Language availability does not imply the same accuracy for every variety, accent or audio recording.

daktilo transcribe interview.wav --language ary --json --output result.json
with Daktilo() as client:
    result = client.transcribe("interview.wav", language="ary")

Text and scripts

Darija audio often mixes Arabic with French or other languages. Review the returned text before publishing it or using it for subtitles. Transcription follows the speech; script conversion is a separate step. If your workflow needs Arabizi (Latin-script Darija) or Tifinagh text, handle that requirement separately rather than assuming that a language hint selects the output script.

From transcript to timed captions

Audio recording → Daktilo → Review transcript → Sawalign → SRT captions

Need word timings or subtitles? Sawalign aligns your reviewed transcript to the same audio recording. The Python and TypeScript starter covers the full workflow.

Client reference

Daktilo(api_key=None, base_url="https://api.sawalni.com/v1", timeout=300) uses SAWALNI_API_KEY when no key is supplied. Use it as a context manager or call close().

transcribe(audio, language=None, model="daktilo") accepts a local file path and returns the response dictionary. The default model follows the service's Daktilo alias. HTTP errors raise httpx.HTTPStatusError; connection failures raise httpx.RequestError. Uploads are not automatically retried.

Audio recordings must be at most 128 MiB and 30 minutes. The service validates duration. Inspect warnings and any segment truncation flags before downstream use. Empty recognized text can be a valid result for silence. The client preserves it.

Keep API keys in your terminal or server environment. Python 3.10 or later. MIT license.

API reference · Runnable starter

Metadata

Release files for daktilo 0.1.1

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

Source distribution (sdist)

Source distribution for daktilo 0.1.1
File Size Uploaded Provenance Actions
daktilo-0.1.1.tar.gz 6.0 kB With provenance Details for daktilo-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for daktilo 0.1.1
File Interpreter ABI Platform Actions
daktilo-0.1.1-py3-none-any.whl Python 3 none any Details for daktilo-0.1.1-py3-none-any.whl

Total release size: 12.0 kB

Release files / daktilo-0.1.1.tar.gz

Download URL daktilo-0.1.1.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c170ab5ede6bc54bf883076e114b7e2305f5474c932a4b3ea0d84661c50aec8e
BLAKE2b-256 checksum
How to use checksums
f76301d4c83b8b195ad69c9bfe4893ebe753ea2b36d3df3bce9fd5ff530a6a68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Release files / daktilo-0.1.1-py3-none-any.whl

Download URL daktilo-0.1.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7c4e625b3207b490a531fd45baeb3d42299697fc73473ec5891b134ff12e0163
BLAKE2b-256 checksum
How to use checksums
467f207a4dab92f9fe582d233a56aeedc52822d86a61231e6fd8d69901628c04
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

Security for daktilo 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for daktilo-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 14, 2026.

Transparency log

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.1 This release

2 release files Full 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