Model training of other languages in the imxRT106s

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

Model training of other languages in the imxRT106s

486件の閲覧回数
jnj
Contributor III

Hi All,

I want to train 31 languages supported in the dsmt tool and integrate the same in the imxrt106s Sln-local2-iot sdk.My doubt is can we change the MAX_INSTALLED_LANGUAGES from 4 to 31.Is there any issue in doing so?

When I added 5th language i am getting the following error,

region `SRAM_OC_CACHEABLE' overflowed by 24576 bytes

Following are the changes I have made for adding 5th language

1.Generated oob_demo folder in the local_voice folder of sln-local2-iot sdk using dsmt tool.

2.Added following lines in the source/sln_local_voice_model.s

oob_demo_ge_begin:
.incbin "./local_voice/oob_demo_ge/oob_demo_ge_pack.bin"
oob_demo_ge_end:

3.Added "extern unsigned int oob_demo_ge_begin;" in source/sln_local_voice_model.h

4.Added following lines in initialize_asr() function in source/sln_local_voice.c

langShell = appAsrShellCommands.multilingual;

langShell = appAsrShellCommands.multilingual;

#if MULTILINGUAL
// install multilingual
install_language(&g_asrControl, &g_asrLangModel[4], lang[4],
(unsigned char*) &oob_demo_ge_begin, 4);

#if MULTILINGUAL
install_inference_engine(&g_asrControl, &g_asrInfWW[4], lang[4], ASR_WW,
ww_ge, &g_memPoolWLang5[0],
WAKE_WORD_MEMPOOL_SIZE); // ww language5

SDK_ALIGN(
uint8_t __attribute__((section(".bss.$SRAM_OC_CACHEABLE"))) g_memPoolWLang5[WAKE_WORD_MEMPOOL_SIZE],
8);

My use case is add 31 language support and select one language from 31 during run time.
 

 

Kindly help me.

Thanks in advance

0 件の賞賛
返信
1 返信

466件の閲覧回数
jeremyzhou
NXP Employee
NXP Employee

Hi @jnj ,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
According to the error message, it seems that the RAM size is not enough, so you need to increase the size of the SRAM_OC or reassign the g_memPoolWLang5 to other RAM areas.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-----------------------------------------------------------------------------

0 件の賞賛
返信