# Get Timestamped Lyrics

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/generate/get-timestamped-lyrics:
    post:
      summary: Get Timestamped Lyrics
      deprecated: false
      description: >
        Retrieve timestamped lyrics for synchronized display during audio
        playback.


        ### Parameter Selection Logic

        1. audioId parameter:
           - The audioId parameter is required to identify the exact track
           - Provides a unique identifier for the audio track within the generation task

        ### Developer Notes

        1. Timestamp values are in seconds

        2. Returned waveform data can be used for audio visualization

        3. For instrumental tracks (generated with instrumental=true), no lyrics
        data will be available

        4. Typical use case: Karaoke-style lyrics display in music player
        interfaces
      operationId: get-timestamped-lyrics
      tags:
        - docs/en/Suno API/Generate Music
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - taskId
                - audioId
              properties:
                taskId:
                  type: string
                  description: >-
                    The task ID of the music generation task. Required to
                    identify which generation task contains the lyrics.
                  examples:
                    - 5c79****be8e
                audioId:
                  type: string
                  description: >-
                    The specific audio ID to retrieve lyrics for.  

                    - Required to identify the exact track.  

                    - This parameter is required to identify which audio track
                    to get lyrics from.
                  examples:
                    - e231****-****-****-****-****8cadc7dc
              x-apidog-orders:
                - taskId
                - audioId
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      code:
                        type: integer
                        description: >-
                          # Status Codes


                          - ✅ 200 - Request successful

                          - ⚠️ 400 - Invalid parameters

                          - ⚠️ 401 - Unauthorized access

                          - ⚠️ 404 - Invalid request method or path

                          - ⚠️ 405 - Rate limit exceeded

                          - ⚠️ 413 - Theme or prompt too long

                          - ⚠️ 429 - Insufficient credits

                          - ⚠️ 430 - Your call frequency is too high. Please try
                          again later.

                          - ⚠️ 455 - System maintenance

                          - ❌ 500 - Server error
                        enum:
                          - 200
                          - 400
                          - 401
                          - 404
                          - 405
                          - 413
                          - 429
                          - 430
                          - 455
                          - 500
                        examples:
                          - 200
                      msg:
                        type: string
                        description: Error message when code != 200
                        examples:
                          - success
                    x-apidog-orders:
                      - code
                      - msg
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          alignedWords:
                            type: array
                            description: List of aligned lyrics words
                            items:
                              type: object
                              properties:
                                word:
                                  type: string
                                  description: Lyrics word
                                  examples:
                                    - |-
                                      [Verse]
                                      Waggin'
                                success:
                                  type: boolean
                                  description: Whether lyrics word is successfully aligned
                                  examples:
                                    - true
                                startS:
                                  type: number
                                  description: Word start time (seconds)
                                  examples:
                                    - 1.36
                                endS:
                                  type: number
                                  description: Word end time (seconds)
                                  examples:
                                    - 1.79
                                palign:
                                  type: integer
                                  description: Alignment parameter
                                  examples:
                                    - 0
                              x-apidog-orders:
                                - word
                                - success
                                - startS
                                - endS
                                - palign
                          waveformData:
                            type: array
                            description: Waveform data, used for audio visualization
                            items:
                              type: number
                            examples:
                              - - 0
                                - 1
                                - 0.5
                                - 0.75
                          hootCer:
                            type: number
                            description: Lyrics alignment accuracy score
                            examples:
                              - 0.3803191489361702
                          isStreamed:
                            type: boolean
                            description: Whether it's streaming audio
                            examples:
                              - false
                        x-apidog-orders:
                          - alignedWords
                          - waveformData
                          - hootCer
                          - isStreamed
                    x-apidog-orders:
                      - data
          headers: {}
          x-apidog-name: Success
        '500':
          description: Server error
          headers: {}
          x-apidog-name: Server Error
      security: []
      x-apidog-folder: docs/en/Suno API/Generate Music
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1412907/apis/api-46842202-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: []

```
