Skip to content

Commit

Permalink
fix: unhandled error
Browse files Browse the repository at this point in the history
  • Loading branch information
qvistgaard committed Feb 29, 2024
1 parent e1c2613 commit 335e0e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/plugins/sound/announcer/engines/elevenlabs/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ func (e *Engine) downloadSpeak(speak string) (*os.File, error) {

func (e *Engine) Announce(announcement announcer.Announcement) (*streamer.Playback, error) {
downloadSpeak, err := e.downloadSpeak(announcement.Get())
if err != nil {
return nil, err
}

fromFs, err := streamer.LoadMp3FromFsFile(downloadSpeak)
if err != nil {
Expand Down

0 comments on commit 335e0e1

Please sign in to comment.