go-sdk icon indicating copy to clipboard operation
go-sdk copied to clipboard

[speech-to-text] RecognizeOptions does not support character_insertion_bias

Open Festlandtommy opened this issue 2 years ago • 0 comments

When using custom parameters for STT recognize, such as BackgroundAudioSuppression, MaxAlternatives I noticed there is no setter forCharacterInsertionBias.

Possible solution:

// SetCharacterInsertionBias : Allow user to set CharacterInsertionBias
func (_options *RecognizeOptions) SetCharacterInsertionBias(characterInsertionBias float32) *RecognizeOptions {
	_options.CharacterInsertionBias = core.Float32Ptr(characterInsertionBias)
	return _options
}

Festlandtommy avatar May 16 '23 11:05 Festlandtommy