Skip to content
WebAI

generative-audio / text-to-music

Text-to-Music

Generates music or sound effects from a text prompt. Audio generation is autoregressive over acoustic tokens, so generation time scales with clip length, and several of the open weights here are licensed for non-commercial use only.

3 entries

Open demo →

Catalog comparison

Entries include models, tools and applications. An upstream example documents a browser integration, not a test on your device. Missing versions, measurements and licenses remain unverified. Historical estimates are not benchmark results.

Catalog comparison
EntryEntry typeFrameworkResourcesLicenseBrowser evidenceLinks

MusicGen Small

Meta MusicGen small (300M) — text-conditioned music generation that runs entirely in the browser via Transformers.js.

Tasks: Text-to-Music

ModelTransformers.js

q8: 571.1 MiB

q4f16: 606.1 MiB

fp16: 1074.7 MiB

fp32: 2144.8 MiB

Code license: Apache-2.0

Weight license: CC-BY-NC-4.0

Upstream browser example

Reference ↗

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Xenova/musicgen-small
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
Text-to-Music
Package
Not verified
Runtime version
@huggingface/transformers@4.3.0
Execution backend
Not verified
Code license
Apache-2.0
Weight license
CC-BY-NC-4.0
Legacy license label (unverified)
Other

Deployment variants

q8
Download size: 571.1 MiB
Peak runtime memory: Not measured
Quantization / precision: q8
Weight revision: 6a8096dabfff72909ef5eae41461408e29ae20fd
Weight artifact ↗
q4f16
Download size: 606.1 MiB
Peak runtime memory: Not measured
Quantization / precision: q4f16
Weight revision: 6a8096dabfff72909ef5eae41461408e29ae20fd
Weight artifact ↗
fp16
Download size: 1074.7 MiB
Peak runtime memory: Not measured
Quantization / precision: fp16
Weight revision: 6a8096dabfff72909ef5eae41461408e29ae20fd
Weight artifact ↗
fp32
Download size: 2144.8 MiB
Peak runtime memory: Not measured
Quantization / precision: fp32
Weight revision: 6a8096dabfff72909ef5eae41461408e29ae20fd
Weight artifact ↗

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

MusicGen Medium (ONNX)

Meta MusicGen medium (1.5B) — better quality, exported to ONNX for browser-side generation.

Tasks: Text-to-Music

ModelONNX Runtime Web

Download size: Historical estimate: ~1.5 GB (unverified)

Code license: MIT

Weight license: Not verified

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Not verified
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
Text-to-Music
Package
Not verified
Runtime version
onnxruntime-web@1.30.0
Execution backend
Not verified
Code license
MIT
Weight license
Not verified
Legacy license label (unverified)
Other

Deployment variants

Unspecified variant
Download size: Historical estimate: ~1.5 GB (unverified)
Peak runtime memory: Not measured
Quantization / precision: Not verified
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Riffusion (Stable Diffusion spectrogram)

Riffusion — generates music by inpainting spectrograms with a Stable Diffusion model; runs in the browser.

Tasks: Text-to-Music

ModelONNX Runtime Web

Download size: Historical estimate: ~1.6 GB (unverified)

Code license: MIT

Weight license: Not verified

Browser support unverified

Source review is not a browser execution test.

Sources and comparison details
Exact model ID
Not verified
Natural languages
Not specified
Programming languages
Not specified
Other reported capabilities
Text-to-Music
Package
Not verified
Runtime version
onnxruntime-web@1.30.0
Execution backend
Not verified
Code license
MIT
Weight license
Not verified
Legacy license label (unverified)
OpenRAIL

Deployment variants

Unspecified variant
Download size: Historical estimate: ~1.6 GB (unverified)
Peak runtime memory: Not measured
Quantization / precision: Not verified
Weight revision: Not verified

Performance and compatibility measurements

Compare only results with the same task, input, hardware, browser and precision. No ranking is inferred from model size.

Not measured

Application workflows

About Text-to-Music

Text-to-Music under Generative Audio holds 3 catalogue entries: 3 models.

1 of them carry browser evidence, all from upstream browser examples. Another 2 are still waiting for verification.

The usual pattern for this task is to load quantised weights (ONNX, TFLite or a MediaPipe asset bundle) into the page, hand them to ONNX Runtime Web and Transformers.js, and accelerate with WebGPU or WebAssembly. What decides the experience is weight size, peak memory and decoding path — not the parameter count.

To see the output first, open the interactive demo for this task: switch models, edit the sample input and compare results on one page. Every demo states whether it is running real weights or a deterministic simulator.

At a glance

Entries
3 in total
Main runtime
ONNX Runtime Web and Transformers.js
Smallest known weights
571 MiB
Browser evidence
1 of 3 verified

Text-to-Music: common questions

Can Text-to-Music run directly in a browser?
Yes. 1 entries already carry browser evidence (tested here or an upstream example), so the approach works; whether it runs smoothly on your device depends on weight size, browser version and whether WebGPU is enabled.
How large is the model for Text-to-Music?
The smallest weight on record here is 571 MiB; the other entries in this task have no verified size yet. Browser builds usually ship int8 or 4-bit quantised variants, downloaded once and reused from the HTTP cache or Cache Storage.
Which devices suit Text-to-Music?
Any modern browser with WebAssembly is a starting point, and WebGPU usually makes it faster. Phones are tighter on memory, so run the demo once on the target device before deciding.
Does running a model here upload my data?
The demos on this site infer inside the tab, so inputs never reach a server. Weights and runtimes are fetched from a CDN on first use and then served from the browser cache.

Other tasks in this category

Browse all Generative Audio models →