HuntAPI

Save the audio file

Download the MP3 and save it to disk.

Download the MP3 and save it to disk.

This code continues the script from Poll for completion.

with requests.get(download_url, stream=True) as download:
    download.raise_for_status()
    with open("audio.mp3", "wb") as output:
        for chunk in download.iter_content(chunk_size=8192):
            output.write(chunk)

print("Saved to audio.mp3")

The extracted audio is delivered as an MP3. You can pipe it directly to a transcription service (e.g. OpenAI Whisper or Deepgram) for automatic subtitling or search indexing.