Remove transfer encoding
@@ -308,7 +308,6 @@ class SpeechToTextV1(WatsonService):
def create_job(self,
audio,
content_type,
- transfer_encoding=None,
model=None,
callback_url=None,
events=None,
@@ -333,7 +332,6 @@ class SpeechToTextV1(WatsonService):
:param str audio: Audio to transcribe in the format specified by the `Content-Type` header.
:param str content_type: The type of the input: audio/basic, audio/flac, audio/l16, audio/mp3, audio/mpeg, audio/mulaw, audio/ogg, audio/ogg;codecs=opus, audio/ogg;codecs=vorbis, audio/wav, audio/webm, audio/webm;codecs=opus, or audio/webm;codecs=vorbis.
- :param str transfer_encoding: Set to `chunked` to send the audio in streaming mode. The data does not need to exist fully before being streamed to the service.
:param str model: The identifier of the model to be used for the recognition request. (Use `GET /v1/models` for a list of available models.).
:param str callback_url: A URL to which callback notifications are to be sent. The URL must already be successfully white-listed by using the `POST /v1/register_callback` method. Omit the parameter to poll the service for job completion and results. You can include the same callback URL with any number of job creation requests. Use the `user_token` query parameter to specify a unique user-specified string with each job to differentiate the callback notifications for the jobs.
:param str events: If the job includes a callback URL, a comma-separated list of notification events to which to subscribe. Valid events are: `recognitions.started` generates a callback notification when the service begins to process the job. `recognitions.completed` generates a callback notification when the job is complete; you must use the `GET /v1/recognitions/{id}` method to retrieve the results before they time out or are deleted. `recognitions.completed_with_results` generates a callback notification when the job is complete; the notification includes the results of the request. `recognitions.failed` generates a callback notification if the service experiences an error while processing the job. Omit the parameter to subscribe to the default events: `recognitions.started`, `recognitions.completed`, and `recognitions.failed`. The `recognitions.completed` and `recognitions.completed_with_results` events are incompatible; you can specify only of the two events. If the job does not include a callback URL, omit the parameter.
@@ -361,8 +359,7 @@ class SpeechToTextV1(WatsonService):
if content_type is None:
raise ValueError('content_type must be provided')
headers = {
- 'Content-Type': content_type,
- 'Transfer-Encoding': transfer_encoding
+ 'Content-Type': content_type
}
params = {
'model': model,
