-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Description
Automatically trigger transcription when a call recording completes, with speaker identification based on stereo channel mapping.
Implementation
A TranscriptHook that implements CallRecordHook:
- Triggers configured ASR command when recording finishes
- Writes structured transcript JSON with timestamps and text
- Adds
role("caller"/"callee") andlabel(extension/phone number) per segment - Derives speaker identity from stereo WAV channel mapping (ch0 = Leg A = caller, ch1 = Leg B = callee)
- Updates call record database with transcript path
Config
[proxy.transcript]
command = "/usr/local/bin/sensevoice-cli"
models_path = "/models"
timeout_secs = 120Files
src/addons/transcript/hook.rs— newTranscriptHookmodulesrc/addons/transcript/models.rs—ChannelParticipant,role/labelfieldssrc/addons/transcript/handlers.rs— channel-to-participant mappingsrc/config.rs—TranscriptToolConfigstruct
Reference: davidcforbes/rustpbx@50d68ca
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels