Reprocess Audio
PUT/v1/audios/{audio_id}
Reprocess an audio file based on audio id.
The three speech-analysis flags are optional and default to "leave whatever is stored alone", so existing callers are unaffected. Supplying them is how media uploaded with speech analysis skipped gets analyzed later (#840).
language is optional too. Without it the language is detected from the audio, as before; with it
the audio is processed in that language. It is checked before anything is charged, so an unsupported
code is refused with 422 invalid_language and costs nothing. It is only used by a request that
starts a run (a failed audio, or reprocess=true); on a request that does not, it is ignored.
For a standalone audio it applies to this run only: a later reprocess that omits it auto-detects again.
For a video's companion audio the choice is also recorded on the video, so a later reprocess of the
video re-sends it; a later audio reprocess that omits language re-detects the audio but leaves the
video's recorded language alone.
multilingual and expected_languages are the language hints (expected_languages is the set of languages
the audio may contain, up to 5; see the field descriptions). They are checked with language, before anything
is charged: an invalid one is refused with 422 invalid_language and costs nothing. Unlike language they are
not sticky: a request that starts a run and omits them runs without a hint, and clears the audio's stored ones.
For a video's companion audio, a request that names any of language, multilingual or expected_languages
also replaces the video's hints with the audio's resulting ones, so naming only language clears the video's
hints; a request that names none leaves the video's alone.
Request
Responses
- 200
- 422
Successful Response
Validation Error