call-prosodic-entrainment-optimizer
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "call-prosodic-entrainment-optimizer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-727967d5dec49547bc94089b592c6c0d84439aa6e8c8062e8a58b6f889da44dc. Verify the upstream source and version against https://github.com/CALLE-AI/awesome-phone-call-agents before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
An offline experimental telephone workflow assistant for comparing supplied prosodic features and recommending limited TTS parameter adjustments. Intended for synthetic demos and host integration planning.
Introduction source: third_party · CALLE-AI · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Offline experimental phone-workflow helper that compares supplied prosodic features and suggests bounded TTS parameter changes. Use for synthetic demonstrations and host integration planning.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- **Cosine similarity is angle-based**: Features that point in the same direction in feature space can score high even with different magnitudes. This is expected behavior — the system is measuring *style* convergence, not *energy* matching. The energy scale directive handles amplitude alignment separately. **TTS dependency**: The `TTSDirective` output requires a TTS engine that accepts real-time prosodic parameter overrides (e.g., SSML `<prosody>` tags or equivalent API). Not all TTS providers support this. **Non-verbal speakers**: The host must detect missing/unreliable features and choose whether to keep calibration enabled. The helper does not infer this condition. **Accent diversity**: Th
- Testing
- Not tested
Browse files
Frontmatter
name: call-prosodic-entrainment-optimizer
description: Offline experimental phone-workflow helper that compares supplied prosodic features and suggests bounded TTS parameter changes. Use for synthetic demonstrations and host integration planning.
version: 1.0.0Prosodic Entrainment Optimizer
Vocal entrainment is the natural, subconscious phenomenon where people synchronize their speech patterns — pitch, pace, rhythm, and intensity — with their conversation partner. This synchronization is one of the most robustly documented proxies for rapport, trust, and cooperative intent in human communication, first formalized by Howard Giles' Communication Accommodation Theory (1973) and now computationally validated through deep learning (Nasir et al., IEEE TAFFC 2022).
The supplied Python helper is an offline, stateless heuristic over supplied numeric features. It returns a score and suggested TTS deltas; it does not capture audio, inject TTS settings, log adjustments, or measure caller rapport. Audio extraction, timing, consent, and any application of suggestions belong to a separate host integration. It is not a clinical, crisis-response, or financial decision tool.
Research-inspired prototype: the studies below motivate the design but do not validate this implementation or its outcomes.
Scientific Foundation
| Paper | Venue | Year | Contribution to This Skill |
|---|---|---|---|
| Communication Accommodation Theory | Language Sciences, Elsevier | 2023 | Theoretical framework: convergence/divergence mechanisms, mediated communication model |
| Modeling Vocal Entrainment via Deep Unsupervised Learning | IEEE Transactions on Affective Computing | 2022 | Triplet-network entrainment distance → basis for cosine similarity aggregation |
| Context-Aware Computational Entrainment in Dyadic Conversations | arXiv | 2022 | Cross-subject attention model for real-time dyadic entrainment tracking |
| ISO/IEC 42001:2023 AI Management System | ISO | 2023 | Transparency, logging, and auditability requirements for adaptive AI systems |
How It Works
A proposed host integration could place this helper between feature extraction and TTS. The shipped helper only computes suggestions:
Step 1: Baseline Calibration (first 5 seconds)
The host may set is_calibrating=True during a chosen warm-up window. This returns CALIBRATING and an identity directive; the helper itself has no clock, feature collection, or automatic five-second calibration.
Step 2: Feature Extraction (per 1-second window)
The host must supply three features; no audio extractor is included:
- Fundamental Frequency (F0, Hz): Perceived pitch — speaker identity and emotional state marker.
- Speech Rate (WPM): Cognitive load and urgency indicator.
- RMS Energy (normalized): Loudness and engagement level.
Step 3: Entrainment Score Computation
Cosine similarity is computed between the L2-normalized caller and agent prosodic feature vectors. entrainment_score ∈ [0.0, 1.0]:
1.0= perfect prosodic synchrony0.0= complete divergence
Step 4: Status Classification & TTS Directive Generation
entrainment_score |
Status | Action |
|---|---|---|
>= 0.90 |
OPTIMAL |
No directive — back off to avoid over-mirroring |
0.75 – 0.89 |
TARGET_REACHED |
Bounded directive may still be returned |
< 0.75 |
LOW_ENTRAINMENT |
Issue TTSDirective with bounded parameter deltas |
| First 5s | CALIBRATING |
Identity directive — no adjustment |
Step 5: Safety-Bounded TTS Directive
| Parameter | Adjustment Logic | Safety Cap |
|---|---|---|
pitch_shift_semitones |
Proportional to F0 delta (Hz → semitones) | ±3.0 semitones/window |
rate_multiplier |
Proportional to WPM ratio | [0.80, 1.20] |
energy_scale |
Proportional to RMS energy ratio | [0.70, 1.30] |
The formula uses a fixed 0.05 fraction of the feature difference, subject to the caps above. This is not a 5% output cap or a time-based rate limit; the host controls invocation timing.
Mode Presets
| Mode | Use Case | Behavior |
|---|---|---|
DEFAULT |
General inbound/outbound | Balanced bidirectional convergence |
SALES |
Outbound sales, lead qualification | Converge toward caller's energy to build rapport |
SUPPORT |
Synthetic downward-only demonstration | Never raises pitch, rate, or energy; no clinical de-escalation efficacy is established |
Key Features
- Bounded suggestions: Parameter caps are enforced per invocation; perceptual effects have not been measured.
- Anti-over-mirroring: Backs off automatically at
score >= 0.90to prevent the "uncanny valley" of identical-sounding voices. - Host-controlled calibration:
is_calibrating=Truesuppresses adjustments. - Fail-safe on zero/silence: Muted callers, zero-rate speech, and whispering are all handled without crashes or division-by-zero errors.
- SUPPORT mode: Only holds or lowers pitch, rate, and energy. It does not implement an upward matching phase or establish de-escalation efficacy.
Configuration Reference
Source constants and proposed host settings are listed below, not a runtime configuration API. The helper has no window-duration or calibration-duration parameter.
| Parameter | Default | Range | Description |
|---|---|---|---|
TARGET_THRESHOLD |
0.75 |
0.60 – 0.85 |
Below this → issue TTSDirective |
OPTIMAL_CEILING |
0.90 |
0.80 – 0.95 |
Above this → back off (no directive) |
MAX_PITCH_DELTA |
3.0 semitones |
1.0 – 5.0 |
Safety cap on pitch adjustment per window |
MAX_RATE_DELTA |
0.20 (±20%) |
0.10 – 0.30 |
Safety cap on rate multiplier delta |
MAX_ENERGY_DELTA |
0.30 (±30%) |
0.15 – 0.40 |
Safety cap on energy scale delta |
step_factor |
0.05 |
Source edit only | Fixed interpolation factor, not an output/time cap |
window_duration_s |
1.0 |
0.5 – 2.0 |
Feature extraction window length |
calibration_duration_s |
5.0 |
3.0 – 10.0 |
Baseline collection period |
Expected Outcomes & Metrics
The following are design hypotheses or operating targets, not measured outcomes of this helper:
| Metric | Expected Improvement | Notes |
|---|---|---|
| CSAT Score | Not measured | Requires a separate evaluation |
| Call Abandonment Rate | Not measured | No outcome improvement is established |
| First Call Resolution (FCR) | Not measured | No outcome improvement is established |
| Entrainment Score (avg call) | 0.78 – 0.85 | Target operating range |
| Directive latency | < 10ms | Synthesis parameter update time |
Use Cases
Proposed research contexts only, not validated clinical, crisis-response, sales, or financial deployments:
- Outbound sales calls: Mirror the prospect's energy and cadence to build trust before pitching.
- Healthcare intake: Automatically slow pace and lower pitch to match an elderly or anxious caller, reducing cognitive load and improving information capture.
- Debt collection: Reduce confrontational dynamics by actively converging toward a calm, measured pace even when the caller is agitated.
- Mental health support lines: Gently mirror distressed caller's cadence (SUPPORT mode) while guiding toward slower, regulated rhythm via Match & Lead.
- High-volume IVR exit: Reduce caller frustration after a failed IVR interaction by rapidly entraining to their speech pattern when a live-agent-style AI picks up.
Limitations & Known Constraints
- Cosine similarity is angle-based: Features that point in the same direction in feature space can score high even with different magnitudes. This is expected behavior — the system is measuring style convergence, not energy matching. The energy scale directive handles amplitude alignment separately.
- TTS dependency: The
TTSDirectiveoutput requires a TTS engine that accepts real-time prosodic parameter overrides (e.g., SSML<prosody>tags or equivalent API). Not all TTS providers support this. - Non-verbal speakers: The host must detect missing/unreliable features and choose whether to keep calibration enabled. The helper does not infer this condition.
- Accent diversity: Threshold calibration must include diverse vocal profiles to prevent systematic bias against non-standard prosodic patterns.
Integration
[Caller Audio]
|
[ASR + Prosodic Feature Extractor]
|
[call-prosodic-entrainment-optimizer] <-- this skill
|
TTSDirective { pitch=-1.2, rate=0.94, energy=0.91 }
|
[TTS Synthesis Engine] <-- applies SSML prosody overrides
|
[Agent Voice → Caller]
References
See references/research-papers.md for research inspiration; citations are not implementation validation.
See references/safety.md for safety and host responsibilities; no ISO conformity is established.
See references/examples.md for end-to-end scenario walkthroughs.
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 适用于语音合成和呼叫中心集成规划,具有明确的应用场景
- 提供了多种模式预设,满足不同业务需求
- 包含详细的使用案例说明
Highlights
- 触发词精准完整,覆盖多种变体
- 边界清晰,不易与其他Skill重叠
- description内容完整且位置正确
Highlights
- Phase/步骤清晰,有出口条件
- 包含端到端示例
- frontmatter完整,单文件结构良好
Highlights
- 工具来源明确,参数正确
- 覆盖主要异常情况
- 不可逆操作有确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.