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

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

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.5.0.tar.gz (13.2 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.5.0-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for veeper_speech-0.5.0.tar.gz
Algorithm Hash digest
SHA256 83900ffc4bb93f372eb1f75e6e4c280770711510e5e35b92ffcd91bb913ae2e0
MD5 a113c942472a4ee9f53e12a3ec6aff62
BLAKE2b-256 bccb0e60699d26702835ad341adf308c666a04b985d7786fe28ea588ea4ae23f

See more details on using hashes here.

Provenance

The following attestation bundles were made for veeper_speech-0.5.0.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.5.0-py3-none-any.whl.

File metadata

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

File hashes

Hashes for veeper_speech-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 de5a0277954a7fc8fbd04cc7709b63d620ee715236c49688223ee6b34e88e52d
MD5 b97d1545382ac87757e48426f4fe41c0
BLAKE2b-256 8e41eff1b1c1567ebd98c1ae86e72c468800076bc31fceca67892348e79808f5

See more details on using hashes here.

Provenance

The following attestation bundles were made for veeper_speech-0.5.0-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