Question about config in eiq_micro_conf.h

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Question about config in eiq_micro_conf.h

925件の閲覧回数
nahan_trogn
Contributor III

Hi, I use example evkmimxrt1060_tensorflow_lite_kws.

nahan_trogn_0-1618807360091.png

As I know (with some mistakes):

AUDIO_SAMPLE is the frequency to take the audio input (in this case is 16Khz)

AUDIO_SAMPLE_SIZE is the length of each sample. Because we use buffer uint8_t, while we record int16_t audio, so we need define this macro to 2.

BUFFER_SIZE is the size of buffer to save the audio to. But this example said that it record 1s audio, but the define is 1024 (ms?) I don't understand this.

And BUFFER_NUM is for??

タグ(1)
0 件の賞賛
返信
3 返答(返信)

903件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

I think BUFFER_NUM is because the same buffer is being used for reading and writing so you need double the buffer size.

Regards,

Felipe

0 件の賞賛
返信

888件の閲覧回数
nahan_trogn
Contributor III

BUFFER_SIZE is the size of buffer to save the audio to. But this example said that it record 1s audio, but the define is 1024 (ms?), not 1000? Thanks in advance.

0 件の賞賛
返信

878件の閲覧回数
FelipeGarcia
NXP Employee
NXP Employee

BUFFER_SIZE are not ms, this is buffer size for the SAI transfer, it is not related to the 1 sec audio. For this you can refer to kws_mfcc.hpp that states how the packages are divided into the 1 sec timeframe as the readme file states.

Best regards,

Felipe

0 件の賞賛
返信