From 2174edf3a82b634441502bf2941720fafdc68ffa Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Thu, 15 Feb 2024 11:39:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B3=E3=83=A1=E3=83=B3=E3=83=88=E3=82=92?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- speech_to_text.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/speech_to_text.go b/speech_to_text.go index 9700265..3dcafd6 100644 --- a/speech_to_text.go +++ b/speech_to_text.go @@ -44,6 +44,7 @@ func (stt SpeechToText) Start(ctx context.Context, r io.Reader) (speechpb.Speech client, err := speech.NewClient(ctx, opts...) if err != nil { return nil, &SuzuError{ + // TODO: 適切な StatusCode に変更する Code: 500, Message: err.Error(), } @@ -51,6 +52,7 @@ func (stt SpeechToText) Start(ctx context.Context, r io.Reader) (speechpb.Speech stream, err := client.StreamingRecognize(ctx) if err != nil { return nil, &SuzuError{ + // TODO: 適切な StatusCode に変更する Code: 500, Message: err.Error(), } @@ -60,6 +62,7 @@ func (stt SpeechToText) Start(ctx context.Context, r io.Reader) (speechpb.Speech StreamingRequest: streamingRecognitionConfig, }); err != nil { return nil, &SuzuError{ + // TODO: 適切な StatusCode に変更する Code: 500, Message: err.Error(), }