callscope
Analyze customer-service calls locally: timestamped transcript, who speaks when, sentiment curve, contact reasons and key moments, in one JSON.
Install
pip install callscope-ai # analysis of transcripts (no dependencies)
pip install "callscope-ai[whisper]" # + local transcription of audio (faster-whisper)
Use
import callscope
result = callscope.analyze("call.wav") # audio -> full analysis
result = callscope.analyze([{"start": 0, "end": 3, "text": "Bonjour, comment puis-je vous aider ?"}])
callscope demo # fictional call, no audio, no model
callscope analyze call.wav --model small
callscope analyze segments.json
French and English keyword lexicons are built in; everything runs on your machine.
Functions
| Function | Returns |
|---|---|
transcribe(path, model_size, language) |
[{start, end, text}] (needs the whisper extra) |
diarize(segments, channel_roles=None) |
segments with speaker = agent or customer (stereo channels, else turn-taking heuristic) |
sentiment(segments) |
per-segment score (-1..1), customer curve, mean and trend |
contact_reasons(segments) |
ranked reasons: billing, cancellation, outage, delivery, technical_support, subscription_change |
key_moments(segments) |
complaints, churn threats, agent promises |
analyze(source) |
everything above in one dict |
Output format (callscope/1)
analyze() returns {schema, source, duration, segments, sentiment, contact_reasons, key_moments}. This is the shared format for tools built on callscope.
Limits
Lexicon-based sentiment and heuristic speaker separation are simple baselines, not state-of-the-art models.
MIT licensed. Run tests with pip install -e ".[test]" && pytest (no network).
Metadata
Release files for callscope-ai 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| callscope_ai-0.1.0.tar.gz | 9.1 kB | Without provenance | Details for callscope_ai-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| callscope_ai-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for callscope_ai-0.1.0-py3-none-any.whl |
Total release size: 18.2 kB
Release files / callscope_ai-0.1.0.tar.gz
| Download URL | callscope_ai-0.1.0.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df8b46de348cf7db690a10d9d67dd699b513f25f84ab56d87161e550910d3496
|
|
BLAKE2b-256 checksum How to use checksums |
bdbb142df1c779f122421162b291ba3ffdc2f4ee35342e220b9366358d3faf63
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Release files / callscope_ai-0.1.0-py3-none-any.whl
| Download URL | callscope_ai-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3826062910bc51c62fb65244c3298d0f4422d2f226c37202a392e4cd322e8439
|
|
BLAKE2b-256 checksum How to use checksums |
889f6140065974ddebd33e06eb79a7762609e3bce2e8a946c1a218e2cca21975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.10
|
Security for callscope-ai 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.