Hello,
Based on the esp-adf/examples/advanced_examples/dlna (I don't use the DLNA but I also create a FreeRTOS task as mentionned in this example), I would like to record sound in WAV format into the SPI FLASH. The recording time must be variable (user input). Is it possible to do that ?
Best regards
Vincent
Recording task with variable recording time
Re: Recording task with variable recording time
Hi vgonet,
Yes. You can calculate the time as size of recoding wav data/ (sample_rate * bits * number of channel /8)
Yes. You can calculate the time as size of recoding wav data/ (sample_rate * bits * number of channel /8)
Re: Recording task with variable recording time
Hello jason.mao
Thank you for your answer. In fact, my problem is more upstream than I described. I can't record a sound with the code I wrote.
I send you the codec.c file I've written.
The recording task is created from the function InitWAVRecorder (line 396).
The task is RunWAVRecorderTask (line 548) and I'm trying to do the same as esp-adf/examples/advanced_examples/dlna/main/audio_player.c (line 68)
The function Codec_RecordWAVFile (line 258) is called from another file to start the recording. This function takes two parameters
- the file number (used to create the file.wav, e.g: 0.wav)
- the duration in second
If you have any idea what I'm doing wrong...
Best regards,
Vincent
Thank you for your answer. In fact, my problem is more upstream than I described. I can't record a sound with the code I wrote.
I send you the codec.c file I've written.
The recording task is created from the function InitWAVRecorder (line 396).
The task is RunWAVRecorderTask (line 548) and I'm trying to do the same as esp-adf/examples/advanced_examples/dlna/main/audio_player.c (line 68)
The function Codec_RecordWAVFile (line 258) is called from another file to start the recording. This function takes two parameters
- the file number (used to create the file.wav, e.g: 0.wav)
- the duration in second
If you have any idea what I'm doing wrong...
Best regards,
Vincent
- Attachments
-
- codec_record.c
- (21.65 KiB) Downloaded 568 times
Who is online
Users browsing this forum: No registered users and 9 guests