# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-mlx-audio
version             0.5.8
revision            0
categories-append   llm science

license             MIT
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         Inference of text-to-speech (TTS) and speech-to-speech (STS) models

long_description    ${python.rootname} is a package for inference of text-to-speech (TTS) \
                    and speech-to-speech (STS) models locally on your Mac using MLX.

homepage            https://github.com/Blaizzy/mlx-audio

python.rootname     [string map {- _} ${python.rootname}]

python.versions     312 313 314

checksums           rmd160  ea277e3d0b0fc48ec6ba635bfd9c868711772c16 \
                    sha256  55a7378a4d27dddeba2d989f71f255ce70498b3f1c27928a8b1fb0baf3577d9e \
                    size    1762499

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-fastapi \
                    port:py${python.version}-huggingface_hub \
                    port:py${python.version}-miniaudio \
                    port:py${python.version}-mlx \
                    port:py${python.version}-mlx-lm \
                    port:py${python.version}-numpy \
                    port:py${python.version}-python-multipart \
                    port:py${python.version}-sounddevice \
                    port:py${python.version}-scipy \
                    port:py${python.version}-sentencepiece \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-transformers \
                    port:py${python.version}-uvicorn \
                    port:py${python.version}-zstd
}
