Skip to content

Commit 19df9ba

Browse files
committed
Remove transfer encoding
1 parent 1c3d728 commit 19df9ba

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

watson_developer_cloud/speech_to_text_v1.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,6 @@ def check_jobs(self):
308308
def create_job(self,
309309
audio,
310310
content_type,
311-
transfer_encoding=None,
312311
model=None,
313312
callback_url=None,
314313
events=None,
@@ -333,7 +332,6 @@ def create_job(self,
333332
334333
:param str audio: Audio to transcribe in the format specified by the `Content-Type` header.
335334
: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.
336-
: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.
337335
: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.).
338336
: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.
339337
: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 @@ def create_job(self,
361359
if content_type is None:
362360
raise ValueError('content_type must be provided')
363361
headers = {
364-
'Content-Type': content_type,
365-
'Transfer-Encoding': transfer_encoding
362+
'Content-Type': content_type
366363
}
367364
params = {
368365
'model': model,

0 commit comments

Comments
 (0)