Skip to content

How to get the encoding of an input.http stream? #1882

Answered by toots
maardsma asked this question in Q&A
Discussion options

You must be logged in to vote

Ha. Well, in this case, the data is converted to the internal format's samplerate, set via:

audio.samplerate.set(48000)

You will have to have all your incoming streams with the same samplerate if you want to avoid resampling.

As a rule of thumb, I would consider the trouble/benefit about tweaking this pretty minor in terms of CPU load and/or audio quality. However, if you really want to try to be conservative, you can set the internal samplerate to a the higest common value, for instance 48000 and trust conversion to preserve most information.

There are also specific settings that you can use with the libsamplerate based converter, some of which will give you higher quality resampling. H…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@maardsma
Comment options

@maardsma
Comment options

Answer selected by maardsma
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1875 on September 07, 2021 02:31.