No project description provided
Project description
Veeper Speech Recognition (veespeech)
Небольшая библиотека для распознавания речи 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file veeper_speech-0.4.0.tar.gz.
File metadata
- Download URL: veeper_speech-0.4.0.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e28a3df2e426dab2a065db899181e7faf7c1300c44f4bdad6c376db23b89e1c
|
|
| MD5 |
3259ebd6bfa9811c361cb31b0c61478a
|
|
| BLAKE2b-256 |
f16cbd28ef971c44421c72ce247b83d092a8b57d79209075e6e0634f8534850b
|
Provenance
The following attestation bundles were made for veeper_speech-0.4.0.tar.gz:
Publisher:
pypi-publish.yml on Veeper-Speech/veeper-speech
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veeper_speech-0.4.0.tar.gz -
Subject digest:
0e28a3df2e426dab2a065db899181e7faf7c1300c44f4bdad6c376db23b89e1c - Sigstore transparency entry: 1897830351
- Sigstore integration time:
-
Permalink:
Veeper-Speech/veeper-speech@461a528648d6b9856941203623a63f6295cc46e6 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Veeper-Speech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@461a528648d6b9856941203623a63f6295cc46e6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file veeper_speech-0.4.0-py3-none-any.whl.
File metadata
- Download URL: veeper_speech-0.4.0-py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb6e490f07b2809f5eb1412ec9a5cb3a3e517ee2bfd967e7c561cb4ae299fba5
|
|
| MD5 |
7a75fe7f8c0b6afa7969da2b2f622f77
|
|
| BLAKE2b-256 |
0cde04e56e012901ee0b45f0df5ef5dad719d56249839e55aec5091037f12951
|
Provenance
The following attestation bundles were made for veeper_speech-0.4.0-py3-none-any.whl:
Publisher:
pypi-publish.yml on Veeper-Speech/veeper-speech
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
veeper_speech-0.4.0-py3-none-any.whl -
Subject digest:
fb6e490f07b2809f5eb1412ec9a5cb3a3e517ee2bfd967e7c561cb4ae299fba5 - Sigstore transparency entry: 1897830475
- Sigstore integration time:
-
Permalink:
Veeper-Speech/veeper-speech@461a528648d6b9856941203623a63f6295cc46e6 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/Veeper-Speech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@461a528648d6b9856941203623a63f6295cc46e6 -
Trigger Event:
push
-
Statement type: