[API Request] Add audio metadata to song response type #98
Closed
khers
started this conversation in
API requests
Replies: 2 comments 2 replies
-
There is a discussion open for this already, but I have to ask - in what scenario do you need to assume a sample rate? That seems unusual as most playback backends will look up the samplerate from the media file itself when playing it |
Beta Was this translation helpful? Give feedback.
0 replies
-
We already added all this in Child responses, see #83 ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type of change
API Clarification
Proposal description
in working on an open subsonic client for the Music Assistant(https://github.com/music-assistant/) project, I came across a user who could not stream some of their library from Navidrome (also tried Gonic with the same results) to the Music Assistant, but when the same file was offered to MA via the filesystem, everything worked fine. After some investigating, it came down to the sample rate of the audio file being 96 kHz instead of the assumed 44.1 kHz. However, aside from streaming the data and asking ffmpeg or similar to analyze it, I don't have a way to get this information from the OS API.
I would like to see bit depth, sample rate, and the number of channels exposed along with the existing bit rate and content type for each song.
Backward compatibility impact
No response
Backward compatibility
API details
We need to complete the documentation for the song return type and as a part of that, I would like to see any of the encoding meta data that we can provide to clients as much information about the streamed data as we can.
Security impacts
No response
Potential issues
No response
Alternative solutions
No response
Beta Was this translation helpful? Give feedback.
All reactions