Examples
The curl statements in this section show examples of calling the /transcribe
endpoint.
The following example shows calling the /transcribe
endpoint, providing a callback target and using the default output method and language model.
curl -F "file=@test.zip;type=application/zip" \ -F token=123e4567e89b12d3a456426655440000 \ -F callback=http://foo.bar/callback \ https://vcloud.vocitec.com/transcribe
Response:
{"requestid":"700e7496-4fce-4963-aa7b-b3b26600f813"}
The following is another example of calling the /transcribe
endpoint. This is identical to the previous example, except that options specify that output will be returned in text format, and that the eng1:voicemail
language model is being used for transcription.
curl -F "file=@test.zip;type=application/zip" \ -F token=123e4567e89b12d3a456426655440000 \ -F callback=http://foo.bar/callback \ -F output=text -F model=eng1:voicemail \ https://vcloud.vocitec.com/transcribe
Response:
{"requestid":"700e7496-4fce-4963-aa7b-b3b26600f813"}
In both of these examples, results are returned to the callback URL as soon as they are available after successful processing. See Obtaining Transcription Results for more detailed information about different ways of retrieving results.