fix(ws): Move customization_weight as part of message
@@ -226,7 +226,6 @@ class SpeechToTextV1Adapter(SpeechToTextV1):
'model': model,
'customization_id': customization_id,
'acoustic_customization_id': acoustic_customization_id,
- 'customization_weight': customization_weight,
'base_model_version': base_model_version,
'language_customization_id': language_customization_id
}
@@ -234,6 +233,7 @@ class SpeechToTextV1Adapter(SpeechToTextV1):
url += '/v1/recognize?{0}'.format(urlencode(params))
options = {
+ 'customization_weight': customization_weight,
'content_type': content_type,
'inactivity_timeout': inactivity_timeout,
'interim_results': interim_results,
