Skip to main content

balthu_tools

Caja de herramientas de IA en Python: clases listas para usar de Speech-to-Text (STT), Text-to-Speech (TTS), modelos de lenguaje (LLM) y visión por computadora, pensadas para correr en local.

Instalación

pip install balthu_tools

Uso

STT (Speech-to-Text) — Faster-whisper

from balthu_tools import STT

stt = STT(
    version="small",
    device="cpu",
    type="int8",
    language="es",
    task="transcribe",
    filter=True,
    word_timestamps=False,
    beam_size=5,
    promt=None,
    condition=True
)

texto = stt.audio("audio.wav")
print(texto)

TTS (Text-to-Speech) — Piper

from balthu_tools import TTS

tts = TTS("voces/tu_modelo.onnx")
tts.voice("salida.wav", "Hola, esto es una prueba")

LLM — Hugging Face Transformers

from balthu_tools import LLM

llm = LLM(
    model="Qwen/Qwen2.5-7B-Instruct",
    system="Sos un asistente útil."
)

inputs = llm.tokenizador("Hola, ¿cómo estás?")
respuesta = llm.balthu(inputs)
print(respuesta)

Requisitos

  • Python 3.10 o superior
  • ffmpeg instalado en el sistema (necesario para conversión de audio con pydub)

Licencia

MIT — ver el archivo LICENSE.

Metadata

Release files for balthu-tools 0.2.0

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

Source distribution (sdist)

Source distribution for balthu-tools 0.2.0
File Size Uploaded
balthu_tools-0.2.0.tar.gz 8.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for balthu-tools 0.2.0
File Interpreter ABI Platform
balthu_tools-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.6 kB

Release files / balthu_tools-0.2.0.tar.gz

Download URL balthu_tools-0.2.0.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
934c8f855abb719caa7a974de00c9a23c273f29099a292121fcbc82ff4b5ab2d
BLAKE2b-256 checksum
How to use checksums
0ae7fa1fb419823d810e9088fb6c0e05a8c7a3647d8c05efedf861d072d9897e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release files / balthu_tools-0.2.0-py3-none-any.whl

Download URL balthu_tools-0.2.0-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6bc0b6f7251519aab0ce38ba6900c965140897eb8ada42e651b02ae844c76ee8
BLAKE2b-256 checksum
How to use checksums
c9dca5caeb1eae3815a492b1831e3d61f25d503fc35438d04d79b7504263b665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.11

Release history Release notifications | RSS feed

1.0.0

2 release files

This release

0.2.0 This release

2 release files

0.1.0

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