diff --git a/14/voice-assistant-master/CMakeLists.txt b/14/voice-assistant-master/CMakeLists.txt new file mode 100755 index 0000000000000000000000000000000000000000..e4daf06e598dc988ba9d25b78a01a2a4635f33f8 --- /dev/null +++ b/14/voice-assistant-master/CMakeLists.txt @@ -0,0 +1,37 @@ +cmake_minimum_required(VERSION 3.0.0) +project(voice-assistant VERSION 0.1.0 LANGUAGES C) + +add_executable(voice-assistant main.c) + +add_executable(control control.c) +target_link_libraries(control asound) + +#add_executable(record record.c) +#target_link_libraries(record asound) + +#add_executable(play play.c) +#target_link_libraries(play asound) + +add_executable(key key.c record.c) +target_link_libraries(key gpiod asound) + +add_subdirectory(snowboy) +add_executable(wake wake.c record.c stt.c token.c http.c config.c) +target_link_libraries(wake snowboy-wrapper snowboy-detect cblas m stdc++ asound curl cjson) +target_compile_definitions(wake PRIVATE _GNU_SOURCE) + +add_executable(jrsc jrsc.c) +target_link_libraries(jrsc curl cjson) + +add_executable(led led.c) + +add_executable(chat chat.c config.c http.c) +target_link_libraries(chat cjson curl) +target_compile_definitions(chat PRIVATE _GNU_SOURCE) + +add_executable(utils utils.c) +target_link_libraries(utils uuid resolv) + +add_executable(tts tts.c config.c http.c play.c) +target_link_libraries(tts cjson curl uuid resolv asound) +target_compile_definitions(tts PRIVATE _GNU_SOURCE) diff --git a/14/voice-assistant-master/CMakePresets.json b/14/voice-assistant-master/CMakePresets.json new file mode 100755 index 0000000000000000000000000000000000000000..9cc624051cc8f1a9fd2fedb1eb83c00d92cbb38a --- /dev/null +++ b/14/voice-assistant-master/CMakePresets.json @@ -0,0 +1,29 @@ +{ + "version": 8, + "configurePresets": [ + { + "name": "native", + "displayName": "GCC 10.2.1 x86_64-linux-gnu", + "description": "使用编译器: C = /usr/bin/gcc, CXX = /usr/bin/g++", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "cacheVariables": { + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", + "CMAKE_C_COMPILER": "/usr/bin/gcc", + "CMAKE_CXX_COMPILER": "/usr/bin/g++", + "CMAKE_BUILD_TYPE": "Debug" + } + }, + { + "name": "cross", + "displayName": "GCC 10.2.1 arm-linux-gnueabihf", + "description": "使用编译器: C = /usr/bin/arm-linux-gnueabihf-gcc, CXX = /usr/bin/arm-linux-gnueabihf-g++", + "binaryDir": "${sourceDir}/out/build/${presetName}", + "cacheVariables": { + "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}", + "CMAKE_C_COMPILER": "/usr/bin/arm-linux-gnueabihf-gcc", + "CMAKE_CXX_COMPILER": "/usr/bin/arm-linux-gnueabihf-g++", + "CMAKE_BUILD_TYPE": "Debug" + } + } + ] +} \ No newline at end of file diff --git a/14/voice-assistant-master/chat.c b/14/voice-assistant-master/chat.c new file mode 100755 index 0000000000000000000000000000000000000000..1b82be8051ad9e16f77f2a3082dc4d21c7faca18 --- /dev/null +++ b/14/voice-assistant-master/chat.c @@ -0,0 +1,177 @@ +#include +#include +#include +#include +#include "config.h" +#include "http.h" + +char* app_id = "cae1102d-83b9-4061-86c9-e1d326a885e8"; + +//创建会话 +char* create_conversation(char* authtoken) +{ + char* url = "https://qianfan.baidubce.com/v2/app/conversation"; + + //拼接Authorization字段 + char* auth; + asprintf(&auth, "Authorization: Bearer %s", authtoken); + + //添加请求头部字段 + struct curl_slist* headers = NULL; + headers = curl_slist_append(headers, "Content-Type: application/json;charset=utf-8"); + headers = curl_slist_append(headers, auth); + + //准备请求正文 + cJSON* obj = cJSON_CreateObject(); + cJSON_AddStringToObject(obj, "app_id", app_id); + //将JSON对象转换为JSON字符串 + char* json = cJSON_Print(obj); + + //发送请求 + size_t size = strlen(json); + char* response = http_post(url, headers, json, &size); + cJSON_Delete(obj); + free(json); + free(auth); + curl_slist_free_all(headers); + + if (!response) + { + return NULL; + } + + obj = cJSON_ParseWithLength(response, size); + free(response); + + if (!obj) + { + fprintf(stderr, "解析 JSON 失败: [%s]\n", cJSON_GetErrorPtr()); + return NULL; + } + + cJSON* conversation_id = cJSON_GetObjectItem(obj, "conversation_id"); + if (!conversation_id) + { + fprintf(stderr, "conversation_id 字段不存在\n"); + cJSON_Delete(obj); + return NULL; + } + + char* retval = strdup(conversation_id->valuestring); + + cJSON_Delete(obj); + + return retval; +} + +//调用对话API +//authtoken: 平台密钥 +//conv_id: 会话ID +//query: 用户输入的文本 +//返回值: 对话结果 +char* chat(char* authtoken, char* conv_id, char* query) +{ + char* url = "https://qianfan.baidubce.com/v2/app/conversation/runs"; + + //拼接Authorization字段 + char* auth; + asprintf(&auth, "Authorization: Bearer %s", authtoken); + + //设置请求头部字段 + struct curl_slist* headers = NULL; + headers = curl_slist_append(headers, "Content-Type: application/json;charset=utf-8"); + headers = curl_slist_append(headers, auth); + + //准备请求正文 + cJSON* obj = cJSON_CreateObject(); + cJSON_AddStringToObject(obj, "app_id", app_id); + cJSON_AddStringToObject(obj, "conversation_id", conv_id); + cJSON_AddStringToObject(obj, "query", query); + cJSON_AddBoolToObject(obj, "stream", false); + //将JSON对象转换为JSON字符串 + char* json = cJSON_Print(obj); + + //发送请求 + size_t size = strlen(json); + char* response = http_post(url, headers, json, &size); + cJSON_Delete(obj); + free(json); + curl_slist_free_all(headers); + free(auth); + + if (!response) + { + return NULL; + } + + obj = cJSON_ParseWithLength(response, size); + free(response); + + if (!obj) + { + fprintf(stderr, "解析 JSON 失败: [%s]\n", cJSON_GetErrorPtr()); + return NULL; + } + + cJSON* answer = cJSON_GetObjectItem(obj, "answer"); + if (!answer) + { + fprintf(stderr, "answer 字段不存在\n"); + puts(cJSON_Print(obj)); + cJSON_Delete(obj); + return NULL; + } + + char* retval = strdup(answer->valuestring); + + cJSON_Delete(obj); + + return retval; +} + +int main() +{ + //读取配置文件中的平台密钥 + cJSON* config = read_config("config.json"); + if (!config) + { + return EXIT_FAILURE; + } + + cJSON* authtoken = cJSON_GetObjectItem(config, "authtoken"); + if (!authtoken) + { + fprintf(stderr, "配置文件错误: 找不到 'authtoken' 字段\n"); + cJSON_Delete(config); + return EXIT_FAILURE; + } + + printf("%s\n", authtoken->valuestring); + + //创建会话 + char* conv_id = create_conversation(authtoken->valuestring); + + printf("conv_id: %s\n", conv_id); + + //读取用户输入的文本 + char line[512]; + while(1) + { + printf("> "); + if (fgets(line, sizeof(line), stdin) == NULL) + { + break; + } + + //调用百度云千帆AppBuilder API进行对话 + char* answer = chat(authtoken->valuestring, conv_id, line); + if (!answer) + { + continue; + } + + printf("< %s\n", answer); + } + + return EXIT_SUCCESS; +} diff --git a/14/voice-assistant-master/config.c b/14/voice-assistant-master/config.c new file mode 100755 index 0000000000000000000000000000000000000000..ab84519aac06b89ed424b0bf54d8dc42915859e3 --- /dev/null +++ b/14/voice-assistant-master/config.c @@ -0,0 +1,26 @@ +#include +#include +#include "config.h" + +//读取配置信息 +cJSON* read_config(const char* file) +{ + //读取json文件内容 + FILE* fp = fopen(file, "r"); + if (!fp) { + perror(file); + return NULL; + } + //移动文件指针到文件末尾 + fseek(fp, 0, SEEK_END); + //获取文件大小 + long size = ftell(fp); + //移动文件指针到文件开头 + fseek(fp, 0, SEEK_SET); + //将文件内容读取到缓冲区中 + char* buffer = (char*)malloc(size + 1); + fread(buffer, 1, size, fp); + fclose(fp); + //将缓冲区中的内容转换为json对象 + return cJSON_ParseWithLength(buffer, size); +} \ No newline at end of file diff --git a/14/voice-assistant-master/config.h b/14/voice-assistant-master/config.h new file mode 100755 index 0000000000000000000000000000000000000000..0dd0c5750d80594d0dc635dde398e73b519fa6be --- /dev/null +++ b/14/voice-assistant-master/config.h @@ -0,0 +1,9 @@ +#ifndef CONFIG_H +#define CONFIG_H + +#include + +//读取配置信息 +cJSON* read_config(const char* file); + +#endif \ No newline at end of file diff --git a/14/voice-assistant-master/control.c b/14/voice-assistant-master/control.c new file mode 100755 index 0000000000000000000000000000000000000000..32a46c8e1155b93918ef7fb03bb01fe323e0dc6e --- /dev/null +++ b/14/voice-assistant-master/control.c @@ -0,0 +1,434 @@ +#include +#include +#include + +// 设置音频采集开关的函数 +// card: 声卡名称 +// selem: 控制项名称 +// enable: 开关状态 +int set_capture_switch(const char* card, const char* selem, bool enable) { + int err; + snd_mixer_t *handle; + snd_mixer_selem_id_t *sid; + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "Mixer %s open error: %s\n", card, snd_strerror(err)); + return err; + } + + // 附加控制接口到混音器 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "Mixer attach %s error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "Mixer register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "Mixer %s load error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + + // 设置简单元素的名称 + snd_mixer_selem_id_set_name(sid, selem); + + // 查找简单元素 + snd_mixer_elem_t *elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "Unable to find simple control '%s',%i\n", selem, 0); + snd_mixer_close(handle); + return -ENOENT; + } + + // 设置采集开关(启用或禁用) + if ((err = snd_mixer_selem_set_capture_switch_all(elem, enable ? 1 : 0)) < 0) { + fprintf(stderr, "Unable to set capture switch: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + return 0; // 成功 +} + +// 设置音频回放开关的函数 +// card: 声卡名称 +// selem: 控制项名称 +// enable: 开关状态 +int set_playback_switch(const char* card, const char* selem, bool enable) { + int err; + snd_mixer_t *handle; + snd_mixer_selem_id_t *sid; + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "Mixer %s open error: %s\n", card, snd_strerror(err)); + return err; + } + + // 附加控制接口到混音器 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "Mixer attach %s error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "Mixer register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "Mixer %s load error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + + // 设置简单元素的名称 + snd_mixer_selem_id_set_name(sid, selem); + + // 查找简单元素 + snd_mixer_elem_t *elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "Unable to find simple control '%s',%i\n", selem, 0); + snd_mixer_close(handle); + return -ENOENT; + } + + // 设置回放开关(启用或禁用) + if ((err = snd_mixer_selem_set_playback_switch_all(elem, enable ? 1 : 0)) < 0) { + fprintf(stderr, "Unable to set playback switch: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + return 0; // 成功 +} + +// 获取音频采集音量 +// card: 声卡名称 +// selem: 控制项名称 +// 返回值: 当前音量 +int get_capture_volume(const char* card, const char* selem) +{ + int err; + snd_mixer_t *handle; + snd_mixer_selem_id_t *sid; + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "Mixer %s open error: %s\n", card, snd_strerror(err)); + return err; + } + + // 附加控制接口到混音器 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "Mixer attach %s error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "Mixer register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "Mixer %s load error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + + // 设置简单元素的名称 + snd_mixer_selem_id_set_name(sid, selem); + + // 查找简单元素 + snd_mixer_elem_t *elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "Unable to find simple control '%s',%i\n", selem, 0); + snd_mixer_close(handle); + return -ENOENT; + } + + // 获取采集通道音量 + long volume = 0; + if ((err = snd_mixer_selem_get_capture_volume(elem, 0, &volume)) < 0) { + fprintf(stderr, "Unable to get capture volume: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + return volume; // 成功返回音量 +} + +// 获取音频回放通道音量 +// card: 声卡名称 +// selem: 控制项名称 +// 返回值: 当前音量 +int get_playback_volume(const char* card, const char* selem) { + int err; + snd_mixer_t *handle; + snd_mixer_selem_id_t *sid; + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "Mixer %s open error: %s\n", card, snd_strerror(err)); + return err; + } + + // 附加控制接口到混音器 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "Mixer attach %s error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "Mixer register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "Mixer %s load error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + + // 设置简单元素的名称 + snd_mixer_selem_id_set_name(sid, selem); + + // 查找简单元素 + snd_mixer_elem_t *elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "Unable to find simple control '%s',%i\n", selem, 0); + snd_mixer_close(handle); + return -ENOENT; + } + + // 获取回放通道音量 + long volume = 0; + if ((err = snd_mixer_selem_get_playback_volume(elem, 0, &volume)) < 0) { + fprintf(stderr, "Unable to get playback volume: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + return volume; // 成功返回音量 +} + +// 设置音频采集音量 +// card: 声卡名称 +// selem: 控制项名称 +// volume: 设置音量 +// 返回值: 成功返回设置后的音量,失败返回错误码 +int set_capture_volume(const char* card, const char* selem, long volume) +{ + int err; + snd_mixer_t *handle; + snd_mixer_selem_id_t *sid; + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "Mixer %s open error: %s\n", card, snd_strerror(err)); + return err; + } + + // 附加控制接口到混音器 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "Mixer attach %s error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "Mixer register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "Mixer %s load error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + + // 设置简单元素的名称 + snd_mixer_selem_id_set_name(sid, selem); + + // 查找简单元素 + snd_mixer_elem_t *elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "Unable to find simple control '%s',%i\n", selem, 0); + snd_mixer_close(handle); + return -ENOENT; + } + + // 获取音量范围 + long min, max; + if ((err = snd_mixer_selem_get_capture_volume_range(elem, &min, &max)) < 0) + { + fprintf(stderr, "Unable to get capture volume range: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + if (volume < min) + { + volume = min; + } + + if (volume > max) + { + volume = max; + } + + // 设置采集通道音量 + if ((err = snd_mixer_selem_set_capture_volume_all(elem, volume)) < 0) { + fprintf(stderr, "Unable to set capture volume: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + return volume; // 成功 +} + +// 设置音频回放通道音量 +// card: 声卡名称 +// selem: 控制项名称 +// volume: 设置音量 +// 返回值: 成功返回设置后的音量,失败返回错误码 +int set_playback_volume(const char* card, const char* selem, long volume) +{ + int err; + snd_mixer_t *handle; + snd_mixer_selem_id_t *sid; + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "Mixer %s open error: %s\n", card, snd_strerror(err)); + return err; + } + + // 附加控制接口到混音器 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "Mixer attach %s error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "Mixer register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "Mixer %s load error: %s\n", card, snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + + // 设置简单元素的名称 + snd_mixer_selem_id_set_name(sid, selem); + + // 查找简单元素 + snd_mixer_elem_t *elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "Unable to find simple control '%s',%i\n", selem, 0); + snd_mixer_close(handle); + return -ENOENT; + } + + // 获取音量范围 + long min, max; + if ((err = snd_mixer_selem_get_playback_volume_range(elem, &min, &max)) < 0) + { + fprintf(stderr, "Unable to get playback volume range: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + if (volume < min) + { + volume = min; + } + + if (volume > max) + { + volume = max; + } + + // 设置回放通道音量 + if ((err = snd_mixer_selem_set_playback_volume_all(elem, volume)) < 0) { + fprintf(stderr, "Unable to set playback volume: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + return volume; // 成功返回设置后音量 +} + +int main(int argc, char** argv) +{ + printf("Playback Vol: %d\n", get_playback_volume("hw:0", "Analog")); + printf("New Playback Vol: %d\n", set_playback_volume("hw:0", "Analog", atoi(argv[1]))); + + return 0; +} diff --git a/14/voice-assistant-master/hqyj.pmdl b/14/voice-assistant-master/hqyj.pmdl new file mode 100755 index 0000000000000000000000000000000000000000..0cf4b50a0f7a2af88a853c514bacd4c5f2bceda2 Binary files /dev/null and b/14/voice-assistant-master/hqyj.pmdl differ diff --git a/14/voice-assistant-master/http.c b/14/voice-assistant-master/http.c new file mode 100755 index 0000000000000000000000000000000000000000..dbceee83dc14a54ee3a6cb1ca9d3bb4e72287ee1 --- /dev/null +++ b/14/voice-assistant-master/http.c @@ -0,0 +1,110 @@ +#include +#include "http.h" + +//发送GET请求 +//url: 请求地址 +//headers: 增加的请求头部字段 +//psize: 响应正文大小,输出参数 +//返回值: 响应正文,需要调用者释放内存 +char* http_get(char* url, struct curl_slist* headers, size_t* psize) +{ + char *respdata; + size_t respsize; + FILE *fp = open_memstream(&respdata, &respsize); + if (!fp) + { + perror("open_memstream"); + return NULL; + } + + CURL *client = curl_easy_init(); + if (!client) + { + perror("curl_easy_init"); + fclose(fp); + return NULL; + } + + curl_easy_setopt(client, CURLOPT_URL, url); + + if (headers) + { + curl_easy_setopt(client, CURLOPT_HTTPHEADER, headers); + } + + // 将服务器返回的响应报文保存到文件流中 + curl_easy_setopt(client, CURLOPT_WRITEDATA, fp); + + CURLcode error = curl_easy_perform(client); + if (error != CURLE_OK) + { + fprintf(stderr, "curl_easy_perform: %s\n", curl_easy_strerror(error)); + curl_easy_cleanup(client); + fclose(fp); + return NULL; + } + + curl_easy_cleanup(client); + fclose(fp); + + //更新响应正文大小 + *psize = respsize; + + return respdata; +} + +//发送POST请求 +//url: 请求地址 +//headers: 增加的请求头部字段 +//data: 请求正文 +//psize: 请求和响应正文大小,输入和输出参数 +//返回值: 响应正文,需要调用者释放内存 +char* http_post(char* url, struct curl_slist* headers, char* data, size_t* psize) +{ + char *respdata; + size_t respsize; + FILE *fp = open_memstream(&respdata, &respsize); + if (!fp) + { + perror("open_memstream"); + return NULL; + } + + CURL *client = curl_easy_init(); + if (!client) + { + perror("curl_easy_init"); + fclose(fp); + return NULL; + } + + curl_easy_setopt(client, CURLOPT_URL, url); + curl_easy_setopt(client, CURLOPT_POST, 1); + curl_easy_setopt(client, CURLOPT_POSTFIELDS, data); + curl_easy_setopt(client, CURLOPT_POSTFIELDSIZE, *psize); + + if (headers) + { + curl_easy_setopt(client, CURLOPT_HTTPHEADER, headers); + } + + // 将服务器返回的响应报文保存到文件流中 + curl_easy_setopt(client, CURLOPT_WRITEDATA, fp); + + CURLcode error = curl_easy_perform(client); + if (error != CURLE_OK) + { + fprintf(stderr, "curl_easy_perform: %s\n", curl_easy_strerror(error)); + curl_easy_cleanup(client); + fclose(fp); + return NULL; + } + + curl_easy_cleanup(client); + fclose(fp); + + //更新响应正文大小 + *psize = respsize; + + return respdata; +} \ No newline at end of file diff --git a/14/voice-assistant-master/http.h b/14/voice-assistant-master/http.h new file mode 100755 index 0000000000000000000000000000000000000000..a3c8b733fff05a5ac57eaee5c305e1853e3e3837 --- /dev/null +++ b/14/voice-assistant-master/http.h @@ -0,0 +1,9 @@ +#ifndef HTTP_H +#define HTTP_H + +#include + +char* http_get(char* url, struct curl_slist* headers, size_t* psize); +char* http_post(char* url, struct curl_slist* headers, char* data, size_t* psize); + +#endif diff --git a/14/voice-assistant-master/jrsc.c b/14/voice-assistant-master/jrsc.c new file mode 100755 index 0000000000000000000000000000000000000000..cf9a1de62d720b71e9fc30fbd2a5a4ef1f8d0d6f --- /dev/null +++ b/14/voice-assistant-master/jrsc.c @@ -0,0 +1,81 @@ +#include +#include +#include +#include + +// 打印推荐的古诗词 +void print_recommended_poetry(const char *response, size_t size) { + // 解析 JSON 响应 + cJSON *json = cJSON_ParseWithLength(response, size); + if (json == NULL) { + fprintf(stderr, "解析 JSON 失败: [%s]\n", cJSON_GetErrorPtr()); + return; + } + + // 获取 "data" 对象 + cJSON *data = cJSON_GetObjectItemCaseSensitive(json, "data"); + if (!cJSON_IsObject(data)) { + fprintf(stderr, "JSON 格式错误: 找不到 'data' 对象\n"); + cJSON_Delete(json); + return; + } + + // 获取 "content" 字符串 + cJSON *content = cJSON_GetObjectItemCaseSensitive(data, "content"); + if (!cJSON_IsString(content) || (content->valuestring == NULL)) { + fprintf(stderr, "JSON 格式错误: 找不到 'content' 字符串\n"); + cJSON_Delete(json); + return; + } + + // 打印推荐的古诗词 + printf("推荐的古诗词:%s\n", content->valuestring); + + // 释放 JSON 对象 + cJSON_Delete(json); +} + +int main(void) { + CURL *client; + CURLcode err; + char *response; + size_t size; + + // 创建内存流 + FILE *memstream = open_memstream(&response, &size); + if (memstream == NULL) { + perror("open_memstream"); + return 1; + } + + // 初始化 CURL + curl_global_init(CURL_GLOBAL_ALL); + client = curl_easy_init(); + + // 设置 CURL 选项 + curl_easy_setopt(client, CURLOPT_URL, "https://v2.jinrishici.com/sentence"); + curl_easy_setopt(client, CURLOPT_WRITEDATA, memstream); + + struct curl_slist *headers = NULL; + headers = curl_slist_append(headers, "X-User-Token: o9M10gtneoIxRLk5UO13fUG7guYxnS7h"); // 替换 YOUR_API_KEY 为你的 API Key + curl_easy_setopt(client, CURLOPT_HTTPHEADER, headers); + + // 执行 CURL 请求 + err = curl_easy_perform(client); + fclose(memstream); // 关闭内存流 + + if (err != CURLE_OK) { + fprintf(stderr, "curl_easy_perform() 失败: %s\n", curl_easy_strerror(err)); + } else { + // 打印推荐的古诗词 + print_recommended_poetry(response, size); + } + + // 清理资源 + curl_slist_free_all(headers); + curl_easy_cleanup(client); + free(response); + curl_global_cleanup(); + + return 0; +} diff --git a/14/voice-assistant-master/led.c b/14/voice-assistant-master/led.c new file mode 100755 index 0000000000000000000000000000000000000000..45b549e13c343a168009e73ec085042127b4fb79 --- /dev/null +++ b/14/voice-assistant-master/led.c @@ -0,0 +1,31 @@ +#include +#include //sleep + +int main() +{ + //打开LED设备文件 + FILE *fp = fopen("/sys/class/leds/led1/brightness", "w"); + if (fp == NULL) + { + perror("打开LED设备文件失败"); + return 1; + } + + while(1) + { + //打开LED + fprintf(fp, "1"); + fflush(fp); + usleep(100000); + + //关闭LED + fprintf(fp, "0"); + fflush(fp); + usleep(100000); + } + + //关闭LED设备文件 + fclose(fp); + + return 0; +} \ No newline at end of file diff --git a/14/voice-assistant-master/main.c b/14/voice-assistant-master/main.c new file mode 100755 index 0000000000000000000000000000000000000000..428a7ea7e4f0b51633475c32a6f91d5d239fc009 --- /dev/null +++ b/14/voice-assistant-master/main.c @@ -0,0 +1,6 @@ +#include + +int main() +{ + printf("Hello, from voice-assistant!\n"); +} diff --git a/14/voice-assistant-master/play.c b/14/voice-assistant-master/play.c new file mode 100755 index 0000000000000000000000000000000000000000..5ecc0ff6be5af0d70f801f50152512174f3c638f --- /dev/null +++ b/14/voice-assistant-master/play.c @@ -0,0 +1,150 @@ +#include +#include +#include +#include // 用于处理错误码 + +//开始播放 +snd_pcm_t* play_open(const char* name, + snd_pcm_format_t format, + unsigned int channel, + unsigned int rate, + snd_pcm_uframes_t* period) +{ + snd_pcm_t *playback; // PCM设备句柄 + snd_pcm_hw_params_t *params; // PCM硬件参数 + int err; // 用于存储错误码 + int dir; + + // 打开PCM设备用于回放 + if ((err = snd_pcm_open(&playback, name, SND_PCM_STREAM_PLAYBACK, 0)) < 0) { + fprintf(stderr, "Error opening PCM device %s: %s\n", name, snd_strerror(err)); + return NULL; + } + + // 分配参数对象,并用默认值填充 + snd_pcm_hw_params_alloca(¶ms); + snd_pcm_hw_params_any(playback, params); + + // 设置参数 + // 设置访问类型:交错模式 + if ((err = snd_pcm_hw_params_set_access(playback, params, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) { + fprintf(stderr, "Error setting access: %s\n", snd_strerror(err)); + snd_pcm_close(playback); + return NULL; + } + // 设置数据格式:16位小端 + if ((err = snd_pcm_hw_params_set_format(playback, params, format)) < 0) { + fprintf(stderr, "Error setting format: %s\n", snd_strerror(err)); + snd_pcm_close(playback); + return NULL; + } + // 设置声道数:立体声 + if ((err = snd_pcm_hw_params_set_channels(playback, params, channel)) < 0) { + fprintf(stderr, "Error setting channels: %s\n", snd_strerror(err)); + snd_pcm_close(playback); + return NULL; + } + // 设置采样率 + if ((err = snd_pcm_hw_params_set_rate_near(playback, params, &rate, &dir)) < 0) { + fprintf(stderr, "Error setting rate: %s\n", snd_strerror(err)); + snd_pcm_close(playback); + return NULL; + } + + printf("sample rate: %d Hz\n", rate); + + //设置周期大小 + if ((err = snd_pcm_hw_params_set_period_size_near(playback, params, period, &dir)) < 0) { + fprintf(stderr, "Error setting period size: %s\n", snd_strerror(err)); + snd_pcm_close(playback); + return NULL; + } + + // 设置硬件参数 + if ((err = snd_pcm_hw_params(playback, params)) < 0) { + fprintf(stderr, "Error setting HW params: %s\n", snd_strerror(err)); + snd_pcm_close(playback); + return NULL; + } + + // 获取周期大小 + snd_pcm_hw_params_get_period_size(params, period, &dir); + + return playback; +} + +//停止播放 +void play_close(snd_pcm_t* playback) +{ + snd_pcm_drain(playback); // 排空PCM设备 + snd_pcm_close(playback); // 关闭PCM设备 +} + +#if 0 +int main() +{ + snd_pcm_t *playback; // PCM设备句柄 + snd_pcm_uframes_t period = 999; // 每个周期的帧数 + char *buffer; // 缓冲区,用于存储从文件中读取的音频数据 + FILE *pcm_file; // 输出PCM文件 + int err; // 用于存储错误码 + + playback = play_open("hw:0,0", SND_PCM_FORMAT_S16_LE, 2, 44100, &period); + if (!playback) + { + return 1; + } + + printf("period: %d frames\n", period); + + buffer = (char *) malloc(snd_pcm_frames_to_bytes(playback, period)); // 分配缓冲区 + if (!buffer) { + perror("malloc"); + play_close(playback); + return 1; + } + + // 打开输出文件 + pcm_file = fopen("output.pcm", "rb"); + if (!pcm_file) { + perror("Error opening output file"); + free(buffer); // 释放缓冲区 + play_close(playback); // 关闭PCM设备 + return 1; + } + + // 录制数据 + printf("Playing... Press Ctrl+C to stop.\n"); + while (1) { + size_t bytes = fread(buffer, 1, snd_pcm_frames_to_bytes(playback, period), pcm_file); + if (bytes == 0) + { + if (ferror(pcm_file)) + { + perror("fread"); + continue; + } + + if (feof(pcm_file)) + { + break; + } + } + + snd_pcm_sframes_t frames = snd_pcm_writei(playback, buffer, snd_pcm_bytes_to_frames(playback, bytes)); + if (frames < 0) + { + fprintf(stderr, "Error from write: %s\n", snd_strerror(frames)); + snd_pcm_recover(playback, frames, 0); + } + } + + // 清理资源 + free(buffer); // 释放缓冲区 + fclose(pcm_file); // 关闭文件 + play_close(playback); + + return 0; +} + +#endif diff --git a/14/voice-assistant-master/play.h b/14/voice-assistant-master/play.h new file mode 100755 index 0000000000000000000000000000000000000000..5f67f8ffb4b78f7492b452a7e4968b821e197c1d --- /dev/null +++ b/14/voice-assistant-master/play.h @@ -0,0 +1,14 @@ +#ifndef PLAY_H +#define PLAY_H + +#include + +snd_pcm_t* play_open(const char* name, + snd_pcm_format_t format, + unsigned int channel, + unsigned int rate, + snd_pcm_uframes_t* period); +//停止播放 +void play_close(snd_pcm_t* playback); + +#endif diff --git a/14/voice-assistant-master/record.c b/14/voice-assistant-master/record.c new file mode 100755 index 0000000000000000000000000000000000000000..cdcdb7b27195d895512bdeb68ac90c9f4f0a1860 --- /dev/null +++ b/14/voice-assistant-master/record.c @@ -0,0 +1,135 @@ +#include +#include +#include // 用于处理错误码 +#include "record.h" + +//开始录音 +snd_pcm_t* record_open(const char* name, + snd_pcm_format_t format, + unsigned int channel, + unsigned int rate, + snd_pcm_uframes_t* period) +{ + snd_pcm_t *capture; // PCM设备句柄 + snd_pcm_hw_params_t *params; // PCM硬件参数 + int err; // 用于存储错误码 + int dir; + + // 打开PCM设备用于录音(捕捉) + if ((err = snd_pcm_open(&capture, name, SND_PCM_STREAM_CAPTURE, 0)) < 0) { + fprintf(stderr, "Error opening PCM device %s: %s\n", name, snd_strerror(err)); + return NULL; + } + + // 分配参数对象,并用默认值填充 + snd_pcm_hw_params_alloca(¶ms); + snd_pcm_hw_params_any(capture, params); + + // 设置参数 + // 设置访问类型:交错模式 + if ((err = snd_pcm_hw_params_set_access(capture, params, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) { + fprintf(stderr, "Error setting access: %s\n", snd_strerror(err)); + snd_pcm_close(capture); + return NULL; + } + // 设置数据格式:16位小端 + if ((err = snd_pcm_hw_params_set_format(capture, params, format)) < 0) { + fprintf(stderr, "Error setting format: %s\n", snd_strerror(err)); + snd_pcm_close(capture); + return NULL; + } + // 设置声道数:立体声 + if ((err = snd_pcm_hw_params_set_channels(capture, params, channel)) < 0) { + fprintf(stderr, "Error setting channels: %s\n", snd_strerror(err)); + snd_pcm_close(capture); + return NULL; + } + // 设置采样率 + if ((err = snd_pcm_hw_params_set_rate_near(capture, params, &rate, &dir)) < 0) { + fprintf(stderr, "Error setting rate: %s\n", snd_strerror(err)); + snd_pcm_close(capture); + return NULL; + } + printf("sample rate: %d Hz\n", rate); + + //设置周期大小 + if ((err = snd_pcm_hw_params_set_period_size_near(capture, params, period, &dir)) < 0) { + fprintf(stderr, "Error setting period size: %s\n", snd_strerror(err)); + snd_pcm_close(capture); + return NULL; + } + + // 设置硬件参数 + if ((err = snd_pcm_hw_params(capture, params)) < 0) { + fprintf(stderr, "Error setting HW params: %s\n", snd_strerror(err)); + snd_pcm_close(capture); + return NULL; + } + + // 获取周期大小 + snd_pcm_hw_params_get_period_size(params, period, &dir); + + return capture; +} + +//停止录音 +void record_close(snd_pcm_t* capture) +{ + snd_pcm_drain(capture); // 排空PCM设备 + snd_pcm_close(capture); // 关闭PCM设备 +} + +#if 0 +int main() +{ + snd_pcm_t *capture; // PCM设备句柄 + snd_pcm_uframes_t period; // 每个周期的帧数 + char *buffer; // 缓冲区,用于存储采集到的音频数据 + FILE *pcm_file; // 输出PCM文件 + int err; // 用于存储错误码 + + capture = record_open("hw:0,1", SND_PCM_FORMAT_S16_LE, 2, 44100, &period); + if (!capture) + { + return 1; + } + + printf("period: %d frames\n", period); + + buffer = (char *) malloc(snd_pcm_frames_to_bytes(capture, period)); // 分配缓冲区 + if (!buffer) { + perror("malloc"); + record_close(capture); + return 1; + } + + // 打开输出文件 + pcm_file = fopen("output.pcm", "wb"); + if (!pcm_file) { + perror("Error opening output file"); + free(buffer); // 释放缓冲区 + record_close(capture); // 关闭PCM设备 + return 1; + } + + // 录制数据 + printf("Recording... Press Ctrl+C to stop.\n"); + while (1) { + snd_pcm_sframes_t frames = snd_pcm_readi(capture, buffer, period); // 从PCM设备读取数据 + if (frames < 0) + { + fprintf(stderr, "Error from read: %s\n", snd_strerror(frames)); + snd_pcm_recover(capture, frames, 0); + } + + fwrite(buffer, snd_pcm_frames_to_bytes(capture, frames), 1, pcm_file); // 将读取的数据写入文件 + } + + // 清理资源 + free(buffer); // 释放缓冲区 + fclose(pcm_file); // 关闭文件 + record_close(capture); + + return 0; +} +#endif diff --git a/14/voice-assistant-master/record.h b/14/voice-assistant-master/record.h new file mode 100755 index 0000000000000000000000000000000000000000..3c48d69f0d2427fe9e42be1969a200e27e2add54 --- /dev/null +++ b/14/voice-assistant-master/record.h @@ -0,0 +1,16 @@ +#ifndef RECORD_H +#define RECORD_H + +#include + +//开始录音 +snd_pcm_t* record_open(const char* name, + snd_pcm_format_t format, + unsigned int channel, + unsigned int rate, + snd_pcm_uframes_t* period); + +//停止录音 +void record_close(snd_pcm_t* capture); + +#endif diff --git a/14/voice-assistant-master/stt.c b/14/voice-assistant-master/stt.c new file mode 100755 index 0000000000000000000000000000000000000000..338e52021cfb64e9e5807470a7014077d42b557a --- /dev/null +++ b/14/voice-assistant-master/stt.c @@ -0,0 +1,153 @@ +#include +#include +#include //strdup +#include "config.h" +#include "token.h" +#include "http.h" +#include "stt.h" + +//读取音频文件 +//file: 音频文件路径 +//size: 音频文件大小 +//return: 音频文件内容, NULL 表示失败 +char* load_audio_file(const char* file, size_t* size) +{ + //打开音频文件 + FILE* fp = fopen(file, "rb"); + if (!fp) { + perror(file); + return NULL; + } + //获取文件大小 + fseek(fp, 0, SEEK_END); + *size = ftell(fp); + fseek(fp, 0, SEEK_SET); + //读取文件内容 + char* buffer = (char*)malloc(*size); + if (!buffer) { + perror("malloc"); + fclose(fp); + return NULL; + } + fread(buffer, 1, *size, fp); + fclose(fp); + return buffer; +} + +//发送请求消息 +//token: 获取的access token +//audio: 音频文件内容 +//size: 音频文件大小 +//return: 响应消息正文, NULL 表示失败 +static char* send_request(char* token, char* audio, size_t size) +{ + char* url = NULL; + asprintf(&url, "http://vop.baidu.com/server_api?cuid=hqyj&token=%s", token); + + struct curl_slist* headers = NULL; + headers = curl_slist_append(headers, "Content-Type: audio/pcm; rate=16000"); + + char* response = http_post(url, headers, audio, &size); + + free(url); + curl_slist_free_all(headers); + + return response; +} + +//处理服务器返回的响应消息 +static char* process_response(char* response) +{ + char* retval; + + //解析 JSON 响应 + cJSON *json = cJSON_Parse(response); + if (!json) { + fprintf(stderr, "解析 JSON 失败: [%s]\n", cJSON_GetErrorPtr()); + return NULL; + } + + //判断err_no字段 + cJSON* err_no = cJSON_GetObjectItem(json, "err_no"); + if (!err_no) { + fprintf(stderr, "err_no 字段不存在\n"); + cJSON_Delete(json); + return NULL; + } + //判断err_no的值 + if (err_no->valueint != 0) { + //打印错误信息 + cJSON* err_msg = cJSON_GetObjectItem(json, "err_msg"); + if (err_msg) + { + fprintf(stderr, "err_msg: %s\n", err_msg->valuestring); + } + cJSON_Delete(json); + return NULL; + } + + // 获取 "result" 字段中的第一个元素 + cJSON *result = cJSON_GetObjectItem(json, "result"); + if (!result) { + fprintf(stderr, "JSON 格式错误: 找不到'result' 字段\n"); + cJSON_Delete(json); + return NULL; + } + + if (cJSON_GetArraySize(result) > 0) { + // 获取第一个元素的 "content" 字段 + cJSON *content = cJSON_GetArrayItem(result, 0); + //保存结果 + retval = strdup(content->valuestring); + } + + cJSON_Delete(json); + + return retval; +} + +//将音频数据转换为字符串 +//audio: 存放音频数据的地址 +//size: 音频数据大小 +//返回值: 转换之后的字符串,转换失败返回NULL +char* speech_to_text(char* audio, size_t size) +{ + char* text; + //读取配置信息,API KEY 和 SECRET KEY + cJSON *config = read_config("config.json"); + if (!config) { + printf("config: %s\n", cJSON_Print(config)); + return NULL; + } + + cJSON* api_key = cJSON_GetObjectItem(config, "api_key"); + cJSON* secret_key = cJSON_GetObjectItem(config, "secret_key"); + if (!api_key ||!secret_key) { + fprintf(stderr, "配置文件错误: 找不到 'api_key' 或'secret_key' 字段\n"); + cJSON_Delete(config); + return NULL; + } + + //获取token + char* token = get_access_token(api_key->valuestring, secret_key->valuestring); + cJSON_Delete(config); + if (!token) { + fprintf(stderr, "获取 token 失败\n"); + return NULL; + } + + //调用百度语音识别 API + char* response = send_request(token, audio, size); + free(token); + if (!response) { + fprintf(stderr, "调用百度语音识别 API 失败\n"); + return NULL; + } + + //处理服务器返回的响应消息 + text = process_response(response); + + free(response); + + return text; +} diff --git a/14/voice-assistant-master/stt.h b/14/voice-assistant-master/stt.h new file mode 100755 index 0000000000000000000000000000000000000000..81c0a30fc3e4c328abd15e8b820a17bddd22fee3 --- /dev/null +++ b/14/voice-assistant-master/stt.h @@ -0,0 +1,8 @@ +#ifndef STT_H +#define STT_H + +#include + +char* speech_to_text(char* audio, size_t size); + +#endif diff --git a/14/voice-assistant-master/token.c b/14/voice-assistant-master/token.c new file mode 100755 index 0000000000000000000000000000000000000000..d336af9b217bf28e3fbfe2b64235c34847844622 --- /dev/null +++ b/14/voice-assistant-master/token.c @@ -0,0 +1,66 @@ +#include +#include +#include +#include +#include +#include "http.h" +#include "config.h" +#include "token.h" + +//成功返回access token,失败返回NULL +char *get_access_token(const char *ak, const char *sk) +{ + char* token = NULL; + + //设置URL + char* url = "https://aip.baidubce.com/oauth/2.0/token"; + char* form = NULL; + asprintf(&form, "grant_type=client_credentials&client_id=%s&client_secret=%s&", ak, sk); + + //发送请求报文 + size_t size = strlen(form); + char* response = http_post(url, NULL, form, &size); + free(form); + + if (!response) + { + return NULL; + } + + //解析响应报文 + cJSON* root = cJSON_ParseWithLength(response, size); + free(response); + + if (!root) + { + // 解析错误 + const char *error_ptr = cJSON_GetErrorPtr(); + if (error_ptr != NULL) + { + fprintf(stderr, "Error before: %s\n", error_ptr); + } + return NULL; + } + + cJSON* access_token = cJSON_GetObjectItem(root, "access_token"); + if (!access_token) + { + fprintf(stderr, "access_token attribute not found\n"); + cJSON_Delete(root); + return NULL; + } + + if (!cJSON_IsString(access_token)) + { + fprintf(stderr, "access_token attribute format error\n"); + cJSON_Delete(root); + return NULL; + } + + token = strdup(access_token->valuestring); + + // 删除解析后对象占用的内存 + cJSON_Delete(root); + + return token; +} diff --git a/14/voice-assistant-master/token.h b/14/voice-assistant-master/token.h new file mode 100755 index 0000000000000000000000000000000000000000..5b2442b0652dd67e0a812af678343fbfe9e1cf62 --- /dev/null +++ b/14/voice-assistant-master/token.h @@ -0,0 +1,7 @@ +#ifndef TOKEN_H +#define TOKEN_H + +//成功返回access token,失败返回NULL +char *get_access_token(const char *ak, const char *sk); + +#endif diff --git a/14/voice-assistant-master/tts.c b/14/voice-assistant-master/tts.c new file mode 100755 index 0000000000000000000000000000000000000000..33118ab910276d7e62eec25655118512299dc92e --- /dev/null +++ b/14/voice-assistant-master/tts.c @@ -0,0 +1,260 @@ +#include +#include +#include +#include +#include +#include "config.h" +#include "http.h" +#include "play.h" + +char* appid = "9632245189"; + +//生成UUID +char* gen_uuid(void) +{ + static char uuid_str[37]; + uuid_t uuid; + uuid_generate(uuid); + uuid_unparse(uuid, uuid_str); + return uuid_str; +} + +// base64解码 +//base64: 需要解码的base64字符串 +//decoded: 解码后的数据 +//返回值: 解码后的数据大小 +size_t base64_decode(const char* base64, char** decoded) +{ + // 计算解码后的数据大小 + size_t decoded_size = (strlen(base64) / 4 + 1) * 3; + *decoded = (char*)malloc(decoded_size); + if (!*decoded) + { + return 0; + } + + // 解码base64字符串 + int size = b64_pton(base64, *decoded, decoded_size); + if (size < 0) + { + return 0; + } + + return size; +} + +//发送请求 +//text: 需要转为语音的文本 +//返回值: API返回的响应消息,失败返回 NULL +static char* send_request(char* text) +{ + //从配置文件中获取 API 密钥 + cJSON* config = read_config("config.json"); + if (!config) { + return NULL; + } + + cJSON* ttstoken = cJSON_GetObjectItem(config, "ttstoken"); + if (!ttstoken) { + fprintf(stderr, "无法获取ttstoken\n"); + return NULL; + } + + //printf("%s\n", ttstoken->valuestring); + + char* url = "https://openspeech.bytedance.com/api/v1/tts"; + + char* auth; + asprintf(&auth, "Authorization: Bearer;%s", ttstoken->valuestring); + + //添加请求头部字段 + struct curl_slist* headers = NULL; + headers = curl_slist_append(headers, "Content-Type: application/json"); + headers = curl_slist_append(headers, auth); + free(auth); + + //创建请求体 + cJSON* obj = cJSON_CreateObject(); + + cJSON* app = cJSON_CreateObject(); + cJSON_AddStringToObject(app, "appid", appid); + cJSON_AddStringToObject(app, "token", ttstoken->valuestring); + cJSON_AddStringToObject(app, "cluster", "volcano_tts"); + cJSON_AddItemToObject(obj, "app", app); + + cJSON* user = cJSON_CreateObject(); + cJSON_AddStringToObject(user, "uid", "hqyj"); + cJSON_AddItemToObject(obj, "user", user); + + cJSON* audio = cJSON_CreateObject(); + //发音人 + cJSON_AddStringToObject(audio, "voice_type", "BV700_V2_streaming"); //灿灿2.0 + //方言 + //cJSON_AddStringToObject(audio, "language", "zh_xian"); + //情感 + //cJSON_AddStringToObject(audio, "emotion", "tear"); + cJSON_AddItemToObject(obj, "audio", audio); + + cJSON* request = cJSON_CreateObject(); + cJSON_AddStringToObject(request, "reqid", gen_uuid()); + cJSON_AddStringToObject(request, "text", text); + //SSML + //cJSON_AddStringToObject(request, "text_type", "ssml"); + cJSON_AddStringToObject(request, "operation", "query"); + cJSON_AddItemToObject(obj, "request", request); + + char* json = cJSON_Print(obj); + size_t size = strlen(json); + cJSON_Delete(obj); + puts(json); + + return http_post(url, headers, json, &size); +} + +//处理服务器返回的响应消息 +//response: API返回的响应消息 +//size: 音频数据的大小 +//返回值:处理后的语音数据 +static char* process_response(char* response, size_t* size) +{ + //解析 JSON 响应 + cJSON *obj = cJSON_Parse(response); + if (!obj) { + fprintf(stderr, "解析 JSON 失败: [%s]\n", cJSON_GetErrorPtr()); + return NULL; + } + + cJSON* code = cJSON_GetObjectItem(obj, "code"); + if (!code) + { + fprintf(stderr, "JSON 格式错误: 找不到 'code' 字段\n"); + return NULL; + } + + if (code->valueint != 3000) + { + cJSON* message = cJSON_GetObjectItem(obj, "message"); + if (message) + { + fprintf(stderr, "message: %s\n", message->valuestring); + } + return NULL; + } + + cJSON* data = cJSON_GetObjectItem(obj, "data"); + if (!data) + { + fprintf(stderr, "JSON 格式错误: 找不到 'data' 字段\n"); + return NULL; + } + + //对data字段的值进行base64解码 + char* audio = NULL; + size_t audio_size = base64_decode(data->valuestring, &audio); + if (audio_size == 0) + { + fprintf(stderr, "base64解码失败\n"); + return NULL; + } + + cJSON_Delete(obj); + + *size = audio_size; + return audio; +} + +//语音合成 +void text_to_speech(char* text) +{ + //调用语音合成 API + char* response = send_request(text); + if (!response) { + fprintf(stderr, "调用语音合成 API 失败\n"); + return; + } + + //puts(response); + + //处理服务器返回的响应消息 + size_t size = 0; + char* audio = process_response(response, &size); + if (!audio) { + return; + } + + //播放音频 + snd_pcm_t *playback; // PCM设备句柄 + snd_pcm_uframes_t period = 999; // 每个周期的帧数 + char *buffer; // 缓冲区,用于存储从文件中读取的音频数据 + FILE *pcm_file; // 输出PCM文件 + int err; // 用于存储错误码 + // 打开音频数据 + pcm_file = fmemopen(audio, size, "rb"); + if (!pcm_file) { + perror("Error opening output file"); + return; + } + + playback = play_open("hw:0,0", SND_PCM_FORMAT_S16_LE, 1, 24000, &period); + if (!playback) + { + fclose(pcm_file); + return; + } + + printf("period: %d frames\n", period); + + buffer = (char *) malloc(snd_pcm_frames_to_bytes(playback, period)); // 分配缓冲区 + if (!buffer) { + perror("malloc"); + play_close(playback); + fclose(pcm_file); + return; + } + + // 录制数据 + while (1) { + size_t bytes = fread(buffer, 1, snd_pcm_frames_to_bytes(playback, period), pcm_file); + if (bytes == 0) + { + if (ferror(pcm_file)) + { + perror("fread"); + continue; + } + + if (feof(pcm_file)) + { + break; + } + } + + snd_pcm_sframes_t frames = snd_pcm_writei(playback, buffer, snd_pcm_bytes_to_frames(playback, bytes)); + if (frames < 0) + { + fprintf(stderr, "Error from write: %s\n", snd_strerror(frames)); + snd_pcm_recover(playback, frames, 0); + } + } + + // 清理资源 + free(buffer); // 释放缓冲区 + fclose(pcm_file); // 关闭文件 + play_close(playback); + + free(response); +} + +int main() +{ + //从标准输入读取文本 + char line[1024]; + while (fgets(line, sizeof(line), stdin)) { + //去除换行符 + line[strcspn(line, "\n")] = '\0'; + + //调用语音合成 API + text_to_speech(line); + } + return 0; +} \ No newline at end of file diff --git a/14/voice-assistant-master/utils.c b/14/voice-assistant-master/utils.c new file mode 100755 index 0000000000000000000000000000000000000000..61e11975297e769059bffe2d6b99da0e0e0a9e36 --- /dev/null +++ b/14/voice-assistant-master/utils.c @@ -0,0 +1,41 @@ +#include +#include +#include //b64_pton +#include + +//生成UUID +char* gen_uuid(void) +{ + static char uuid_str[37]; + uuid_t uuid; + uuid_generate(uuid); + uuid_unparse(uuid, uuid_str); + return uuid_str; +} + +// base64解码 +//base64: 需要解码的base64字符串 +//decoded: 解码后的数据 +//返回值: 解码后的数据大小 +size_t base64_decode(const char* base64, char* decoded) +{ + // 计算解码后的数据大小 + size_t decoded_size = (strlen(base64) / 4 + 1) * 3; + // 解码base64字符串 + int size = b64_pton(base64, decoded, decoded_size); + if (size < 0) + { + return 0; + } + + return size; +} + +int main() +{ + puts(gen_uuid()); + + char text[100]; + int size = base64_decode("6YGT5Y+v6YGT6Z2e5bi46YGT", text); + printf("%*s\n", size, text); +} diff --git a/14/voice-assistant-master/wake.c b/14/voice-assistant-master/wake.c new file mode 100755 index 0000000000000000000000000000000000000000..45bba5fa745a48aefa0ecfd3f873c4ae37dd21ab --- /dev/null +++ b/14/voice-assistant-master/wake.c @@ -0,0 +1,130 @@ +#include "snowboy/snowboy-detect-c-wrapper.h" +#include +#include +#include "record.h" +#include "stt.h" + +int main() +{ + //创建snowboy检测器 + SnowboyDetect* detector = SnowboyDetectConstructor("common.res", "model.pmdl"); + if (!detector) + { + return EXIT_FAILURE; + } + + //获取检测器支持的音频数据参数 + //采样深度 + int bits = SnowboyDetectBitsPerSample(detector); + //声道数量 + int channels = SnowboyDetectNumChannels(detector); + //采样频率 + int rate = SnowboyDetectSampleRate(detector); + + printf("采样深度: %d\n", bits); + printf("声道数量: %d\n", channels); + printf("采样频率: %d\n", rate); + + //打开音频采集设备 + snd_pcm_uframes_t period = 999; + snd_pcm_t* capture = record_open("hw:0,0", SND_PCM_FORMAT_S16_LE, channels, rate, &period); + if (!capture) + { + return EXIT_FAILURE; + } + + char* buffer = malloc(snd_pcm_frames_to_bytes(capture, period)); // 分配缓冲区 + if (!buffer) { + perror("malloc"); + record_close(capture); + SnowboyDetectDestructor(detector); + return EXIT_FAILURE; + } + + int recording = 0; + //检测到连续的静音次数 + int silence = 0; + //内存文件 + FILE* memstream = NULL; + char* audio = NULL; + size_t audio_size = 0; + + while (1) + { + snd_pcm_sframes_t frames = snd_pcm_readi(capture, buffer, period); // 从PCM设备读取数据 + if (frames < 0) + { + fprintf(stderr, "Error from read: %s\n", snd_strerror(frames)); + snd_pcm_recover(capture, frames, 0); + continue; + } + + //-2: 静音 + //-1: 检测出错 + // 0: 有声音,但不是唤醒词 + //>0: 检测到唤醒词 + int status = SnowboyDetectRunDetection(detector, (int16_t*)buffer, snd_pcm_frames_to_bytes(capture, frames) / sizeof(int16_t), 0); + if (status > 0) + { + printf("检测到唤醒词,开始录音\n"); + recording = 1; + //打开内存文件 + memstream = open_memstream(&audio, &audio_size); + if (!memstream) + { + perror("open_memstream"); + continue; + } + } + + if (recording) + { + if (status == -2) + { + silence++; + } + + if (status == 0) + { + silence = 0; + } + + if (silence > 32) + { + printf("停止录音\n"); + recording = 0; + silence = 0; + if (memstream) + { + fclose(memstream); + memstream = NULL; + } + + if (audio_size) + { + // 暂停录音 + snd_pcm_drop(capture); + // 识别语音 + char* text = speech_to_text(audio, audio_size); + if (text) + { + puts(text); + } + // 恢复录音 + snd_pcm_prepare(capture); + } + } + + if (memstream) + { + fwrite(buffer, 1, snd_pcm_frames_to_bytes(capture, frames), memstream); + } + } + } + + free(buffer); + record_close(capture); + SnowboyDetectDestructor(detector); + + return EXIT_SUCCESS; +} \ No newline at end of file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/CMakeLists.txt" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/CMakeLists.txt" new file mode 100755 index 0000000000000000000000000000000000000000..ade4073fe1e55580c3c3f0024e2e1d6f013ff7a8 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/CMakeLists.txt" @@ -0,0 +1,29 @@ +cmake_minimum_required(VERSION 3.0.0) +project(HVA VERSION 0.1.0 LANGUAGES C) + +add_executable(HVA main.c) + +# add_executable(control control.c) +# target_link_libraries(control asound) + +# add_executable(record record.c) +# target_link_libraries(record asound) + +add_executable(play play.c) +target_link_libraries(play asound) + +add_executable(key key.c record.c control.c stt.c config.c token.c) +target_link_libraries(key curl jansson gpiod asound) + +add_subdirectory(snowboy) +add_executable(wake wake.c record.c) +target_link_libraries(wake snowboy-wrapper snowboy-detect cblas m stdc++ asound) + +add_executable(jrsc jrsc.c) +target_link_libraries(jrsc curl cjson) + +add_executable(token token.c config.c) +target_link_libraries(token curl jansson) + +add_executable(stt stt.c config.c token.c) +target_link_libraries(stt curl jansson) diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/query/client-vscode/query.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/query/client-vscode/query.json" new file mode 100755 index 0000000000000000000000000000000000000000..82bb964246a197c5da6e91c086d5d838917e238a --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/query/client-vscode/query.json" @@ -0,0 +1 @@ +{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]} \ No newline at end of file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/cache-v2-449c5183fb5b122848e9.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/cache-v2-449c5183fb5b122848e9.json" new file mode 100755 index 0000000000000000000000000000000000000000..667da40dfaed2726e3cc281b9bd248ab6ee3f483 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/cache-v2-449c5183fb5b122848e9.json" @@ -0,0 +1,1719 @@ +{ + "entries" : + [ + { + "name" : "CMAKE_ADDR2LINE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/addr2line" + }, + { + "name" : "CMAKE_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ar" + }, + { + "name" : "CMAKE_BUILD_TYPE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "No help, variable specified on the command line." + } + ], + "type" : "STRING", + "value" : "Debug" + }, + { + "name" : "CMAKE_CACHEFILE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "This is the directory where this CMakeCache.txt was created" + } + ], + "type" : "INTERNAL", + "value" : "/home/student/voice-assistant-test/build" + }, + { + "name" : "CMAKE_CACHE_MAJOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Major version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "3" + }, + { + "name" : "CMAKE_CACHE_MINOR_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Minor version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "18" + }, + { + "name" : "CMAKE_CACHE_PATCH_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Patch version of cmake used to create the current loaded cache" + } + ], + "type" : "INTERNAL", + "value" : "4" + }, + { + "name" : "CMAKE_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake executable." + } + ], + "type" : "INTERNAL", + "value" : "/usr/bin/cmake" + }, + { + "name" : "CMAKE_CPACK_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to cpack program executable." + } + ], + "type" : "INTERNAL", + "value" : "/usr/bin/cpack" + }, + { + "name" : "CMAKE_CTEST_COMMAND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to ctest program executable." + } + ], + "type" : "INTERNAL", + "value" : "/usr/bin/ctest" + }, + { + "name" : "CMAKE_CXX_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "No help, variable specified on the command line." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/g++" + }, + { + "name" : "CMAKE_CXX_COMPILER_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ar-10" + }, + { + "name" : "CMAKE_CXX_COMPILER_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ranlib-10" + }, + { + "name" : "CMAKE_CXX_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_CXX_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "-g" + }, + { + "name" : "CMAKE_CXX_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "-Os -DNDEBUG" + }, + { + "name" : "CMAKE_CXX_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "-O3 -DNDEBUG" + }, + { + "name" : "CMAKE_CXX_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the CXX compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "-O2 -g -DNDEBUG" + }, + { + "name" : "CMAKE_C_COMPILER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "No help, variable specified on the command line." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc" + }, + { + "name" : "CMAKE_C_COMPILER_AR", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ar' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ar-10" + }, + { + "name" : "CMAKE_C_COMPILER_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "A wrapper around 'ranlib' adding the appropriate '--plugin' option for the GCC compiler" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/gcc-ranlib-10" + }, + { + "name" : "CMAKE_C_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_C_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "-g" + }, + { + "name" : "CMAKE_C_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "-Os -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "-O3 -DNDEBUG" + }, + { + "name" : "CMAKE_C_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the C compiler during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "-O2 -g -DNDEBUG" + }, + { + "name" : "CMAKE_DLLTOOL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "CMAKE_DLLTOOL-NOTFOUND" + }, + { + "name" : "CMAKE_EXECUTABLE_FORMAT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Executable file format" + } + ], + "type" : "INTERNAL", + "value" : "ELF" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_EXPORT_COMPILE_COMMANDS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "No help, variable specified on the command line." + } + ], + "type" : "BOOL", + "value" : "TRUE" + }, + { + "name" : "CMAKE_EXTRA_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of external makefile project generator." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator." + } + ], + "type" : "INTERNAL", + "value" : "Ninja" + }, + { + "name" : "CMAKE_GENERATOR_INSTANCE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Generator instance identifier." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_PLATFORM", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator platform." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_GENERATOR_TOOLSET", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Name of generator toolset." + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "CMAKE_HOME_DIRECTORY", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Source directory with the top level CMakeLists.txt file for this project" + } + ], + "type" : "INTERNAL", + "value" : "/home/student/voice-assistant-test" + }, + { + "name" : "CMAKE_INSTALL_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install path prefix, prepended onto install directories." + } + ], + "type" : "PATH", + "value" : "/usr/local" + }, + { + "name" : "CMAKE_INSTALL_SO_NO_EXE", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Install .so files without execute permission." + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_LINKER", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ld" + }, + { + "name" : "CMAKE_MAKE_PROGRAM", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Program used to build from build.ninja files." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ninja" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of modules during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_NM", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/nm" + }, + { + "name" : "CMAKE_NUMBER_OF_MAKEFILES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "number of local generators" + } + ], + "type" : "INTERNAL", + "value" : "2" + }, + { + "name" : "CMAKE_OBJCOPY", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/objcopy" + }, + { + "name" : "CMAKE_OBJDUMP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/objdump" + }, + { + "name" : "CMAKE_PLATFORM_INFO_INITIALIZED", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Platform information initialized" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "CMAKE_PROJECT_DESCRIPTION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_HOMEPAGE_URL", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_PROJECT_NAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "HVA" + }, + { + "name" : "CMAKE_PROJECT_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "0.1.0" + }, + { + "name" : "CMAKE_PROJECT_VERSION_MAJOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "0" + }, + { + "name" : "CMAKE_PROJECT_VERSION_MINOR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "1" + }, + { + "name" : "CMAKE_PROJECT_VERSION_PATCH", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "0" + }, + { + "name" : "CMAKE_PROJECT_VERSION_TWEAK", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "" + }, + { + "name" : "CMAKE_RANLIB", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/ranlib" + }, + { + "name" : "CMAKE_READELF", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/readelf" + }, + { + "name" : "CMAKE_ROOT", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Path to CMake installation." + } + ], + "type" : "INTERNAL", + "value" : "/usr/share/cmake-3.18" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of shared libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_SKIP_INSTALL_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when installing shared libraries, but are added when building." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_SKIP_RPATH", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If set, runtime paths are not added when using shared libraries." + } + ], + "type" : "BOOL", + "value" : "NO" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during all build types." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_DEBUG", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during DEBUG builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during MINSIZEREL builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELEASE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELEASE builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Flags used by the linker during the creation of static libraries during RELWITHDEBINFO builds." + } + ], + "type" : "STRING", + "value" : "" + }, + { + "name" : "CMAKE_STRIP", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a program." + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/strip" + }, + { + "name" : "CMAKE_UNAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "uname command" + } + ], + "type" : "INTERNAL", + "value" : "/usr/bin/uname" + }, + { + "name" : "CMAKE_VERBOSE_MAKEFILE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "If this value is on, makefiles will be generated without the .SILENT directive, and all commands will be echoed to the console during the make. This is useful for debugging only. With Visual Studio IDE projects all commands are done without /nologo." + } + ], + "type" : "BOOL", + "value" : "FALSE" + }, + { + "name" : "FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Details about finding PkgConfig" + } + ], + "type" : "INTERNAL", + "value" : "[/usr/bin/pkg-config][v0.29.2()]" + }, + { + "name" : "HVA_BINARY_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/student/voice-assistant-test/build" + }, + { + "name" : "HVA_SOURCE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/student/voice-assistant-test" + }, + { + "name" : "JANSSON_CFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_CFLAGS_I", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_CFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_FOUND", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "JANSSON_INCLUDEDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/include" + }, + { + "name" : "JANSSON_INCLUDE_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_LDFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "-ljansson" + }, + { + "name" : "JANSSON_LDFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_LIBDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/lib/x86_64-linux-gnu" + }, + { + "name" : "JANSSON_LIBRARIES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "jansson" + }, + { + "name" : "JANSSON_LIBRARY_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_LIBS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_LIBS_L", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_LIBS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_LIBS_PATHS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_MODULE_NAME", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "jansson" + }, + { + "name" : "JANSSON_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr" + }, + { + "name" : "JANSSON_STATIC_CFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_CFLAGS_I", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_CFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_INCLUDE_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LDFLAGS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "-ljansson" + }, + { + "name" : "JANSSON_STATIC_LDFLAGS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LIBDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LIBRARIES", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "jansson" + }, + { + "name" : "JANSSON_STATIC_LIBRARY_DIRS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LIBS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LIBS_L", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LIBS_OTHER", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_STATIC_LIBS_PATHS", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "2.13.1" + }, + { + "name" : "JANSSON_jansson_INCLUDEDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_jansson_LIBDIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_jansson_PREFIX", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "JANSSON_jansson_VERSION", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "" + }, + { + "name" : "PKG_CONFIG_EXECUTABLE", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "pkg-config executable" + } + ], + "type" : "FILEPATH", + "value" : "/usr/bin/pkg-config" + }, + { + "name" : "__pkg_config_arguments_JANSSON", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "REQUIRED;jansson" + }, + { + "name" : "__pkg_config_checked_JANSSON", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "1" + }, + { + "name" : "pkgcfg_lib_JANSSON_jansson", + "properties" : + [ + { + "name" : "ADVANCED", + "value" : "1" + }, + { + "name" : "HELPSTRING", + "value" : "Path to a library." + } + ], + "type" : "FILEPATH", + "value" : "/usr/lib/x86_64-linux-gnu/libjansson.so" + }, + { + "name" : "prefix_result", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "" + } + ], + "type" : "INTERNAL", + "value" : "/usr/lib/x86_64-linux-gnu" + }, + { + "name" : "snowboy_BINARY_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/student/voice-assistant-test/build/snowboy" + }, + { + "name" : "snowboy_SOURCE_DIR", + "properties" : + [ + { + "name" : "HELPSTRING", + "value" : "Value Computed by CMake" + } + ], + "type" : "STATIC", + "value" : "/home/student/voice-assistant-test/snowboy" + } + ], + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/cmakeFiles-v1-f11118e2801cb0056ec1.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/cmakeFiles-v1-f11118e2801cb0056ec1.json" new file mode 100755 index 0000000000000000000000000000000000000000..32c32eec25c4c3ef9c5fa7f9b203fc05083c82d6 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/cmakeFiles-v1-f11118e2801cb0056ec1.json" @@ -0,0 +1,149 @@ +{ + "inputs" : + [ + { + "path" : "CMakeLists.txt" + }, + { + "isGenerated" : true, + "path" : "build/CMakeFiles/3.18.4/CMakeSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeSystemSpecificInitialize.cmake" + }, + { + "isGenerated" : true, + "path" : "build/CMakeFiles/3.18.4/CMakeCCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeSystemSpecificInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeGenericSystem.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeInitializeConfigs.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Platform/Linux.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Platform/UnixPaths.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeCInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeLanguageInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Compiler/GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Compiler/GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Compiler/CMakeCommonCompilerMacros.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Internal/CMakeCheckCompilerFlag.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Platform/Linux-GNU-C.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Platform/Linux-GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeCommonLanguageInclude.cmake" + }, + { + "path" : "snowboy/CMakeLists.txt" + }, + { + "isGenerated" : true, + "path" : "build/CMakeFiles/3.18.4/CMakeCXXCompiler.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeCXXInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeLanguageInformation.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Compiler/GNU-CXX.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Compiler/GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Platform/Linux-GNU-CXX.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/Platform/Linux-GNU.cmake" + }, + { + "isCMake" : true, + "isExternal" : true, + "path" : "/usr/share/cmake-3.18/Modules/CMakeCommonLanguageInclude.cmake" + } + ], + "kind" : "cmakeFiles", + "paths" : + { + "build" : "/home/student/voice-assistant-test/build", + "source" : "/home/student/voice-assistant-test" + }, + "version" : + { + "major" : 1, + "minor" : 0 + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/codemodel-v2-b31f2ca184e1bd4b42d7.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/codemodel-v2-b31f2ca184e1bd4b42d7.json" new file mode 100755 index 0000000000000000000000000000000000000000..803b383bcc04aa435a4b464ba2753378e5dabd12 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/codemodel-v2-b31f2ca184e1bd4b42d7.json" @@ -0,0 +1,154 @@ +{ + "configurations" : + [ + { + "directories" : + [ + { + "build" : ".", + "childIndexes" : + [ + 1 + ], + "minimumCMakeVersion" : + { + "string" : "3.0.0" + }, + "projectIndex" : 0, + "source" : ".", + "targetIndexes" : + [ + 0, + 1, + 2, + 3, + 5, + 6, + 7 + ] + }, + { + "build" : "snowboy", + "minimumCMakeVersion" : + { + "string" : "3.0.0" + }, + "parentIndex" : 0, + "projectIndex" : 1, + "source" : "snowboy", + "targetIndexes" : + [ + 4 + ] + } + ], + "name" : "Debug", + "projects" : + [ + { + "childIndexes" : + [ + 1 + ], + "directoryIndexes" : + [ + 0 + ], + "name" : "HVA", + "targetIndexes" : + [ + 0, + 1, + 2, + 3, + 5, + 6, + 7 + ] + }, + { + "directoryIndexes" : + [ + 1 + ], + "name" : "snowboy", + "parentIndex" : 0, + "targetIndexes" : + [ + 4 + ] + } + ], + "targets" : + [ + { + "directoryIndex" : 0, + "id" : "HVA::@6890427a1f51a3e7e1df", + "jsonFile" : "target-HVA-Debug-52efcb3cf3c946876be9.json", + "name" : "HVA", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "jrsc::@6890427a1f51a3e7e1df", + "jsonFile" : "target-jrsc-Debug-bc0387296226b8a84e1d.json", + "name" : "jrsc", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "key::@6890427a1f51a3e7e1df", + "jsonFile" : "target-key-Debug-28fc62b8479f5b9c5bd8.json", + "name" : "key", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "play::@6890427a1f51a3e7e1df", + "jsonFile" : "target-play-Debug-4a358efb33547a9bb78c.json", + "name" : "play", + "projectIndex" : 0 + }, + { + "directoryIndex" : 1, + "id" : "snowboy-wrapper::@1f08ec97be5486dbd217", + "jsonFile" : "target-snowboy-wrapper-Debug-d42411a31c5838a87bab.json", + "name" : "snowboy-wrapper", + "projectIndex" : 1 + }, + { + "directoryIndex" : 0, + "id" : "stt::@6890427a1f51a3e7e1df", + "jsonFile" : "target-stt-Debug-3aba0aa544984508ac53.json", + "name" : "stt", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "token::@6890427a1f51a3e7e1df", + "jsonFile" : "target-token-Debug-09b3e69ded7342b23413.json", + "name" : "token", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "wake::@6890427a1f51a3e7e1df", + "jsonFile" : "target-wake-Debug-6898d6ae156b65581f29.json", + "name" : "wake", + "projectIndex" : 0 + } + ] + } + ], + "kind" : "codemodel", + "paths" : + { + "build" : "/home/student/voice-assistant-test/build", + "source" : "/home/student/voice-assistant-test" + }, + "version" : + { + "major" : 2, + "minor" : 1 + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/codemodel-v2-b7a0cae85a65039eb417.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/codemodel-v2-b7a0cae85a65039eb417.json" new file mode 100755 index 0000000000000000000000000000000000000000..4ea1981314d175e29cf36b4d3cdcb0dff065a873 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/codemodel-v2-b7a0cae85a65039eb417.json" @@ -0,0 +1,154 @@ +{ + "configurations" : + [ + { + "directories" : + [ + { + "build" : ".", + "childIndexes" : + [ + 1 + ], + "minimumCMakeVersion" : + { + "string" : "3.0.0" + }, + "projectIndex" : 0, + "source" : ".", + "targetIndexes" : + [ + 0, + 1, + 2, + 3, + 5, + 6, + 7 + ] + }, + { + "build" : "snowboy", + "minimumCMakeVersion" : + { + "string" : "3.0.0" + }, + "parentIndex" : 0, + "projectIndex" : 1, + "source" : "snowboy", + "targetIndexes" : + [ + 4 + ] + } + ], + "name" : "Debug", + "projects" : + [ + { + "childIndexes" : + [ + 1 + ], + "directoryIndexes" : + [ + 0 + ], + "name" : "HVA", + "targetIndexes" : + [ + 0, + 1, + 2, + 3, + 5, + 6, + 7 + ] + }, + { + "directoryIndexes" : + [ + 1 + ], + "name" : "snowboy", + "parentIndex" : 0, + "targetIndexes" : + [ + 4 + ] + } + ], + "targets" : + [ + { + "directoryIndex" : 0, + "id" : "HVA::@6890427a1f51a3e7e1df", + "jsonFile" : "target-HVA-Debug-52efcb3cf3c946876be9.json", + "name" : "HVA", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "jrsc::@6890427a1f51a3e7e1df", + "jsonFile" : "target-jrsc-Debug-bc0387296226b8a84e1d.json", + "name" : "jrsc", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "key::@6890427a1f51a3e7e1df", + "jsonFile" : "target-key-Debug-cb20bb3a4c30a2e9a908.json", + "name" : "key", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "play::@6890427a1f51a3e7e1df", + "jsonFile" : "target-play-Debug-4a358efb33547a9bb78c.json", + "name" : "play", + "projectIndex" : 0 + }, + { + "directoryIndex" : 1, + "id" : "snowboy-wrapper::@1f08ec97be5486dbd217", + "jsonFile" : "target-snowboy-wrapper-Debug-d42411a31c5838a87bab.json", + "name" : "snowboy-wrapper", + "projectIndex" : 1 + }, + { + "directoryIndex" : 0, + "id" : "stt::@6890427a1f51a3e7e1df", + "jsonFile" : "target-stt-Debug-3aba0aa544984508ac53.json", + "name" : "stt", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "token::@6890427a1f51a3e7e1df", + "jsonFile" : "target-token-Debug-09b3e69ded7342b23413.json", + "name" : "token", + "projectIndex" : 0 + }, + { + "directoryIndex" : 0, + "id" : "wake::@6890427a1f51a3e7e1df", + "jsonFile" : "target-wake-Debug-6898d6ae156b65581f29.json", + "name" : "wake", + "projectIndex" : 0 + } + ] + } + ], + "kind" : "codemodel", + "paths" : + { + "build" : "/home/student/voice-assistant-test/build", + "source" : "/home/student/voice-assistant-test" + }, + "version" : + { + "major" : 2, + "minor" : 1 + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/index-2024-07-03T10-28-50-0202.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/index-2024-07-03T10-28-50-0202.json" new file mode 100755 index 0000000000000000000000000000000000000000..16ffeb5cc1ff9b5d746fd638d9516fb0d700fbe7 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/index-2024-07-03T10-28-50-0202.json" @@ -0,0 +1,117 @@ +{ + "cmake" : + { + "generator" : + { + "multiConfig" : false, + "name" : "Ninja" + }, + "paths" : + { + "cmake" : "/usr/bin/cmake", + "cpack" : "/usr/bin/cpack", + "ctest" : "/usr/bin/ctest", + "root" : "/usr/share/cmake-3.18" + }, + "version" : + { + "isDirty" : false, + "major" : 3, + "minor" : 18, + "patch" : 4, + "string" : "3.18.4", + "suffix" : "" + } + }, + "objects" : + [ + { + "jsonFile" : "codemodel-v2-b7a0cae85a65039eb417.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 1 + } + }, + { + "jsonFile" : "cache-v2-449c5183fb5b122848e9.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-f11118e2801cb0056ec1.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ], + "reply" : + { + "client-vscode" : + { + "query.json" : + { + "requests" : + [ + { + "kind" : "cache", + "version" : 2 + }, + { + "kind" : "codemodel", + "version" : 2 + }, + { + "kind" : "toolchains", + "version" : 1 + }, + { + "kind" : "cmakeFiles", + "version" : 1 + } + ], + "responses" : + [ + { + "jsonFile" : "cache-v2-449c5183fb5b122848e9.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "codemodel-v2-b7a0cae85a65039eb417.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 1 + } + }, + { + "error" : "unknown request kind 'toolchains'" + }, + { + "jsonFile" : "cmakeFiles-v1-f11118e2801cb0056ec1.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ] + } + } + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/index-2024-07-03T11-40-53-0444.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/index-2024-07-03T11-40-53-0444.json" new file mode 100755 index 0000000000000000000000000000000000000000..d1d8860654a343bcf1ad99045c7c879e829ba413 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/index-2024-07-03T11-40-53-0444.json" @@ -0,0 +1,117 @@ +{ + "cmake" : + { + "generator" : + { + "multiConfig" : false, + "name" : "Ninja" + }, + "paths" : + { + "cmake" : "/usr/bin/cmake", + "cpack" : "/usr/bin/cpack", + "ctest" : "/usr/bin/ctest", + "root" : "/usr/share/cmake-3.18" + }, + "version" : + { + "isDirty" : false, + "major" : 3, + "minor" : 18, + "patch" : 4, + "string" : "3.18.4", + "suffix" : "" + } + }, + "objects" : + [ + { + "jsonFile" : "codemodel-v2-b31f2ca184e1bd4b42d7.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 1 + } + }, + { + "jsonFile" : "cache-v2-449c5183fb5b122848e9.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "cmakeFiles-v1-f11118e2801cb0056ec1.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ], + "reply" : + { + "client-vscode" : + { + "query.json" : + { + "requests" : + [ + { + "kind" : "cache", + "version" : 2 + }, + { + "kind" : "codemodel", + "version" : 2 + }, + { + "kind" : "toolchains", + "version" : 1 + }, + { + "kind" : "cmakeFiles", + "version" : 1 + } + ], + "responses" : + [ + { + "jsonFile" : "cache-v2-449c5183fb5b122848e9.json", + "kind" : "cache", + "version" : + { + "major" : 2, + "minor" : 0 + } + }, + { + "jsonFile" : "codemodel-v2-b31f2ca184e1bd4b42d7.json", + "kind" : "codemodel", + "version" : + { + "major" : 2, + "minor" : 1 + } + }, + { + "error" : "unknown request kind 'toolchains'" + }, + { + "jsonFile" : "cmakeFiles-v1-f11118e2801cb0056ec1.json", + "kind" : "cmakeFiles", + "version" : + { + "major" : 1, + "minor" : 0 + } + } + ] + } + } + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-HVA-Debug-52efcb3cf3c946876be9.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-HVA-Debug-52efcb3cf3c946876be9.json" new file mode 100755 index 0000000000000000000000000000000000000000..652a17847fc9bf3b7716a9c19934a75718b213cf --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-HVA-Debug-52efcb3cf3c946876be9.json" @@ -0,0 +1,91 @@ +{ + "artifacts" : + [ + { + "path" : "HVA" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 4, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0 + ] + } + ], + "id" : "HVA::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + } + ], + "language" : "C" + }, + "name" : "HVA", + "nameOnDisk" : "HVA", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "main.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-jrsc-Debug-bc0387296226b8a84e1d.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-jrsc-Debug-bc0387296226b8a84e1d.json" new file mode 100755 index 0000000000000000000000000000000000000000..b10f430744c8898dbb64104d79904a94783c94e8 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-jrsc-Debug-bc0387296226b8a84e1d.json" @@ -0,0 +1,108 @@ +{ + "artifacts" : + [ + { + "path" : "jrsc" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 22, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 23, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0 + ] + } + ], + "id" : "jrsc::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lcurl", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lcjson", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "jrsc", + "nameOnDisk" : "jrsc", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "jrsc.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-key-Debug-28fc62b8479f5b9c5bd8.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-key-Debug-28fc62b8479f5b9c5bd8.json" new file mode 100755 index 0000000000000000000000000000000000000000..702e38108dc14eb7ab32c2e0af66db966b2ad2cb --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-key-Debug-28fc62b8479f5b9c5bd8.json" @@ -0,0 +1,158 @@ +{ + "artifacts" : + [ + { + "path" : "key" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 15, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 16, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1, + 2, + 3, + 4, + 5 + ] + } + ], + "id" : "key::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lcurl", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-ljansson", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lgpiod", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lasound", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "key", + "nameOnDisk" : "key", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1, + 2, + 3, + 4, + 5 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "key.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "record.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "control.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "stt.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "config.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "token.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-key-Debug-cb20bb3a4c30a2e9a908.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-key-Debug-cb20bb3a4c30a2e9a908.json" new file mode 100755 index 0000000000000000000000000000000000000000..9afd17ee58a181553af8589a439fa80e691fab35 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-key-Debug-cb20bb3a4c30a2e9a908.json" @@ -0,0 +1,124 @@ +{ + "artifacts" : + [ + { + "path" : "key" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 15, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 16, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "id" : "key::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lgpiod", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lasound", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "key", + "nameOnDisk" : "key", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "key.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "record.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "control.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-play-Debug-4a358efb33547a9bb78c.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-play-Debug-4a358efb33547a9bb78c.json" new file mode 100755 index 0000000000000000000000000000000000000000..c0d4c1d66aef3206d42b8e256f490b88bee095b8 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-play-Debug-4a358efb33547a9bb78c.json" @@ -0,0 +1,103 @@ +{ + "artifacts" : + [ + { + "path" : "play" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 12, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 13, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0 + ] + } + ], + "id" : "play::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lasound", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "play", + "nameOnDisk" : "play", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "play.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-snowboy-wrapper-Debug-d42411a31c5838a87bab.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-snowboy-wrapper-Debug-d42411a31c5838a87bab.json" new file mode 100755 index 0000000000000000000000000000000000000000..0752436a9a34bb6f5a11308a1fa247c0aa5a6bc5 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-snowboy-wrapper-Debug-d42411a31c5838a87bab.json" @@ -0,0 +1,88 @@ +{ + "archive" : {}, + "artifacts" : + [ + { + "path" : "snowboy/libsnowboy-wrapper.a" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_library", + "target_compile_options" + ], + "files" : + [ + "snowboy/CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 3, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 4, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + }, + { + "backtrace" : 2, + "fragment" : "-D_GLIBCXX_USE_CXX11_ABI=0" + } + ], + "language" : "CXX", + "sourceIndexes" : + [ + 0 + ] + } + ], + "id" : "snowboy-wrapper::@1f08ec97be5486dbd217", + "name" : "snowboy-wrapper", + "nameOnDisk" : "libsnowboy-wrapper.a", + "paths" : + { + "build" : "snowboy", + "source" : "snowboy" + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "snowboy/snowboy-detect-c-wrapper.cc", + "sourceGroupIndex" : 0 + } + ], + "type" : "STATIC_LIBRARY" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-stt-Debug-3aba0aa544984508ac53.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-stt-Debug-3aba0aa544984508ac53.json" new file mode 100755 index 0000000000000000000000000000000000000000..82c2694a7870cd7d42375ec180cac00ffe201023 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-stt-Debug-3aba0aa544984508ac53.json" @@ -0,0 +1,124 @@ +{ + "artifacts" : + [ + { + "path" : "stt" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 28, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 29, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "id" : "stt::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lcurl", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-ljansson", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "stt", + "nameOnDisk" : "stt", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1, + 2 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "stt.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "config.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "token.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-token-Debug-09b3e69ded7342b23413.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-token-Debug-09b3e69ded7342b23413.json" new file mode 100755 index 0000000000000000000000000000000000000000..d8dfced1f83608750235f99e176f3824028013f2 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-token-Debug-09b3e69ded7342b23413.json" @@ -0,0 +1,116 @@ +{ + "artifacts" : + [ + { + "path" : "token" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 25, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 26, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "id" : "token::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "-lcurl", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-ljansson", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "token", + "nameOnDisk" : "token", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "token.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "config.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-wake-Debug-6898d6ae156b65581f29.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-wake-Debug-6898d6ae156b65581f29.json" new file mode 100755 index 0000000000000000000000000000000000000000..abe01b99faeab7a095af57782fc991a7c1f91745 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.cmake/api/v1/reply/target-wake-Debug-6898d6ae156b65581f29.json" @@ -0,0 +1,143 @@ +{ + "artifacts" : + [ + { + "path" : "wake" + } + ], + "backtrace" : 1, + "backtraceGraph" : + { + "commands" : + [ + "add_executable", + "target_link_libraries" + ], + "files" : + [ + "CMakeLists.txt" + ], + "nodes" : + [ + { + "file" : 0 + }, + { + "command" : 0, + "file" : 0, + "line" : 19, + "parent" : 0 + }, + { + "command" : 1, + "file" : 0, + "line" : 20, + "parent" : 0 + } + ] + }, + "compileGroups" : + [ + { + "compileCommandFragments" : + [ + { + "fragment" : "-g" + } + ], + "language" : "C", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "dependencies" : + [ + { + "backtrace" : 2, + "id" : "snowboy-wrapper::@1f08ec97be5486dbd217" + } + ], + "id" : "wake::@6890427a1f51a3e7e1df", + "link" : + { + "commandFragments" : + [ + { + "fragment" : "-g", + "role" : "flags" + }, + { + "fragment" : "-rdynamic", + "role" : "flags" + }, + { + "backtrace" : 2, + "fragment" : "snowboy/libsnowboy-wrapper.a", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "../snowboy/libsnowboy-detect.a", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lcblas", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lm", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lstdc++", + "role" : "libraries" + }, + { + "backtrace" : 2, + "fragment" : "-lasound", + "role" : "libraries" + } + ], + "language" : "C" + }, + "name" : "wake", + "nameOnDisk" : "wake", + "paths" : + { + "build" : ".", + "source" : "." + }, + "sourceGroups" : + [ + { + "name" : "Source Files", + "sourceIndexes" : + [ + 0, + 1 + ] + } + ], + "sources" : + [ + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "wake.c", + "sourceGroupIndex" : 0 + }, + { + "backtrace" : 1, + "compileGroupIndex" : 0, + "path" : "record.c", + "sourceGroupIndex" : 0 + } + ], + "type" : "EXECUTABLE" +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.ninja_deps" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.ninja_deps" new file mode 100755 index 0000000000000000000000000000000000000000..b434092de7801d5d8f32b72a444c5a0b7da3e9d7 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.ninja_deps" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.ninja_log" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.ninja_log" new file mode 100755 index 0000000000000000000000000000000000000000..15bd51e3d9829a761dc4ef5673b7359f189b9b37 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/.ninja_log" @@ -0,0 +1,34 @@ +# ninja log v5 +0 36 1720006794982197733 CMakeFiles/key.dir/key.c.o f190196758289548 +98 153 1720006622086667837 CMakeFiles/key.dir/config.c.o b11b53a42c9855e8 +0 66 1719727503933789831 play e31f5a22f019bb99 +0 40 1720002687835873074 CMakeFiles/stt.dir/token.c.o a706bb3e776553c0 +0 61 1719994099782772601 CMakeFiles/token.dir/config.c.o 6df5d7c0e7a68279 +4 30 1719727503901789980 CMakeFiles/HVA.dir/main.c.o 34b8418e8abfa4bb +19 37 1719380727895273220 HVA 88c19012e9b57757 +0 73 1719994357210246017 CMakeFiles/token.dir/token.c.o aa93a6cba9365a10 +70 134 1720006622066666934 CMakeFiles/key.dir/stt.c.o 7580c1e71832d6fc +0 101 1719737234692025389 CMakeFiles/wake.dir/record.c.o 94b7f9fc14cc9e87 +0 67 1720004058401620180 CMakeFiles/stt.dir/stt.c.o eaed8be565c92c1d +1 80 1719737646845959249 wake cad6d96ac4929935 +0 29 1719998242125310522 CMakeFiles/stt.dir/config.c.o 8df414bb696791a4 +15 70 1720006622006664226 CMakeFiles/key.dir/record.c.o e613bf20b731168d +76 128 1719924534451677196 jrsc 9da581c97cbc2a3d +73 165 1719994357298248850 token 4a8e4090f46d4de7 +0 229 1719564563492108425 CMakeFiles/play.dir/play.c.o 1169ddb3615879c +67 132 1720004058465624105 stt f896d182c1e9910c +0 45 1719710584489502381 key f01bf0689fd9547c +393 408 1719737235000030216 snowboy/libsnowboy-wrapper.a 909bf396664d85a0 +0 41 1720006686808466413 CMakeFiles/key.dir/control.c.o 5a24767ffe09acf8 +13 393 1719737234984029965 snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o a5ec367bcc8b1159 +0 76 1719924534399676594 CMakeFiles/jrsc.dir/jrsc.c.o a2fd23edbcc822c2 +0 138 1719737234732026017 CMakeFiles/wake.dir/wake.c.o ce0532e30dbc6bec +0 35 1720006862197076569 CMakeFiles/key.dir/key.c.o f190196758289548 +0 61 1720006862225080768 CMakeFiles/key.dir/token.c.o 590d462a5b59f719 +61 114 1720006862277088566 key 57ae69d349f23e83 +0 170 1720006933811070228 CMakeFiles/key.dir/key.c.o f190196758289548 +10 172 1720006933811070228 CMakeFiles/key.dir/stt.c.o 7580c1e71832d6fc +13 178 1720006933819071269 CMakeFiles/key.dir/token.c.o 590d462a5b59f719 +178 234 1720006933871078033 key 57ae69d349f23e83 +0 148 1720006940595946634 CMakeFiles/key.dir/stt.c.o 7580c1e71832d6fc +148 293 1720006940739965124 key 57ae69d349f23e83 diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/16k.wav" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/16k.wav" new file mode 100755 index 0000000000000000000000000000000000000000..00978fb79494c452638fe9fc87eb3ff0295a5ec0 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/16k.wav" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeCache.txt" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeCache.txt" new file mode 100755 index 0000000000000000000000000000000000000000..d8385ff754484d992f56229b20f2e44cd8d5985c --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeCache.txt" @@ -0,0 +1,429 @@ +# This is the CMakeCache file. +# For build in directory: /home/student/voice-assistant-test/build +# It was generated by CMake: /usr/bin/cmake +# You can edit this file to change values found and used by cmake. +# If you do not want to change any of the values, simply exit the editor. +# If you do want to change a value, simply edit, save, and exit the editor. +# The syntax for the file is as follows: +# KEY:TYPE=VALUE +# KEY is the name of a variable in the cache. +# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!. +# VALUE is the current value for the KEY. + +######################## +# EXTERNAL cache entries +######################## + +//Path to a program. +CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line + +//Path to a program. +CMAKE_AR:FILEPATH=/usr/bin/ar + +//No help, variable specified on the command line. +CMAKE_BUILD_TYPE:STRING=Debug + +//No help, variable specified on the command line. +CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/g++ + +//A wrapper around 'ar' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-10 + +//A wrapper around 'ranlib' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-10 + +//Flags used by the CXX compiler during all build types. +CMAKE_CXX_FLAGS:STRING= + +//Flags used by the CXX compiler during DEBUG builds. +CMAKE_CXX_FLAGS_DEBUG:STRING=-g + +//Flags used by the CXX compiler during MINSIZEREL builds. +CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the CXX compiler during RELEASE builds. +CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the CXX compiler during RELWITHDEBINFO builds. +CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//No help, variable specified on the command line. +CMAKE_C_COMPILER:FILEPATH=/usr/bin/gcc + +//A wrapper around 'ar' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_C_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-10 + +//A wrapper around 'ranlib' adding the appropriate '--plugin' option +// for the GCC compiler +CMAKE_C_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-10 + +//Flags used by the C compiler during all build types. +CMAKE_C_FLAGS:STRING= + +//Flags used by the C compiler during DEBUG builds. +CMAKE_C_FLAGS_DEBUG:STRING=-g + +//Flags used by the C compiler during MINSIZEREL builds. +CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG + +//Flags used by the C compiler during RELEASE builds. +CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG + +//Flags used by the C compiler during RELWITHDEBINFO builds. +CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG + +//Path to a program. +CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND + +//Flags used by the linker during all build types. +CMAKE_EXE_LINKER_FLAGS:STRING= + +//Flags used by the linker during DEBUG builds. +CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during MINSIZEREL builds. +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during RELEASE builds. +CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during RELWITHDEBINFO builds. +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//No help, variable specified on the command line. +CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE + +//Install path prefix, prepended onto install directories. +CMAKE_INSTALL_PREFIX:PATH=/usr/local + +//Path to a program. +CMAKE_LINKER:FILEPATH=/usr/bin/ld + +//Program used to build from build.ninja files. +CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/ninja + +//Flags used by the linker during the creation of modules during +// all build types. +CMAKE_MODULE_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of modules during +// DEBUG builds. +CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of modules during +// MINSIZEREL builds. +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of modules during +// RELEASE builds. +CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of modules during +// RELWITHDEBINFO builds. +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_NM:FILEPATH=/usr/bin/nm + +//Path to a program. +CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy + +//Path to a program. +CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump + +//Value Computed by CMake +CMAKE_PROJECT_DESCRIPTION:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_HOMEPAGE_URL:STATIC= + +//Value Computed by CMake +CMAKE_PROJECT_NAME:STATIC=HVA + +//Value Computed by CMake +CMAKE_PROJECT_VERSION:STATIC=0.1.0 + +//Value Computed by CMake +CMAKE_PROJECT_VERSION_MAJOR:STATIC=0 + +//Value Computed by CMake +CMAKE_PROJECT_VERSION_MINOR:STATIC=1 + +//Value Computed by CMake +CMAKE_PROJECT_VERSION_PATCH:STATIC=0 + +//Value Computed by CMake +CMAKE_PROJECT_VERSION_TWEAK:STATIC= + +//Path to a program. +CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib + +//Path to a program. +CMAKE_READELF:FILEPATH=/usr/bin/readelf + +//Flags used by the linker during the creation of shared libraries +// during all build types. +CMAKE_SHARED_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of shared libraries +// during DEBUG builds. +CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of shared libraries +// during MINSIZEREL builds. +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELEASE builds. +CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of shared libraries +// during RELWITHDEBINFO builds. +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//If set, runtime paths are not added when installing shared libraries, +// but are added when building. +CMAKE_SKIP_INSTALL_RPATH:BOOL=NO + +//If set, runtime paths are not added when using shared libraries. +CMAKE_SKIP_RPATH:BOOL=NO + +//Flags used by the linker during the creation of static libraries +// during all build types. +CMAKE_STATIC_LINKER_FLAGS:STRING= + +//Flags used by the linker during the creation of static libraries +// during DEBUG builds. +CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING= + +//Flags used by the linker during the creation of static libraries +// during MINSIZEREL builds. +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELEASE builds. +CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING= + +//Flags used by the linker during the creation of static libraries +// during RELWITHDEBINFO builds. +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING= + +//Path to a program. +CMAKE_STRIP:FILEPATH=/usr/bin/strip + +//If this value is on, makefiles will be generated without the +// .SILENT directive, and all commands will be echoed to the console +// during the make. This is useful for debugging only. With Visual +// Studio IDE projects all commands are done without /nologo. +CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE + +//Value Computed by CMake +HVA_BINARY_DIR:STATIC=/home/student/voice-assistant-test/build + +//Value Computed by CMake +HVA_SOURCE_DIR:STATIC=/home/student/voice-assistant-test + +//pkg-config executable +PKG_CONFIG_EXECUTABLE:FILEPATH=/usr/bin/pkg-config + +//Path to a library. +pkgcfg_lib_JANSSON_jansson:FILEPATH=/usr/lib/x86_64-linux-gnu/libjansson.so + +//Value Computed by CMake +snowboy_BINARY_DIR:STATIC=/home/student/voice-assistant-test/build/snowboy + +//Value Computed by CMake +snowboy_SOURCE_DIR:STATIC=/home/student/voice-assistant-test/snowboy + + +######################## +# INTERNAL cache entries +######################## + +//ADVANCED property for variable: CMAKE_ADDR2LINE +CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_AR +CMAKE_AR-ADVANCED:INTERNAL=1 +//This is the directory where this CMakeCache.txt was created +CMAKE_CACHEFILE_DIR:INTERNAL=/home/student/voice-assistant-test/build +//Major version of cmake used to create the current loaded cache +CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3 +//Minor version of cmake used to create the current loaded cache +CMAKE_CACHE_MINOR_VERSION:INTERNAL=18 +//Patch version of cmake used to create the current loaded cache +CMAKE_CACHE_PATCH_VERSION:INTERNAL=4 +//Path to CMake executable. +CMAKE_COMMAND:INTERNAL=/usr/bin/cmake +//Path to cpack program executable. +CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack +//Path to ctest program executable. +CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest +//ADVANCED property for variable: CMAKE_CXX_COMPILER +CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR +CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB +CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS +CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG +CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL +CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE +CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO +CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER +CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_AR +CMAKE_C_COMPILER_AR-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_COMPILER_RANLIB +CMAKE_C_COMPILER_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS +CMAKE_C_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG +CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL +CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE +CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO +CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_DLLTOOL +CMAKE_DLLTOOL-ADVANCED:INTERNAL=1 +//Executable file format +CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS +CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG +CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL +CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE +CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//Name of external makefile project generator. +CMAKE_EXTRA_GENERATOR:INTERNAL= +//Name of generator. +CMAKE_GENERATOR:INTERNAL=Ninja +//Generator instance identifier. +CMAKE_GENERATOR_INSTANCE:INTERNAL= +//Name of generator platform. +CMAKE_GENERATOR_PLATFORM:INTERNAL= +//Name of generator toolset. +CMAKE_GENERATOR_TOOLSET:INTERNAL= +//Source directory with the top level CMakeLists.txt file for this +// project +CMAKE_HOME_DIRECTORY:INTERNAL=/home/student/voice-assistant-test +//Install .so files without execute permission. +CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1 +//ADVANCED property for variable: CMAKE_LINKER +CMAKE_LINKER-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MAKE_PROGRAM +CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS +CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG +CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL +CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE +CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_NM +CMAKE_NM-ADVANCED:INTERNAL=1 +//number of local generators +CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=2 +//ADVANCED property for variable: CMAKE_OBJCOPY +CMAKE_OBJCOPY-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_OBJDUMP +CMAKE_OBJDUMP-ADVANCED:INTERNAL=1 +//Platform information initialized +CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_RANLIB +CMAKE_RANLIB-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_READELF +CMAKE_READELF-ADVANCED:INTERNAL=1 +//Path to CMake installation. +CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.18 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS +CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG +CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL +CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE +CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH +CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_SKIP_RPATH +CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS +CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG +CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL +CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE +CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO +CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1 +//ADVANCED property for variable: CMAKE_STRIP +CMAKE_STRIP-ADVANCED:INTERNAL=1 +//uname command +CMAKE_UNAME:INTERNAL=/usr/bin/uname +//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE +CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1 +//Details about finding PkgConfig +FIND_PACKAGE_MESSAGE_DETAILS_PkgConfig:INTERNAL=[/usr/bin/pkg-config][v0.29.2()] +JANSSON_CFLAGS:INTERNAL= +JANSSON_CFLAGS_I:INTERNAL= +JANSSON_CFLAGS_OTHER:INTERNAL= +JANSSON_FOUND:INTERNAL=1 +JANSSON_INCLUDEDIR:INTERNAL=/usr/include +JANSSON_INCLUDE_DIRS:INTERNAL= +JANSSON_LDFLAGS:INTERNAL=-ljansson +JANSSON_LDFLAGS_OTHER:INTERNAL= +JANSSON_LIBDIR:INTERNAL=/usr/lib/x86_64-linux-gnu +JANSSON_LIBRARIES:INTERNAL=jansson +JANSSON_LIBRARY_DIRS:INTERNAL= +JANSSON_LIBS:INTERNAL= +JANSSON_LIBS_L:INTERNAL= +JANSSON_LIBS_OTHER:INTERNAL= +JANSSON_LIBS_PATHS:INTERNAL= +JANSSON_MODULE_NAME:INTERNAL=jansson +JANSSON_PREFIX:INTERNAL=/usr +JANSSON_STATIC_CFLAGS:INTERNAL= +JANSSON_STATIC_CFLAGS_I:INTERNAL= +JANSSON_STATIC_CFLAGS_OTHER:INTERNAL= +JANSSON_STATIC_INCLUDE_DIRS:INTERNAL= +JANSSON_STATIC_LDFLAGS:INTERNAL=-ljansson +JANSSON_STATIC_LDFLAGS_OTHER:INTERNAL= +JANSSON_STATIC_LIBDIR:INTERNAL= +JANSSON_STATIC_LIBRARIES:INTERNAL=jansson +JANSSON_STATIC_LIBRARY_DIRS:INTERNAL= +JANSSON_STATIC_LIBS:INTERNAL= +JANSSON_STATIC_LIBS_L:INTERNAL= +JANSSON_STATIC_LIBS_OTHER:INTERNAL= +JANSSON_STATIC_LIBS_PATHS:INTERNAL= +JANSSON_VERSION:INTERNAL=2.13.1 +JANSSON_jansson_INCLUDEDIR:INTERNAL= +JANSSON_jansson_LIBDIR:INTERNAL= +JANSSON_jansson_PREFIX:INTERNAL= +JANSSON_jansson_VERSION:INTERNAL= +//ADVANCED property for variable: PKG_CONFIG_EXECUTABLE +PKG_CONFIG_EXECUTABLE-ADVANCED:INTERNAL=1 +__pkg_config_arguments_JANSSON:INTERNAL=REQUIRED;jansson +__pkg_config_checked_JANSSON:INTERNAL=1 +//ADVANCED property for variable: pkgcfg_lib_JANSSON_jansson +pkgcfg_lib_JANSSON_jansson-ADVANCED:INTERNAL=1 +prefix_result:INTERNAL=/usr/lib/x86_64-linux-gnu + diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeCCompiler.cmake" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeCCompiler.cmake" new file mode 100755 index 0000000000000000000000000000000000000000..e11b062ed00b9536b2461f2de84a1136774212f6 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeCCompiler.cmake" @@ -0,0 +1,77 @@ +set(CMAKE_C_COMPILER "/usr/bin/gcc") +set(CMAKE_C_COMPILER_ARG1 "") +set(CMAKE_C_COMPILER_ID "GNU") +set(CMAKE_C_COMPILER_VERSION "10.2.1") +set(CMAKE_C_COMPILER_VERSION_INTERNAL "") +set(CMAKE_C_COMPILER_WRAPPER "") +set(CMAKE_C_STANDARD_COMPUTED_DEFAULT "11") +set(CMAKE_C_COMPILE_FEATURES "c_std_90;c_function_prototypes;c_std_99;c_restrict;c_variadic_macros;c_std_11;c_static_assert") +set(CMAKE_C90_COMPILE_FEATURES "c_std_90;c_function_prototypes") +set(CMAKE_C99_COMPILE_FEATURES "c_std_99;c_restrict;c_variadic_macros") +set(CMAKE_C11_COMPILE_FEATURES "c_std_11;c_static_assert") + +set(CMAKE_C_PLATFORM_ID "Linux") +set(CMAKE_C_SIMULATE_ID "") +set(CMAKE_C_COMPILER_FRONTEND_VARIANT "") +set(CMAKE_C_SIMULATE_VERSION "") + + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_C_COMPILER_AR "/usr/bin/gcc-ar-10") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_C_COMPILER_RANLIB "/usr/bin/gcc-ranlib-10") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCC 1) +set(CMAKE_C_COMPILER_LOADED 1) +set(CMAKE_C_COMPILER_WORKS TRUE) +set(CMAKE_C_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_C_COMPILER_ENV_VAR "CC") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_C_COMPILER_ID_RUN 1) +set(CMAKE_C_SOURCE_FILE_EXTENSIONS c;m) +set(CMAKE_C_IGNORE_EXTENSIONS h;H;o;O;obj;OBJ;def;DEF;rc;RC) +set(CMAKE_C_LINKER_PREFERENCE 10) + +# Save compiler ABI information. +set(CMAKE_C_SIZEOF_DATA_PTR "8") +set(CMAKE_C_COMPILER_ABI "ELF") +set(CMAKE_C_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") + +if(CMAKE_C_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_C_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_C_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_C_COMPILER_ABI}") +endif() + +if(CMAKE_C_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") +endif() + +set(CMAKE_C_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_C_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_C_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/10/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include") +set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "gcc;gcc_s;c;gcc;gcc_s") +set(CMAKE_C_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/10;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") +set(CMAKE_C_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeCXXCompiler.cmake" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeCXXCompiler.cmake" new file mode 100755 index 0000000000000000000000000000000000000000..ef1dbda44763ee15db14d0a9b85b469ebf658e43 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeCXXCompiler.cmake" @@ -0,0 +1,89 @@ +set(CMAKE_CXX_COMPILER "/usr/bin/g++") +set(CMAKE_CXX_COMPILER_ARG1 "") +set(CMAKE_CXX_COMPILER_ID "GNU") +set(CMAKE_CXX_COMPILER_VERSION "10.2.1") +set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "") +set(CMAKE_CXX_COMPILER_WRAPPER "") +set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "14") +set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20") +set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters") +set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates") +set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates") +set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17") +set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20") + +set(CMAKE_CXX_PLATFORM_ID "Linux") +set(CMAKE_CXX_SIMULATE_ID "") +set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "") +set(CMAKE_CXX_SIMULATE_VERSION "") + + + + +set(CMAKE_AR "/usr/bin/ar") +set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-10") +set(CMAKE_RANLIB "/usr/bin/ranlib") +set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-10") +set(CMAKE_LINKER "/usr/bin/ld") +set(CMAKE_MT "") +set(CMAKE_COMPILER_IS_GNUCXX 1) +set(CMAKE_CXX_COMPILER_LOADED 1) +set(CMAKE_CXX_COMPILER_WORKS TRUE) +set(CMAKE_CXX_ABI_COMPILED TRUE) +set(CMAKE_COMPILER_IS_MINGW ) +set(CMAKE_COMPILER_IS_CYGWIN ) +if(CMAKE_COMPILER_IS_CYGWIN) + set(CYGWIN 1) + set(UNIX 1) +endif() + +set(CMAKE_CXX_COMPILER_ENV_VAR "CXX") + +if(CMAKE_COMPILER_IS_MINGW) + set(MINGW 1) +endif() +set(CMAKE_CXX_COMPILER_ID_RUN 1) +set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;CPP) +set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC) + +foreach (lang C OBJC OBJCXX) + if (CMAKE_${lang}_COMPILER_ID_RUN) + foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS) + list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension}) + endforeach() + endif() +endforeach() + +set(CMAKE_CXX_LINKER_PREFERENCE 30) +set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1) + +# Save compiler ABI information. +set(CMAKE_CXX_SIZEOF_DATA_PTR "8") +set(CMAKE_CXX_COMPILER_ABI "ELF") +set(CMAKE_CXX_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") + +if(CMAKE_CXX_SIZEOF_DATA_PTR) + set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}") +endif() + +if(CMAKE_CXX_COMPILER_ABI) + set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}") +endif() + +if(CMAKE_CXX_LIBRARY_ARCHITECTURE) + set(CMAKE_LIBRARY_ARCHITECTURE "x86_64-linux-gnu") +endif() + +set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "") +if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX) + set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}") +endif() + + + + + +set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/10;/usr/include/x86_64-linux-gnu/c++/10;/usr/include/c++/10/backward;/usr/lib/gcc/x86_64-linux-gnu/10/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include") +set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc") +set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/x86_64-linux-gnu/10;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib") +set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "") diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeDetermineCompilerABI_C.bin" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeDetermineCompilerABI_C.bin" new file mode 100755 index 0000000000000000000000000000000000000000..93865014e7e30ec348d59296989de7a207c597c8 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeDetermineCompilerABI_C.bin" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeDetermineCompilerABI_CXX.bin" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeDetermineCompilerABI_CXX.bin" new file mode 100755 index 0000000000000000000000000000000000000000..1160b1d08baae5c69497388e4c8f9efa161fe929 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeDetermineCompilerABI_CXX.bin" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeSystem.cmake" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeSystem.cmake" new file mode 100755 index 0000000000000000000000000000000000000000..e67f09f18e3d948695e133440d6bbf3421d74d57 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CMakeSystem.cmake" @@ -0,0 +1,15 @@ +set(CMAKE_HOST_SYSTEM "Linux-5.10.0-28-amd64") +set(CMAKE_HOST_SYSTEM_NAME "Linux") +set(CMAKE_HOST_SYSTEM_VERSION "5.10.0-28-amd64") +set(CMAKE_HOST_SYSTEM_PROCESSOR "x86_64") + + + +set(CMAKE_SYSTEM "Linux-5.10.0-28-amd64") +set(CMAKE_SYSTEM_NAME "Linux") +set(CMAKE_SYSTEM_VERSION "5.10.0-28-amd64") +set(CMAKE_SYSTEM_PROCESSOR "x86_64") + +set(CMAKE_CROSSCOMPILING "FALSE") + +set(CMAKE_SYSTEM_LOADED 1) diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c" new file mode 100755 index 0000000000000000000000000000000000000000..6c0aa93cbf999e147e404f458b0bf1737a0b74a9 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdC/CMakeCCompilerId.c" @@ -0,0 +1,674 @@ +#ifdef __cplusplus +# error "A C++ compiler has been selected for C." +#endif + +#if defined(__18CXX) +# define ID_VOID_MAIN +#endif +#if defined(__CLASSIC_C__) +/* cv-qualifiers did not exist in K&R C */ +# define const +# define volatile +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_C) +# define COMPILER_ID "SunPro" +# if __SUNPRO_C >= 0x5100 + /* __SUNPRO_C = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_C>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_C>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_C & 0xF) +# endif + +#elif defined(__HP_cc) +# define COMPILER_ID "HP" + /* __HP_cc = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_cc/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_cc/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_cc % 100) + +#elif defined(__DECC) +# define COMPILER_ID "Compaq" + /* __DECC_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECC_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECC_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECC_VER % 10000) + +#elif defined(__IBMC__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ >= 800 +# define COMPILER_ID "XL" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__IBMC__) && !defined(__COMPILER_VER__) && __IBMC__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMC__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMC__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMC__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMC__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__TINYC__) +# define COMPILER_ID "TinyCC" + +#elif defined(__BCC__) +# define COMPILER_ID "Bruce" + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) +# define COMPILER_ID "GNU" +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + +#elif defined(__SDCC_VERSION_MAJOR) || defined(SDCC) +# define COMPILER_ID "SDCC" +# if defined(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MAJOR DEC(__SDCC_VERSION_MAJOR) +# define COMPILER_VERSION_MINOR DEC(__SDCC_VERSION_MINOR) +# define COMPILER_VERSION_PATCH DEC(__SDCC_VERSION_PATCH) +# else + /* SDCC = VRP */ +# define COMPILER_VERSION_MAJOR DEC(SDCC/100) +# define COMPILER_VERSION_MINOR DEC(SDCC/10 % 10) +# define COMPILER_VERSION_PATCH DEC(SDCC % 10) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# elif defined(__VXWORKS__) +# define PLATFORM_ID "VxWorks" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if !defined(__STDC__) +# if (defined(_MSC_VER) && !defined(__clang__)) \ + || (defined(__ibmxl__) || defined(__IBMC__)) +# define C_DIALECT "90" +# else +# define C_DIALECT +# endif +#elif __STDC_VERSION__ >= 201000L +# define C_DIALECT "11" +#elif __STDC_VERSION__ >= 199901L +# define C_DIALECT "99" +#else +# define C_DIALECT "90" +#endif +const char* info_language_dialect_default = + "INFO" ":" "dialect_default[" C_DIALECT "]"; + +/*--------------------------------------------------------------------------*/ + +#ifdef ID_VOID_MAIN +void main() {} +#else +# if defined(__CLASSIC_C__) +int main(argc, argv) int argc; char *argv[]; +# else +int main(int argc, char* argv[]) +# endif +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; + require += info_arch[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} +#endif diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdC/a.out" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdC/a.out" new file mode 100755 index 0000000000000000000000000000000000000000..dec38b4bbc1c18fb1e0b97a9f50584a9cf170595 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdC/a.out" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp" new file mode 100755 index 0000000000000000000000000000000000000000..37c21cafe9ebd14aa80977e3773c5a2ef75d0972 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdCXX/CMakeCXXCompilerId.cpp" @@ -0,0 +1,663 @@ +/* This source file must have a .cpp extension so that all C++ compilers + recognize the extension without flags. Borland does not know .cxx for + example. */ +#ifndef __cplusplus +# error "A C compiler has been selected for C++." +#endif + + +/* Version number components: V=Version, R=Revision, P=Patch + Version date components: YYYY=Year, MM=Month, DD=Day */ + +#if defined(__COMO__) +# define COMPILER_ID "Comeau" + /* __COMO_VERSION__ = VRR */ +# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100) +# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100) + +#elif defined(__INTEL_COMPILER) || defined(__ICC) +# define COMPILER_ID "Intel" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# if defined(__GNUC__) +# define SIMULATE_ID "GNU" +# endif + /* __INTEL_COMPILER = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100) +# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10) +# if defined(__INTEL_COMPILER_UPDATE) +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE) +# else +# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10) +# endif +# if defined(__INTEL_COMPILER_BUILD_DATE) + /* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */ +# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE) +# endif +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# if defined(__GNUC__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUC__) +# elif defined(__GNUG__) +# define SIMULATE_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(__PATHCC__) +# define COMPILER_ID "PathScale" +# define COMPILER_VERSION_MAJOR DEC(__PATHCC__) +# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__) +# if defined(__PATHCC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__) +# endif + +#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__) +# define COMPILER_ID "Embarcadero" +# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF) +# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF) +# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF) + +#elif defined(__BORLANDC__) +# define COMPILER_ID "Borland" + /* __BORLANDC__ = 0xVRR */ +# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8) +# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF) + +#elif defined(__WATCOMC__) && __WATCOMC__ < 1200 +# define COMPILER_ID "Watcom" + /* __WATCOMC__ = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__WATCOMC__) +# define COMPILER_ID "OpenWatcom" + /* __WATCOMC__ = VVRP + 1100 */ +# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100) +# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10) +# if (__WATCOMC__ % 10) > 0 +# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10) +# endif + +#elif defined(__SUNPRO_CC) +# define COMPILER_ID "SunPro" +# if __SUNPRO_CC >= 0x5100 + /* __SUNPRO_CC = 0xVRRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# else + /* __SUNPRO_CC = 0xVRP */ +# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8) +# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF) +# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF) +# endif + +#elif defined(__HP_aCC) +# define COMPILER_ID "HP" + /* __HP_aCC = VVRRPP */ +# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000) +# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100) +# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100) + +#elif defined(__DECCXX) +# define COMPILER_ID "Compaq" + /* __DECCXX_VER = VVRRTPPPP */ +# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000) +# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100) +# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000) + +#elif defined(__IBMCPP__) && defined(__COMPILER_VER__) +# define COMPILER_ID "zOS" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__ibmxl__) && defined(__clang__) +# define COMPILER_ID "XLClang" +# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__) +# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__) +# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__) +# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__) + + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800 +# define COMPILER_ID "XL" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800 +# define COMPILER_ID "VisualAge" + /* __IBMCPP__ = VRP */ +# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100) +# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10) +# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10) + +#elif defined(__PGI) +# define COMPILER_ID "PGI" +# define COMPILER_VERSION_MAJOR DEC(__PGIC__) +# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__) +# if defined(__PGIC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__) +# endif + +#elif defined(_CRAYC) +# define COMPILER_ID "Cray" +# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR) +# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR) + +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI" + /* __TI_COMPILER_VERSION__ = VVVRRRPPP */ +# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000) +# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000) +# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000) + +#elif defined(__FUJITSU) || defined(__FCC_VERSION) || defined(__fcc_version) +# define COMPILER_ID "Fujitsu" + +#elif defined(__ghs__) +# define COMPILER_ID "GHS" +/* __GHS_VERSION_NUMBER = VVVVRP */ +# ifdef __GHS_VERSION_NUMBER +# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100) +# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10) +# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10) +# endif + +#elif defined(__SCO_VERSION__) +# define COMPILER_ID "SCO" + +#elif defined(__ARMCC_VERSION) && !defined(__clang__) +# define COMPILER_ID "ARMCC" +#if __ARMCC_VERSION >= 1000000 + /* __ARMCC_VERSION = VRRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#else + /* __ARMCC_VERSION = VRPPPP */ + # define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000) + # define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10) + # define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000) +#endif + + +#elif defined(__clang__) && defined(__apple_build_version__) +# define COMPILER_ID "AppleClang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif +# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__) + +#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION) +# define COMPILER_ID "ARMClang" + # define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000) + # define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100) + # define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000) +# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION) + +#elif defined(__clang__) +# define COMPILER_ID "Clang" +# if defined(_MSC_VER) +# define SIMULATE_ID "MSVC" +# endif +# define COMPILER_VERSION_MAJOR DEC(__clang_major__) +# define COMPILER_VERSION_MINOR DEC(__clang_minor__) +# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__) +# if defined(_MSC_VER) + /* _MSC_VER = VVRR */ +# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100) +# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100) +# endif + +#elif defined(__GNUC__) || defined(__GNUG__) +# define COMPILER_ID "GNU" +# if defined(__GNUC__) +# define COMPILER_VERSION_MAJOR DEC(__GNUC__) +# else +# define COMPILER_VERSION_MAJOR DEC(__GNUG__) +# endif +# if defined(__GNUC_MINOR__) +# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__) +# endif +# if defined(__GNUC_PATCHLEVEL__) +# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__) +# endif + +#elif defined(_MSC_VER) +# define COMPILER_ID "MSVC" + /* _MSC_VER = VVRR */ +# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100) +# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100) +# if defined(_MSC_FULL_VER) +# if _MSC_VER >= 1400 + /* _MSC_FULL_VER = VVRRPPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000) +# else + /* _MSC_FULL_VER = VVRRPPPP */ +# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000) +# endif +# endif +# if defined(_MSC_BUILD) +# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD) +# endif + +#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__) +# define COMPILER_ID "ADSP" +#if defined(__VISUALDSPVERSION__) + /* __VISUALDSPVERSION__ = 0xVVRRPP00 */ +# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24) +# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF) +# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF) +#endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# define COMPILER_ID "IAR" +# if defined(__VER__) && defined(__ICCARM__) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000) +# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000) +# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__)) +# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100) +# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100)) +# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__) +# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__) +# endif + + +/* These compilers are either not known or too old to define an + identification macro. Try to identify the platform and guess that + it is the native compiler. */ +#elif defined(__hpux) || defined(__hpua) +# define COMPILER_ID "HP" + +#else /* unknown compiler */ +# define COMPILER_ID "" +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]"; +#ifdef SIMULATE_ID +char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]"; +#endif + +#ifdef __QNXNTO__ +char const* qnxnto = "INFO" ":" "qnxnto[]"; +#endif + +#if defined(__CRAYXE) || defined(__CRAYXC) +char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]"; +#endif + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +/* Identify known platforms by name. */ +#if defined(__linux) || defined(__linux__) || defined(linux) +# define PLATFORM_ID "Linux" + +#elif defined(__CYGWIN__) +# define PLATFORM_ID "Cygwin" + +#elif defined(__MINGW32__) +# define PLATFORM_ID "MinGW" + +#elif defined(__APPLE__) +# define PLATFORM_ID "Darwin" + +#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32) +# define PLATFORM_ID "Windows" + +#elif defined(__FreeBSD__) || defined(__FreeBSD) +# define PLATFORM_ID "FreeBSD" + +#elif defined(__NetBSD__) || defined(__NetBSD) +# define PLATFORM_ID "NetBSD" + +#elif defined(__OpenBSD__) || defined(__OPENBSD) +# define PLATFORM_ID "OpenBSD" + +#elif defined(__sun) || defined(sun) +# define PLATFORM_ID "SunOS" + +#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__) +# define PLATFORM_ID "AIX" + +#elif defined(__hpux) || defined(__hpux__) +# define PLATFORM_ID "HP-UX" + +#elif defined(__HAIKU__) +# define PLATFORM_ID "Haiku" + +#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS) +# define PLATFORM_ID "BeOS" + +#elif defined(__QNX__) || defined(__QNXNTO__) +# define PLATFORM_ID "QNX" + +#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__) +# define PLATFORM_ID "Tru64" + +#elif defined(__riscos) || defined(__riscos__) +# define PLATFORM_ID "RISCos" + +#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__) +# define PLATFORM_ID "SINIX" + +#elif defined(__UNIX_SV__) +# define PLATFORM_ID "UNIX_SV" + +#elif defined(__bsdos__) +# define PLATFORM_ID "BSDOS" + +#elif defined(_MPRAS) || defined(MPRAS) +# define PLATFORM_ID "MP-RAS" + +#elif defined(__osf) || defined(__osf__) +# define PLATFORM_ID "OSF1" + +#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv) +# define PLATFORM_ID "SCO_SV" + +#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX) +# define PLATFORM_ID "ULTRIX" + +#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX) +# define PLATFORM_ID "Xenix" + +#elif defined(__WATCOMC__) +# if defined(__LINUX__) +# define PLATFORM_ID "Linux" + +# elif defined(__DOS__) +# define PLATFORM_ID "DOS" + +# elif defined(__OS2__) +# define PLATFORM_ID "OS2" + +# elif defined(__WINDOWS__) +# define PLATFORM_ID "Windows3x" + +# elif defined(__VXWORKS__) +# define PLATFORM_ID "VxWorks" + +# else /* unknown platform */ +# define PLATFORM_ID +# endif + +#elif defined(__INTEGRITY) +# if defined(INT_178B) +# define PLATFORM_ID "Integrity178" + +# else /* regular Integrity */ +# define PLATFORM_ID "Integrity" +# endif + +#else /* unknown platform */ +# define PLATFORM_ID + +#endif + +/* For windows compilers MSVC and Intel we can determine + the architecture of the compiler being used. This is because + the compilers do not have flags that can change the architecture, + but rather depend on which compiler is being used +*/ +#if defined(_WIN32) && defined(_MSC_VER) +# if defined(_M_IA64) +# define ARCHITECTURE_ID "IA64" + +# elif defined(_M_X64) || defined(_M_AMD64) +# define ARCHITECTURE_ID "x64" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# elif defined(_M_ARM64) +# define ARCHITECTURE_ID "ARM64" + +# elif defined(_M_ARM) +# if _M_ARM == 4 +# define ARCHITECTURE_ID "ARMV4I" +# elif _M_ARM == 5 +# define ARCHITECTURE_ID "ARMV5I" +# else +# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM) +# endif + +# elif defined(_M_MIPS) +# define ARCHITECTURE_ID "MIPS" + +# elif defined(_M_SH) +# define ARCHITECTURE_ID "SHx" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__WATCOMC__) +# if defined(_M_I86) +# define ARCHITECTURE_ID "I86" + +# elif defined(_M_IX86) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC) +# if defined(__ICCARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__ICCRX__) +# define ARCHITECTURE_ID "RX" + +# elif defined(__ICCRH850__) +# define ARCHITECTURE_ID "RH850" + +# elif defined(__ICCRL78__) +# define ARCHITECTURE_ID "RL78" + +# elif defined(__ICCRISCV__) +# define ARCHITECTURE_ID "RISCV" + +# elif defined(__ICCAVR__) +# define ARCHITECTURE_ID "AVR" + +# elif defined(__ICC430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__ICCV850__) +# define ARCHITECTURE_ID "V850" + +# elif defined(__ICC8051__) +# define ARCHITECTURE_ID "8051" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + +#elif defined(__ghs__) +# if defined(__PPC64__) +# define ARCHITECTURE_ID "PPC64" + +# elif defined(__ppc__) +# define ARCHITECTURE_ID "PPC" + +# elif defined(__ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__x86_64__) +# define ARCHITECTURE_ID "x64" + +# elif defined(__i386__) +# define ARCHITECTURE_ID "X86" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif +#else +# define ARCHITECTURE_ID +#endif + +/* Convert integer to decimal digit literals. */ +#define DEC(n) \ + ('0' + (((n) / 10000000)%10)), \ + ('0' + (((n) / 1000000)%10)), \ + ('0' + (((n) / 100000)%10)), \ + ('0' + (((n) / 10000)%10)), \ + ('0' + (((n) / 1000)%10)), \ + ('0' + (((n) / 100)%10)), \ + ('0' + (((n) / 10)%10)), \ + ('0' + ((n) % 10)) + +/* Convert integer to hex digit literals. */ +#define HEX(n) \ + ('0' + ((n)>>28 & 0xF)), \ + ('0' + ((n)>>24 & 0xF)), \ + ('0' + ((n)>>20 & 0xF)), \ + ('0' + ((n)>>16 & 0xF)), \ + ('0' + ((n)>>12 & 0xF)), \ + ('0' + ((n)>>8 & 0xF)), \ + ('0' + ((n)>>4 & 0xF)), \ + ('0' + ((n) & 0xF)) + +/* Construct a string literal encoding the version number components. */ +#ifdef COMPILER_VERSION_MAJOR +char const info_version[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[', + COMPILER_VERSION_MAJOR, +# ifdef COMPILER_VERSION_MINOR + '.', COMPILER_VERSION_MINOR, +# ifdef COMPILER_VERSION_PATCH + '.', COMPILER_VERSION_PATCH, +# ifdef COMPILER_VERSION_TWEAK + '.', COMPILER_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct a string literal encoding the internal version number. */ +#ifdef COMPILER_VERSION_INTERNAL +char const info_version_internal[] = { + 'I', 'N', 'F', 'O', ':', + 'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_', + 'i','n','t','e','r','n','a','l','[', + COMPILER_VERSION_INTERNAL,']','\0'}; +#endif + +/* Construct a string literal encoding the version number components. */ +#ifdef SIMULATE_VERSION_MAJOR +char const info_simulate_version[] = { + 'I', 'N', 'F', 'O', ':', + 's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[', + SIMULATE_VERSION_MAJOR, +# ifdef SIMULATE_VERSION_MINOR + '.', SIMULATE_VERSION_MINOR, +# ifdef SIMULATE_VERSION_PATCH + '.', SIMULATE_VERSION_PATCH, +# ifdef SIMULATE_VERSION_TWEAK + '.', SIMULATE_VERSION_TWEAK, +# endif +# endif +# endif + ']','\0'}; +#endif + +/* Construct the string literal in pieces to prevent the source from + getting matched. Store it in a pointer rather than an array + because some compilers will just produce instructions to fill the + array rather than assigning a pointer to a static array. */ +char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; +char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; + + + + +#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L +# if defined(__INTEL_CXX11_MODE__) +# if defined(__cpp_aggregate_nsdmi) +# define CXX_STD 201402L +# else +# define CXX_STD 201103L +# endif +# else +# define CXX_STD 199711L +# endif +#elif defined(_MSC_VER) && defined(_MSVC_LANG) +# define CXX_STD _MSVC_LANG +#else +# define CXX_STD __cplusplus +#endif + +const char* info_language_dialect_default = "INFO" ":" "dialect_default[" +#if CXX_STD > 201703L + "20" +#elif CXX_STD >= 201703L + "17" +#elif CXX_STD >= 201402L + "14" +#elif CXX_STD >= 201103L + "11" +#else + "98" +#endif +"]"; + +/*--------------------------------------------------------------------------*/ + +int main(int argc, char* argv[]) +{ + int require = 0; + require += info_compiler[argc]; + require += info_platform[argc]; +#ifdef COMPILER_VERSION_MAJOR + require += info_version[argc]; +#endif +#ifdef COMPILER_VERSION_INTERNAL + require += info_version_internal[argc]; +#endif +#ifdef SIMULATE_ID + require += info_simulate[argc]; +#endif +#ifdef SIMULATE_VERSION_MAJOR + require += info_simulate_version[argc]; +#endif +#if defined(__CRAYXE) || defined(__CRAYXC) + require += info_cray[argc]; +#endif + require += info_language_dialect_default[argc]; + (void)argv; + return require; +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdCXX/a.out" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdCXX/a.out" new file mode 100755 index 0000000000000000000000000000000000000000..5bf5face8e8ca8200b8bb7dfca3579f9f42e48ef Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/3.18.4/CompilerIdCXX/a.out" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/CMakeOutput.log" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/CMakeOutput.log" new file mode 100755 index 0000000000000000000000000000000000000000..58717fe0028ae2129d21219f4c7df59df4f62b77 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/CMakeOutput.log" @@ -0,0 +1,417 @@ +The system is: Linux - 5.10.0-28-amd64 - x86_64 +Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. +Compiler: /usr/bin/gcc +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out" + +The C compiler identification is GNU, found in "/home/student/voice-assistant-test/build/CMakeFiles/3.18.4/CompilerIdC/a.out" + +Detecting C compiler ABI info compiled with the following output: +Change Dir: /home/student/voice-assistant-test/build/CMakeFiles/CMakeTmp + +Run Build Command(s):/usr/bin/ninja cmTC_cdfe9 && [1/2] Building C object CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o +Using built-in specs. +COLLECT_GCC=/usr/bin/gcc +OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex +Thread model: posix +Supported LTO compression algorithms: zlib zstd +gcc version 10.2.1 20210110 (Debian 10.2.1-6) +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/10/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/share/cmake-3.18/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o -version -fasynchronous-unwind-tables -o /tmp/ccPnKJ8c.s +GNU C17 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu) + compiled by GNU C version 10.2.1 20210110, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP + +GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 +ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/include-fixed" +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" +#include "..." search starts here: +#include <...> search starts here: + /usr/lib/gcc/x86_64-linux-gnu/10/include + /usr/local/include + /usr/include/x86_64-linux-gnu + /usr/include +End of search list. +GNU C17 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu) + compiled by GNU C version 10.2.1 20210110, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP + +GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 +Compiler executable checksum: 1f803793fa2e3418c492b25e7d3eac2f +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' + as -v --64 -o CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o /tmp/ccPnKJ8c.s +GNU assembler version 2.35.2 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.35.2 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64' +[2/2] Linking C executable cmTC_cdfe9 +Using built-in specs. +COLLECT_GCC=/usr/bin/gcc +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex +Thread model: posix +Supported LTO compression algorithms: zlib zstd +gcc version 10.2.1 20210110 (Debian 10.2.1-6) +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cdfe9' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/10/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper -plugin-opt=-fresolution=/tmp/cck6Pp1u.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_cdfe9 /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/10 -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/10/../../.. CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cdfe9' '-mtune=generic' '-march=x86-64' + + + +Parsed C implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/usr/lib/gcc/x86_64-linux-gnu/10/include] + add: [/usr/local/include] + add: [/usr/include/x86_64-linux-gnu] + add: [/usr/include] + end of search list found + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/10/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/10/include] + collapse include dir [/usr/local/include] ==> [/usr/local/include] + collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] + collapse include dir [/usr/include] ==> [/usr/include] + implicit include dirs: [/usr/lib/gcc/x86_64-linux-gnu/10/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include] + + +Parsed C implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/student/voice-assistant-test/build/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/usr/bin/ninja cmTC_cdfe9 && [1/2] Building C object CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/gcc] + ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa] + ignore line: [OFFLOAD_TARGET_DEFAULT=1] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] + ignore line: [Thread model: posix] + ignore line: [Supported LTO compression algorithms: zlib zstd] + ignore line: [gcc version 10.2.1 20210110 (Debian 10.2.1-6) ] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/10/cc1 -quiet -v -imultiarch x86_64-linux-gnu /usr/share/cmake-3.18/Modules/CMakeCCompilerABI.c -quiet -dumpbase CMakeCCompilerABI.c -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o -version -fasynchronous-unwind-tables -o /tmp/ccPnKJ8c.s] + ignore line: [GNU C17 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu)] + ignore line: [ compiled by GNU C version 10.2.1 20210110 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.0 isl version isl-0.23-GMP] + ignore line: [] + ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] + ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/include-fixed"] + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include"] + ignore line: [#include "..." search starts here:] + ignore line: [#include <...> search starts here:] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/10/include] + ignore line: [ /usr/local/include] + ignore line: [ /usr/include/x86_64-linux-gnu] + ignore line: [ /usr/include] + ignore line: [End of search list.] + ignore line: [GNU C17 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu)] + ignore line: [ compiled by GNU C version 10.2.1 20210110 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.0 isl version isl-0.23-GMP] + ignore line: [] + ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] + ignore line: [Compiler executable checksum: 1f803793fa2e3418c492b25e7d3eac2f] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] + ignore line: [ as -v --64 -o CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o /tmp/ccPnKJ8c.s] + ignore line: [GNU assembler version 2.35.2 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.35.2] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o' '-c' '-mtune=generic' '-march=x86-64'] + ignore line: [[2/2] Linking C executable cmTC_cdfe9] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/gcc] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper] + ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa] + ignore line: [OFFLOAD_TARGET_DEFAULT=1] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] + ignore line: [Thread model: posix] + ignore line: [Supported LTO compression algorithms: zlib zstd] + ignore line: [gcc version 10.2.1 20210110 (Debian 10.2.1-6) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_cdfe9' '-mtune=generic' '-march=x86-64'] + link line: [ /usr/lib/gcc/x86_64-linux-gnu/10/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper -plugin-opt=-fresolution=/tmp/cck6Pp1u.res -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lgcc_s --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_cdfe9 /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/10 -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/10/../../.. CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o -lgcc --push-state --as-needed -lgcc_s --pop-state -lc -lgcc --push-state --as-needed -lgcc_s --pop-state /usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/10/collect2] ==> ignore + arg [-plugin] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so] ==> ignore + arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper] ==> ignore + arg [-plugin-opt=-fresolution=/tmp/cck6Pp1u.res] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-pie] ==> ignore + arg [-o] ==> ignore + arg [cmTC_cdfe9] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o] ==> ignore + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib] + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../..] + arg [CMakeFiles/cmTC_cdfe9.dir/CMakeCCompilerABI.c.o] ==> ignore + arg [-lgcc] ==> lib [gcc] + arg [--push-state] ==> ignore + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--pop-state] ==> ignore + arg [-lc] ==> lib [c] + arg [-lgcc] ==> lib [gcc] + arg [--push-state] ==> ignore + arg [--as-needed] ==> ignore + arg [-lgcc_s] ==> lib [gcc_s] + arg [--pop-state] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o] ==> ignore + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10] ==> [/usr/lib/gcc/x86_64-linux-gnu/10] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../..] ==> [/usr/lib] + implicit libs: [gcc;gcc_s;c;gcc;gcc_s] + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/10;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] + implicit fwks: [] + + +Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. +Compiler: /usr/bin/g++ +Build flags: +Id flags: + +The output was: +0 + + +Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out" + +The CXX compiler identification is GNU, found in "/home/student/voice-assistant-test/build/CMakeFiles/3.18.4/CompilerIdCXX/a.out" + +Detecting CXX compiler ABI info compiled with the following output: +Change Dir: /home/student/voice-assistant-test/build/CMakeFiles/CMakeTmp + +Run Build Command(s):/usr/bin/ninja cmTC_1753a && [1/2] Building CXX object CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o +Using built-in specs. +COLLECT_GCC=/usr/bin/g++ +OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex +Thread model: posix +Supported LTO compression algorithms: zlib zstd +gcc version 10.2.1 20210110 (Debian 10.2.1-6) +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/10/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.18/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o -version -fasynchronous-unwind-tables -o /tmp/cc69yxJG.s +GNU C++14 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu) + compiled by GNU C version 10.2.1 20210110, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP + +GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 +ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/10" +ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu" +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/include-fixed" +ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include" +#include "..." search starts here: +#include <...> search starts here: + /usr/include/c++/10 + /usr/include/x86_64-linux-gnu/c++/10 + /usr/include/c++/10/backward + /usr/lib/gcc/x86_64-linux-gnu/10/include + /usr/local/include + /usr/include/x86_64-linux-gnu + /usr/include +End of search list. +GNU C++14 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu) + compiled by GNU C version 10.2.1 20210110, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.0, isl version isl-0.23-GMP + +GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 +Compiler executable checksum: 048fcaee3460a99eb0d68522358720e1 +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' + as -v --64 -o CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o /tmp/cc69yxJG.s +GNU assembler version 2.35.2 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.35.2 +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64' +[2/2] Linking CXX executable cmTC_1753a +Using built-in specs. +COLLECT_GCC=/usr/bin/g++ +COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper +OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa +OFFLOAD_TARGET_DEFAULT=1 +Target: x86_64-linux-gnu +Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex +Thread model: posix +Supported LTO compression algorithms: zlib zstd +gcc version 10.2.1 20210110 (Debian 10.2.1-6) +COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/ +LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/ +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_1753a' '-shared-libgcc' '-mtune=generic' '-march=x86-64' + /usr/lib/gcc/x86_64-linux-gnu/10/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper -plugin-opt=-fresolution=/tmp/ccFO1xF0.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_1753a /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/10 -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/10/../../.. CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o +COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_1753a' '-shared-libgcc' '-mtune=generic' '-march=x86-64' + + + +Parsed CXX implicit include dir info from above output: rv=done + found start of include info + found start of implicit include info + add: [/usr/include/c++/10] + add: [/usr/include/x86_64-linux-gnu/c++/10] + add: [/usr/include/c++/10/backward] + add: [/usr/lib/gcc/x86_64-linux-gnu/10/include] + add: [/usr/local/include] + add: [/usr/include/x86_64-linux-gnu] + add: [/usr/include] + end of search list found + collapse include dir [/usr/include/c++/10] ==> [/usr/include/c++/10] + collapse include dir [/usr/include/x86_64-linux-gnu/c++/10] ==> [/usr/include/x86_64-linux-gnu/c++/10] + collapse include dir [/usr/include/c++/10/backward] ==> [/usr/include/c++/10/backward] + collapse include dir [/usr/lib/gcc/x86_64-linux-gnu/10/include] ==> [/usr/lib/gcc/x86_64-linux-gnu/10/include] + collapse include dir [/usr/local/include] ==> [/usr/local/include] + collapse include dir [/usr/include/x86_64-linux-gnu] ==> [/usr/include/x86_64-linux-gnu] + collapse include dir [/usr/include] ==> [/usr/include] + implicit include dirs: [/usr/include/c++/10;/usr/include/x86_64-linux-gnu/c++/10;/usr/include/c++/10/backward;/usr/lib/gcc/x86_64-linux-gnu/10/include;/usr/local/include;/usr/include/x86_64-linux-gnu;/usr/include] + + +Parsed CXX implicit link information from above output: + link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)] + ignore line: [Change Dir: /home/student/voice-assistant-test/build/CMakeFiles/CMakeTmp] + ignore line: [] + ignore line: [Run Build Command(s):/usr/bin/ninja cmTC_1753a && [1/2] Building CXX object CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/g++] + ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa] + ignore line: [OFFLOAD_TARGET_DEFAULT=1] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] + ignore line: [Thread model: posix] + ignore line: [Supported LTO compression algorithms: zlib zstd] + ignore line: [gcc version 10.2.1 20210110 (Debian 10.2.1-6) ] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/10/cc1plus -quiet -v -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.18/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpbase CMakeCXXCompilerABI.cpp -mtune=generic -march=x86-64 -auxbase-strip CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o -version -fasynchronous-unwind-tables -o /tmp/cc69yxJG.s] + ignore line: [GNU C++14 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu)] + ignore line: [ compiled by GNU C version 10.2.1 20210110 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.0 isl version isl-0.23-GMP] + ignore line: [] + ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] + ignore line: [ignoring duplicate directory "/usr/include/x86_64-linux-gnu/c++/10"] + ignore line: [ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"] + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/include-fixed"] + ignore line: [ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/10/../../../../x86_64-linux-gnu/include"] + ignore line: [#include "..." search starts here:] + ignore line: [#include <...> search starts here:] + ignore line: [ /usr/include/c++/10] + ignore line: [ /usr/include/x86_64-linux-gnu/c++/10] + ignore line: [ /usr/include/c++/10/backward] + ignore line: [ /usr/lib/gcc/x86_64-linux-gnu/10/include] + ignore line: [ /usr/local/include] + ignore line: [ /usr/include/x86_64-linux-gnu] + ignore line: [ /usr/include] + ignore line: [End of search list.] + ignore line: [GNU C++14 (Debian 10.2.1-6) version 10.2.1 20210110 (x86_64-linux-gnu)] + ignore line: [ compiled by GNU C version 10.2.1 20210110 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.0 isl version isl-0.23-GMP] + ignore line: [] + ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072] + ignore line: [Compiler executable checksum: 048fcaee3460a99eb0d68522358720e1] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] + ignore line: [ as -v --64 -o CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o /tmp/cc69yxJG.s] + ignore line: [GNU assembler version 2.35.2 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.35.2] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] + ignore line: [[2/2] Linking CXX executable cmTC_1753a] + ignore line: [Using built-in specs.] + ignore line: [COLLECT_GCC=/usr/bin/g++] + ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper] + ignore line: [OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa:hsa] + ignore line: [OFFLOAD_TARGET_DEFAULT=1] + ignore line: [Target: x86_64-linux-gnu] + ignore line: [Configured with: ../src/configure -v --with-pkgversion='Debian 10.2.1-6' --with-bugurl=file:///usr/share/doc/gcc-10/README.Bugs --enable-languages=c ada c++ go brig d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-10 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32 m64 mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-nvptx/usr amdgcn-amdhsa=/build/gcc-10-Km9U7s/gcc-10-10.2.1/debian/tmp-gcn/usr hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-mutex] + ignore line: [Thread model: posix] + ignore line: [Supported LTO compression algorithms: zlib zstd] + ignore line: [gcc version 10.2.1 20210110 (Debian 10.2.1-6) ] + ignore line: [COMPILER_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/] + ignore line: [LIBRARY_PATH=/usr/lib/gcc/x86_64-linux-gnu/10/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib/:/lib/x86_64-linux-gnu/:/lib/../lib/:/usr/lib/x86_64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/x86_64-linux-gnu/10/../../../:/lib/:/usr/lib/] + ignore line: [COLLECT_GCC_OPTIONS='-v' '-rdynamic' '-o' 'cmTC_1753a' '-shared-libgcc' '-mtune=generic' '-march=x86-64'] + link line: [ /usr/lib/gcc/x86_64-linux-gnu/10/collect2 -plugin /usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper -plugin-opt=-fresolution=/tmp/ccFO1xF0.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu --as-needed -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie -o cmTC_1753a /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o -L/usr/lib/gcc/x86_64-linux-gnu/10 -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/10/../../.. CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o] + arg [/usr/lib/gcc/x86_64-linux-gnu/10/collect2] ==> ignore + arg [-plugin] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/liblto_plugin.so] ==> ignore + arg [-plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/10/lto-wrapper] ==> ignore + arg [-plugin-opt=-fresolution=/tmp/ccFO1xF0.res] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [-plugin-opt=-pass-through=-lc] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore + arg [-plugin-opt=-pass-through=-lgcc] ==> ignore + arg [--build-id] ==> ignore + arg [--eh-frame-hdr] ==> ignore + arg [-m] ==> ignore + arg [elf_x86_64] ==> ignore + arg [--hash-style=gnu] ==> ignore + arg [--as-needed] ==> ignore + arg [-export-dynamic] ==> ignore + arg [-dynamic-linker] ==> ignore + arg [/lib64/ld-linux-x86-64.so.2] ==> ignore + arg [-pie] ==> ignore + arg [-o] ==> ignore + arg [cmTC_1753a] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crti.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/crtbeginS.o] ==> ignore + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib] + arg [-L/lib/x86_64-linux-gnu] ==> dir [/lib/x86_64-linux-gnu] + arg [-L/lib/../lib] ==> dir [/lib/../lib] + arg [-L/usr/lib/x86_64-linux-gnu] ==> dir [/usr/lib/x86_64-linux-gnu] + arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib] + arg [-L/usr/lib/gcc/x86_64-linux-gnu/10/../../..] ==> dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../..] + arg [CMakeFiles/cmTC_1753a.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore + arg [-lstdc++] ==> lib [stdc++] + arg [-lm] ==> lib [m] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [-lc] ==> lib [c] + arg [-lgcc_s] ==> lib [gcc_s] + arg [-lgcc] ==> lib [gcc] + arg [/usr/lib/gcc/x86_64-linux-gnu/10/crtendS.o] ==> ignore + arg [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/crtn.o] ==> ignore + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10] ==> [/usr/lib/gcc/x86_64-linux-gnu/10] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../../../lib] ==> [/usr/lib] + collapse library dir [/lib/x86_64-linux-gnu] ==> [/lib/x86_64-linux-gnu] + collapse library dir [/lib/../lib] ==> [/lib] + collapse library dir [/usr/lib/x86_64-linux-gnu] ==> [/usr/lib/x86_64-linux-gnu] + collapse library dir [/usr/lib/../lib] ==> [/usr/lib] + collapse library dir [/usr/lib/gcc/x86_64-linux-gnu/10/../../..] ==> [/usr/lib] + implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc] + implicit dirs: [/usr/lib/gcc/x86_64-linux-gnu/10;/usr/lib/x86_64-linux-gnu;/usr/lib;/lib/x86_64-linux-gnu;/lib] + implicit fwks: [] + + diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/TargetDirectories.txt" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/TargetDirectories.txt" new file mode 100755 index 0000000000000000000000000000000000000000..29deacef7cabf959854801b42813d25ed94fc3dd --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/TargetDirectories.txt" @@ -0,0 +1,12 @@ +/home/student/voice-assistant-test/build/CMakeFiles/rebuild_cache.dir +/home/student/voice-assistant-test/build/CMakeFiles/stt.dir +/home/student/voice-assistant-test/build/CMakeFiles/token.dir +/home/student/voice-assistant-test/build/CMakeFiles/jrsc.dir +/home/student/voice-assistant-test/build/CMakeFiles/edit_cache.dir +/home/student/voice-assistant-test/build/CMakeFiles/key.dir +/home/student/voice-assistant-test/build/CMakeFiles/wake.dir +/home/student/voice-assistant-test/build/CMakeFiles/play.dir +/home/student/voice-assistant-test/build/CMakeFiles/HVA.dir +/home/student/voice-assistant-test/build/snowboy/CMakeFiles/rebuild_cache.dir +/home/student/voice-assistant-test/build/snowboy/CMakeFiles/edit_cache.dir +/home/student/voice-assistant-test/build/snowboy/CMakeFiles/snowboy-wrapper.dir diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/cmake.check_cache" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/cmake.check_cache" new file mode 100755 index 0000000000000000000000000000000000000000..3dccd731726d7faa8b29d8d7dba3b981a53ca497 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/cmake.check_cache" @@ -0,0 +1 @@ +# This file is generated by cmake for dependency checking of the CMakeCache.txt file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/jrsc.dir/jrsc.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/jrsc.dir/jrsc.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..7e436225e4243d23704f8c642445e6cda010ee71 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/jrsc.dir/jrsc.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/config.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/config.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..90f89d63341236e1d2b392951c6252300418beaa Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/config.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/control.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/control.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..abdae5f1bd2484f763e0581b6b41b2feaf7f680b Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/control.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/key.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/key.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..6dbac616a2d572b35ddfd6826c0aa6378d2aea86 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/key.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/record.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/record.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..1159dc638214729ee904ef64560e27381459759b Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/record.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/stt.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/stt.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..69244803a8b7ad4071f0e2703039707055d4ff2b Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/stt.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/token.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/token.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..a8233635d7ca0a8d9bd4ad92aff1f986ea02846c Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/key.dir/token.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/rules.ninja" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/rules.ninja" new file mode 100755 index 0000000000000000000000000000000000000000..0b525fc54bd270b25f6d1feaedec801c4f6cae73 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/rules.ninja" @@ -0,0 +1,197 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Ninja" Generator, CMake Version 3.18 + +# This file contains all the rules used to get the outputs files +# built from the input files. +# It is included in the main 'build.ninja'. + +# ============================================================================= +# Project: HVA +# Configurations: Debug +# ============================================================================= +# ============================================================================= + +############################################# +# Rule for running custom commands. + +rule CUSTOM_COMMAND + command = $COMMAND + description = $DESC + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__stt_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__stt_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__token_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__token_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__jrsc_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__jrsc_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__key_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__key_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__wake_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__wake_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__play_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__play_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling C files. + +rule C_COMPILER__HVA_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/gcc $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building C object $out + + +############################################# +# Rule for linking C executable. + +rule C_EXECUTABLE_LINKER__HVA_Debug + command = $PRE_LINK && /usr/bin/gcc $FLAGS $LINK_FLAGS $in -o $TARGET_FILE $LINK_PATH $LINK_LIBRARIES && $POST_BUILD + description = Linking C executable $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for compiling CXX files. + +rule CXX_COMPILER__snowboy-wrapper_Debug + depfile = $DEP_FILE + deps = gcc + command = /usr/bin/g++ $DEFINES $INCLUDES $FLAGS -MD -MT $out -MF $DEP_FILE -o $out -c $in + description = Building CXX object $out + + +############################################# +# Rule for linking CXX static library. + +rule CXX_STATIC_LIBRARY_LINKER__snowboy-wrapper_Debug + command = $PRE_LINK && /usr/bin/cmake -E rm -f $TARGET_FILE && /usr/bin/ar qc $TARGET_FILE $LINK_FLAGS $in && /usr/bin/ranlib $TARGET_FILE && $POST_BUILD + description = Linking CXX static library $TARGET_FILE + restat = $RESTAT + + +############################################# +# Rule for re-running cmake. + +rule RERUN_CMAKE + command = /usr/bin/cmake --regenerate-during-build -S/home/student/voice-assistant-test -B/home/student/voice-assistant-test/build + description = Re-running CMake... + generator = 1 + + +############################################# +# Rule for cleaning all built files. + +rule CLEAN + command = /usr/bin/ninja $FILE_ARG -t clean $TARGETS + description = Cleaning all built files... + + +############################################# +# Rule for printing all primary targets available. + +rule HELP + command = /usr/bin/ninja -t targets + description = All primary targets available: + diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/config.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/config.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..90f89d63341236e1d2b392951c6252300418beaa Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/config.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/stt.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/stt.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..362ec1a4bd208f1e1c49f48c405fd7d1b2a57c35 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/stt.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/token.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/token.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..ebefdd4050e38c3e964bf640ffe2ebcdef450189 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/stt.dir/token.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/token.dir/config.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/token.dir/config.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..90f89d63341236e1d2b392951c6252300418beaa Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/token.dir/config.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/token.dir/token.c.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/token.dir/token.c.o" new file mode 100755 index 0000000000000000000000000000000000000000..7783e80ca75607764753a290043b1871b8b0a592 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/CMakeFiles/token.dir/token.c.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/HVA" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/HVA" new file mode 100755 index 0000000000000000000000000000000000000000..2ef3612a31d8558d36c927ef6efd86fc7ccc76e7 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/HVA" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/app.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/app.json" new file mode 100755 index 0000000000000000000000000000000000000000..f96953fb90a8c456f974f56e32289dcc70b40ff0 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/app.json" @@ -0,0 +1,4 @@ +{ + "AK" : "tYQvUXbWIjYzpK31oJ9ziFc2" , + "SK" : "1ODIhV4m6em3IMFaMIQo0fHycnA1AUT1" +} \ No newline at end of file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/build.ninja" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/build.ninja" new file mode 100755 index 0000000000000000000000000000000000000000..008515b097c2b7ad9a05bb3309738614be8912e9 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/build.ninja" @@ -0,0 +1,464 @@ +# CMAKE generated file: DO NOT EDIT! +# Generated by "Ninja" Generator, CMake Version 3.18 + +# This file contains all the build statements describing the +# compilation DAG. + +# ============================================================================= +# Write statements declared in CMakeLists.txt: +# +# Which is the root file. +# ============================================================================= + +# ============================================================================= +# Project: HVA +# Configurations: Debug +# ============================================================================= + +############################################# +# Minimal version of Ninja required by this file + +ninja_required_version = 1.5 + + +############################################# +# Set configuration variable for custom commands. + +CONFIGURATION = Debug +# ============================================================================= +# Include auxiliary files. + + +############################################# +# Include rules file. + +include CMakeFiles/rules.ninja + + +############################################# +# Utility command for rebuild_cache + +build CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/student/voice-assistant-test/build && /usr/bin/cmake --regenerate-during-build -S/home/student/voice-assistant-test -B/home/student/voice-assistant-test/build + DESC = Running CMake to regenerate build system... + pool = console + restat = 1 + +build rebuild_cache: phony CMakeFiles/rebuild_cache.util + +# ============================================================================= +# Object build statements for EXECUTABLE target stt + + +############################################# +# Order-only phony target for stt + +build cmake_object_order_depends_target_stt: phony || CMakeFiles/stt.dir + +build CMakeFiles/stt.dir/stt.c.o: C_COMPILER__stt_Debug ../stt.c || cmake_object_order_depends_target_stt + DEP_FILE = CMakeFiles/stt.dir/stt.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/stt.dir + OBJECT_FILE_DIR = CMakeFiles/stt.dir + +build CMakeFiles/stt.dir/config.c.o: C_COMPILER__stt_Debug ../config.c || cmake_object_order_depends_target_stt + DEP_FILE = CMakeFiles/stt.dir/config.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/stt.dir + OBJECT_FILE_DIR = CMakeFiles/stt.dir + +build CMakeFiles/stt.dir/token.c.o: C_COMPILER__stt_Debug ../token.c || cmake_object_order_depends_target_stt + DEP_FILE = CMakeFiles/stt.dir/token.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/stt.dir + OBJECT_FILE_DIR = CMakeFiles/stt.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target stt + + +############################################# +# Link the executable stt + +build stt: C_EXECUTABLE_LINKER__stt_Debug CMakeFiles/stt.dir/stt.c.o CMakeFiles/stt.dir/config.c.o CMakeFiles/stt.dir/token.c.o + FLAGS = -g + LINK_FLAGS = -rdynamic + LINK_LIBRARIES = -lcurl -ljansson + OBJECT_DIR = CMakeFiles/stt.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = stt + TARGET_PDB = stt.dbg + +# ============================================================================= +# Object build statements for EXECUTABLE target token + + +############################################# +# Order-only phony target for token + +build cmake_object_order_depends_target_token: phony || CMakeFiles/token.dir + +build CMakeFiles/token.dir/token.c.o: C_COMPILER__token_Debug ../token.c || cmake_object_order_depends_target_token + DEP_FILE = CMakeFiles/token.dir/token.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/token.dir + OBJECT_FILE_DIR = CMakeFiles/token.dir + +build CMakeFiles/token.dir/config.c.o: C_COMPILER__token_Debug ../config.c || cmake_object_order_depends_target_token + DEP_FILE = CMakeFiles/token.dir/config.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/token.dir + OBJECT_FILE_DIR = CMakeFiles/token.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target token + + +############################################# +# Link the executable token + +build token: C_EXECUTABLE_LINKER__token_Debug CMakeFiles/token.dir/token.c.o CMakeFiles/token.dir/config.c.o + FLAGS = -g + LINK_FLAGS = -rdynamic + LINK_LIBRARIES = -lcurl -ljansson + OBJECT_DIR = CMakeFiles/token.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = token + TARGET_PDB = token.dbg + +# ============================================================================= +# Object build statements for EXECUTABLE target jrsc + + +############################################# +# Order-only phony target for jrsc + +build cmake_object_order_depends_target_jrsc: phony || CMakeFiles/jrsc.dir + +build CMakeFiles/jrsc.dir/jrsc.c.o: C_COMPILER__jrsc_Debug ../jrsc.c || cmake_object_order_depends_target_jrsc + DEP_FILE = CMakeFiles/jrsc.dir/jrsc.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/jrsc.dir + OBJECT_FILE_DIR = CMakeFiles/jrsc.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target jrsc + + +############################################# +# Link the executable jrsc + +build jrsc: C_EXECUTABLE_LINKER__jrsc_Debug CMakeFiles/jrsc.dir/jrsc.c.o + FLAGS = -g + LINK_FLAGS = -rdynamic + LINK_LIBRARIES = -lcurl -lcjson + OBJECT_DIR = CMakeFiles/jrsc.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = jrsc + TARGET_PDB = jrsc.dbg + + +############################################# +# Utility command for edit_cache + +build CMakeFiles/edit_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/student/voice-assistant-test/build && /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. + DESC = No interactive CMake dialog available... + restat = 1 + +build edit_cache: phony CMakeFiles/edit_cache.util + +# ============================================================================= +# Object build statements for EXECUTABLE target key + + +############################################# +# Order-only phony target for key + +build cmake_object_order_depends_target_key: phony || CMakeFiles/key.dir + +build CMakeFiles/key.dir/key.c.o: C_COMPILER__key_Debug ../key.c || cmake_object_order_depends_target_key + DEP_FILE = CMakeFiles/key.dir/key.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/key.dir + OBJECT_FILE_DIR = CMakeFiles/key.dir + +build CMakeFiles/key.dir/record.c.o: C_COMPILER__key_Debug ../record.c || cmake_object_order_depends_target_key + DEP_FILE = CMakeFiles/key.dir/record.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/key.dir + OBJECT_FILE_DIR = CMakeFiles/key.dir + +build CMakeFiles/key.dir/control.c.o: C_COMPILER__key_Debug ../control.c || cmake_object_order_depends_target_key + DEP_FILE = CMakeFiles/key.dir/control.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/key.dir + OBJECT_FILE_DIR = CMakeFiles/key.dir + +build CMakeFiles/key.dir/stt.c.o: C_COMPILER__key_Debug ../stt.c || cmake_object_order_depends_target_key + DEP_FILE = CMakeFiles/key.dir/stt.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/key.dir + OBJECT_FILE_DIR = CMakeFiles/key.dir + +build CMakeFiles/key.dir/config.c.o: C_COMPILER__key_Debug ../config.c || cmake_object_order_depends_target_key + DEP_FILE = CMakeFiles/key.dir/config.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/key.dir + OBJECT_FILE_DIR = CMakeFiles/key.dir + +build CMakeFiles/key.dir/token.c.o: C_COMPILER__key_Debug ../token.c || cmake_object_order_depends_target_key + DEP_FILE = CMakeFiles/key.dir/token.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/key.dir + OBJECT_FILE_DIR = CMakeFiles/key.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target key + + +############################################# +# Link the executable key + +build key: C_EXECUTABLE_LINKER__key_Debug CMakeFiles/key.dir/key.c.o CMakeFiles/key.dir/record.c.o CMakeFiles/key.dir/control.c.o CMakeFiles/key.dir/stt.c.o CMakeFiles/key.dir/config.c.o CMakeFiles/key.dir/token.c.o + FLAGS = -g + LINK_FLAGS = -rdynamic + LINK_LIBRARIES = -lcurl -ljansson -lgpiod -lasound + OBJECT_DIR = CMakeFiles/key.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = key + TARGET_PDB = key.dbg + +# ============================================================================= +# Object build statements for EXECUTABLE target wake + + +############################################# +# Order-only phony target for wake + +build cmake_object_order_depends_target_wake: phony || cmake_object_order_depends_target_snowboy-wrapper + +build CMakeFiles/wake.dir/wake.c.o: C_COMPILER__wake_Debug ../wake.c || cmake_object_order_depends_target_wake + DEP_FILE = CMakeFiles/wake.dir/wake.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/wake.dir + OBJECT_FILE_DIR = CMakeFiles/wake.dir + +build CMakeFiles/wake.dir/record.c.o: C_COMPILER__wake_Debug ../record.c || cmake_object_order_depends_target_wake + DEP_FILE = CMakeFiles/wake.dir/record.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/wake.dir + OBJECT_FILE_DIR = CMakeFiles/wake.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target wake + + +############################################# +# Link the executable wake + +build wake: C_EXECUTABLE_LINKER__wake_Debug CMakeFiles/wake.dir/wake.c.o CMakeFiles/wake.dir/record.c.o | snowboy/libsnowboy-wrapper.a ../snowboy/libsnowboy-detect.a || snowboy/libsnowboy-wrapper.a + FLAGS = -g + LINK_FLAGS = -rdynamic + LINK_LIBRARIES = snowboy/libsnowboy-wrapper.a ../snowboy/libsnowboy-detect.a -lcblas -lm -lstdc++ -lasound + OBJECT_DIR = CMakeFiles/wake.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = wake + TARGET_PDB = wake.dbg + +# ============================================================================= +# Object build statements for EXECUTABLE target play + + +############################################# +# Order-only phony target for play + +build cmake_object_order_depends_target_play: phony || CMakeFiles/play.dir + +build CMakeFiles/play.dir/play.c.o: C_COMPILER__play_Debug ../play.c || cmake_object_order_depends_target_play + DEP_FILE = CMakeFiles/play.dir/play.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/play.dir + OBJECT_FILE_DIR = CMakeFiles/play.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target play + + +############################################# +# Link the executable play + +build play: C_EXECUTABLE_LINKER__play_Debug CMakeFiles/play.dir/play.c.o + FLAGS = -g + LINK_FLAGS = -rdynamic + LINK_LIBRARIES = -lasound + OBJECT_DIR = CMakeFiles/play.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = play + TARGET_PDB = play.dbg + +# ============================================================================= +# Object build statements for EXECUTABLE target HVA + + +############################################# +# Order-only phony target for HVA + +build cmake_object_order_depends_target_HVA: phony || CMakeFiles/HVA.dir + +build CMakeFiles/HVA.dir/main.c.o: C_COMPILER__HVA_Debug ../main.c || cmake_object_order_depends_target_HVA + DEP_FILE = CMakeFiles/HVA.dir/main.c.o.d + FLAGS = -g + OBJECT_DIR = CMakeFiles/HVA.dir + OBJECT_FILE_DIR = CMakeFiles/HVA.dir + + +# ============================================================================= +# Link build statements for EXECUTABLE target HVA + + +############################################# +# Link the executable HVA + +build HVA: C_EXECUTABLE_LINKER__HVA_Debug CMakeFiles/HVA.dir/main.c.o + FLAGS = -g + LINK_FLAGS = -rdynamic + OBJECT_DIR = CMakeFiles/HVA.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = HVA + TARGET_PDB = HVA.dbg + +# ============================================================================= +# Write statements declared in CMakeLists.txt: +# /home/student/voice-assistant-test/CMakeLists.txt +# ============================================================================= + + +############################################# +# Utility command for rebuild_cache + +build snowboy/CMakeFiles/rebuild_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/student/voice-assistant-test/build/snowboy && /usr/bin/cmake --regenerate-during-build -S/home/student/voice-assistant-test -B/home/student/voice-assistant-test/build + DESC = Running CMake to regenerate build system... + pool = console + restat = 1 + +build snowboy/rebuild_cache: phony snowboy/CMakeFiles/rebuild_cache.util + + +############################################# +# Utility command for edit_cache + +build snowboy/CMakeFiles/edit_cache.util: CUSTOM_COMMAND + COMMAND = cd /home/student/voice-assistant-test/build/snowboy && /usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available. + DESC = No interactive CMake dialog available... + restat = 1 + +build snowboy/edit_cache: phony snowboy/CMakeFiles/edit_cache.util + +# ============================================================================= +# Object build statements for STATIC_LIBRARY target snowboy-wrapper + + +############################################# +# Order-only phony target for snowboy-wrapper + +build cmake_object_order_depends_target_snowboy-wrapper: phony || snowboy/CMakeFiles/snowboy-wrapper.dir + +build snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o: CXX_COMPILER__snowboy-wrapper_Debug ../snowboy/snowboy-detect-c-wrapper.cc || cmake_object_order_depends_target_snowboy-wrapper + DEP_FILE = snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o.d + FLAGS = -g -D_GLIBCXX_USE_CXX11_ABI=0 + OBJECT_DIR = snowboy/CMakeFiles/snowboy-wrapper.dir + OBJECT_FILE_DIR = snowboy/CMakeFiles/snowboy-wrapper.dir + + +# ============================================================================= +# Link build statements for STATIC_LIBRARY target snowboy-wrapper + + +############################################# +# Link the static library snowboy/libsnowboy-wrapper.a + +build snowboy/libsnowboy-wrapper.a: CXX_STATIC_LIBRARY_LINKER__snowboy-wrapper_Debug snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o + LANGUAGE_COMPILE_FLAGS = -g + OBJECT_DIR = snowboy/CMakeFiles/snowboy-wrapper.dir + POST_BUILD = : + PRE_LINK = : + TARGET_FILE = snowboy/libsnowboy-wrapper.a + TARGET_PDB = snowboy-wrapper.a.dbg + +# ============================================================================= +# Target aliases. + +build libsnowboy-wrapper.a: phony snowboy/libsnowboy-wrapper.a + +build snowboy-wrapper: phony snowboy/libsnowboy-wrapper.a + +# ============================================================================= +# Folder targets. + +# ============================================================================= + +############################################# +# Folder: /home/student/voice-assistant-test/build + +build all: phony stt token jrsc key wake play HVA snowboy/all + +# ============================================================================= + +############################################# +# Folder: /home/student/voice-assistant-test/build/snowboy + +build snowboy/all: phony snowboy/libsnowboy-wrapper.a + +# ============================================================================= +# Unknown Build Time Dependencies. +# Tell Ninja that they may appear as side effects of build rules +# otherwise ordered by order-only dependencies. + +# ============================================================================= +# Built-in targets + + +############################################# +# Re-run CMake if any of its inputs changed. + +build build.ninja: RERUN_CMAKE | ../CMakeLists.txt ../snowboy/CMakeLists.txt /usr/share/cmake-3.18/Modules/CMakeCInformation.cmake /usr/share/cmake-3.18/Modules/CMakeCXXInformation.cmake /usr/share/cmake-3.18/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake /usr/share/cmake-3.18/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake-3.18/Modules/CMakeGenericSystem.cmake /usr/share/cmake-3.18/Modules/CMakeInitializeConfigs.cmake /usr/share/cmake-3.18/Modules/CMakeLanguageInformation.cmake /usr/share/cmake-3.18/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake-3.18/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake-3.18/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake-3.18/Modules/Compiler/GNU-C.cmake /usr/share/cmake-3.18/Modules/Compiler/GNU-CXX.cmake /usr/share/cmake-3.18/Modules/Compiler/GNU.cmake /usr/share/cmake-3.18/Modules/Internal/CMakeCheckCompilerFlag.cmake /usr/share/cmake-3.18/Modules/Platform/Linux-GNU-C.cmake /usr/share/cmake-3.18/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake-3.18/Modules/Platform/Linux-GNU.cmake /usr/share/cmake-3.18/Modules/Platform/Linux.cmake /usr/share/cmake-3.18/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.18.4/CMakeCCompiler.cmake CMakeFiles/3.18.4/CMakeCXXCompiler.cmake CMakeFiles/3.18.4/CMakeSystem.cmake + pool = console + + +############################################# +# A missing CMake input file is not an error. + +build ../CMakeLists.txt ../snowboy/CMakeLists.txt /usr/share/cmake-3.18/Modules/CMakeCInformation.cmake /usr/share/cmake-3.18/Modules/CMakeCXXInformation.cmake /usr/share/cmake-3.18/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake /usr/share/cmake-3.18/Modules/CMakeCommonLanguageInclude.cmake /usr/share/cmake-3.18/Modules/CMakeGenericSystem.cmake /usr/share/cmake-3.18/Modules/CMakeInitializeConfigs.cmake /usr/share/cmake-3.18/Modules/CMakeLanguageInformation.cmake /usr/share/cmake-3.18/Modules/CMakeSystemSpecificInformation.cmake /usr/share/cmake-3.18/Modules/CMakeSystemSpecificInitialize.cmake /usr/share/cmake-3.18/Modules/Compiler/CMakeCommonCompilerMacros.cmake /usr/share/cmake-3.18/Modules/Compiler/GNU-C.cmake /usr/share/cmake-3.18/Modules/Compiler/GNU-CXX.cmake /usr/share/cmake-3.18/Modules/Compiler/GNU.cmake /usr/share/cmake-3.18/Modules/Internal/CMakeCheckCompilerFlag.cmake /usr/share/cmake-3.18/Modules/Platform/Linux-GNU-C.cmake /usr/share/cmake-3.18/Modules/Platform/Linux-GNU-CXX.cmake /usr/share/cmake-3.18/Modules/Platform/Linux-GNU.cmake /usr/share/cmake-3.18/Modules/Platform/Linux.cmake /usr/share/cmake-3.18/Modules/Platform/UnixPaths.cmake CMakeCache.txt CMakeFiles/3.18.4/CMakeCCompiler.cmake CMakeFiles/3.18.4/CMakeCXXCompiler.cmake CMakeFiles/3.18.4/CMakeSystem.cmake: phony + + +############################################# +# Clean all the built files. + +build clean: CLEAN + + +############################################# +# Print all primary targets available. + +build help: HELP + + +############################################# +# Make the all target the default. + +default all diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/cmake_install.cmake" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/cmake_install.cmake" new file mode 100755 index 0000000000000000000000000000000000000000..8eb4fdbb230d9ecef1731b7f1e118bfd85aca2d5 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/cmake_install.cmake" @@ -0,0 +1,60 @@ +# Install script for directory: /home/student/voice-assistant-test + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + +if(NOT CMAKE_INSTALL_LOCAL_ONLY) + # Include the install script for each subdirectory. + include("/home/student/voice-assistant-test/build/snowboy/cmake_install.cmake") + +endif() + +if(CMAKE_INSTALL_COMPONENT) + set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt") +else() + set(CMAKE_INSTALL_MANIFEST "install_manifest.txt") +endif() + +string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT + "${CMAKE_INSTALL_MANIFEST_FILES}") +file(WRITE "/home/student/voice-assistant-test/build/${CMAKE_INSTALL_MANIFEST}" + "${CMAKE_INSTALL_MANIFEST_CONTENT}") diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/common.res" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/common.res" new file mode 100755 index 0000000000000000000000000000000000000000..0e267f5eb4a09f01ec168af18dbd14f29dd5272b Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/common.res" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/compile_commands.json" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/compile_commands.json" new file mode 100755 index 0000000000000000000000000000000000000000..cb58114e4c5ee4b29af5de6fd748129dee459524 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/compile_commands.json" @@ -0,0 +1,87 @@ +[ +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/stt.dir/stt.c.o -c /home/student/voice-assistant-test/stt.c", + "file": "/home/student/voice-assistant-test/stt.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/stt.dir/config.c.o -c /home/student/voice-assistant-test/config.c", + "file": "/home/student/voice-assistant-test/config.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/stt.dir/token.c.o -c /home/student/voice-assistant-test/token.c", + "file": "/home/student/voice-assistant-test/token.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/token.dir/token.c.o -c /home/student/voice-assistant-test/token.c", + "file": "/home/student/voice-assistant-test/token.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/token.dir/config.c.o -c /home/student/voice-assistant-test/config.c", + "file": "/home/student/voice-assistant-test/config.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/jrsc.dir/jrsc.c.o -c /home/student/voice-assistant-test/jrsc.c", + "file": "/home/student/voice-assistant-test/jrsc.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/key.dir/key.c.o -c /home/student/voice-assistant-test/key.c", + "file": "/home/student/voice-assistant-test/key.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/key.dir/record.c.o -c /home/student/voice-assistant-test/record.c", + "file": "/home/student/voice-assistant-test/record.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/key.dir/control.c.o -c /home/student/voice-assistant-test/control.c", + "file": "/home/student/voice-assistant-test/control.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/key.dir/stt.c.o -c /home/student/voice-assistant-test/stt.c", + "file": "/home/student/voice-assistant-test/stt.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/key.dir/config.c.o -c /home/student/voice-assistant-test/config.c", + "file": "/home/student/voice-assistant-test/config.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/key.dir/token.c.o -c /home/student/voice-assistant-test/token.c", + "file": "/home/student/voice-assistant-test/token.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/wake.dir/wake.c.o -c /home/student/voice-assistant-test/wake.c", + "file": "/home/student/voice-assistant-test/wake.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/wake.dir/record.c.o -c /home/student/voice-assistant-test/record.c", + "file": "/home/student/voice-assistant-test/record.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/play.dir/play.c.o -c /home/student/voice-assistant-test/play.c", + "file": "/home/student/voice-assistant-test/play.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/gcc -g -o CMakeFiles/HVA.dir/main.c.o -c /home/student/voice-assistant-test/main.c", + "file": "/home/student/voice-assistant-test/main.c" +}, +{ + "directory": "/home/student/voice-assistant-test/build", + "command": "/usr/bin/g++ -g -D_GLIBCXX_USE_CXX11_ABI=0 -o snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o -c /home/student/voice-assistant-test/snowboy/snowboy-detect-c-wrapper.cc", + "file": "/home/student/voice-assistant-test/snowboy/snowboy-detect-c-wrapper.cc" +} +] \ No newline at end of file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/jrsc" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/jrsc" new file mode 100755 index 0000000000000000000000000000000000000000..23b1c9138ca6dcce3b2689744dbcf01f622af407 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/jrsc" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/key" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/key" new file mode 100755 index 0000000000000000000000000000000000000000..766ced2b900b1e45c423fd1fd6de842d790ebc11 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/key" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/output.pcm" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/output.pcm" new file mode 100755 index 0000000000000000000000000000000000000000..d3b5f307023b660143f552bb69352baf07e9b3f2 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/output.pcm" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/play" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/play" new file mode 100755 index 0000000000000000000000000000000000000000..c51557f13604929d15c7c651faa99c587bf50397 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/play" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o" new file mode 100755 index 0000000000000000000000000000000000000000..460556b781e353a0356282b1494f682b4649fe31 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/CMakeFiles/snowboy-wrapper.dir/snowboy-detect-c-wrapper.cc.o" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/cmake_install.cmake" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/cmake_install.cmake" new file mode 100755 index 0000000000000000000000000000000000000000..a5fc0bb46d1f5ad57c307e1b27973266197e4883 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/cmake_install.cmake" @@ -0,0 +1,44 @@ +# Install script for directory: /home/student/voice-assistant-test/snowboy + +# Set the install prefix +if(NOT DEFINED CMAKE_INSTALL_PREFIX) + set(CMAKE_INSTALL_PREFIX "/usr/local") +endif() +string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") + +# Set the install configuration name. +if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME) + if(BUILD_TYPE) + string(REGEX REPLACE "^[^A-Za-z0-9_]+" "" + CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}") + else() + set(CMAKE_INSTALL_CONFIG_NAME "Debug") + endif() + message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"") +endif() + +# Set the component getting installed. +if(NOT CMAKE_INSTALL_COMPONENT) + if(COMPONENT) + message(STATUS "Install component: \"${COMPONENT}\"") + set(CMAKE_INSTALL_COMPONENT "${COMPONENT}") + else() + set(CMAKE_INSTALL_COMPONENT) + endif() +endif() + +# Install shared libraries without execute permission? +if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE) + set(CMAKE_INSTALL_SO_NO_EXE "1") +endif() + +# Is this installation the result of a crosscompile? +if(NOT DEFINED CMAKE_CROSSCOMPILING) + set(CMAKE_CROSSCOMPILING "FALSE") +endif() + +# Set default install directory permissions. +if(NOT DEFINED CMAKE_OBJDUMP) + set(CMAKE_OBJDUMP "/usr/bin/objdump") +endif() + diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/libsnowboy-wrapper.a" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/libsnowboy-wrapper.a" new file mode 100755 index 0000000000000000000000000000000000000000..d677e211691199086c60fa516469cc657dd8b8ec Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/snowboy/libsnowboy-wrapper.a" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/stt" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/stt" new file mode 100755 index 0000000000000000000000000000000000000000..095e4575236ba19f4744e53587728495a57591b2 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/stt" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/token" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/token" new file mode 100755 index 0000000000000000000000000000000000000000..90a526ee5611f16b74d00f96de60ec54ef391859 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/token" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/wake" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/wake" new file mode 100755 index 0000000000000000000000000000000000000000..ee2da064c3f39cb5ea3445c779fd258bc99592d0 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/wake" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/wakeup.pmdl" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/wakeup.pmdl" new file mode 100755 index 0000000000000000000000000000000000000000..21617e7dec382f25dbee1898a345b439657c3115 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/build/wakeup.pmdl" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/config.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/config.c" new file mode 100755 index 0000000000000000000000000000000000000000..23bba5cd0d36edca03d92cb7aed9dbbec6c22712 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/config.c" @@ -0,0 +1,46 @@ +#include +#include +#include +#include +#include "config.h" + +// 读取配置文件 +int read_config(const char* filename, Config* config) { + json_t *root; + json_error_t error; + + // 打开并解析JSON文件 + root = json_load_file(filename, 0, &error); + if (!root) { + fprintf(stderr, "无法打开或解析配置文件: %s\n", error.text); + return -1; + } + + // 从JSON对象中提取AK和SK + json_t *ak_json = json_object_get(root, "AK"); + json_t *sk_json = json_object_get(root, "SK"); + if (!json_is_string(ak_json) || !json_is_string(sk_json)) { + fprintf(stderr, "配置文件格式错误\n"); + json_decref(root); + return -1; + } + + // 复制AK和SK + config->AK = strdup(json_string_value(ak_json)); + config->SK = strdup(json_string_value(sk_json)); + + // 释放JSON对象 + json_decref(root); + + return 0; +} + +// 释放配置内存 +void free_config(Config* config) { + if (config->AK) { + free(config->AK); + } + if (config->SK) { + free(config->SK); + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/config.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/config.h" new file mode 100755 index 0000000000000000000000000000000000000000..2db9fcd0976383608ecb44a5cecf5accea5e9a24 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/config.h" @@ -0,0 +1,16 @@ +#ifndef CONFIG_H +#define CONFIG_H + +// 结构体定义,用于存储配置信息 +typedef struct { + char* AK; + char* SK; +} Config; + +// 函数声明,用于读取配置文件 +int read_config(const char* filename, Config* config); + +// 函数声明,用于释放配置内存 +void free_config(Config* config); + +#endif // CONFIG_H diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/control.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/control.c" new file mode 100755 index 0000000000000000000000000000000000000000..c011e269821dfe0ead8d49c8168e03ea2a10a21e --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/control.c" @@ -0,0 +1,424 @@ +#include +#include +#include + +//设置音频采集通道函数 +//card:声卡名称 +//selem:控制项名称 +//enable:开关状态 +int set_capture_channel(const char *card, const char *selem, bool enable) { + int err; + snd_mixer_t *handle; + snd_mixer_elem_t *elem; + snd_mixer_selem_id_t *sid; + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + snd_mixer_selem_id_set_index(sid, 0); + snd_mixer_selem_id_set_name(sid, selem); + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "snd_mixer_open error: %s\n", snd_strerror(err)); + return err; + } + + // 附加混音器到卡 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "snd_mixer_attach error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "snd_mixer_selem_register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "snd_mixer_load error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 找到简单元素 + elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "snd_mixer_find_selem error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return -1; + } + + // 设置捕获开关 + if ((err = snd_mixer_selem_set_capture_switch_all(elem, enable ? 1 : 0)) < 0) { + fprintf(stderr, "snd_mixer_selem_set_capture_switch_all error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + return 0; +} + +//设置音频回放通道函数 +//card:声卡名称 +//selem:控制项名称 +//enable:开关状态 +int set_playback_channel(const char *card, const char *selem, bool enable) { + int err; + snd_mixer_t *handle; + snd_mixer_elem_t *elem; + snd_mixer_selem_id_t *sid; + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + snd_mixer_selem_id_set_index(sid, 0); + snd_mixer_selem_id_set_name(sid, selem); + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "snd_mixer_open error: %s\n", snd_strerror(err)); + return err; + } + + // 附加混音器到卡 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "snd_mixer_attach error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "snd_mixer_selem_register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "snd_mixer_load error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 找到简单元素 + elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "snd_mixer_find_selem error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return -1; + } + + // 设置回放开关 + if ((err = snd_mixer_selem_set_playback_switch_all(elem, enable ? 1 : 0)) < 0) { + fprintf(stderr, "snd_mixer_selem_set_playback_switch_all error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + return 0; +} + +//获取音频采集音量函数 +//card:声卡名称 +//selem:控制项名称 +//enable:开关状态 +//返回值:volume +int get_capture_volume(const char *card, const char *selem){ + int err; + long volume = 0; + snd_mixer_t *handle; + snd_mixer_elem_t *elem; + snd_mixer_selem_id_t *sid; + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + snd_mixer_selem_id_set_index(sid, 0); + snd_mixer_selem_id_set_name(sid, selem); + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "snd_mixer_open error: %s\n", snd_strerror(err)); + return err; + } + + // 附加混音器到卡 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "snd_mixer_attach error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "snd_mixer_selem_register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "snd_mixer_load error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 找到简单元素 + elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "snd_mixer_find_selem error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return -1; + } + + // 获取采集通道音量 + if ((err = snd_mixer_selem_get_capture_volume(elem, 0, &volume)) < 0) { + fprintf(stderr, "snd_mixer_selem_get_capture_volume error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + //返回音量 + return volume; +} + +//获取音频回放音量函数 +//card:声卡名称 +//selem:控制项名称 +//enable:开关状态 +//返回值:volume +int get_playback_volume(const char *card, const char *selem){ + int err; + long volume = 0; + snd_mixer_t *handle; + snd_mixer_elem_t *elem; + snd_mixer_selem_id_t *sid; + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + snd_mixer_selem_id_set_index(sid, 0); + snd_mixer_selem_id_set_name(sid, selem); + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "snd_mixer_open error: %s\n", snd_strerror(err)); + return err; + } + + // 附加混音器到卡 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "snd_mixer_attach error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "snd_mixer_selem_register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "snd_mixer_load error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 找到简单元素 + elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "snd_mixer_find_selem error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return -1; + } + + // 获取回放通道音量 + if ((err = snd_mixer_selem_get_playback_volume(elem, 0, &volume)) < 0) { + fprintf(stderr, "snd_mixer_selem_get_playback_volume error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + + //返回音量 + return volume; +} + +//设置音频采集音量函数 +//card:声卡名称 +//selem:控制项名称 +//enable:开关状态 +//volume:设置音量 +int set_capture_volume(const char *card, const char *selem, long volume) { + int err; + snd_mixer_t *handle; + snd_mixer_elem_t *elem; + snd_mixer_selem_id_t *sid; + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + snd_mixer_selem_id_set_index(sid, 0); + snd_mixer_selem_id_set_name(sid, selem); + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "snd_mixer_open error: %s\n", snd_strerror(err)); + return err; + } + + // 附加混音器到卡 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "snd_mixer_attach error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "snd_mixer_selem_register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "snd_mixer_load error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 找到简单元素 + elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "snd_mixer_find_selem error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return -1; + } + + long min = 0, max = 63; + if ((err = snd_mixer_selem_set_capture_volume_range(elem, min, max)) < 0) { + fprintf(stderr, "snd_mixer_selem_set_capture_volume_range error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + if(volume < min) volume = min; + if(volume > max) volume = max; + + // 设置采集通道音量 + if ((err = snd_mixer_selem_set_capture_volume_all(elem, volume)) < 0) { + fprintf(stderr, "snd_mixer_selem_set_capture_volume_all error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + return volume; +} + +//设置音频回放音量函数 +//card:声卡名称 +//selem:控制项名称 +//enable:开关状态 +//volume:设置音量 +int set_playback_volume(const char *card, const char *selem, long volume) { + int err; + snd_mixer_t *handle; + snd_mixer_elem_t *elem; + snd_mixer_selem_id_t *sid; + + // 分配简单元素ID + snd_mixer_selem_id_alloca(&sid); + snd_mixer_selem_id_set_index(sid, 0); + snd_mixer_selem_id_set_name(sid, selem); + + // 打开混音器 + if ((err = snd_mixer_open(&handle, 0)) < 0) { + fprintf(stderr, "snd_mixer_open error: %s\n", snd_strerror(err)); + return err; + } + + // 附加混音器到卡 + if ((err = snd_mixer_attach(handle, card)) < 0) { + fprintf(stderr, "snd_mixer_attach error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 注册混音器 + if ((err = snd_mixer_selem_register(handle, NULL, NULL)) < 0) { + fprintf(stderr, "snd_mixer_selem_register error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 加载混音器元素 + if ((err = snd_mixer_load(handle)) < 0) { + fprintf(stderr, "snd_mixer_load error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 找到简单元素 + elem = snd_mixer_find_selem(handle, sid); + if (!elem) { + fprintf(stderr, "snd_mixer_find_selem error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return -1; + } + + long min = 0, max = 63; + if ((err = snd_mixer_selem_set_playback_volume_range(elem, min, max)) < 0) { + fprintf(stderr, "snd_mixer_selem_set_playback_volume_range error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + if(volume < min) volume = min; + if(volume > max) volume = max; + + // 设置回放通道音量 + if ((err = snd_mixer_selem_set_playback_volume_all(elem, volume)) < 0) { + fprintf(stderr, "snd_mixer_selem_set_playback_volume_all error: %s\n", snd_strerror(err)); + snd_mixer_close(handle); + return err; + } + + // 关闭混音器 + snd_mixer_close(handle); + return volume; +} + +// int main(int argc, char** argv) { + +// // if(strcmp(argv[1], "on") == 0){ +// // set_playback_channel("default", "Master", true); // 启用 +// // } +// // if(strcmp(argv[1], "off") == 0){ +// // set_playback_channel("default", "Master", false); // 禁用 +// // } + +// // printf("采集音量:%d\n", get_capture_volume("hw:0", "Capture")); +// // printf("新采集音量:%d\n", set_capture_volume("hw:0", "Capture", atoi(argv[1]))); +// printf("回放音量:%d\n", get_playback_volume("hw:0", "Master")); +// printf("新回放音量:%d\n", set_playback_volume("hw:0", "Master", atoi(argv[1]))); + +// return 0; +// } + + + + diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/control.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/control.h" new file mode 100755 index 0000000000000000000000000000000000000000..3e42934a203350a52e5a25783767d8edca75d6c0 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/control.h" @@ -0,0 +1,14 @@ + +#ifndef CONTROL_H +#define CONTROL_H + +#include + +int set_capture_channel(const char *card, const char *selem, bool enable); +int set_playback_channel(const char *card, const char *selem, bool enable); +int get_capture_volume(const char *card, const char *selem); +int get_playback_volume(const char *card, const char *selem); +int set_capture_volume(const char *card, const char *selem, long volume); +int set_playback_volume(const char *card, const char *selem, long volume); + +#endif // CONTROL_H diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/jrsc.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/jrsc.c" new file mode 100755 index 0000000000000000000000000000000000000000..6293ae66fb6dbd1b3c5d0c11590cded1f48a7c38 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/jrsc.c" @@ -0,0 +1,150 @@ +#include +#include +#include +#include +#include + +// 主函数 +int main(void) { + CURL *client; + CURLcode err; + char *buffer; + size_t size; + + // 初始化libcurl + curl_global_init(CURL_GLOBAL_ALL); + + // 初始化一个curl会话 + client = curl_easy_init(); + if (!client) { + fprintf(stderr, "curl_easy_init() failed\n"); + return 1; + } + + // 设置HTTP Headers,包括Token + struct curl_slist *headers = NULL; + headers = curl_slist_append(headers, "X-User-Token:+YbRhXVlup96rn6JKeyCZX9JsxmSb8CL"); + curl_easy_setopt(client, CURLOPT_HTTPHEADER, headers); + + // 设置使用 open_memstream 将响应数据写入内存 + FILE *memstream = open_memstream(&buffer, &size); + if (!memstream) { + fprintf(stderr, "open_memstream() failed\n"); + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + return 1; + } + curl_easy_setopt(client, CURLOPT_WRITEDATA, memstream); + + // 第一次请求:获取推荐的古诗词 + curl_easy_setopt(client, CURLOPT_URL, "https://v2.jinrishici.com/sentence"); + + err = curl_easy_perform(client); + fclose(memstream); // 关闭流,确保缓冲区内容完整 + if (err != CURLE_OK) { + fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(err)); + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + free(buffer); // 释放缓冲区 + return 1; + } + + // 打印接收到的JSON数据 + //printf("%lu bytes received:\n%s\n", (unsigned long)size, buffer); + + // 解析JSON数据 + cJSON *json = cJSON_Parse(buffer); + free(buffer); // 解析完JSON后释放缓冲区 + + if (!json) { + fprintf(stderr, "JSON parse error: %s\n", cJSON_GetErrorPtr()); + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + return 1; + } + + // 提取推荐的古诗词字段 + cJSON *data = cJSON_GetObjectItemCaseSensitive(json, "data"); + cJSON *content = cJSON_GetObjectItemCaseSensitive(data, "content"); + if (cJSON_IsString(content) && content->valuestring != NULL) { + printf("推荐的古诗词: %s\n", content->valuestring); + } + + cJSON_Delete(json); + + // 第二次请求:获取天气情况 + memstream = open_memstream(&buffer, &size); + if (!memstream) { + fprintf(stderr, "open_memstream() failed\n"); + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + return 1; + } + curl_easy_setopt(client, CURLOPT_WRITEDATA, memstream); + curl_easy_setopt(client, CURLOPT_URL, "https://v2.jinrishici.com/info"); + + err = curl_easy_perform(client); + fclose(memstream); // 关闭流,确保缓冲区内容完整 + if (err != CURLE_OK) { + fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(err)); + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + free(buffer); // 释放缓冲区 + return 1; + } + + // 打印接收到的JSON数据 + //printf("%lu bytes received:\n%s\n", (unsigned long)size, buffer); + + // 解析JSON数据 + json = cJSON_Parse(buffer); + free(buffer); // 解析完JSON后释放缓冲区 + + if (!json) { + fprintf(stderr, "JSON parse error: %s\n", cJSON_GetErrorPtr()); + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + return 1; + } + + // 提取天气数据字段 + data = cJSON_GetObjectItemCaseSensitive(json, "data"); + cJSON *weatherData = cJSON_GetObjectItemCaseSensitive(data, "weatherData"); + if (cJSON_IsObject(weatherData)) { + cJSON *temperature = cJSON_GetObjectItemCaseSensitive(weatherData, "temperature"); + cJSON *windDirection = cJSON_GetObjectItemCaseSensitive(weatherData, "windDirection"); + cJSON *windPower = cJSON_GetObjectItemCaseSensitive(weatherData, "windPower"); + cJSON *humidity = cJSON_GetObjectItemCaseSensitive(weatherData, "humidity"); + cJSON *updateTime = cJSON_GetObjectItemCaseSensitive(weatherData, "updateTime"); + cJSON *weather = cJSON_GetObjectItemCaseSensitive(weatherData, "weather"); + cJSON *visibility = cJSON_GetObjectItemCaseSensitive(weatherData, "visibility"); + cJSON *rainfall = cJSON_GetObjectItemCaseSensitive(weatherData, "rainfall"); + cJSON *pm25 = cJSON_GetObjectItemCaseSensitive(weatherData, "pm25"); + + printf("天气情况:\n"); + if (cJSON_IsNumber(temperature)) printf("温度: %.1f°C\n", temperature->valuedouble); + if (cJSON_IsString(windDirection)) printf("风向: %s\n", windDirection->valuestring); + if (cJSON_IsNumber(windPower)) printf("风力: %d级\n", windPower->valueint); + if (cJSON_IsNumber(humidity)) printf("湿度: %.1f%%\n", humidity->valuedouble); + if (cJSON_IsString(updateTime)) printf("更新时间: %s\n", updateTime->valuestring); + if (cJSON_IsString(weather)) printf("天气: %s\n", weather->valuestring); + if (cJSON_IsString(visibility)) printf("能见度: %s\n", visibility->valuestring); + if (cJSON_IsNumber(rainfall)) printf("降雨量: %.1fmm\n", rainfall->valuedouble); + if (cJSON_IsNumber(pm25)) printf("PM2.5: %.1f\n", pm25->valuedouble); + } + + cJSON_Delete(json); + + // 清理 + curl_slist_free_all(headers); + curl_easy_cleanup(client); + curl_global_cleanup(); + + return 0; +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/key.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/key.c" new file mode 100755 index 0000000000000000000000000000000000000000..134a131b9cc50b83b8e88e28a1cc845f6925f19c --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/key.c" @@ -0,0 +1,137 @@ +#include +#include +#include +#include +#include "record.h" +#include "control.h" +#include "stt.h" + +#define GPIO_LINE 9 // PF9对应的GPIO行编号 +#define GPIO_LINE2 8 // PF8对应的GPIO编号 +#define GPIO_LINE3 7 // PF7按键对应的GPIO编号 + +extern snd_pcm_t *capture; // 声明外部变量capture + +void handle_event(struct gpiod_line_event *event) { + static int recording = 0; + if (event->event_type == GPIOD_LINE_EVENT_FALLING_EDGE) { + // 检测到下降沿事件(按键按下),开始录音 + if (!recording) { + printf("key pressed\n"); + start_recording("output.pcm", 4096, 2); + recording = 1; + } + } else if (event->event_type == GPIOD_LINE_EVENT_RISING_EDGE) { + // 检测到上升沿事件(按键松开),停止录音 + if (recording) { + printf("key released\n"); + stop_recording(); + recording = 0; + // 调用STT处理函数 + process_audio_file("output.pcm"); + } + } +} + +void handle_volume_event(struct gpiod_line_event *event, const char* card, const char* selem, int change) { + if (event->event_type == GPIOD_LINE_EVENT_FALLING_EDGE) { + long volume = get_playback_volume(card, selem); + volume += change; + set_playback_volume(card, selem, volume); + printf("Volume changed to %ld\n", volume); + } +} + +int main(void) { + struct gpiod_chip *chip; // GPIO芯片对象 + struct gpiod_line *line, *line2, *line3; // GPIO行对象 + struct gpiod_line_event event; // GPIO行事件对象 + int ret; + const char *pcm_device = "hw:0,0"; + snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE; + unsigned int rate = 44100; + int channels = 2; + snd_pcm_uframes_t frames = 4096; + + // 打开GPIO芯片 + chip = gpiod_chip_open_by_label("GPIOF"); + if (!chip) { + perror("打开GPIO芯片失败"); + return -1; + } + + // 获取GPIO行 + line = gpiod_chip_get_line(chip, GPIO_LINE); + line2 = gpiod_chip_get_line(chip, GPIO_LINE2); + line3 = gpiod_chip_get_line(chip, GPIO_LINE3); + if (!line || !line2 || !line3) { + perror("获取GPIO行失败"); + gpiod_chip_close(chip); + return -1; + } + + // 请求GPIO行作为输入并启用双边沿事件检测 + ret = gpiod_line_request_both_edges_events(line, "gpio_key"); + ret |= gpiod_line_request_both_edges_events(line2, "gpio_key2"); + ret |= gpiod_line_request_both_edges_events(line3, "gpio_key3"); + if (ret < 0) { + perror("请求GPIO行事件失败"); + gpiod_chip_close(chip); + return -1; + } + + // 打开并配置PCM设备 + ret = open_pcm_device(&capture, pcm_device, format, rate, channels, frames); + if (ret != 0) { + printf("音频设备配置失败,错误码:%d\n", ret); + return ret; + } + + printf("等待按键事件...\n"); + + // 事件循环 + while (1) { + // 等待事件发生 + ret = gpiod_line_event_wait(line, NULL); + if (ret < 0) { + perror("等待事件失败"); + break; + } + + // 如果有事件发生,读取并处理事件 + if (ret == 1) { + ret = gpiod_line_event_read(line, &event); + if (ret < 0) { + perror("读取事件失败"); + break; + } + + // 处理事件 + handle_event(&event); + } + + ret = gpiod_line_event_wait(line2, NULL); + if (ret == 1) { + ret = gpiod_line_event_read(line2, &event); + if (ret == 0) { + handle_volume_event(&event, "hw:0", "Master", 5); // 增加音量 + } + } + + ret = gpiod_line_event_wait(line3, NULL); + if (ret == 1) { + ret = gpiod_line_event_read(line3, &event); + if (ret == 0) { + handle_volume_event(&event, "hw:0", "Master", -5); // 减少音量 + } + } + + // 在事件等待循环中调用录音处理函数 + handle_recording(frames); + } + + // 关闭GPIO芯片 + gpiod_chip_close(chip); + + return 0; +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/led.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/led.c" new file mode 100755 index 0000000000000000000000000000000000000000..9f5544398ab3658abd3e5da80ebf41f26721bbc6 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/led.c" @@ -0,0 +1,3 @@ +#include + + diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/main.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/main.c" new file mode 100755 index 0000000000000000000000000000000000000000..0fa6fecbe84d430d7d0ae496c0012706854ec55e --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/main.c" @@ -0,0 +1,5 @@ +#include + +int main(){ + printf("Hello, from HVA!\n"); +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/play.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/play.c" new file mode 100755 index 0000000000000000000000000000000000000000..be6eeb0fecdb42ef9612d123638bf014b1f4c406 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/play.c" @@ -0,0 +1,154 @@ +#include +#include +#include + +// 错误码定义 +#define ERROR_PCM_OPEN_FAILED -1 +#define ERROR_HW_PARAMS_FAILED -2 +#define ERROR_PCM_READ_FAILED -3 + +// 打开并配置PCM设备 +int open_pcm_device(snd_pcm_t **playback, const char *device, snd_pcm_format_t format, unsigned int rate, int channels, snd_pcm_uframes_t frames) { + int err; + snd_pcm_hw_params_t *hw_params; + + // 打开PCM设备 + if ((err = snd_pcm_open(playback, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0) { + fprintf(stderr, "无法打开PCM设备:%s\n", snd_strerror(err)); + return ERROR_PCM_OPEN_FAILED; + } + + // 分配硬件参数结构体 + snd_pcm_hw_params_alloca(&hw_params); + + // 初始化硬件参数 + if ((err = snd_pcm_hw_params_any(*playback, hw_params)) < 0) { + fprintf(stderr, "无法初始化硬件参数:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置访问类型 + if ((err = snd_pcm_hw_params_set_access(*playback, hw_params, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) { + fprintf(stderr, "无法设置访问类型:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置采样格式 + if ((err = snd_pcm_hw_params_set_format(*playback, hw_params, format)) < 0) { + fprintf(stderr, "无法设置采样格式:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置通道数 + if ((err = snd_pcm_hw_params_set_channels(*playback, hw_params, channels)) < 0) { + fprintf(stderr, "无法设置通道数:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置采样率 + if ((err = snd_pcm_hw_params_set_rate_near(*playback, hw_params, &rate, NULL)) < 0) { + fprintf(stderr, "无法设置采样率:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置每个周期的帧数 + if ((err = snd_pcm_hw_params_set_period_size_near(*playback, hw_params, &frames, NULL)) < 0) { + fprintf(stderr, "无法设置周期帧数:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + // 应用硬件参数 + if ((err = snd_pcm_hw_params(*playback, hw_params)) < 0) { + fprintf(stderr, "无法应用硬件参数:%s\n", snd_strerror(err)); + snd_pcm_close(*playback); + return ERROR_HW_PARAMS_FAILED; + } + + return 0; // 成功返回0 +} + +// 从文件读取音频数据并播放 +int play_audio_from_file(snd_pcm_t *playback, const char *filename, snd_pcm_uframes_t frames, int channels) { + int err; + FILE *file; + char *buffer; + + // 打开输入文件 + if ((file = fopen(filename, "rb")) == NULL) { + fprintf(stderr, "无法打开输入文件\n"); + snd_pcm_close(playback); + return ERROR_PCM_READ_FAILED; + } + + // 分配缓冲区 + buffer = (char *)malloc(snd_pcm_frames_to_bytes(playback, frames)); + if (!buffer) { + fprintf(stderr, "无法分配缓冲区内存\n"); + fclose(file); + snd_pcm_close(playback); + return ERROR_PCM_READ_FAILED; + } + + // 读取并播放数据 + while (1) { + size_t read_size = fread(buffer, 1, snd_pcm_frames_to_bytes(playback, frames), file); + if (read_size == 0) { + break; // 文件读取完毕 + } + + err = snd_pcm_writei(playback, buffer, frames); + if (err < 0) { + if (err == -EPIPE) { + // 缓冲区溢出 + snd_pcm_prepare(playback); + } else { + fprintf(stderr, "播放音频失败:%s\n", snd_strerror(err)); + free(buffer); + fclose(file); + snd_pcm_close(playback); + return ERROR_PCM_READ_FAILED; + } + } + } + + // 释放资源 + free(buffer); + fclose(file); + snd_pcm_close(playback); + + return 0; // 成功返回0 +} + +int main(int argc, char *argv[]) { + const char *pcm_device = "hw:0,0"; + snd_pcm_format_t format = SND_PCM_FORMAT_S16_LE; + unsigned int rate = 44100; + int channels = 2; + snd_pcm_uframes_t frames = 4096; + const char *input_file = "output.pcm"; + snd_pcm_t *playback; + int ret; + + // 打开并配置PCM设备 + ret = open_pcm_device(&playback, pcm_device, format, rate, channels, frames); + if (ret != 0) { + printf("音频设备配置失败,错误码:%d\n", ret); + return ret; + } + + // 从文件读取音频并播放 + ret = play_audio_from_file(playback, input_file, frames, channels); + if (ret == 0) { + printf("音频播放成功\n"); + } else { + printf("音频播放失败,错误码:%d\n", ret); + } + + return ret; +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/record.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/record.c" new file mode 100755 index 0000000000000000000000000000000000000000..841cb86a9df0896d07129fd485e0e44ad32dce51 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/record.c" @@ -0,0 +1,131 @@ +#include +#include +#include +#include "record.h" + +snd_pcm_t *capture = NULL; +FILE *file = NULL; +char *buffer = NULL; +int recording = 0; // 录音状态标志 + +int open_pcm_device(snd_pcm_t **capture, const char *device, snd_pcm_format_t format, unsigned int rate, int channels, snd_pcm_uframes_t frames) { + int err; + snd_pcm_hw_params_t *hw_params; + + // 打开PCM设备 + if ((err = snd_pcm_open(capture, device, SND_PCM_STREAM_CAPTURE, 0)) < 0) { + fprintf(stderr, "无法打开PCM设备:%s\n", snd_strerror(err)); + return ERROR_PCM_OPEN_FAILED; + } + + // 分配硬件参数结构体 + snd_pcm_hw_params_alloca(&hw_params); + + // 初始化硬件参数 + if ((err = snd_pcm_hw_params_any(*capture, hw_params)) < 0) { + fprintf(stderr, "无法初始化硬件参数:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置访问类型 + if ((err = snd_pcm_hw_params_set_access(*capture, hw_params, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) { + fprintf(stderr, "无法设置访问类型:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置采样格式 + if ((err = snd_pcm_hw_params_set_format(*capture, hw_params, format)) < 0) { + fprintf(stderr, "无法设置采样格式:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置通道数 + if ((err = snd_pcm_hw_params_set_channels(*capture, hw_params, channels)) < 0) { + fprintf(stderr, "无法设置通道数:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置采样率 + if ((err = snd_pcm_hw_params_set_rate_near(*capture, hw_params, &rate, NULL)) < 0) { + fprintf(stderr, "无法设置采样率:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + // 设置每个周期的帧数 + if ((err = snd_pcm_hw_params_set_period_size_near(*capture, hw_params, &frames, NULL)) < 0) { + fprintf(stderr, "无法设置周期帧数:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + // 应用硬件参数 + if ((err = snd_pcm_hw_params(*capture, hw_params)) < 0) { + fprintf(stderr, "无法应用硬件参数:%s\n", snd_strerror(err)); + snd_pcm_close(*capture); + return ERROR_HW_PARAMS_FAILED; + } + + return 0; // 成功返回0 +} + +int start_recording(const char *filename, snd_pcm_uframes_t frames, int channels) { + int err; + + // 打开输出文件 + if ((file = fopen(filename, "wb")) == NULL) { + fprintf(stderr, "无法打开输出文件\n"); + snd_pcm_close(capture); + return ERROR_PCM_WRITE_FAILED; + } + + // 分配缓冲区 + buffer = (char *)malloc(snd_pcm_frames_to_bytes(capture, frames)); + if (!buffer) { + fprintf(stderr, "无法分配缓冲区内存\n"); + fclose(file); + snd_pcm_close(capture); + return ERROR_PCM_WRITE_FAILED; + } + + recording = 1; + return 0; // 成功返回0 +} + +void stop_recording() { + if (recording) { + recording = 0; + free(buffer); + fclose(file); + snd_pcm_close(capture); + printf("录音结束\n"); + } +} + +void handle_recording(snd_pcm_uframes_t frames) { + int err; + + if (recording) { + err = snd_pcm_readi(capture, buffer, frames); + if (err < 0) { + if (err == -EPIPE) { + // 缓冲区溢出 + snd_pcm_prepare(capture); + } else { + fprintf(stderr, "采集音频失败:%s\n", snd_strerror(err)); + stop_recording(); + return; + } + } + + // 写入文件 + if (fwrite(buffer, snd_pcm_frames_to_bytes(capture, frames), 1, file) != 1) { + fprintf(stderr, "写入文件失败\n"); + stop_recording(); + } + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/record.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/record.h" new file mode 100755 index 0000000000000000000000000000000000000000..add883c2bc9ccd6f08d7a5e563dfee8f0cd8b094 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/record.h" @@ -0,0 +1,23 @@ +#ifndef RECORD_H +#define RECORD_H + +#include + +// 错误码定义 +#define ERROR_PCM_OPEN_FAILED -1 +#define ERROR_HW_PARAMS_FAILED -2 +#define ERROR_PCM_WRITE_FAILED -3 + +// 打开并配置PCM设备 +int open_pcm_device(snd_pcm_t **capture, const char *device, snd_pcm_format_t format, unsigned int rate, int channels, snd_pcm_uframes_t frames); + +// 开始录音 +int start_recording(const char *filename, snd_pcm_uframes_t frames, int channels); + +// 停止录音 +void stop_recording(); + +// 录音处理函数 +void handle_recording(snd_pcm_uframes_t frames); + +#endif // RECORD_H diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/CMakeLists.txt" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/CMakeLists.txt" new file mode 100755 index 0000000000000000000000000000000000000000..ad14b3dd4338de4ea29f7721ca50cca4649338af --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/CMakeLists.txt" @@ -0,0 +1,7 @@ +project(snowboy) + +add_library(snowboy-wrapper STATIC snowboy-detect-c-wrapper.cc) +target_compile_options(snowboy-wrapper PRIVATE -D_GLIBCXX_USE_CXX11_ABI=0) + +add_library(snowboy-detect STATIC IMPORTED GLOBAL) +set_target_properties(snowboy-detect PROPERTIES IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/libsnowboy-detect.a ) diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/libsnowboy-detect.a" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/libsnowboy-detect.a" new file mode 100755 index 0000000000000000000000000000000000000000..df04d29d13839fab97b1e97d45d5302ec8d41c48 Binary files /dev/null and "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/libsnowboy-detect.a" differ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect-c-wrapper.cc" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect-c-wrapper.cc" new file mode 100755 index 0000000000000000000000000000000000000000..148e59742089902b953f01664d8ba7eb5fd7fae8 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect-c-wrapper.cc" @@ -0,0 +1,82 @@ +// snowboy-detect-c-wrapper.cc + +// Copyright 2017 KITT.AI (author: Guoguo Chen) + +#include + +#include "snowboy-detect-c-wrapper.h" +#include "snowboy-detect.h" + +extern "C" { + SnowboyDetect* SnowboyDetectConstructor(const char* const resource_filename, + const char* const model_str) { + return reinterpret_cast( + new snowboy::SnowboyDetect(resource_filename, model_str)); + } + + bool SnowboyDetectReset(SnowboyDetect* detector) { + assert(detector != NULL); + return reinterpret_cast(detector)->Reset(); + } + + int SnowboyDetectRunDetection(SnowboyDetect* detector, + const int16_t* const data, + const int array_length, bool is_end) { + assert(detector != NULL); + assert(data != NULL); + return reinterpret_cast( + detector)->RunDetection(data, array_length, is_end); + } + + void SnowboyDetectSetSensitivity(SnowboyDetect* detector, + const char* const sensitivity_str) { + assert(detector != NULL); + reinterpret_cast( + detector)->SetSensitivity(sensitivity_str); + } + + void SnowboyDetectSetAudioGain(SnowboyDetect* detector, + const float audio_gain) { + assert(detector != NULL); + reinterpret_cast( + detector)->SetAudioGain(audio_gain); + } + + void SnowboyDetectUpdateModel(SnowboyDetect* detector) { + assert(detector != NULL); + reinterpret_cast(detector)->UpdateModel(); + } + + void SnowboyDetectApplyFrontend(SnowboyDetect* detector, + const bool apply_frontend) { + assert(detector != NULL); + reinterpret_cast( + detector)->ApplyFrontend(apply_frontend); + } + + int SnowboyDetectNumHotwords(SnowboyDetect* detector) { + assert(detector != NULL); + return reinterpret_cast(detector)->NumHotwords(); + } + + int SnowboyDetectSampleRate(SnowboyDetect* detector) { + assert(detector != NULL); + return reinterpret_cast(detector)->SampleRate(); + } + + int SnowboyDetectNumChannels(SnowboyDetect* detector) { + assert(detector != NULL); + return reinterpret_cast(detector)->NumChannels(); + } + + int SnowboyDetectBitsPerSample(SnowboyDetect* detector) { + assert(detector != NULL); + return reinterpret_cast(detector)->BitsPerSample(); + } + + void SnowboyDetectDestructor(SnowboyDetect* detector) { + assert(detector != NULL); + delete reinterpret_cast(detector); + detector = NULL; + } +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect-c-wrapper.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect-c-wrapper.h" new file mode 100755 index 0000000000000000000000000000000000000000..99a4e02a6ff094c0bea2dd8a92113208f29610d7 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect-c-wrapper.h" @@ -0,0 +1,51 @@ +// snowboy-detect-c-wrapper.h + +// Copyright 2017 KITT.AI (author: Guoguo Chen) + +#ifndef SNOWBOY_DETECT_C_WRAPPER_H_ +#define SNOWBOY_DETECT_C_WRAPPER_H_ + +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + + typedef struct SnowboyDetect SnowboyDetect; + + SnowboyDetect* SnowboyDetectConstructor(const char* const resource_filename, + const char* const model_str); + + bool SnowboyDetectReset(SnowboyDetect* detector); + + int SnowboyDetectRunDetection(SnowboyDetect* detector, + const int16_t* const data, + const int array_length, bool is_end); + + void SnowboyDetectSetSensitivity(SnowboyDetect* detector, + const char* const sensitivity_str); + + void SnowboyDetectSetAudioGain(SnowboyDetect* detector, + const float audio_gain); + + void SnowboyDetectUpdateModel(SnowboyDetect* detector); + + void SnowboyDetectApplyFrontend(SnowboyDetect* detector, + const bool apply_frontend); + + int SnowboyDetectNumHotwords(SnowboyDetect* detector); + + int SnowboyDetectSampleRate(SnowboyDetect* detector); + + int SnowboyDetectNumChannels(SnowboyDetect* detector); + + int SnowboyDetectBitsPerSample(SnowboyDetect* detector); + + void SnowboyDetectDestructor(SnowboyDetect* detector); + +#ifdef __cplusplus +} +#endif + +#endif // SNOWBOY_DETECT_C_WRAPPER_H_ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect.h" new file mode 100755 index 0000000000000000000000000000000000000000..95e06c591a5dbc24eeebf9b817af09d0b27decec --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/snowboy/snowboy-detect.h" @@ -0,0 +1,226 @@ +// include/snowboy-detect.h + +// Copyright 2016 KITT.AI (author: Guoguo Chen) + +#ifndef SNOWBOY_INCLUDE_SNOWBOY_DETECT_H_ +#define SNOWBOY_INCLUDE_SNOWBOY_DETECT_H_ + +#include +#include + +namespace snowboy { + +// Forward declaration. +struct WaveHeader; +class PipelineDetect; +class PipelineVad; + +//////////////////////////////////////////////////////////////////////////////// +// +// SnowboyDetect class interface. +// +//////////////////////////////////////////////////////////////////////////////// +class SnowboyDetect { + public: + // Constructor that takes a resource file, and a list of hotword models which + // are separated by comma. In the case that more than one hotword exist in the + // provided models, RunDetection() will return the index of the hotword, if + // the corresponding hotword is triggered. + // + // CAVEAT: a personal model only contain one hotword, but an universal model + // may contain multiple hotwords. It is your responsibility to figure + // out the index of the hotword. For example, if your model string is + // "foo.pmdl,bar.umdl", where foo.pmdl contains hotword x, bar.umdl + // has two hotwords y and z, the indices of different hotwords are as + // follows: + // x 1 + // y 2 + // z 3 + // + // @param [in] resource_filename Filename of resource file. + // @param [in] model_str A string of multiple hotword models, + // separated by comma. + SnowboyDetect(const std::string& resource_filename, + const std::string& model_str); + + // Resets the detection. This class handles voice activity detection (VAD) + // internally. But if you have an external VAD, you should call Reset() + // whenever you see segment end from your VAD. + bool Reset(); + + // Runs hotword detection. Supported audio format is WAVE (with linear PCM, + // 8-bits unsigned integer, 16-bits signed integer or 32-bits signed integer). + // See SampleRate(), NumChannels() and BitsPerSample() for the required + // sampling rate, number of channels and bits per sample values. You are + // supposed to provide a small chunk of data (e.g., 0.1 second) each time you + // call RunDetection(). Larger chunk usually leads to longer delay, but less + // CPU usage. + // + // Definition of return values: + // -2: Silence. + // -1: Error. + // 0: No event. + // 1: Hotword 1 triggered. + // 2: Hotword 2 triggered. + // ... + // + // @param [in] data Small chunk of data to be detected. See + // above for the supported data format. + // @param [in] is_end Set it to true if it is the end of a + // utterance or file. + int RunDetection(const std::string& data, bool is_end = false); + + // Various versions of RunDetection() that take different format of audio. If + // NumChannels() > 1, e.g., NumChannels() == 2, then the array is as follows: + // + // d1c1, d1c2, d2c1, d2c2, d3c1, d3c2, ..., dNc1, dNc2 + // + // where d1c1 means data point 1 of channel 1. + // + // @param [in] data Small chunk of data to be detected. See + // above for the supported data format. + // @param [in] array_length Length of the data array. + // @param [in] is_end Set it to true if it is the end of a + // utterance or file. + int RunDetection(const float* const data, + const int array_length, bool is_end = false); + int RunDetection(const int16_t* const data, + const int array_length, bool is_end = false); + int RunDetection(const int32_t* const data, + const int array_length, bool is_end = false); + + // Sets the sensitivity string for the loaded hotwords. A is + // a list of floating numbers between 0 and 1, and separated by comma. For + // example, if there are 3 loaded hotwords, your string should looks something + // like this: + // 0.4,0.5,0.8 + // Make sure you properly align the sensitivity value to the corresponding + // hotword. + void SetSensitivity(const std::string& sensitivity_str); + + // Similar to the sensitivity setting above. When set higher than the above + // sensitivity, the algorithm automatically chooses between the normal + // sensitivity set above and the higher sensitivity set here, to maximize the + // performance. By default, it is not set, which means the algorithm will + // stick with the sensitivity set above. + void SetHighSensitivity(const std::string& high_sensitivity_str); + + // Returns the sensitivity string for the current hotwords. + std::string GetSensitivity() const; + + // Applied a fixed gain to the input audio. In case you have a very weak + // microphone, you can use this function to boost input audio level. + void SetAudioGain(const float audio_gain); + + // Writes the models to the model filenames specified in in the + // constructor. This overwrites the original model with the latest parameter + // setting. You are supposed to call this function if you have updated the + // hotword sensitivities through SetSensitivity(), and you would like to store + // those values in the model as the default value. + void UpdateModel() const; + + // Returns the number of the loaded hotwords. This helps you to figure the + // index of the hotwords. + int NumHotwords() const; + + // If is true, then apply frontend audio processing; + // otherwise turns the audio processing off. Frontend audio processing + // includes algorithms such as automatic gain control (AGC), noise suppression + // (NS) and so on. Generally adding frontend audio processing helps the + // performance, but if the model is not trained with frontend audio + // processing, it may decrease the performance. The general rule of thumb is: + // 1. For personal models, set it to false. + // 2. For universal models, follow the instruction of each published model + void ApplyFrontend(const bool apply_frontend); + + // Returns the required sampling rate, number of channels and bits per sample + // values for the audio data. You should use this information to set up your + // audio capturing interface. + int SampleRate() const; + int NumChannels() const; + int BitsPerSample() const; + + ~SnowboyDetect(); + + private: + std::unique_ptr wave_header_; + std::unique_ptr detect_pipeline_; +}; + +//////////////////////////////////////////////////////////////////////////////// +// +// SnowboyVad class interface. +// +//////////////////////////////////////////////////////////////////////////////// +class SnowboyVad { + public: + // Constructor that takes a resource file. It shares the same resource file + // with SnowboyDetect. + SnowboyVad(const std::string& resource_filename); + + // Resets the VAD. + bool Reset(); + + // Runs the VAD algorithm. Supported audio format is WAVE (with linear PCM, + // 8-bits unsigned integer, 16-bits signed integer or 32-bits signed integer). + // See SampleRate(), NumChannels() and BitsPerSample() for the required + // sampling rate, number of channels and bits per sample values. You are + // supposed to provide a small chunk of data (e.g., 0.1 second) each time you + // call RunDetection(). Larger chunk usually leads to longer delay, but less + // CPU usage. + // + // Definition of return values: + // -2: Silence. + // -1: Error. + // 0: Non-silence. + // + // @param [in] data Small chunk of data to be detected. See + // above for the supported data format. + // @param [in] is_end Set it to true if it is the end of a + // utterance or file. + int RunVad(const std::string& data, bool is_end = false); + + // Various versions of RunVad() that take different format of audio. If + // NumChannels() > 1, e.g., NumChannels() == 2, then the array is as follows: + // + // d1c1, d1c2, d2c1, d2c2, d3c1, d3c2, ..., dNc1, dNc2 + // + // where d1c1 means data point 1 of channel 1. + // + // @param [in] data Small chunk of data to be detected. See + // above for the supported data format. + // @param [in] array_length Length of the data array. + // @param [in] is_end Set it to true if it is the end of a + // utterance or file. + int RunVad(const float* const data, + const int array_length, bool is_end = false); + int RunVad(const int16_t* const data, + const int array_length, bool is_end = false); + int RunVad(const int32_t* const data, + const int array_length, bool is_end = false); + + // Applied a fixed gain to the input audio. In case you have a very weak + // microphone, you can use this function to boost input audio level. + void SetAudioGain(const float audio_gain); + + // If is true, then apply frontend audio processing; + // otherwise turns the audio processing off. + void ApplyFrontend(const bool apply_frontend); + + // Returns the required sampling rate, number of channels and bits per sample + // values for the audio data. You should use this information to set up your + // audio capturing interface. + int SampleRate() const; + int NumChannels() const; + int BitsPerSample() const; + + ~SnowboyVad(); + + private: + std::unique_ptr wave_header_; + std::unique_ptr vad_pipeline_; +}; + +} // namespace snowboy + +#endif // SNOWBOY_INCLUDE_SNOWBOY_DETECT_H_ diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/stt.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/stt.c" new file mode 100755 index 0000000000000000000000000000000000000000..e43f1e0e7ea9b581303d229e01cb59eff9491b4e --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/stt.c" @@ -0,0 +1,190 @@ +#define _GNU_SOURCE +#include +#include +#include +#include +#include +#include "config.h" +#include "token.h" +#include "stt.h" +#include // 使用jansson库代替cjson + +// 读取音频文件 +// file: 音频文件路径 +// size: 音频文件大小 +// return: 音频文件内容 +char* read_audio_file(const char* file, size_t* size) { + FILE *fp = fopen(file, "rb"); + if (!fp) { + fprintf(stderr, "无法打开音频文件: %s\n", file); + return NULL; + } + + // 获取文件大小 + fseek(fp, 0, SEEK_END); + *size = ftell(fp); + fseek(fp, 0, SEEK_SET); + + // 读取文件内容 + char* buffer = malloc(*size); + if (!buffer) { + fprintf(stderr, "无法分配内存\n"); + fclose(fp); + return NULL; + } + fread(buffer, 1, *size, fp); + fclose(fp); + + return buffer; +} + +// 写回调函数,用于存储响应数据 +size_t write_callback(void *ptr, size_t size, size_t nmemb, void *stream) { + size_t realsize = size * nmemb; + char **response_ptr = (char**)stream; + + // 分配内存用于存储响应数据 + *response_ptr = strndup(ptr, realsize); + + return realsize; +} + +// 发送请求消息 +// return: 响应消息正文,NULL表示失败 +char* send_request(const char* access_token, const char* audio_data, size_t size) { + CURL *client; + CURLcode err; + char *url = NULL; + char *response = NULL; + + asprintf(&url, "http://vop.baidu.com/server_api?cuid=zayuwe&token=%s", access_token); + + // 初始化libcurl + curl_global_init(CURL_GLOBAL_ALL); + + // 初始化一个curl会话 + client = curl_easy_init(); + if (!client) { + fprintf(stderr, "curl_easy_init() failed\n"); + free(url); + return NULL; + } + + // 设置请求头 + struct curl_slist *headers = NULL; + headers = curl_slist_append(headers, "Content-Type: audio/pcm;rate=16000"); + + // 设置curl选项 + curl_easy_setopt(client, CURLOPT_URL, url); + curl_easy_setopt(client, CURLOPT_POST, 1L); + curl_easy_setopt(client, CURLOPT_POSTFIELDS, audio_data); + curl_easy_setopt(client, CURLOPT_POSTFIELDSIZE, size); + curl_easy_setopt(client, CURLOPT_HTTPHEADER, headers); + curl_easy_setopt(client, CURLOPT_WRITEFUNCTION, write_callback); + curl_easy_setopt(client, CURLOPT_WRITEDATA, &response); + + // 执行请求 + err = curl_easy_perform(client); + if (err != CURLE_OK) { + fprintf(stderr, "curl_easy_perform() failed: %s\n", curl_easy_strerror(err)); + curl_easy_cleanup(client); + curl_global_cleanup(); + free(url); + curl_slist_free_all(headers); + return NULL; + } + + // 清理curl会话 + curl_easy_cleanup(client); + curl_global_cleanup(); + free(url); + curl_slist_free_all(headers); + + return response; +} + +// 处理服务器返回的响应信息 +void process_response(const char* response) { + json_error_t error; + json_t *root = json_loads(response, 0, &error); + if (!root) { + fprintf(stderr, "无法解析响应消息: %s\n", error.text); + return; + } + + // 判断err_no字段 + json_t *err_no_json = json_object_get(root, "err_no"); + if (!json_is_integer(err_no_json)) { + fprintf(stderr, "响应消息中缺少err_no字段\n"); + json_decref(root); + return; + } + int err_no = json_integer_value(err_no_json); + if (err_no != 0) { + fprintf(stderr, "错误码: %d\n", err_no); + json_decref(root); + return; + } + + // 获取结果 + json_t *result = json_object_get(root, "result"); + if (!json_is_array(result)) { + fprintf(stderr, "无法获取结果\n"); + json_decref(root); + return; + } + + // 打印结果 + size_t index; + json_t *value; + json_array_foreach(result, index, value) { + printf("识别结果: %s\n", json_string_value(value)); + } + + json_decref(root); +} + +void process_audio_file(const char* filename) { + Config config; + if (read_config("app.json", &config) != 0) { + fprintf(stderr, "无法读取配置文件\n"); + return; + } + + // 获取Access Token + char* access_token = get_access_token(config.AK, config.SK); + if (!access_token) { + fprintf(stderr, "无法获取Access Token\n"); + free_config(&config); + return; + } + + // 读取音频文件 + size_t size; + char* audio_data = read_audio_file(filename, &size); + if (!audio_data) { + fprintf(stderr, "无法读取音频文件\n"); + free(access_token); + free_config(&config); + return; + } + + // 调用百度语音识别API + char* response = send_request(access_token, audio_data, size); + if (!response) { + fprintf(stderr, "无法发送请求\n"); + free(audio_data); + free(access_token); + free_config(&config); + return; + } + + // 处理响应消息 + process_response(response); + + // 释放内存 + free(response); + free(audio_data); + free(access_token); + free_config(&config); +} \ No newline at end of file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/stt.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/stt.h" new file mode 100755 index 0000000000000000000000000000000000000000..483f4fdaa561087b694baea7ea24a1fbcf60652d --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/stt.h" @@ -0,0 +1,6 @@ +#ifndef STT_H +#define STT_H + +void process_audio_file(const char* filename); + +#endif diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/token.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/token.c" new file mode 100755 index 0000000000000000000000000000000000000000..e0a2344130606bdc6b85e5e349208a8440dd7253 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/token.c" @@ -0,0 +1,114 @@ +#include +#define _GNU_SOURCE +#include +#include +#include +#include +#include "config.h" // 包含config.h + +// 宏定义用于简洁地处理curl错误 +#define CHECK_CURL_RESULT(res) if(res != CURLE_OK) { \ + fprintf(stderr, "curl错误: %s\n", curl_easy_strerror(res)); \ + return NULL; \ +} + +// 函数声明,用于获取Access Token +char* get_access_token(const char* AK, const char* SK); + +// int main() { +// Config config; +// if (read_config("app.json", &config) != 0) { +// fprintf(stderr, "读取配置文件失败\n"); +// return 1; +// } + +// char* accessToken = get_access_token(config.AK, config.SK); +// if(accessToken) { +// printf("Access Token: %s\n", accessToken); +// free(accessToken); // 使用完毕后释放内存 +// } else { +// printf("获取Access Token失败。\n"); +// } + +// free_config(&config); +// return 0; +// } + +// 实现获取Access Token的函数 +char* get_access_token(const char* AK, const char* SK) { + CURL *curl; // curl会话句柄 + CURLcode res; // 存储curl操作结果的状态码 + char *post_fields = NULL; // 构造POST请求的参数字符串 + char *access_token = NULL; // 存储获取到的Access Token + FILE *stream; // 文件流,用于存储curl响应数据 + char *buffer = NULL; // 动态分配的内存缓冲区 + size_t length = 0; // 缓冲区长度 + + // 使用asprintf动态构建POST请求参数 + asprintf(&post_fields, "grant_type=client_credentials&client_id=%s&client_secret=%s", AK, SK); + + // 初始化libcurl库 + curl_global_init(CURL_GLOBAL_DEFAULT); + curl = curl_easy_init(); + if(curl) { + // 使用open_memstream创建一个内存中的文件流,关联到buffer和length + stream = open_memstream(&buffer, &length); + if (!stream) { + perror("无法打开内存流"); + free(post_fields); + return NULL; + } + + // 设置curl选项 + curl_easy_setopt(curl, CURLOPT_URL, "https://aip.baidubce.com/oauth/2.0/token"); // API请求URL + curl_easy_setopt(curl, CURLOPT_POST, 1L); // 设置请求方法为POST + curl_easy_setopt(curl, CURLOPT_POSTFIELDS, post_fields); // 设置POST数据 + curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, fwrite); // 设置写入回调函数为fwrite,用于写入内存流 + curl_easy_setopt(curl, CURLOPT_WRITEDATA, stream); // 设置数据写入目标为内存流 + + // 执行请求 + res = curl_easy_perform(curl); + CHECK_CURL_RESULT(res); // 检查curl操作是否成功 + + // 关闭内存流 + fclose(stream); + + // 使用jansson解析响应数据 + json_error_t error; + json_t *root = json_loads(buffer, 0, &error); // 解析JSON + if (!root) { + fprintf(stderr, "解析JSON错误: %s\n", error.text); + free(buffer); + free(post_fields); + curl_easy_cleanup(curl); + curl_global_cleanup(); + return NULL; + } + + // 从JSON对象中提取access_token + json_t *token_json = json_object_get(root, "access_token"); + if(!json_is_string(token_json)) { + fprintf(stderr, "从JSON响应中未能获取到'access_token'\n"); + json_decref(root); + free(buffer); + free(post_fields); + curl_easy_cleanup(curl); + curl_global_cleanup(); + return NULL; + } + + // 复制access_token并返回,确保释放原始内存 + access_token = strdup(json_string_value(token_json)); + json_decref(root); // 删除json对象 + free(buffer); // 释放内存缓冲区 + free(post_fields); // 释放POST数据字符串 + curl_easy_cleanup(curl); // 清理curl会话 + curl_global_cleanup(); // 清理全局curl状态 + } else { + fprintf(stderr, "初始化curl失败\n"); + curl_global_cleanup(); + return NULL; + } + + return access_token; // 成功获取到的Access Token +} diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/token.h" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/token.h" new file mode 100755 index 0000000000000000000000000000000000000000..b1479af34589fc45a8444d31642fedffda7c3a42 --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/token.h" @@ -0,0 +1,6 @@ +#ifndef TOKEN_H +#define TOKEN_H + +char* get_access_token(const char* AK, const char* SK); + +#endif \ No newline at end of file diff --git "a/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/wake.c" "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/wake.c" new file mode 100755 index 0000000000000000000000000000000000000000..9dcdad12b706db046f01f71b39bf41500f7cd2bb --- /dev/null +++ "b/14/\347\254\254\344\270\200\343\200\201\344\272\214\343\200\201\344\272\224\346\254\241\344\275\234\344\270\232\346\217\220\344\272\244/0703/wake.c" @@ -0,0 +1,109 @@ +#include +#include +#include +#include +#include "record.h" +#include "control.h" +#include "snowboy/snowboy-detect-c-wrapper.h" //唤醒词检测 + +extern snd_pcm_t *capture; // 声明外部变量capture + +#define SILENCE_THRESHOLD 0.02 // 静音检测阈值 +#define SILENCE_DURATION 5 // 静音持续时间(秒) + +int main() { + // 创建snowboy检测器 + SnowboyDetect* detector = SnowboyDetectConstructor("common.res", "wakeup.pmdl"); + + if (!detector) { + return EXIT_FAILURE; + } + + // 获取采样参数 + int bits = SnowboyDetectBitsPerSample(detector); + int channels = SnowboyDetectNumChannels(detector); + int rate = SnowboyDetectSampleRate(detector); + snd_pcm_uframes_t period = 999; // 设置周期大小 + + printf("采样深度:%d\n", bits); + printf("声道数量:%d\n", channels); + printf("采样频率:%d\n", rate); + + // 打开音频采集设备 + int err = open_pcm_device(&capture, "hw:0,0", SND_PCM_FORMAT_S16_LE, rate, channels, period); + if (err < 0) { + return EXIT_FAILURE; + } + + SnowboyDetectSetSensitivity(detector, "0.5"); + + char* buffer = malloc(snd_pcm_frames_to_bytes(capture, period)); + if (!buffer) { + perror("malloc"); + snd_pcm_close(capture); + SnowboyDetectDestructor(detector); + return EXIT_FAILURE; + } + + int recording_started = 0; + int silence_counter = 0; + + while (1) { + snd_pcm_sframes_t frames = snd_pcm_readi(capture, buffer, period); + if (frames < 0) { + fprintf(stderr, "读取音频帧失败:%s\n", snd_strerror(frames)); + snd_pcm_recover(capture, frames, 0); + continue; + } + + // 唤醒词检测 + int status = SnowboyDetectRunDetection(detector, (int16_t*)buffer, frames * channels, 0); + if (status > 0) { + printf("检测到唤醒词\n"); + if (!recording_started) { + err = start_recording("output.pcm", period, channels); + if (err < 0) { + free(buffer); + snd_pcm_close(capture); + SnowboyDetectDestructor(detector); + return EXIT_FAILURE; + } + recording_started = 1; + silence_counter = 0; + } + } + + if (recording_started) { + handle_recording(period); + + // 静音检测 + int16_t* samples = (int16_t*)buffer; + int silence_samples = 0; + for (int i = 0; i < frames * channels; ++i) { + if (abs(samples[i]) < SILENCE_THRESHOLD * INT16_MAX) { + silence_samples++; + } + } + if (silence_samples >= frames * channels * 0.9) { // 超过90%的样本为静音 + silence_counter++; + } else { + silence_counter = 0; + } + + if (silence_counter >= SILENCE_DURATION * rate / period) { + printf("检测到连续5秒的静音,停止录音\n"); + stop_recording(); + recording_started = 0; + break; // 录音停止,跳出循环 + } + } + } + + free(buffer); + if (recording_started) { + stop_recording(); + } + SnowboyDetectDestructor(detector); + + return EXIT_SUCCESS; +} diff --git a/build/.cmake/api/v1/reply/index-2024-07-04T04-46-28-0062.json b/build/.cmake/api/v1/reply/index-2024-07-07T06-20-46-0476.json similarity index 100% rename from build/.cmake/api/v1/reply/index-2024-07-04T04-46-28-0062.json rename to build/.cmake/api/v1/reply/index-2024-07-07T06-20-46-0476.json