@@ -31,7 +31,7 @@ def recognize_using_websocket(self,
3131 content_type ,
3232 recognize_callback ,
3333 model = None ,
34- customization_id = None ,
34+ language_customization_id = None ,
3535 acoustic_customization_id = None ,
3636 customization_weight = None ,
3737 base_model_version = None ,
@@ -48,7 +48,7 @@ def recognize_using_websocket(self,
4848 speaker_labels = None ,
4949 http_proxy_host = None ,
5050 http_proxy_port = None ,
51- language_customization_id = None ,
51+ customization_id = None ,
5252 ** kwargs ):
5353 """
5454 Sends audio for speech recognition using web sockets.
@@ -62,10 +62,15 @@ def recognize_using_websocket(self,
6262 :param RecognizeCallback recognize_callback: The callback method for the websocket.
6363 :param str model: The identifier of the model that is to be used for the
6464 recognition request or, for the **Create a session** method, with the new session.
65- :param str customization_id: **Deprecated.** Use the `language_customization_id`
66- parameter to specify the customization ID (GUID) of a custom language model that
67- is to be used with the recognition request. Do not specify both parameters with a
68- request.
65+ :param str language_customization_id: The customization ID (GUID) of a custom
66+ language model that is to be used with the recognition request. The base model of
67+ the specified custom language model must match the model specified with the
68+ `model` parameter. You must make the request with service credentials created for
69+ the instance of the service that owns the custom model. By default, no custom
70+ language model is used. See [Custom
71+ models](https://console.bluemix.net/docs/services/speech-to-text/input.html#custom).
72+ **Note:** Use this parameter instead of the deprecated `customization_id`
73+ parameter.
6974 :param str acoustic_customization_id: The customization ID (GUID) of a custom
7075 acoustic model that is to be used with the recognition request or, for the
7176 **Create a session** method, with the new session. The base model of the specified
@@ -140,15 +145,10 @@ def recognize_using_websocket(self,
140145 labels](https://console.bluemix.net/docs/services/speech-to-text/output.html#speaker_labels).
141146 :param str http_proxy_host: http proxy host name.
142147 :param str http_proxy_port: http proxy port. If not set, set to 80.
143- :param str language_customization_id: The customization ID (GUID) of a custom
144- language model that is to be used with the recognition request. The base model of
145- the specified custom language model must match the model specified with the
146- `model` parameter. You must make the request with service credentials created for
147- the instance of the service that owns the custom model. By default, no custom
148- language model is used. See [Custom
149- models](https://console.bluemix.net/docs/services/speech-to-text/input.html#custom).
150- **Note:** Use this parameter instead of the deprecated `customization_id`
151- parameter.
148+ :param str customization_id: **Deprecated.** Use the `language_customization_id`
149+ parameter to specify the customization ID (GUID) of a custom language model that
150+ is to be used with the recognition request. Do not specify both parameters with a
151+ request.
152152 :param dict headers: A `dict` containing the request headers
153153 :return: A `dict` containing the `SpeechRecognitionResults` response.
154154 :rtype: dict
0 commit comments