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