Skip to content

Commit

Permalink
aws_result_id に変更する
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexa committed Mar 28, 2024
1 parent 26d6c09 commit 3e1059f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion amazon_transcribe_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion config_example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e1059f

Please sign in to comment.