[FEATURE]: Infer audio format from file extension
See original GitHub issue🚨🚨 Feature Request
- A new implementation (Improvement, Extension)
The Audio
api should automatically infer format from file extension. A valid format is anything that ffmpeg can read, and that includes wav, mp3, etc. It should throw an exception when it is not a valid format (eg a mkv file).
Is your feature request related to a problem?
No.
If your feature will improve HUB
By automatically checking valid formats, we increase data type safety.
Description of the possible solution
The file format
parameter could be a good starting point.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Audio Deep Learning Made Simple: Sound Classification ...
We will start with sound files, convert them into spectrograms, ... a class label for each sample that identifies what type of sound...
Read more >bojand/infer: Small crate to infer file and MIME type ... - GitHub
Small crate to infer file and MIME type by checking the magic number ... can make this crate even lighter by importing it...
Read more >tfds.features.Audio - Datasets - TensorFlow
By default, Audio features are decoded as the raw integer wave form tf. ... If None , will attempt to infer from the...
Read more >filetype - PyPI
Infer file type and MIME type of any file/buffer. ... Features. Simple and friendly API. Supports a wide range of file types ......
Read more >Optimize audio files for Speech-to-Text - Google Cloud
Because this file is in a different format than either the mono or stereo file, you see additional information. In this case, the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@x213212 Thanks for pointing out mutagen, it looks very interesting!
Do you want to try implementing a solution? I can work with you and figure this out. (@sohamsshah you should join.)
Interesting issue. If I am not mistaken, the idea is to perform exception handling on the file format and throw exceptions for invalid ones in the audio.py file.