Giter Club home page Giter Club logo

Comments (5)

windytan avatar windytan commented on September 28, 2024

Seems that although it has the extension, this file is not in the s16 format (raw 16-bit signed integer PCM), instead it is a 24-bit WAV file.

$ file radiostetin.wav.s16
radiostetin.wav.s16: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 24 bit, mono 192000 Hz

Some WAV files can works as raw PCM as the 16-bit aligned RIFF headers gets interpreted as a burst of noise, and they even can be piped to redsea as such, but the 24-bit sample width becomes a problem here.

Raw PCM normally looks like this (unless by coníncidence the noise starts looking like a file header):

$ file gen-yksi-171k.s16
gen-yksi-171k.s16: data

Edit - I've been kind of wanting to remove the default functionality of decoding stdin with no arguments given and add --input raw instead - it's sort of a surprising functionality. But alas, it could be used by many people at this point...

from redsea.

andimik avatar andimik commented on September 28, 2024

I have renamed it as I thought it might work then. The original extension of the file was .wav

from redsea.

windytan avatar windytan commented on September 28, 2024

You can convert any audio file (well, almost) into the S16LE format with sox: sox radiostetin.wav radiostetin.s16 (this format has no headers for metadata, so make sure of the correct number of channels and sample rate).

Edit: Or it can be directly piped to redsea with sox audiofile.wav -t .s16 -r 171k - | redsea

For now, I'm not planning to add WAV input via stdin, but if such a need arises this can very well be reopened.

from redsea.

andimik avatar andimik commented on September 28, 2024

-f seemes to convert 24bit into 16bit as well. So it's worth mentioning it in the wiki as well.

from redsea.

windytan avatar windytan commented on September 28, 2024

from redsea.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.