Skip to content

Commit

Permalink
Normalize expects string output
Browse files Browse the repository at this point in the history
  • Loading branch information
KillerX committed Mar 19, 2024
1 parent 75b1e5c commit abdb669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/execute_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ func ExecuteAnalysisCmd(cmd *exec.Cmd, outputCallback func(string)) (string, err
}

// replace -Inf with -99 if the audio was silent
result = strings.ReplaceAll(result, "\"-inf\"", "-99")
result = strings.ReplaceAll(result, "\"-inf\"", "\"-99\"")

// replace inf with 0 target_offset if the audio was silent
result = strings.ReplaceAll(result, "\"inf\"", "0")
result = strings.ReplaceAll(result, "\"inf\"", "\"0\"")

err = cmd.Wait()
if err != nil {
Expand Down

0 comments on commit abdb669

Please sign in to comment.