Skip to main content

Speechless repo for sales call analysis

Project description

speechless

UV Installation Instructions

To install dependencies and manage the project, we use uv, a fast Python package manager and resolver. Follow the steps below to set up your environment.

Step 1: Install uv

You can install uv via pip:

pip install uv

Or with pipx:

pipx install uv

Verify the installation:

uv --version

Step 2 · Create (and activate) the virtual environment

Use uv to manage your environment:

uv venv source .venv/bin/activate

(If you prefer another tool like venv/virtualenv, activate it before continuing.)


Step 3 · Install dependencies

Install all runtime, dev, and extras in one step:

uv sync --all-extras --dev

This also creates or updates uv.lock automatically.


Step 4 · Run the project or test suite

If not already activated:

source .venv/bin/activate

Then run the tests:

uv run pytest


Step 5 · Run pre-commit hooks

Ensure your code stays clean:

uv run pre-commit run --all-files


Quick commands you might love:

Task Command
Update dependencies to newest allowed refs uv sync --upgrade
Re-create a fresh lockfile rm uv.lock && uv sync
Add a new development dependency uv add --dev

Step 6: Convert the model to ONNX format

To convert the model to ONNX format, run:

python export_to_onnx.py --checkpoint /path/to/checkpoint --onnx_model /path/to/onnx_model

Step 7: Add OPENAI_API_KEY and/or Set Up WHISPER_CPP_MODEL

The whisper_1 model requires an OpenAI subscription. As an alternative, you can use whisper.cpp.

To download a supported model:

# Linux
docker run -it --rm -v ./data/models:/models ghcr.io/ggerganov/whisper.cpp:main "./models/download-ggml-model.sh small /models"

# Windows (PowerShell)
docker run -it --rm -v "$(pwd -W)/models":/models ghcr.io/ggerganov/whisper.cpp:main "./models/download-ggml-model.sh small /models"

Once WHISPER_CPP_MODEL is set, inference is handled locally:

ffmpeg -i data/temp_results/uploaded_audio.mp3 -ar 16000 -ac 1 -c:a pcm_s16le data/audio/output.wav

Run whisper.cpp:

# Linux
docker run -it --rm -v ./data/models:/models -v ./data/audio:/audios ghcr.io/ggerganov/whisper.cpp:main "./build/bin/whisper-cli -m /models/ggml-small.bin -f /audios/output.wav -ml 16 -oj -l en"

# Windows
docker run -it --rm -v "$(pwd -W)/data/models":/models -v "$(pwd -W)/data":/audios ghcr.io/ggerganov/whisper.cpp:main "./build/bin/whisper-cli -m /models/ggml-small.bin -f /audios/output.wav -ml 16 -oj -l en"

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

o2_speechless-0.0.7.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

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

o2_speechless-0.0.7-py3-none-any.whl (27.3 kB view details)

Uploaded Python 3

File details

Details for the file o2_speechless-0.0.7.tar.gz.

File metadata

  • Download URL: o2_speechless-0.0.7.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.9

File hashes

Hashes for o2_speechless-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5e1eec32312795ba5d6641f21bf9af1bb0ee65463f0b9dbbbe794466471ab264
MD5 6877c344e43575e299f0805973052702
BLAKE2b-256 cdf00811ea47b17eee26825a7846a02fb9919eea602c80534264bae5e6875028

See more details on using hashes here.

File details

Details for the file o2_speechless-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for o2_speechless-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 8cf32506fbcf7ecd3cde1a732d98e92c959ea5507a224d35e58b201b6add04d3
MD5 3c9ba358e941a44d76302f5114fa5285
BLAKE2b-256 ab49f8fb5a578f2efe5e7c6c3e10137fb7511d84ba282dec8b81186c76659ae3

See more details on using hashes here.

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