Files
Vladimir Ulianitsky 9adbd76c77 Add Ruby gem (#2022)
* Init gem

* WIP

* WIP

* WIP: Gemify

* WIP

* Try ffi_gen

* Revert "Try ffi_gen"

This reverts commit a54e56b35a1bdc079dbe122aff47d79038d4e52f.

* Vibecode 1

* Vibecode 2

* rework progressbar

* Some ref + test_captcha

* Return deleted by Claude

* Draft precompiled packaging

* Review and refactor C bindings

* ref OwnedString

* Rename methods and add notes

* rubocop

* Fix progressbar, add examples

* Ref spec

* Ref spec - final

* Final ver

* Add srt, other fixes

* Move to ruby dir

---------

Co-authored-by: Nickolay V. Shmyrev <nshmyrev@gmail.com>
2026-02-22 11:51:10 +03:00

42 lines
1.6 KiB
Ruby

# frozen_string_literal: true
require_relative "lib/vosk/version"
Gem::Specification.new do |spec|
spec.name = "vosk"
spec.version = Vosk::VERSION
spec.authors = ["Alpha Cephei Inc", "Vladimir Ulianitsky"]
spec.email = ["contact@alphacphei.com", "uvlad7@gmail.com"]
spec.summary = "Offline speech recognition API"
spec.description =
"Vosk is an offline open source speech recognition toolkit. " \
"It enables speech recognition for 20+ languages and dialects - " \
"English, Indian English, German, French, Spanish, Portuguese, Chinese, Russian, Turkish, Vietnamese, " \
"Italian, Dutch, Catalan, Arabic, Greek, Farsi, Filipino, Ukrainian, Kazakh, Swedish, Japanese, " \
"Esperanto, Hindi, Czech, Polish. More to come."
spec.homepage = "https://alphacephei.com/vosk"
spec.license = "Apache-2.0"
spec.required_ruby_version = ">= 2.5"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/alphacep/vosk-api"
spec.files = [
*Dir["lib/**/*.rb"], *Dir["exe/**/*"], *Dir["sig/**/*"],
]
spec.bindir = "exe"
spec.executables = ["vosk-transcriber"]
spec.require_paths = ["lib"]
spec.add_dependency "bytesize", "~> 0.1"
spec.add_dependency "ffi", "~> 1.6"
spec.add_dependency "fileutils", "~> 1.7"
spec.add_dependency "httparty", "~> 0.21"
spec.add_dependency "progressbar", "~> 1.13"
spec.add_dependency "rubyzip", "~> 2.4"
spec.add_dependency "srt", "~> 0.1.5"
# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
spec.metadata["rubygems_mfa_required"] = "true"
end