Skip to content

Audio returned by POST request is not playable. #8378

@PiotrDabkowski

Description

@PiotrDabkowski

Q&A (please complete the following information)

  • OS: macOS
  • Browser: Chrome
  • Version: [e.g. 22]
  • Method of installation: npm
  • Swagger-UI version: 4.15.5
  • Swagger/OpenAPI version: OpenAPI 3.0

Describe the bug you're encountering

Audio returned by the POST endpoint is not playable, audio element has src attribute set to the audio endpoint (see screenshot), but this is a POST request, not GET, so error is returned to the element.

To reproduce...

Steps to reproduce the behavior:

  1. Create an endpoint that returns audio data on the POST request.
  2. Try the endpoint in Swagger-UI, you will see non-functional audio element grayed out.

You can try it yourself at https://api.elevenlabs.io/docs

Expected behavior

Audio returned by the POST endpoint is playable. The returned data can for example be instead stored as blob and the blob url should be a provided as src attribute to the audio element instead.

Screenshots

image

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions