Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio returned by POST request is not playable. #8378

Open
PiotrDabkowski opened this issue Feb 11, 2023 · 1 comment · May be fixed by #8398 or #10228
Open

Audio returned by POST request is not playable. #8378

PiotrDabkowski opened this issue Feb 11, 2023 · 1 comment · May be fixed by #8398 or #10228

Comments

@PiotrDabkowski
Copy link

PiotrDabkowski commented Feb 11, 2023

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

@PiotrDabkowski
Copy link
Author

PiotrDabkowski commented Feb 18, 2023

@tim-lai for visibility, it seems you are one of the last active maintainers of this repo :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant