An opinionated way of doing AI - Task-oriented ai nodes for general-computing
Project description
sulat
an Opinionated Way of doing AI - Task-oriented AI nodes
Installation
From PyPI (Recommended)
pip install sulat
From Source
uv venv
source .venv/bin/activate
uv pip install -e .
Usage
import sulat
# Basic transcription (uses Whisper model)
text = sulat.transcribe("audio.wav")
# High performance transcription (uses Canary model)
text = sulat.transcribe("audio.wav", high_performance=True, source_lang="es")
# Control source and target languages
text = sulat.transcribe("audio.wav", source_lang="es", target_lang="en")
# Additional options
text = sulat.transcribe(
"audio.wav",
high_performance=False, # Use Whisper (default) or Canary model
source_lang="auto", # Auto-detect or specify language
target_lang="en", # Target language for translation
response_format="json", # Response format
temperature=0.0 # Temperature for generation
)
Environment Setup
Create a .env file in your project root:
# .env
SURUS_API_KEY=your_api_key_here
Or set the environment variable directly:
export SURUS_API_KEY="your_api_key"
Development
# Setup environment
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"
# Run tests
pytest tests/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sulat-0.1.1.tar.gz
(5.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sulat-0.1.1-py3-none-any.whl
(5.9 kB
view details)
File details
Details for the file sulat-0.1.1.tar.gz.
File metadata
- Download URL: sulat-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0f8af4f803a43a78cdb0f848d6690a3525c1633260242c906cc9c5648a225bc
|
|
| MD5 |
dffac6138028acfc53a1975168069900
|
|
| BLAKE2b-256 |
a5a8b7911659986c90857d99a25b409de8ddf4b92063b3b0d9bcd6833afaf45b
|
File details
Details for the file sulat-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sulat-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7d0b24a896dcd32b1d80a7e24c169d046e11991874e41db1c60b0c5a8a3301e
|
|
| MD5 |
8fcfd7855a505588373e9d6df072dc96
|
|
| BLAKE2b-256 |
e64db503ee18c5ad9c3858e044cdf4d716c2b929b8a4895fd5c4e231ce535a26
|