Android sample rate 16khz on some devices

256 views
Skip to first unread message

JOSE FELIX HERNANDEZ BARRIO

unread,
May 31, 2016, 5:28:06 PM5/31/16
to discuss-webrtc
Hi,


I've created an android webrtc application using last webrtc native compiled manually. (libjingle_perconnection)

On most devices if a record the audio i have good sound quality

Spectrum analysis


But in the huawei P7 or P8 i have worse sound quality and frequencies up to 8khz. I've tested with spectral audio app, that the huawei built-in micro can capture upto 22khz.



Is there any way i can forze the sample rate to be 48khz ? it seems to downgrade to 16khz.



From the app log:


05-31 22:33:32.521: I/libjingle(19969): (neteq_impl.cc:114): NetEq config: sample_rate_hz=16000, enable_audio_classifier=false, enable_post_decode_vad=true, max_packets_in_buffer=50, background_noise_mode=2, playout_mode=0, enable_fast_accelerate=false, enable_muted_state= true




Regards


Henrik Andreasson

unread,
Jun 1, 2016, 5:10:32 AM6/1/16
to discuss-webrtc
Please file an issue here: https://bugs.chromium.org/p/webrtc/issues/list and include the exact device model names.

--

---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/494a3288-95e3-40d8-806b-1a35edf7587b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

JOSE FELIX HERNANDEZ BARRIO

unread,
Jun 3, 2016, 2:22:16 PM6/3/16
to discuss-webrtc
changing in webrtc/modules/audio_coding/neteq/include/neteq.h
the line
struct Config {
    Config()
        : sample_rate_hz(16000),

to
struct Config {
    Config()
        : sample_rate_hz(48000),

seems that everything is working now as expected.


i'll file the issue tomorrow with the full description
Reply all
Reply to author
Forward
0 new messages