Urgent.News

What's breaking now, across thousands of outlets.

Tech

How to Handle Audio Transcription API 404/501 — available=false Speech-to-Text in 2026

Short answer: route production supplier-invoice audio to an external speech-to-text provider whenever the model catalog does not advertise an available ASR model, and record that routing decision against the tenant before attempting an upload. A 404 , 501 , or available=false is a capability signal, not a reason to keep retrying. For a marketplace, transcription is only the first stage. The real…

When the audio transcription API returns a 404, 501, or available=false status, it indicates that the requested model is not available for transcription. Instead of attempting to retry the request, it is recommended to route the production supplier-invoice audio to an external speech-to-text provider. This signal signifies a lack of capability rather than a temporary issue that can be resolved through repeated attempts.

In a marketplace setting, the ultimate goal is to extract invoice fields from the audio and produce an auditable chain from the audio attachment to the extracted fields. The external provider acts as the first stage in this process, with the marketplace ultimately responsible for auditing the entire workflow. The system should implement a small ASR port that includes a catalog check and a tenant usage ledger.

The extraction of invoice fields should not depend on the specific provider, ensuring that the marketplace can retrieve relevant information regardless of which provider handles the transcription. The provider boundary should remain minimal, with a single logical operation ID generated at ingestion and carried through the entire audio storage, transcription, field extraction, review, and posting process.

This ID should remain stable across retries, while each network call should have a separate attempt ID. By distinguishing between the operation ID and the attempt ID, the system can achieve exactly-once posting semantics, enabling accurate accounting for transcription costs attributable to individual tenants. To implement this logic, the backend should first check the model catalog before building a multipart upload or retry queue.

If no available ASR model is present, admission control should be triggered, and the configured external provider should be selected. It is important not to classify this state as transient, as failing to do so can lead to an expensive failure mode where numerous retries occur while the actual transcription work remains unaccomplished.

A simple Go program demonstrates how to perform the catalog gate against the documented model route, using an environment variable for the key and handling various HTTP responses, including 429 status codes with Retry-After headers or bounded exponential delays. By implementing these strategies, the backend can effectively handle audio transcription API responses and ensure accurate and auditable invoice processing.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How to Build a Cybersecurity Metric Data Dictionary That Executives Can Actually Trust

Cybersecurity Metric Data Dictionary: Make Every Dashboard Number Reproducible Audience: security program managers, GRC leads, control owners, audit coordinators, and consultants A dashboard can look…

  • Define a stable metric ID and capture necessary fields before a metric enters a recurring report
  • Follow a four-step quality gate process before publishing the metric

I couldn't find a tool that lets agents verify what they're buying. So I built it.

I built ScrapeCheck because as someone who has been in the crypto industry for over 9 years, I know how important it is for information to be public, like the blockchain.

  • Fieldmode LLC creates ScrapeCheck tool for agent data verification
  • Tool independently fetches webpages, compares to agent-provided data
  • ScrapeCheck marks unverifiable data with "unverifiable" verdict

More from Saturday 15 August →