All examples assume:
Response handling
Every call returns a DolbyResponse (a Saloon response), so the usual Saloon response methods are available:
Enhance API
Clean up noisy or low-quality audio/video. See the Enhance API guide.
Poll for the result with the job ID:
Diagnose API
An automated quality report for a media file. See the Diagnose API guide.
Analyze API
Loudness and quality analysis against a chosen profile. See the Analyze API guide.
analyze() also accepts a fourth, optional $content array (defaults to ['type' => '']) for content-type hints.
Analyze Speech and Analyze Music APIs
Speech- and music-specific analysis. Both take a webhook URL to call on completion — see the Speech Analytics guide and Analyze Music guide.
Transcode API
Convert media between formats and outputs. See the Transcode API guide.
transcode() also accepts two further optional arguments: $storage and $onComplete, both nullable arrays.
Get a signed upload URL for Dolby’s storage:
Get a signed download URL:
Error handling
Errors come back as a Problem Details style response:
Check $response->status() before trusting $response->json().