Information About Spresense High-Resolution Recording

Asked 1 years ago, Updated 1 years ago, 306 views

I'd like to record a high resolution on Spresense.

·I want to obtain a frequency up to 80 kHz by recording at 192 kHz/24 bit

Product Configuration
·Spresense main board + expansion board
·MEMS Analog Microphone (↓'s product)
https://www.switch-science.com/products/5462

I changed some of the recorder.wav in the sketch example.
Sound.wav output to SD card is not working properly (capacity 1KB)
Sound.wav will output normally if the sketch is operated unchanged
(1.8MB capacity)


theAudio->setRecorderMode in recorder.wav I set the buffer size to 500kb to 1028kb of sprense memory as documented, but I would appreciate it if you could tell me the possible cause of the high resolution.

Changes
/static constuint32_recoding_sampling_rate=48000;/
static constuint32_trecoding_sampling_rate=192000;

/static constuint8_trecoding_bit_length=16;/
static constuint8_trecoding_bit_length=24;

theAudio->initRecorder(AS_CODECTYPE_WAV,
"/mnt/sd0/BIN",
/recoding_sampling_rate,
recoding_bit_length,
recoding_channel_number
/
AS_SAMPLINGRATE_192000,
AS_BITLENGTH_24,
AS_CHANNEL_MONO);
puts("Init Recorder!");

/theAudio->setRecorderMode(AS_SETRECDR_STS_INPUTDEVICE_MIC);/
TheAudio->setRecorderMode(AS_SETRECDR_STS_INPUTDEVICE_MIC, (500*1028));←Changing did not work

sense

2023-02-09 19:33

1 Answers

Sound.wav output to SD card is not working (capacity 1KB)

I don't know if something is going on because there is not much information in
but if there is an error, etc.,
If you attach it, you may find out something.

However, if you want to record in high resolution, you need to add the following line:

theAudio->begin(audio_attention_cb);

After the

/* Set clock mode to Hi-Res* /
theAudio->setRenderingClockMode(AS_CLKMODE_HIRES);

without
Error Code: 0x14

https://developer.sony.com/develop/spresense/docs/arduino_developer_guide_ja.html#_as_ecode_command_param_sampling_rate

appears to be recording incorrectly.

Also, if recording still fails, formatting the SD card with the following SD card formatter may resolve the issue.

https://www.sdcard.org/ja/downloads-2/formatter-2/


2023-02-10 00:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.