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

Unable to play a PCM file #1983

Open
xxczaki opened this issue Feb 1, 2025 · 1 comment
Open

Unable to play a PCM file #1983

xxczaki opened this issue Feb 1, 2025 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@xxczaki
Copy link

xxczaki commented Feb 1, 2025

Describe the bug

I'm unable to play a PCM file.

To Reproduce

  1. Download the PCM file: https://drive.proton.me/urls/N449XSXJR0#k4iEamKikMYA
  2. Ensure that the AttachmentExtractor is registered
  3. Play the track according to https://discord-player.js.org/docs/common-actions/playing_local_file
  4. Receive the error:
NoResultError: No results found for "<path>" (Extractor: com.discord-player.attachmentextractor)

Expected behavior

The track should play correctly.

Screenshots

N/A

Please complete the following information:

  • Node Version: 22.11.0
  • Discord Player Version: 7.1.0
  • Discord.js Version: 14.17.3
  • Operating system: macOS

Additional context

  • the track works correctly when imported to Audacity, so I assume it's not corrupted
  • upon inspecting the source code of the attachment extractor, I confirmed that all the checks leading to return this.emptyResponse(); are not being triggered, e.g. the file exists, is actually a file, and its mime type is correctly detected as raw/pcm
@xxczaki xxczaki added the bug Something isn't working label Feb 1, 2025
@twlite twlite self-assigned this Feb 1, 2025
@twlite
Copy link
Collaborator

twlite commented Feb 2, 2025

hello @xxczaki, I tried this with https://github.com/Androz2091/discord-player/tree/master/apps/music-bot and it seems to be working fine. Can you try this in development version of discord-player?

npm i discord-player@dev @discord-player/extractor@dev

Image

@twlite twlite added question Further information is requested and removed bug Something isn't working labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants