# Suno Voice 获取自建音色记录

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/voice/record-info:
    get:
      summary: Suno Voice 获取自建音色记录
      deprecated: false
      description: |
        查询 Suno Voice 自建音色生成结果，并获取生成的 voiceId。

        ### 使用指南

        - 使用自建音色生成接口返回的 `taskId` 查询。
        - 当 `status` 为 `success` 时，响应中会包含生成的 `voiceId`。
        - 如果任务失败，请根据 `errorCode` 和 `errorMessage` 判断是否需要重新验证或重新生成。

        ### 状态说明

        | 状态 | 含义 |
        | --- | --- |
        | `wait_processing` | 任务等待处理中 |
        | `processing_validate` | 正在处理验证 |
        | `processing_validate_fail` | 验证失败 |
        | `wait_validating` | 等待验证完成 |
        | `success` | 音色已准备完成，可使用 `voiceId` |
        | `fail` | 任务失败 |

        ### 相关接口

        <Card
        title="检查音色是否可用"
        icon="lucide-badge-check"
        href="/cn/suno-api/suno-voice-check-voice"
        >
        确认生成的自建音色是否可用于支持的 Suno 生成接口
        </Card>
      operationId: suno-voice-record-info
      tags:
        - docs/zh-CN/Suno API/Suno Voice
      parameters:
        - name: taskId
          in: query
          description: 任务id
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      taskId:
                        type: string
                        description: 任务 ID。
                      voiceId:
                        type: string
                        description: 生成的自建音色 ID。任务成功后可用于支持自建音色的生成接口。
                      status:
                        type: string
                        description: 任务状态
                        enum:
                          - wait_processing
                          - processing_validate
                          - processing_validate_fail
                          - wait_validating
                          - success
                          - fail
                      errorCode:
                        type: integer
                        description: 错误码，任务失败时返回。
                      errorMessage:
                        type: string
                        description: 错误信息，任务失败时返回。
                    required:
                      - taskId
                      - voiceId
                      - status
                      - errorCode
                      - errorMessage
                    x-apidog-orders:
                      - taskId
                      - voiceId
                      - status
                      - errorCode
                      - errorMessage
                required:
                  - code
                  - msg
                  - data
                x-apidog-orders:
                  - code
                  - msg
                  - data
              example:
                code: 200
                msg: success
                data:
                  taskId: xxx_task_id_xxx
                  voiceId: xxx
                  status: >-
                    wait_processing,processing_validate:等待验证码,processing_validate_fail:获取验证码失败,wait_validating:等待验证，success,fail
                  errorCode: 500
                  errorMessage: xxxxx
          headers: {}
          x-apidog-name: 成功
      security: []
      x-apidog-folder: docs/zh-CN/Suno API/Suno Voice
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1412907/apis/api-46842380-run
components:
  schemas: {}
  securitySchemes:
    BearerAuth:
      type: bearer
      scheme: bearer
      bearerFormat: API Key
      description: >-
        # 🔑 API Authentication


        All endpoints require authentication using Bearer Token.


        ## Get API Key


        1. Visit the [API Key Management Page](https://sunoapi.org/api-key) to
        obtain your API Key


        ## Usage


        Add to request headers:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        > **⚠️ Note:**

        > - Keep your API Key secure and do not share it with others

        > - If you suspect your API Key has been compromised, reset it
        immediately from the management page
servers:
  - url: https://apibox.erweima.ai
    description: 正式环境
security: []

```
