simulstream.metrics.stats.RealTimeFactor

class simulstream.metrics.stats.RealTimeFactor

Bases: Stats

Compute the Real Time Factor.

This measures how many seconds of computation are required on average for each second of input audio.

Values greater than 1 indicate that the system is slower than real time and cannot process input before the next audio chunk arrives.

__init__()

Methods

__init__()

compute(log_reader)

Compute the value of the statistic.

description()

The human-readable explanation of the statistic.

name()

The unique name of the statistic.

compute(log_reader: LogReader) float

Compute the value of the statistic.

Parameters:

log_reader (LogReader) – Reader object encapsulating log data.

Returns:

The computed value of the statistic.

Return type:

float

description() str

The human-readable explanation of the statistic.

name() str

The unique name of the statistic.