补充一下:在resource_audio.c有类似如下文件
__align(2) static const unsigned char a1_amr[] = {
0x23,0x21,0x41,0x4D,0x52,0x0A,0x0C,0x4B,
0xD2,0x9F,0xE0,0x01,0x7C,0x15,0x3A,0x7D,
0x46,0xA2,0xA8,0x26,0x0C,0x85,0xCC,0x8C,
0xA0,0xEA,0x46,0x5C,0x17,0x6A,0x28,0x05,
0x3D,0x74,0x0C,0x1E,0xB4,0x82,0x28,0x3A,
......
};
a1_amr/*声音文件名*/,是通过MTK工具将a1.amr文件转换后生成的这样一个数组a1_amr
要是有a1.MP3文件,则会生成a1_MP3[]={...}这样的文件
...
const audio_resource_struct mtk_resource_tts_sounds[]={
{a1_amr, sizeof(a1_amr), 3},
{a2_amr, sizeof(a2_amr), 3},
{a5_amr, sizeof(a5_amr), 3},
{ai1_amr, sizeof(ai1_amr), 3},
{ai2_amr, sizeof(ai2_amr), 3},
{ai3_amr, sizeof(ai3_amr), 3},
{ai4_amr, sizeof(ai4_amr), 3},
...
} |