Skip to content

[MusicGen] Cannot get MP3 #336

@dangtran47

Description

@dangtran47

I’m using the code below to get the buffer from the URL returned in the response (MusicGen) (https://replicate.delivery/yhqm/6qeYFuueorg8eIu3G6BdDM4lMhRPNutBldYfh5VDYnC2wxZPB/out.mp3). However, it doesn’t work.

import fetch from 'node-fetch';

export const getBufferFromUrl = async (url) => {
  return await (await fetch(url)).buffer();
};

I tried copying the URL and opening it in Arc, but it couldn’t open the file. However, it works fine in Chrome.

ARC

Screenshot 2024-12-01 at 15 18 10

Chrome

Screenshot 2024-12-01 at 15 18 03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions