@acedatacloud/node-red-fish-audio 1.0.0

Synthesize speech with Fish Audio and retrieve the original synthesis task in Node-RED.

npm install @acedatacloud/node-red-fish-audio

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

  1. Open Import → Examples → @acedatacloud/node-red-fish-audio and import Synthesize and check Fish Audio speech. Both Inject nodes start manually.
  2. Add an application token with access to Fish TTS and Fish Tasks. Enter the token in the account node's password field without the Bearer prefix.
  3. Set msg.payload to 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.
  4. Pass that ID to Fish Audio task. Its first output carries a completed result. The second carries a pending task with msg.payload.id for 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.

Node Info

Version: 1.0.0
Updated 5 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-fish-audio-account
  • acedatacloud-fish-audio-generate
  • acedatacloud-fish-audio-task

Keywords

  • node-red
  • fish-audio
  • audio
  • acedatacloud

Maintainers