main.c 731 字节
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>

#include "JZsdkLib.h"

#include "BaseConfig.h"

//./JZ_UART_APP --play_prompt_tts error

int main(int argc, char* argv[])
{
    //设定本程序为 uart程序模式  还是 psdk程序模式
    //前者可用于 uart连接对外接口 或者是 通过uart控制的psdk
    //后者则是用于直接镶套在psdk程序里面

    //暂时没必要初始化sdk库
    //JZsdk_LibInit();

    //参数解析
    int mode = 0;
    JZsdk_ParamterParsing(argc, argv, &mode);

    //通过参数判断出进行什么提示程序操作
    if (mode == 1)
    {
        Megphone_Attention();
    }

    
    delayMs(100);

    //程序退出
    return 0;
}