TTSMetrics: {
    audioDurationMs: number;
    cancelled: boolean;
    charactersCount: number;
    durationMs: number;
    label: string;
    requestId: string;
    segmentId?: string;
    speechId?: string;
    streamed: boolean;
    timestamp: number;
    ttfbMs: number;
    type: "tts_metrics";
}

Type declaration

  • audioDurationMs: number

    Generated audio duration in milliseconds.

  • cancelled: boolean
  • charactersCount: number
  • durationMs: number

    Total synthesis duration in milliseconds.

  • label: string
  • requestId: string
  • Optional segmentId?: string
  • Optional speechId?: string
  • streamed: boolean
  • timestamp: number
  • ttfbMs: number

    Time to first byte in milliseconds.

  • type: "tts_metrics"