Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion internal/logging/analysis_display.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,13 @@ func DisplayAnalysisResults(w io.Writer, inputPath string, metadata *audio.Metad
fmt.Fprintf(w, " RMS Level: %.1f dBFS\n", measurements.RMSLevel)
fmt.Fprintf(w, " Peak Level: %.1f dBFS\n", measurements.PeakLevel)
fmt.Fprintf(w, " Dynamic Range: %.1f dB\n", measurements.DynamicRange)
fmt.Fprintf(w, " Crest Factor: %.1f dB\n", measurements.PeakLevel-measurements.RMSLevel)
crestFactor := measurements.PeakLevel - measurements.RMSLevel
crestSource := "full-file"
if measurements.SpeechProfile != nil && measurements.SpeechProfile.CrestFactor > 0 {
crestFactor = measurements.SpeechProfile.CrestFactor
crestSource = "speech"
}
fmt.Fprintf(w, " Crest Factor: %.1f dB (%s)\n", crestFactor, crestSource)
fmt.Fprintln(w)

// Silence detection section
Expand Down