Skip to main content

No project description provided

Project description

Veeper Speech Recognition (veespeech)

Tests Coverage Bandit Safety PyPI

Небольшая библиотека для распознавания речи Veeper. Встраивается в клиентскую и серверную часть приложения и предоставляет единый интерфейс SpeechRecognizer с реализациями на базе OpenAI Whisper и Faster-Whisper.

Установка

Установите вариант под ваше окружение:

pip install "veeper-speech[cpu]"
# или
pip install "veeper-speech[gpu]"

Пример использования

from pathlib import Path
from veespeech import WhisperRecognizer, FasterWhisperRecognizer

wav_bytes = Path("path/to/audio.wav").read_bytes()

# Вариант 1: OpenAI Whisper
whisper = WhisperRecognizer(model_name="tiny", language="ru", device="cpu")
text = whisper.recognize(wav_bytes)
print(text)

# Вариант 2: Faster-Whisper
fw = FasterWhisperRecognizer(model_name="tiny", language="ru", device="cpu")
text = fw.recognize(wav_bytes)
print(text)

Опционально можно указать директорию для весов через параметр weights_directory у распознавателей.

Поддерживаемые бэкенды

  • Whisper (WhisperRecognizer)
  • Faster-Whisper (FasterWhisperRecognizer)

Запуск тестов

tox

Лицензия

MIT. См. файл LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veeper_speech-0.3.2.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veeper_speech-0.3.2-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file veeper_speech-0.3.2.tar.gz.

File metadata

  • Download URL: veeper_speech-0.3.2.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for veeper_speech-0.3.2.tar.gz
Algorithm Hash digest
SHA256 8a2c563b309222bf6b410b77167c9af0e158fa67c83011c09ed5bcb969101b4d
MD5 f5e0fc6790175046b09940b8c576d84e
BLAKE2b-256 dc7807ff116a7a87958443d9898515d50a48ee55286311d923d2333df6c553de

See more details on using hashes here.

Provenance

The following attestation bundles were made for veeper_speech-0.3.2.tar.gz:

Publisher: pypi-publish.yml on Veeper-Speech/veeper-speech

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file veeper_speech-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: veeper_speech-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for veeper_speech-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 904a8d8146e0eae7be8833d4b5979ecb8321710b8f82808a7bc219e7646de862
MD5 f8b168532f80edccdd4321bce067a8a3
BLAKE2b-256 cc0dbd6f7ed4477fd56cf4803acf64db2bb94c4317444270200f44f0e8123694

See more details on using hashes here.

Provenance

The following attestation bundles were made for veeper_speech-0.3.2-py3-none-any.whl:

Publisher: pypi-publish.yml on Veeper-Speech/veeper-speech

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page