Skip to content

Commit

Permalink
Fix issue of NewAutoDetectSourceLanguageConfigFromLanguageConfigs onl…
Browse files Browse the repository at this point in the history
…y use last Model (#142)
  • Loading branch information
chk-jxcn authored Jan 23, 2025
1 parent 5e92d9f commit d7031f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions speech/auto_detect_source_language_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ func NewAutoDetectSourceLanguageConfigFromLanguageConfigs(configs []*SourceLangu
}
if first {
ret = uintptr(C.create_auto_detect_source_lang_config_from_source_lang_config(&handle, c.getHandle()))
first = false
if ret != C.SPX_NOERROR {
return nil, common.NewCarbonError(ret)
}
Expand Down

0 comments on commit d7031f1

Please sign in to comment.