# automatically generated by g-sorcery
# please do not edit this file

EAPI=8

REALNAME="${PN}"
LITERALNAME="${PN}"
REALVERSION="${PV}"
DIGEST_SOURCES="yes"
PYTHON_COMPAT=( python{3_11,3_12,3_13,3_14} )
DISTUTILS_USE_PEP517=standalone

inherit python-r1 gs-pypi

DESCRIPTION="Library for performing speech recognition, with support for several engines and APIs, online and offline."

HOMEPAGE="https://github.com/Uberi/speech_recognition#readme"
LICENSE="BSD"
SRC_URI="https://files.pythonhosted.org/packages/26/ab/bb1c60e7bfd6b7a736f76439b78ebbfb5e92a81b626b6e94a87e166f2ea4/speechrecognition-${REALVERSION}.tar.gz"
SOURCEFILE="speechrecognition-${REALVERSION}.tar.gz"
RESTRICT="test"

SLOT="0"
KEYWORDS="~amd64 ~x86"

IUSE="assemblyai audio dev faster-whisper google-cloud groq openai pocketsphinx vosk whisper-local"
DEPENDENCIES="dev-python/typing-extensions[${PYTHON_USEDEP}]
	dev-python/standard-aifc[${PYTHON_USEDEP}]
	dev-python/audioop-lts[${PYTHON_USEDEP}]
	dev? ( dev-python/pytest[${PYTHON_USEDEP}] )
	dev? ( dev-python/pytest-randomly[${PYTHON_USEDEP}] )
	dev? ( dev-python/respx[${PYTHON_USEDEP}] )
	dev? ( dev-python/numpy[${PYTHON_USEDEP}] )
	dev? ( dev-python/mypy[${PYTHON_USEDEP}] )
	dev? ( dev-python/types-requests[${PYTHON_USEDEP}] )
	audio? ( >=dev-python/pyaudio-0.2.11[${PYTHON_USEDEP}] )
	pocketsphinx? ( dev-python/pocketsphinx[${PYTHON_USEDEP}] )
	google-cloud? ( dev-python/google-cloud-speech[${PYTHON_USEDEP}] )
	whisper-local? ( dev-python/openai-whisper[${PYTHON_USEDEP}] )
	whisper-local? ( dev-python/soundfile[${PYTHON_USEDEP}] )
	faster-whisper? ( dev-python/faster-whisper[${PYTHON_USEDEP}] )
	faster-whisper? ( dev-python/soundfile[${PYTHON_USEDEP}] )
	openai? ( dev-python/openai[${PYTHON_USEDEP}] )
	openai? ( <dev-python/httpx-0.28[${PYTHON_USEDEP}] )
	groq? ( dev-python/groq[${PYTHON_USEDEP}] )
	groq? ( <dev-python/httpx-0.28[${PYTHON_USEDEP}] )
	assemblyai? ( dev-python/requests[${PYTHON_USEDEP}] )
	vosk? ( dev-python/vosk[${PYTHON_USEDEP}] )"
BDEPEND="${DEPENDENCIES}"
RDEPEND="${DEPENDENCIES}"