Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* document_storage_service
* OpenAPI spec version: 0.1.0
*/
import type { TranscriptSegmentRequestDiarizedSpeakerId } from './transcriptSegmentRequestDiarizedSpeakerId';
import type { TranscriptSegmentRequestEmbedding } from './transcriptSegmentRequestEmbedding';
import type { TranscriptSegmentRequestEndedAt } from './transcriptSegmentRequestEndedAt';
import type { TranscriptSegmentRequestStreamStartedAt } from './transcriptSegmentRequestStreamStartedAt';
/**
* A transcript segment from LiveKit Inference STT.
*/
export interface TranscriptSegmentRequest {
/** The transcribed text content. */
content: string;
/** Stable per-speaker identifier produced by the STT provider's diarization
pass. Namespaced upstream by audio track so values are unique across all
tracks in a call. `None` when the provider didn't return a speaker label. */
diarizedSpeakerId?: TranscriptSegmentRequestDiarizedSpeakerId;
/** Speaker voice embedding computed by the transcription agent
(e.g. a Resemblyzer 256-dim vector). When present, the server
upserts a `voice` row and stores the resulting id on the transcript
segment so the call-finished pipeline can match it to enrolled users. */
embedding?: TranscriptSegmentRequestEmbedding;
/** When the speaker stopped talking for this segment. */
endedAt?: TranscriptSegmentRequestEndedAt;
/** Whether this is a final transcription (not interim). */
isFinal: boolean;
/** LiveKit segment ID (used for deduplication across multiple submitters). */
segmentId: string;
/** The speaker's user ID (from `lk.transcribed_track_id`). */
speakerId: string;
/** When the speaker started talking for this segment. */
startedAt: string;
/** Wall-clock when the transcriber's STT stream first received audio
for this participant. The server takes the earliest non-null value
across all participants and uses it to overwrite the
`egress_started`-derived `recording_started_at`, which is too early
(it stamps egress bootstrap, not first audio frame). */
streamStartedAt?: TranscriptSegmentRequestStreamStartedAt;
}