Audio from Google Drive HTTP Post

I’m trying to pass an audio file from google drive into an HTTP post request and am getting an error message that the file doesn’t contain any audio. I imagine that the data from the file is being read as text. Here’s the error message:

{
  "status": 200,
  "headers": {
    "date": "Tue, 05 Dec 2023 02:17:01 GMT",
    "content-type": "application/json; charset=UTF-8",
    "content-length": "1524",
    "connection": "close",
    "set-cookie": "AWSALBTG=K68vhKKCe7mkNJb2NVIbcNoIfK4BJ2+OIvs1tMkUUGAYsFUe0NW/5MR5Nnfh1/TKV1pdg4w2/tHQjitr4borZNRDxmcu3jq4UHoakyhxvtiYZu0nWNAhIn4HJwyWr6fbfFdYYru/8k9PDQ4GhGGJHbeboAWuPNNdCs9VhoSnuMioHd8IQuM=; Expires=Tue, 12 Dec 2023 02:17:00 GMT; Path=/, AWSALBTGCORS=K68vhKKCe7mkNJb2NVIbcNoIfK4BJ2+OIvs1tMkUUGAYsFUe0NW/5MR5Nnfh1/TKV1pdg4w2/tHQjitr4borZNRDxmcu3jq4UHoakyhxvtiYZu0nWNAhIn4HJwyWr6fbfFdYYru/8k9PDQ4GhGGJHbeboAWuPNNdCs9VhoSnuMioHd8IQuM=; Expires=Tue, 12 Dec 2023 02:17:00 GMT; Path=/; SameSite=None; Secure, AWSALB=00lMDKhg+DSzEvdAjv4pe95kjcHckcmHNGbshh65pbW8xTDL8w0niTS+cox/Y4bGqW/R720xGe6HeDCM2Uc5N7ZeCZaFtNpY22GnDFVaUFEvYs57Mg9sqJWT2Y44; Expires=Tue, 12 Dec 2023 02:17:01 GMT; Path=/, AWSALBCORS=00lMDKhg+DSzEvdAjv4pe95kjcHckcmHNGbshh65pbW8xTDL8w0niTS+cox/Y4bGqW/R720xGe6HeDCM2Uc5N7ZeCZaFtNpY22GnDFVaUFEvYs57Mg9sqJWT2Y44; Expires=Tue, 12 Dec 2023 02:17:01 GMT; Path=/; SameSite=None; Secure",
    "access-control-allow-origin": "*",
    "access-control-allow-headers": "Content-Type, Authorization, X-Requested-With",
    "access-control-allow-methods": "POST, PUT, GET, OPTIONS",
    "etag": "\\927\""
  },
  "body": {
    "id": "

    "language_model": "assemblyai_default",
    "acoustic_model": "assemblyai_default",
    "language_code": "en_us",
    "status": "error",
    "audio_url": "https://cdn.assemblyai.com/upload/0d1aa599-d7c0-4cc6-bf01-d146fe1ae052",
    "text": null,
    "words": null,
    "utterances": null,
    "confidence": null,
    "audio_duration": null,
    "punctuate": true,
    "format_text": true,
    "dual_channel": false,
    "webhook_url": null,
    "webhook_status_code": null,
    "webhook_auth": false,
    "webhook_auth_header_name": null,
    "speed_boost": false,
    "auto_highlights_result": null,
    "auto_highlights": false,
    "audio_start_from": null,
    "audio_end_at": null,
    "word_boost": [],
    "boost_param": null,
    "filter_profanity": false,
    "redact_pii": false,
    "redact_pii_audio": false,
    "redact_pii_audio_quality": null,
    "redact_pii_policies": null,
    "redact_pii_sub": null,
    "speaker_labels": true,
    "error": "File does not appear to contain audio. File type is text/plain (ASCII text, with no line terminators).",
    "content_safety": null,
    "iab_categories": null,
    "content_safety_labels": null,
    "iab_categories_result": null,
    "language_detection": false,
    "custom_spelling": null,
    "throttled": null,
    "auto_chapters": false,
    "summarization": false,
    "summary_type": null,
    "summary_model": null,
    "custom_topics": false,
    "topics": [],
    "speech_threshold": null,
    "disfluencies": false,
    "sentiment_analysis": false,
    "chapters": null,
    "sentiment_analysis_results": null,
    "entity_detection": false,
    "entities": null,
    "summary": null,
    "speakers_expected": null
  }

Hello there and sorry for the late response, can tell us what is the service you are trying to use? currently our http requests don’t support files, but if it was a piece you should be able to.

Hi,

I’m trying to upload the file into AssemblyAI for transcription

Yeah same problem.
Simple automation → new file in google drrive to Assembly

Oct 24, 2024, 4:50 PM
Error Transcoding failed. File does not appear to contain audio. File type is text/html (HTML document, ASCII text, with very long lines (24592)).
Audio URL https://drive.google.com/file/d/196sm (redacted)