question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
mynameisvinncommented, Jan 22, 2021

@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.)

1reaction
sohamsshahcommented, Jan 10, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found