From 3e1059f2e8ee3fceaa9a0863624df2d7f1e12627 Mon Sep 17 00:00:00 2001 From: Yoshida Hiroshi Date: Thu, 28 Mar 2024 11:12:01 +0900 Subject: [PATCH] =?UTF-8?q?aws=5Fresult=5Fid=20=E3=81=AB=E5=A4=89=E6=9B=B4?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- amazon_transcribe_handler.go | 2 +- config.go | 2 +- config_example.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/amazon_transcribe_handler.go b/amazon_transcribe_handler.go index e894d9b..eeb0d11 100644 --- a/amazon_transcribe_handler.go +++ b/amazon_transcribe_handler.go @@ -161,7 +161,7 @@ func (h *AmazonTranscribeHandler) Handle(ctx context.Context, reader io.Reader) if at.Config.AwsResultChannelID { result.WithChannelID(*res.ChannelId) } - if at.Config.AwsResultResultID { + if at.Config.AwsResultID { result.WithResultID(*res.ResultId) } for _, alt := range res.Alternatives { diff --git a/config.go b/config.go index 3057e0f..e0e6e98 100644 --- a/config.go +++ b/config.go @@ -87,7 +87,7 @@ type Config struct { // 変換結果に含める項目の有無の指定 AwsResultChannelID bool `ini:"aws_result_channel_id"` AwsResultIsPartial bool `ini:"aws_result_is_partial"` - AwsResultResultID bool `ini:"aws_result_result_id"` + AwsResultID bool `ini:"aws_result_id"` // Google Cloud Platform GcpCredentialFile string `ini:"gcp_credential_file"` diff --git a/config_example.ini b/config_example.ini index 665bce7..2d5b5d2 100644 --- a/config_example.ini +++ b/config_example.ini @@ -72,7 +72,7 @@ aws_result_channel_id = true # セグメントが完了していないかどうかです # aws_result_is_partial = true # 結果の識別子です -# aws_result_result_id = true +# aws_result_id = true # https://cloud.google.com/speech-to-text/docs/reference/rpc/google.cloud.speech.v1#streamingrecognitionconfig # https://cloud.google.com/speech-to-text/docs/reference/rpc/google.cloud.speech.v1#recognitionconfig