class Phostt < Formula
desc "On-device Vietnamese speech recognition server powered by Zipformer-vi RNN-T"
homepage "https://github.com/ekhodzitsky/phostt"
version "0.1.0"
license "MIT"
on_macos do
if Hardware::CPU.arm?
url "https://github.com/ekhodzitsky/phostt/releases/download/v0.1.0/phostt-0.1.0-aarch64-apple-darwin.tar.gz"
sha256 "0000000000000000000000000000000000000000000000000000000000000000" end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/ekhodzitsky/phostt/releases/download/v0.1.0/phostt-0.1.0-x86_64-unknown-linux-gnu.tar.gz"
sha256 "0000000000000000000000000000000000000000000000000000000000000000" end
end
def install
bin.install "phostt"
end
def caveats
<<~EOS
The Zipformer-vi RNN-T ONNX bundle (~75 MB INT8) is downloaded on first
run into ~/.phostt/models. Weights are pre-quantized upstream — no
separate quantization step is required.
Quick start:
phostt download # fetches Zipformer-vi ONNX bundle
phostt serve # starts STT server on 127.0.0.1:9876
Homepage: https://github.com/ekhodzitsky/phostt
EOS
end
test do
assert_match version.to_s, shell_output("#{bin}/phostt --version")
end
end