Http request to whisper

Describe the problem/error/question

I can’t make a request to n8n to whisper for this url
https://api-inference.huggingface.co/models/openai/whisper-large-v3

If you do it in the console, everything will work out.

What is the error message (if any)?

400 - "{"error":["Error in inputs: Malformed soundfile"]}

Please share your workflow

Google Drive Input

[
  {
    "kind": "drive#file",
    "fileExtension": "mp3",
    "copyRequiresWriterPermission": false,
    "md5Checksum": "835975874db178f9560f0d30e9e3de3b",
    "writersCanShare": true,
    "viewedByMe": true,
    "mimeType": "audio/mpeg",
    "parents": [
      "1xv7NI3LsV_fg45haSNMjb-kBk4Ji4uRr"
    ],
    "iconLink": "https://drive-thirdparty.googleusercontent.com/16/type/audio/mpeg",
    "shared": false,
    "lastModifyingUser": {
      "displayName": "JavaScript Camp",
      "kind": "drive#user",
      "me": true,
      "permissionId": "03849455757269777343",
      "emailAddress": "[email protected]",
      "photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKrOhmKAGfFaqW0CAdVDW2vMXdVso9YOMn2dXicv-vq0fQ=s64"
    },
    "owners": [
      {
        "displayName": "JavaScript Camp",
        "kind": "drive#user",
        "me": true,
        "permissionId": "03849455757269777343",
        "emailAddress": "[email protected]",
        "photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKrOhmKAGfFaqW0CAdVDW2vMXdVso9YOMn2dXicv-vq0fQ=s64"
      }
    ],
    "headRevisionId": "0B3wiovljCf3lT2I0eTNVZmltVWtEYjk3Mko1QzRsN1lPV1RjPQ",
    "webViewLink": "https://drive.google.com/file/d/1-QHzmNObyaFZ9BcTnkaPmiU3dBE2lM0b/view?usp=drivesdk",
    "webContentLink": "https://drive.google.com/uc?id=1-QHzmNObyaFZ9BcTnkaPmiU3dBE2lM0b&export=download",
    "size": "121671",
    "viewersCanCopyContent": true,
    "permissions": [
      {
        "id": "03849455757269777343",
        "displayName": "JavaScript Camp",
        "type": "user",
        "kind": "drive#permission",
        "photoLink": "https://lh3.googleusercontent.com/a/ACg8ocKrOhmKAGfFaqW0CAdVDW2vMXdVso9YOMn2dXicv-vq0fQ=s64",
        "emailAddress": "[email protected]",
        "role": "owner",
        "deleted": false,
        "pendingOwner": false
      }
    ],
    "hasThumbnail": false,
    "spaces": [
      "drive"
    ],
    "id": "1-QHzmNObyaFZ9BcTnkaPmiU3dBE2lM0b",
    "name": "sample-0.mp3",
    "starred": false,
    "trashed": false,
    "explicitlyTrashed": false,
    "createdTime": "2024-01-15T06:58:09.030Z",
    "modifiedTime": "2024-01-15T06:58:09.068Z",
    "modifiedByMeTime": "2024-01-15T06:58:09.068Z",
    "viewedByMeTime": "2024-01-15T06:58:17.636Z",
    "quotaBytesUsed": "121671",
    "version": "1",
    "originalFilename": "sample-0.mp3",
    "ownedByMe": true,
    "fullFileExtension": "mp3",
    "isAppAuthorized": false,
    "capabilities": {
      "canChangeViewersCanCopyContent": true,
      "canEdit": true,
      "canCopy": true,
      "canComment": true,
      "canAddChildren": false,
      "canDelete": true,
      "canDownload": true,
      "canListChildren": false,
      "canRemoveChildren": false,
      "canRename": true,
      "canTrash": true,
      "canReadRevisions": true,
      "canChangeCopyRequiresWriterPermission": true,
      "canMoveItemIntoTeamDrive": true,
      "canUntrash": true,
      "canModifyContent": true,
      "canMoveItemOutOfDrive": true,
      "canAddMyDriveParent": false,
      "canRemoveMyDriveParent": true,
      "canMoveItemWithinDrive": true,
      "canShare": true,
      "canMoveChildrenWithinDrive": false,
      "canModifyContentRestriction": true,
      "canChangeSecurityUpdateEnabled": false,
      "canAcceptOwnership": false,
      "canReadLabels": false,
      "canModifyLabels": false,
      "canModifyEditorContentRestriction": true,
      "canModifyOwnerContentRestriction": true,
      "canRemoveContentRestriction": false
    },
    "thumbnailVersion": "0",
    "modifiedByMe": true,
    "permissionIds": [
      "03849455757269777343"
    ],
    "linkShareMetadata": {
      "securityUpdateEligible": false,
      "securityUpdateEnabled": true
    },
    "sha1Checksum": "9e709d1974ac0f9a8053f51eacb87c62d5551cd8",
    "sha256Checksum": "fbdd3587f273e3bd0d826e36a3868ca05dedc1a3f349faa5f28e52b5370b656f"
  }
]

Information on your n8n setup

  • n8n version: n8n cloud
  • Database (default: SQLite):SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):main
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: Mac

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Get binary data from node and put directly in HF

if 503 - "{"error":"Model openai/whisper-large-v3 is currently loading

Thanks, you can check-test fist on a https://api-inference.huggingface.co/models/openai/whisper-small

3 Likes

Its worked. thanks

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.