---
title: text_to_audio
canonical_url: "https://www.modelscope.cn/models/AI-ModelScope/text_to_audio"
md_url: "https://www.modelscope.cn/models/AI-ModelScope/text_to_audio.md"
repository: AI-ModelScope/text_to_audio
last_updated: 2023-12-20
license: mit
downloads: 39
stars: 1
---

# text_to_audio

> text_to_audio - AI-ModelScope 在 ModelScope 开源的模型。Amphion Text-to-Audio Pretrained Models

AI-ModelScope/text_to_audio 是 ModelScope 魔搭社区上的机器学习模型，采用 mit 许可。

- **Repository**: AI-ModelScope/text_to_audio
- **License**: mit
- **Downloads**: 39
- **Stars**: 1
- **Last updated**: 2023-12-20

Source: https://www.modelscope.cn/models/AI-ModelScope/text_to_audio

---

# Amphion Text-to-Audio Pretrained Models

We provide the following pretrained checkpoints for you to use, specifically:

Two [AudioLDM](https://github.com/open-mmlab/Amphion/tree/main/egs/tta/audioldm) pretrained checkpoints with corresponding [AutoencoderKL](https://github.com/open-mmlab/Amphion/tree/main/egs/tta/autoencoderkl) checkpoints trained on AudioCaps.



## Quick Start

To utilize the pretrained models, just run the following commands:

### Step1: Download the checkpoint
```bash
git lfs install
git clone https://huggingface.co/amphion/text_to_audio
```

### Step2: Clone the Amphion's Source Code of GitHub
```bash
git clone https://github.com/open-mmlab/Amphion.git
```

### Step3: Specify the checkpoint's path
Use the soft link to specify the downloaded checkpoint in the first step:

```bash
cd Amphion
mkdir -p ckpts
ln -s  ../../../text_to_speech/tta  ckpts/
```

### Step4: Inference

You can follow the inference part of [this recipe](https://github.com/open-mmlab/Amphion/tree/main/egs/tta/RECIPE.md) to generate audio from text.

We also provided an online [demo](https://huggingface.co/spaces/amphion/Text-to-Audio), feel free to try it!
