返回首页
Lanson Flow 文档库

Timestamp and speaker information in transcription results.

Segment timestamps

Each segment includes timestamps:

{
  "id": 0,
  "start_time": 0.0,
  "end_time": 3.2,
  "duration": 3.2,
  "text": "The weather is nice today",
  "confidence": 0.95
}

| Field | Type | Description | |---|---|---| | id | number | Segment index (from 0) | | start_time | number | Start time in seconds | | end_time | number | End time in seconds | | duration | number | Duration in seconds | | text | string | Transcribed text | | confidence | number | Confidence score (0–1, 3 decimal places) |

Confidence

  • Range: 0 to 1
  • 3 decimal places
  • Calculated from 1 - no_speech_prob when upstream provides it
  • Global timestamps

    After slicing, timestamps are aggregated to global time. start_time and end_time are relative to the original audio, not chunk-internal time.

    Summary statistics

    {
      "summary": {
        "total_duration": 120.5,
        "total_speech_duration": 95.3,
        "overall_speech_ratio": 0.79,
        "num_segments": 45
      }
    }
    

    | Field | Description | |---|---| | total_duration | Total audio duration (seconds) | | total_speech_duration | Actual speech duration (seconds) | | overall_speech_ratio | Speech ratio | | num_segments | Number of segments |

    Metadata

    {
      "metadata": {
        "language": "zh",
        "model": "whisper-large-v3-turbo",
        "chunk_count": 3,
        "audio_duration_seconds": 120.5
      }
    }
    

    Speaker diarization

    Speaker diarization is not available in the current version and is on the roadmap.

    ::callout{icon="i-lucide-triangle-alert" color="amber"} Current segments do not include a speaker field. Do not rely on speaker information. ::

    Precision notes

  • Timestamp precision depends on the upstream model and slicing granularity
  • Timestamps at slice boundaries are corrected during aggregation
  • Short speech segments (<1s) may have less precise timestamps
  • Related

  • [Transcribe Audio](/docs/recorded/transcribe-audio) — submit a job
  • [Subtitles](/docs/recorded/subtitles) — generate subtitles from timestamps
  • [Batch Jobs API](/docs/api-reference/batch-jobs) — API reference