cloudyr / aws.transcribe

Client for AWS Transcribe
https://cran.r-project.org/package=aws.transcribe
4 stars 6 forks source link

passing additional parameters to the API #4

Open eafpres opened 5 years ago

eafpres commented 5 years ago

Please specify whether your issue is about:

If you are reporting (1) a bug or (2) a question about code, please supply:

In start_transcription(), the ... passes to the transcribeHTTP(), and in transcribeHTTP() the ... says it gets passed to GET

I'm trying to send the additional argument to set a destination. Below, the name of the destination bucket is in 'destination', but the request drops this:

my call:

start_transcription(name = job_name, 
                    url = wav_file, 
                    format = format,
                    language = "en-US",
                    region = region,
                    OutputBucketName = destination)

resulting request (from AWS console) { "TranscriptionJobName": job_name, "LanguageCode": "en-US", "MediaSampleRateHertz": 8000, "MediaFormat": "wav", "Media": { "MediaFileUri": wav_file } }

so the destination request does not get passed through, and there is no error.

Is there a way to send this through via the call?

antoine-sachet commented 4 years ago

Indeed the ... gets passed to the HTTP request but they need to be in the body of the request, in this particular case under Settings. This is not currently possible but there is a PR coming (#3) which will allow you to pass settings for the transcription.