-
Notifications
You must be signed in to change notification settings - Fork 705
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
pipeline_raw_http example doesn't work correctly (AUD-5289) #1173
Comments
sdkconfig:
|
Unfortunately, i can't drop elf file here. |
@bardakt Could you upload your empty file at here? The |
Actually, i find a solution but not for HTTP example. HTTP example is still broken, but here is all good: /* Example of Voice Activity Detection (VAD) This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this #include <stdio.h> #include "audio_idf_version.h" static const char *TAG = "HTTP-Audio"; #define VAD_SAMPLE_RATE_HZ 16000 audio_pipeline_handle_t pipeline_http; esp_err_t _http_stream_event_handle(http_stream_event_msg_t *msg)
} void app_main()
} Something in this code from VAD example, something from HTTP, something my own code, but on the IDF v5.1 it works correctly. |
Environment
// v5.1
// v2.6-84-g75c9aed9
xtensa-esp32-elf-gcc --version
in your project folder to find it):// xtensa-esp32-elf-gcc (crosstool-NG esp-12.2.0_20230208) 12.2.0
Problem Description
// I just run this example(WIFI SSID, Password and IP is correct) and got a WAV file on server, but file is empty(silence). I've tried to run another examples where a mic is used (examples/recorder/pipeline_wav_amr_sdcard, examples/speech_recognition/vad) and it works fine, i get a files with sound. i've got in monitor some warngings that looks not normal behavior. And a line:
W (4836) AUDIO_THREAD: Make sure selected the
CONFIG_SPIRAM_BOOT_INIT
andCONFIG_SPIRAM_ALLOW_STACK_EXTERNAL_MEMORY
bymake menuconfig
makes me confused, because in menuconfig i can't do required. According to the specification, SPIRAM_BOOT_INIT should be in: Component config > ESP32-specific > SPI RAM config, but i don't have one. I found a PSRAM in menuconfig, but there is no ESP32-specific. I tried to change the ESP-IDF version, but it doesn't give a result. I also tried to use python 2.7 for the server instead of 3.12, but still has no effect. I use a default code example, nothing has been changed.
I found same problems in the internet, but they are for LyraT-Mini and there is no clear solution to the problem.
Can someone help to fix this example, or maybe i just can use another format of files, for example, AMR or MP3(but as far as I know mp3 is not supported). I've tried to make a code for transfering a AMR file to http server, but it doesn't work, thanks to my excellent coding knowledge :)
Expected Behavior
WAV is recorded on the server, sound is present
Actual Behavior
WAV is being recorded to the server, there is no sound
Debug Logs
Other Items If Possible
In the next message
The text was updated successfully, but these errors were encountered: