Skip to content

Commit

Permalink
コスメ
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Feb 14, 2024
1 parent ee2556d commit 5828e84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion amazon_transcribe_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package suzu
import (
"context"
"encoding/json"
"errors"
"io"

"github.com/aws/aws-sdk-go/service/transcribestreamingservice"
Expand Down Expand Up @@ -73,7 +74,7 @@ func (h *AmazonTranscribeHandler) Handle(ctx context.Context, reader io.Reader)
go func() {
defer oggWriter.Close()
if err := opus2ogg(ctx, reader, oggWriter, h.SampleRate, h.ChannelCount, h.Config); err != nil {
if err != io.EOF {
if !errors.Is(err, io.EOF) {
zlog.Error().
Err(err).
Str("channel_id", h.ChannelID).
Expand Down

0 comments on commit 5828e84

Please sign in to comment.