@acedatacloud/node-red-fish-audio 1.0.0
Synthesize speech with Fish Audio and retrieve the original synthesis task in Node-RED.
Fish Audio for Node-RED
Synthesize speech with Fish Audio and retrieve the original synthesis task in Node-RED.
Install
In Manage palette → Install, search for @acedatacloud/node-red-fish-audio. For manual installation, run npm install @acedatacloud/node-red-fish-audio in your Node-RED user directory and restart it. Use Node.js 22 or later with Node-RED 4 or 5.
Submit and retrieve a task
- Open Import → Examples → @acedatacloud/node-red-fish-audio and import Synthesize and check Fish Audio speech. Both Inject nodes start manually.
- Add an application token with access to Fish TTS and Fish Tasks. Enter the token in the account node's password field without the
Bearerprefix. - Set
msg.payloadto a request object. Deploy and click the sample prompt or text Inject once. Fish Audio synthesize sends one asynchronous submission and may spend Credits. It emits the original task ID as a string. - Pass that ID to Fish Audio task. Its first output carries a completed result. The second carries a pending task with
msg.payload.idfor another lookup. A Catch node receives failed tasks or request errors. Use the same ID from application history if a submission result is uncertain.
Supply the text in msg.payload.text. To synthesize with a saved voice that your application can use, supply its reference_id. The flow supports the documented mp3, wav, and pcm output formats.
A successful lookup has the HTTPS audio URL in msg.payload.result.audio_url. Connect the corresponding output to your next node.
Source
The nodes can be installed alongside the other Ace Data Cloud packages. The repository contains credential-free examples and local Node-RED tests.