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.1.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.1.0
File Size Uploaded
balthu_tools-0.1.0.tar.gz 7.5 kB Details

Built distribution (wheel)

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

Total release size: 17.2 kB

Release files / balthu_tools-0.1.0.tar.gz

Download URL balthu_tools-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ea203494c67df5051f0e9d305a6edb4232123a35aaf7ba8d0adb5d0154245028
BLAKE2b-256 checksum
How to use checksums
ec7f3dd8d81c1708154155946a548cc7ba3a86e10cc24bc9349973a02f3eb624
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.1.0-py3-none-any.whl

Download URL balthu_tools-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d93a1eebf3d6c73a5491ff47f7f4bbfbc5222c1bea7bf39997b88419078b336c
BLAKE2b-256 checksum
How to use checksums
5647a0a7d0e9594d2eac1d0670b40f5daf3be74291ff0a513ec1add556b4906d
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

0.2.0

2 release files

This release

0.1.0 This release

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