Skip to content

About

Luna-TTS 1.5 workflow plugin for Dify by VUI Labs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Luna-TTS and Translator by VUI Labs

Use Generate speech to create WAV audio from text with Luna-TTS 1.5. Use Translate audio to turn a short recording into translated text and optional WAV audio with Luna Translator.

Setup

  1. Create a VUI Labs China project API key.
  2. Install the Luna-TTS plugin in Dify. For local evaluation, use Plugins → Install via Local File and select the .difypkg file.
  3. In Luna-TTS and Translator by VUI Labs, save the project key in VUI Labs China TTS API key. Saving it sends one short synthesis request, which can consume API credits. The API pricing details apply to synthesis.

Network requirements

The Dify plugin runtime needs outbound HTTPS and WSS access to api.vuilabs.cn. The translation tool reads signed files from Dify Cloud file hosts or the standard Community Edition internal file service at http://api:5001. Use a Dify version at or above the minimum declared in the manifest. Local builds are unsigned and intended for development or test installation.

Workflow example

  1. Add a text input named announcement.
  2. Add the Generate speech tool. Bind Text to the input and choose a system voice for that language.
  3. In the workflow Output node, expose the tool's files output.
  4. Run the workflow with a short example such as Welcome to the VUI Labs voice demo. and an English voice. The output is one WAV file.

The tool uses system voices from the live Luna-TTS 1.5 catalog. Text may contain up to 500 weighted characters. Chinese, Japanese, and Korean letters count as two, and line breaks do not count. Request limits and options are described in the synthesis API reference.

Translate a recording

  1. In Luna-TTS and Translator by VUI Labs, save a China project key with interpretation access and available interpretation quota in VUI Labs China interpretation API key. Credential validation queries its preset voice catalog without starting an interpretation session. If this field is blank, Translate audio uses the TTS key.
  2. Upload a PCM16 WAV through Dify using a single-file input. The file can have one or two channels and a sample rate between 8 and 48 kHz. The limit is 30 seconds and 6 MiB.
  3. Bind the file to Translate audio. Select the recording language, the translation language, and a preset voice for that language or Text only.
  4. Expose the tool's text, files, request_id, and audio_status outputs as needed. audio_status is complete if audio was returned, not_requested for text-only mode, or unavailable if the service completed text translation but produced no complete speech output.

This workflow processes a file and delivers results when translation completes. For live microphone interpretation and captions, use the Luna Translator application. See the interpretation v3 API reference for supported languages and quota.

The plugin privacy notice explains how text, credentials, and generated audio are handled.

Development

Use Python 3.12. From the plugin source root, install requirements.txt and run python -m unittest discover -s tests -v. For a Dify development session, use its remote debugging workflow.

Plugin source repository · Support

About

Luna-TTS 1.5 workflow plugin for Dify by VUI Labs

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages