Generate sound, music or speech
generate_audioCreate sound effects, music, or speech from a text prompt via free Hugging Face Spaces, writing audio files with JSON metadata for each take. Use for prototyping game audio assets.
Instructions
Generate sound effects, music or speech through a free Hugging Face Space. Writes the audio and a .json sidecar with the prompt, the parameters, the seed and the raw Space response. mmaudio is CC-BY-NC-4.0: prototype only, it must never reach a build.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | File name prefix; defaults to the model name. | |
| seed | No | Seed; change it for another take. | |
| count | No | How many takes to generate. | |
| model | No | Which Space to use. | stable |
| lyrics | No | music only: lyrics, or a path to a lyrics file. | |
| prompt | Yes | The sound, the music tags, or the words to say. | |
| out_dir | No | Where to write the file. | out/audio |
| seconds | No | Length in seconds. | |
| language | No | speech only: language code (ru, en, de, ja, ...). | en |
| exaggeration | No | speech only: emotion, 0.25-2. | |
| negative_prompt | No | mmaudio only: what to avoid. | |
| voice_reference | No | speech only: a 5-10 s clip of a voice you have the right to clone. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | Yes | What the engine printed while it worked. | |
| files | Yes | Everything that was written. |