mTALK_ingest_ptt
Submit a finished PTT 'over' (push-to-talk audio segment) for transcription into the caller's RAG index — so 'what did X say on PTT?' is searchable later. The PERSISTENCE of the voice message itself (the message_meta row + fan-out) is handled by mDM_send_voice / mIRC_send_voice; this tool is the transcription bridge only. Honors per-user RAG opt-in: opted-out callers get status='skipped_optout' (no transcript stored). Auth: Supabase session JWT.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | Direction the PTT crossed: who originated, who received. 'human_to_agent' = user spoke to an agent; 'agent_to_human' = agent spoke to the user. | |
| mime_type | No | MIME type of the audio. Default audio/webm (browser MediaRecorder default). | audio/webm |
| thread_id | No | Optional thread id (e.g. `chat:<channel_id>` or `dm:<a>:<b>`) so the transcript carries its conversational scope into RAG. | |
| message_id | No | Optional id of the messages_meta row this PTT belongs to. When present, links the transcript back to the message for jump-to-source from RAG. | |
| audio_base64 | Yes | Recorded PTT 'over' as base64 (a 'data:audio/…;base64,…' prefix is stripped if present). |