Skip to content

Commit

Permalink
fix io reader issue
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Feb 9, 2025
1 parent c072c35 commit efacb00
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions internal/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package internal
import (
"QuickPiperAudiobook/internal/binarymanagers/ffmpeg"
"QuickPiperAudiobook/internal/binarymanagers/piper"
"QuickPiperAudiobook/internal/lib"
"bytes"
"fmt"
"io"
Expand Down Expand Up @@ -34,9 +33,6 @@ func QuickPiperAudiobook(fileName, model, outDir string, speakDiacritics, output
if err != nil {
return err
}
if lib.GetSize(rawFile) == 0 {
return fmt.Errorf("file is empty")
}

piper, err := piper.NewPiperClient(model)
if err != nil {
Expand All @@ -49,9 +45,6 @@ func QuickPiperAudiobook(fileName, model, outDir string, speakDiacritics, output
if err != nil {
return err
}
if lib.GetSize(reader) == 0 {
return fmt.Errorf("file is empty")
}
} else {
reader = rawFile
}
Expand Down

0 comments on commit efacb00

Please sign in to comment.