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 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| balthu_tools-1.0.0.tar.gz | 9.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| balthu_tools-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / balthu_tools-1.0.0.tar.gz
| Download URL | balthu_tools-1.0.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
88031ecc1d1e74793c8668d243993b730adaf1968205831626a6ac46fb09b20e
|
|
BLAKE2b-256 checksum How to use checksums |
495d6e40b4d2d51f1fcddca8bc72f35b904f4fb0c696d6a4598c376a91226815
|
| 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-1.0.0-py3-none-any.whl
| Download URL | balthu_tools-1.0.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0b5ae96ca760a1a75e83bdb204625332aca751465fb7764b06d7b5c1f39f89b
|
|
BLAKE2b-256 checksum How to use checksums |
e6d7965744b68c9f8f7c37c617e8d16f113101b556d5bbb0103ed30f7c5b3da8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.11
|