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

Audio quality #28

Open
jmurn opened this issue Oct 26, 2023 · 1 comment
Open

Audio quality #28

jmurn opened this issue Oct 26, 2023 · 1 comment

Comments

@jmurn
Copy link

jmurn commented Oct 26, 2023

Is it possible to set the audio to a higher bitrate, like slin16 (16-bit 16kHz)? Whether I use codecs like alaw or g722, I always get slin audio format (16-bit 8kHz). For my use case, I need a higher bitrate, and real-time upscaling is a bit tricky

@nadirhamid
Copy link
Owner

Hello @jmurn,

Thanks for your message!

We are currently using 8000 sample rate and it is hard coded, although it may be possible to change this by creating another parameter. The parameter in turn would be used in place of the current sampling rate. However, it has not been tested with any other sample rates, so I don't know if it will work or not.

I can create a feature branch and test this out.

P.S: if your wondering where this sample rate is hard coded you can refer to this link
https://github.com/nadirhamid/asterisk-audiofork/blob/master/app_audiofork.c#L748

I will get back to you once a change like this gets implemented.

If you have any other questions or need more info let me know.

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