@acedatacloud/node-red-producer 1.0.0
Generate and edit Producer songs, check existing tasks, and retrieve audio assets in Node-RED.
Producer for Node-RED
Generate or edit music with Producer, look up the original task, and retrieve related audio assets in Node-RED.
Install
Search for @acedatacloud/node-red-producer in Manage palette → Install. Alternatively, run npm install @acedatacloud/node-red-producer in the Node-RED user directory and restart it. Use Node.js 22 or later with Node-RED 4 or 5.
Configure a raw application token from Ace Data Cloud Applications with access to the operations used in your flow. Node-RED stores it as a password credential outside flow exports.
Generate and check a song
- Add Producer generate. Send an Audios request in
msg.payload, for example{"action":"generate","prompt":"A reflective piano instrumental","instrumental":true}. Other actions include cover, extend, variation, vocal and instrumental swaps, section replacement, and stems. The public API reference lists their inputs. Each submission may use Credits. - Save the original task ID emitted as a string. Pass it to Producer task for one lookup. You can also import Check an existing Producer task from the package examples and supply the ID from application history.
- The first output carries a finished task and its HTTPS audio, video, or stems links in
msg.payload.tracks. The second carries a pending task withmsg.payload.id. Pass that ID back as a string for the next lookup without submitting a new generation.
Connect a Catch node to route failed tasks, missing results, and HTTP or transport errors. Check the original task in application history if the submit response is uncertain. Each input sends one request.
Audio and lyrics operations
Select an operation on Producer assets. The node emits the API data value in msg.payload.
| Operation | Input | Result |
|---|---|---|
| Generate lyrics | {"prompt":"A song about stargazing"} |
Lyrics record |
| Upload reference audio | {"audio_url":"https://example.com/reference.mp3"} |
Audio ID |
| Get WAV download | {"audio_id":"your-original-audio-id"} |
WAV file records with file_url |
| Get video download | {"audio_id":"your-original-audio-id"} |
Video record with video_url |