Skip to content

[Feat] support AutoPipelineForText2Audio#13511

Open
RuixiangMa wants to merge 1 commit intohuggingface:mainfrom
RuixiangMa:AutoPipelineForText2Audio
Open

[Feat] support AutoPipelineForText2Audio#13511
RuixiangMa wants to merge 1 commit intohuggingface:mainfrom
RuixiangMa:AutoPipelineForText2Audio

Conversation

@RuixiangMa
Copy link
Copy Markdown
Contributor

What does this PR do?

support AutoPipelineForText2Audio for ext2Audio model


import torch
import soundfile as sf
from diffusers import AutoPipelineForText2Audio

pipeline = AutoPipelineForText2Audio.from_pretrained(
    "stabilityai/stable-audio-open-1.0",
    torch_dtype=torch.float16
)
pipeline = pipeline.to("cuda")

output = pipeline(
    "Generate a male voice reading a paragraph",
    num_inference_steps=20,
    audio_end_in_s=10.0,
)

audio = output.audios[0].T.float().cpu().numpy()
sf.write("audio.wav", audio, pipeline.vae.sampling_rate)

audio.wav

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@github-actions github-actions Bot added documentation Improvements or additions to documentation utils pipelines size/L PR with diff > 200 LOC labels Apr 21, 2026
Signed-off-by: Lancer <maruixiang6688@gmail.com>
@RuixiangMa RuixiangMa force-pushed the AutoPipelineForText2Audio branch from 7a7d032 to 4ac3e90 Compare April 21, 2026 01:53
@github-actions github-actions Bot added size/L PR with diff > 200 LOC and removed size/L PR with diff > 200 LOC labels Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pipelines size/L PR with diff > 200 LOC utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant