Go to file
Ilgiz Kalmetyev aa865b3924 обавить отдельный processed_fingerprint и явный guard “этот хэш уже был успешно обработан”, чтобы идемпотентность была очевиднее на уровне схемы, а не только логики пайплайна 2026-04-04 22:07:48 +05:00
artifacts bootstrap 2026-04-04 16:03:35 +05:00
data добавлена словесная классификация звонков 2026-04-04 22:03:34 +05:00
docs добавлен поиск по номеру телефона в базах контактов и компаний 2026-04-04 18:40:28 +05:00
in добавлен поиск по номеру телефона в базах контактов и компаний 2026-04-04 18:40:28 +05:00
models bootstrap 2026-04-04 16:03:35 +05:00
tests обавить отдельный processed_fingerprint и явный guard “этот хэш уже был успешно обработан”, чтобы идемпотентность была очевиднее на уровне схемы, а не только логики пайплайна 2026-04-04 22:07:48 +05:00
voiceapp обавить отдельный processed_fingerprint и явный guard “этот хэш уже был успешно обработан”, чтобы идемпотентность была очевиднее на уровне схемы, а не только логики пайплайна 2026-04-04 22:07:48 +05:00
voiceapp.egg-info Добавил в документацию раздел с командами установки модулей. Добавил команду clear-db для очистки всех записей из SQLite-БД 2026-04-04 16:20:51 +05:00
.gitignore Сформирована SPEC.md 2026-04-04 21:17:42 +05:00
README.md добавлена словесная классификация звонков 2026-04-04 22:03:34 +05:00
SPEC.md Сформирована SPEC.md 2026-04-04 21:17:42 +05:00
classification_taxonomy.json добавлена словесная классификация звонков 2026-04-04 22:03:34 +05:00
deploy.md Добавил deploy.md в корень проекта. 2026-04-04 18:43:06 +05:00
pyproject.toml bootstrap 2026-04-04 16:03:35 +05:00
usage.md bootstrap 2026-04-04 16:03:35 +05:00
voiceapp.toml добавлена словесная классификация звонков 2026-04-04 22:03:34 +05:00

README.md

VoiceApp

VoiceApp is a local call analytics pipeline for audio recordings and CRM-linked call data.

It can work in two input modes:

  • directory mode for local audio files
  • bitrix mode for Bitrix Box activities and recordings

The project is designed for on-prem or desktop use:

  • audio is processed locally
  • results are stored in SQLite
  • transcription uses a local Faster-Whisper model
  • analysis is done with a rule-based backend or an optional local LLM

What It Does

  • discovers call recordings from a folder or Bitrix
  • decodes audio through ffmpeg
  • transcribes speech with Faster-Whisper
  • assigns speaker turns with a heuristic diarizer
  • extracts entities such as phones, companies, and person names
  • classifies each call with a hybrid layer: rules, optional LLM, and optional similarity search
  • enriches calls from local CSV CRM dictionaries
  • imports company and contact dictionaries into SQLite
  • matches phone numbers against CRM data
  • stores full processing results in a local database

Main Commands

python -m voiceapp doctor
python -m voiceapp fetch-model
python -m voiceapp ingest calls
python -m voiceapp ingest company
python -m voiceapp ingest contact
python -m voiceapp list
python -m voiceapp list-ids
python -m voiceapp show <call_id_or_filename>

Cleanup commands:

python -m voiceapp clear-contacts --yes
python -m voiceapp clear-companies --yes
python -m voiceapp clear-calls --yes
python -m voiceapp clear-db --yes

Quick Start

  1. Create and activate a virtual environment.
  2. Install the project:
python -m pip install -e .
  1. Make sure ffmpeg is available:
python -m voiceapp doctor
  1. Download the local transcription model:
python -m voiceapp fetch-model
  1. Import CRM dictionaries if you have them:
python -m voiceapp ingest company
python -m voiceapp ingest contact
  1. Process calls:
python -m voiceapp ingest calls

Configuration

The main configuration file is voiceapp.toml.

Default paths:

  • input: in/call_records
  • database: data/voiceapp.sqlite3
  • model: models/faster-whisper-medium

Bitrix mode can be enabled by setting:

[input]
source = "bitrix"

See deploy.md for Linux and Windows deployment guidance.

Project Structure

  • voiceapp/ - application code
  • tests/ - automated tests
  • docs/usage.md - usage guide
  • deploy.md - deployment instructions
  • SPEC.md - architecture and system specification
  • in/ - input data
  • data/ - SQLite database
  • models/ - local speech models
  • artifacts/ - scratch outputs and probes

Documentation

Notes

  • The project is fully local by default.
  • CRM enrichment is based on imported company/contact CSV files and Bitrix data when configured.
  • The pipeline is idempotent for already processed files and imported CRM rows.