> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mountsea.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 下载音频

> 以 MP3、M4A 或 WAV 格式下载音频

以指定格式下载生成的音频文件。

<Info>
  这是一个异步任务。响应中包含一个 `taskId` — 使用[获取任务状态](/zh/api-reference/producer/task)来轮询获取下载链接。
</Info>

## 格式推荐

| 格式    | 适用场景             |
| ----- | ---------------- |
| `mp3` | 分享和流媒体播放（文件最小）   |
| `m4a` | 通用场景（默认，质量与大小平衡） |
| `wav` | 专业编辑（无压缩，最高质量）   |

<Tip>
  下载链接是临时的。收到链接后请尽快保存文件。
</Tip>


## OpenAPI

````yaml POST /producer/download
openapi: 3.0.0
info:
  title: Producer - AI Music Generation
  description: >-
    Generate music with Google DeepMind's Lyria 3 Pro model. Supports
    text-to-music, lyrics-to-music, and image-guided generation with stem
    separation and multi-format export.
  version: 2.0.0
  contact: {}
servers:
  - url: https://api.mountsea.ai
    description: API Gateway
security: []
tags:
  - name: producer
    description: >-
      Music generation, audio upload, stem separation, and export endpoints
      powered by Lyria 3 Pro
paths:
  /producer/download:
    post:
      tags:
        - producer
      summary: 下载音频
      description: 下载指定格式的音频文件（支持 mp4/m4a/wav）。返回 taskId，使用 /producer/tasks 接口轮询获取结果
      operationId: ApiPublicController_downloadAudio
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DownloadAudioDto'
      responses:
        '200':
          description: 任务创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskIdDto'
      security:
        - bearerAuth: []
components:
  schemas:
    DownloadAudioDto:
      type: object
      properties:
        audioId:
          type: string
          description: 音频 ID
        format:
          enum:
            - mp3
            - m4a
            - wav
          type: string
          description: 格式（mp3/m4a/wav），默认 m4a
          default: m4a
      required:
        - audioId
    TaskIdDto:
      type: object
      properties:
        taskId:
          type: string
          description: 任务 ID，用于后续查询结果
      required:
        - taskId
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````