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

How do I use this? Does it work for .flac files? #16

Open
dessalines opened this issue May 19, 2015 · 4 comments
Open

How do I use this? Does it work for .flac files? #16

dessalines opened this issue May 19, 2015 · 4 comments

Comments

@dessalines
Copy link

There aren't any unit tests so I can't really see how to use it.

@dessalines
Copy link
Author

Thanks, that's pretty much what I needed. Is there anyway to get the duration of the audio? In milliseconds preferably?

@Gagravarr
Copy link
Owner

It's possible that some encoding tools might store that duration in the metadata, but it isn't standard. If not, you'll have to iterate over all the audio packets to calculate it. The Tika Parser should be doing that already for all the file formats, so look there for the handful of calls you need to make

@dessalines
Copy link
Author

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

No branches or pull requests

2 participants