code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef _OPUS_DECODER_H_ #define _OPUS_DECODER_H_ #include "esp_err.h" #include "audio_element.h" #include "audio_common.h" #ifdef __cplusplus extern "C" { #endif #define OPUS_DECODER_TASK_STACK_SIZE (30 * 1024) #define OPUS_DECODER_...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/codec/opus_decoder.h
C
apache-2.0
1,601
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef _OPUS_ENCODER_H_ #define _OPUS_ENCODER_H_ #include "esp_err.h" #include "audio_element.h" #include "audio_common.h" #ifdef __cplusplus extern "C" { #endif #define OPUS_ENCODER_TASK_STACK (40 * 1024) #define OPUS_ENCODER_...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/codec/opus_encoder.h
C
apache-2.0
3,480
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to d...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/codec/pcm_decoder.h
C
apache-2.0
3,213
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to d...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/codec/wav_decoder.h
C
apache-2.0
2,697
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef _WAV_ENCODER_H_ #define _WAV_ENCODER_H_ #include "esp_err.h" #include "audio_element.h" #ifdef __cplusplus extern "C" { #endif /** * @brief WAV Encoder configurations */ typedef struct { int out_rb_...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/codec/wav_encoder.h
C
apache-2.0
1,490
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/processing/esp_alc.h
C
apache-2.0
2,687
// Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD.> // All rights reserved. #ifndef _ESP_DOWNMIX_H_ #define _ESP_DOWNMIX_H_ #ifdef __cplusplus extern "C" { #endif #define GAIN_MAX 100 /*!< the maximum gain of input stream */ #define GAIN_MIN -100 /*!< the minimum gain of inpu...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/processing/esp_downmix.h
C
apache-2.0
7,179
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef _ESP_EQUALIZER_H #define _ESP_EQUALIZER_H #ifdef __cplusplus extern "C" { #endif /** * @brief Initialize the equalizer handle * * @param nch The audio channel number * @param g_rate The audio sam...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/processing/esp_equalizer.h
C
apache-2.0
2,539
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef _ESPRESSIF_RESAMPLE_H_ #define _ESPRESSIF_RESAMPLE_H_ #ifdef __cplusplus extern "C" { #endif #define PCM_INOUT_NUM_RESTRICT (2) #define COMPLEXITY_MAX_NUM (5) #if (PCM_INOUT_NUM_RESTRICT < 0) || (PCM_INOUT_NUM_RESTR...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/processing/esp_resample.h
C
apache-2.0
8,369
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef __ESP_SONIC_H__ #define __ESP_SONIC_H__ #ifdef __cplusplus extern "C" { #endif /* This specifies the range of voice pitches we try to match. Note that if we go lower than 65, we could overflow in findPitchInRange */ #define SONIC_...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/processing/esp_sonic.h
C
apache-2.0
4,109
// Copyright 2020 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #ifndef _WAV_HEADER_H_ #define _WAV_HEADER_H_ #include "esp_err.h" #ifdef __cplusplus extern "C" { #endif #define CHUNKID_RIFF (0X46464952) #define CHUNKID_WAVE (0X45564157) #define CHUNKID_FMT (0X20746D66) #define CHUNKID_DATA (0X617461...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/include/processing/wav_head.h
C
apache-2.0
5,251
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD // All rights reserved. #include "esp_log.h" #include "audio_mem.h" #include "audio_element.h" #include "wav_encoder.h" #include "wav_head.h" #include "audio_error.h" static const char *TAG = "WAV_ENCODER"; typedef struct wav_encoder { bool parsed_header; }...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_codec/wav_encoder.c
C
apache-2.0
2,303
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_sip/include/esp_sip.h
C
apache-2.0
6,912
/* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_ssdp/include/esp_ssdp.h
C
apache-2.0
3,524
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_upnp/include/upnp.h
C
apache-2.0
4,953
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_upnp/include/upnp_notify.h
C
apache-2.0
3,174
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_upnp/include/upnp_service.h
C
apache-2.0
6,386
// Copyright 2015-2018 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_upnp/include/upnp_utils.h
C
apache-2.0
1,653
/* Copyright (c) 2013-2014 Yoran Heling Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/esp_upnp/include/yxml.h
C
apache-2.0
6,186
/* * ESPRESSIF MIT License * * Copyright (c) 2021 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/mrm_client/include/mrm_client.h
C
apache-2.0
3,999
/* * ESPRESSIF MIT License * * Copyright (c) 2018 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-adf-libs/recorder_engine/include/recorder_engine.h
C
apache-2.0
15,820
set(COMPONENT_SRCS speech_command_recognition/mn_process_commands.c ) set(COMPONENT_ADD_INCLUDEDIRS lib/include wake_word_engine/include speech_command_recognition/include acoustic_algorithm/include esp-tts/esp_tts_chinese/include ) register_component() target_link_libraries(${COMPO...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/CMakeLists.txt
CMake
apache-2.0
1,941
PROJECT_NAME := esp_sr_public MODULE_PATH := $(abspath $(shell pwd)) EXTRA_COMPONENT_DIRS += $(MODULE_PATH)/lib EXTRA_COMPONENT_DIRS += $(MODULE_PATH)/wake_word_engine EXTRA_COMPONENT_DIRS += $(MODULE_PATH)/speech_command_recognition EXTRA_COMPONENT_DIRS += $(MODULE_PATH)/acoustic_algorithm include $(IDF_PATH)/make/...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/Makefile
Makefile
apache-2.0
332
COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := . LIB_FILES := $(shell ls $(COMPONENT_PATH)/lib*.a) LIBS := $(patsubst lib%.a,-l%,$(notdir $(LIB_FILES))) COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/ $(LIBS) ALL_LIB_FILES += $(LIB_FILES)
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/component.mk
Makefile
apache-2.0
254
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/include/esp_aec.h
C
apache-2.0
3,342
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/include/esp_agc.h
C
apache-2.0
1,348
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/include/esp_map.h
C
apache-2.0
2,578
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/include/esp_mase.h
C
apache-2.0
2,482
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/include/esp_ns.h
C
apache-2.0
2,180
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/acoustic_algorithm/include/esp_vad.h
C
apache-2.0
2,707
COMPONENT_ADD_INCLUDEDIRS := lib/include \ wake_word_engine/include \ speech_command_recognition/include \ acoustic_algorithm/include \ esp-tts/esp_tts_chinese/include \ COMPONENT_SRCDIRS := speech_comma...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/component.mk
Makefile
apache-2.0
1,084
set(COMPONENT_ADD_INCLUDEDIRS ./esp_tts_chinese/include ) register_component() target_link_libraries(${COMPONENT_TARGET} INTERFACE "-L ${CMAKE_CURRENT_SOURCE_DIR}/esp_tts_chinese") if(IDF_TARGET STREQUAL "esp32") target_link_libraries(${COMPONENT_TARGET} INTERFACE esp_tts_chinese voice_set_xiaole ...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/CMakeLists.txt
CMake
apache-2.0
546
COMPONENT_ADD_INCLUDEDIRS := esp_tts_chinese/include LIB_FILES := $(shell ls $(COMPONENT_PATH)/esp_tts_chinese/lib*.a) LIBS := $(patsubst lib%.a,-l%,$(LIB_FILES)) COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/esp_tts_chinese \ $(LIBS)
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/component.mk
Makefile
apache-2.0
250
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts.h
C
apache-2.0
3,952
#ifndef _ESP_TTS_PARSER_H_ #define _ESP_TTS_PARSER_H_ #include "stdlib.h" #include "esp_tts_voice.h" typedef struct { int *syll_idx; int syll_num; int total_num; esp_tts_voice_t *voice; }esp_tts_utt_t; esp_tts_utt_t* esp_tts_parser_chinese (const char* str, esp_tts_voice_t *voice); esp_tts_utt_t* esp_tts_par...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts_parser.h
C
apache-2.0
601
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts_player.h
C
apache-2.0
1,924
//////////////////////////////////////////////////////////////////////////// // **** AUDIO-STRETCH **** // // Time Domain Harmonic Scaler // // Copyright (c) 2019 David Bryant // // ...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts_stretcher.h
C
apache-2.0
1,952
#ifndef _ESP_TTS_VOICE_H_ #define _ESP_TTS_VOICE_H_ typedef struct { char *voice_name; // voice set name char *format; // the format of voice data, currently support pcm and amrwb int sample_rate; // the sample rate of voice data, just for pcm format int bit_width; // the bit width...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts_voice.h
C
apache-2.0
848
#pragma once #include "esp_tts.h" extern const esp_tts_voice_t esp_tts_voice_template;
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts_voice_template.h
C
apache-2.0
90
#pragma once #include "esp_tts.h" extern const esp_tts_voice_t esp_tts_voice_xiaole;
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/esp-tts/esp_tts_chinese/include/esp_tts_voice_xiaole.h
C
apache-2.0
88
COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := . LIB_FILES := $(shell ls $(COMPONENT_PATH)/lib*.a) LIBS := $(patsubst lib%.a,-l%,$(notdir $(LIB_FILES))) COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/ $(LIBS) ALL_LIB_FILES += $(LIB_FILES)
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/component.mk
Makefile
apache-2.0
254
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/include/dl_lib.h
C
apache-2.0
13,616
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/include/dl_lib_coefgetter_if.h
C
apache-2.0
2,766
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/include/dl_lib_conv_queue.h
C
apache-2.0
6,529
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/include/dl_lib_convq_queue.h
C
apache-2.0
7,651
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/include/dl_lib_matrix.h
C
apache-2.0
7,721
// Copyright 2015-2019 Espressif Systems (Shanghai) PTE LTD // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/lib/include/dl_lib_matrixq.h
C
apache-2.0
15,644
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "audio_process.h" #include "esp_ns.h" #include "esp_aec.h" #include "esp_agc.h" #include "esp_vad.h" #include "esp_mase.h" #include "audio_test_file.h" void NSTask(void *arg) { ns_handle_t...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/audio_process.c
C
apache-2.0
5,163
# # "main" pseudo-component makefile. # # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.) COMPONENT_DEPENDS := wake_word_engine
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/component.mk
Makefile
apache-2.0
184
#pragma once void audio_process_test();
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/include/audio_process.h
C
apache-2.0
40
#pragma once void multinet_test();
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/include/multinet_test.h
C
apache-2.0
36
#pragma once void wakenet_test();
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/include/wakenet_test.h
C
apache-2.0
34
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_system.h" #include "xtensa/core-macros.h" #include "wakenet_test.h" #include "multinet_test.h" #include "audio_process.h" void app_main() { // test wakenet wakenet_test(); vTa...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/main.c
C
apache-2.0
502
#include <stdio.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_mn_iface.h" #include "esp_mn_models.h" #include "dl_lib_coefgetter_if.h" #include "multinet_test.h" #include "dakaidiandeng.h" static const esp_mn_iface_t *multinet = &MULTINET_MODEL; void multinetTask(void...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/multinet_test.c
C
apache-2.0
2,004
#include <stdio.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_wn_iface.h" #include "esp_wn_models.h" #include "dl_lib_coefgetter_if.h" #include "wakenet_test.h" #include "hilexin.h" #include <sys/time.h> static const esp_wn_iface_t *wakenet = &WAKENET_MODEL; static con...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/main/wakenet_test.c
C
apache-2.0
2,206
COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := . LIB_FILES := $(shell ls $(COMPONENT_PATH)/lib*.a) LIBS := $(patsubst lib%.a,-l%,$(notdir $(LIB_FILES))) COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/ $(LIBS) ALL_LIB_FILES += $(LIB_FILES)
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/speech_command_recognition/component.mk
Makefile
apache-2.0
254
#pragma once #include "stdint.h" #include "esp_err.h" #include "dl_lib_coefgetter_if.h" #include "esp_wn_iface.h" // //Opaque model data container // typedef struct model_iface_data_t model_iface_data_t; /** * @brief Initialze a model instance with specified model coefficient. * * @param coeff The wakenet mod...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/speech_command_recognition/include/esp_mn_iface.h
C
apache-2.0
3,219
#pragma once #include "esp_mn_iface.h" //Contains declarations of all available speech recognion models. Pair this up with the right coefficients and you have a model that can recognize //a specific phrase or word. extern const esp_mn_iface_t esp_sr_multinet1_quantized_cn; extern const esp_mn_iface_t esp_sr_multinet1_...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/speech_command_recognition/include/esp_mn_models.h
C
apache-2.0
1,854
#pragma once #include "esp_mn_iface.h" #define SPEECH_COMMANDS_NUM CONFIG_SPEECH_COMMANDS_NUM #if CONFIG_SR_CHINESE #define MN_SPEECH_COMMAND_ID0 CONFIG_CN_SPEECH_COMMAND_ID0 #define MN_SPEECH_COMMAND_ID1 CONFIG_CN_SPEECH_COMMAND_ID1 #define MN_SPEECH_COMMAND_ID2 CONFIG_CN_SPEECH_COMMAND_ID2 #define MN_SPEECH_COM...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/speech_command_recognition/include/mn_process_commands.h
C
apache-2.0
12,832
#pragma once #define SR_FLASH_TYPE 32 #define SR_FLASH_SUBTYPE 32 #define SR_FLASH_PARTITION_NAME "fr" #define SR_FLASH_INFO_FLAG 12138 int8_t speech_command_flash_init(void); int8_t enroll_speech_command_to_flash_with_id(char *phrase, int mn_command_id); int get_use_flag_from_flash(); int get_enroll_num_from_fla...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/speech_command_recognition/include/sr_flash.h
C
apache-2.0
370
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "sdkconfig.h" #include "mn_process_commands.h" char *get_id_name(int i) { if (i == 0) return MN_SPEECH_COMMAND_ID0; else if (i == 1) return MN_SPEECH_COMMAND_ID1; else if (i == 2) return MN_SPEECH_COMMAND_ID2; e...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/speech_command_recognition/mn_process_commands.c
C
apache-2.0
6,794
COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := . LIB_FILES := $(shell ls $(COMPONENT_PATH)/lib*.a) LIBS := $(patsubst lib%.a,-l%,$(notdir $(LIB_FILES))) COMPONENT_ADD_LDFLAGS += -L$(COMPONENT_PATH)/ $(LIBS) ALL_LIB_FILES += $(LIB_FILES)
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/wake_word_engine/component.mk
Makefile
apache-2.0
254
#pragma once #include "stdint.h" #include "dl_lib_coefgetter_if.h" //Opaque model data container typedef struct model_iface_data_t model_iface_data_t; //Set wake words recognition operating mode //The probability of being wake words is increased with increasing mode, //As a consequence also the false alarm rate goes...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/wake_word_engine/include/esp_wn_iface.h
C
apache-2.0
5,126
#pragma once #include "esp_wn_iface.h" //Contains declarations of all available speech recognion models. Pair this up with the right coefficients and you have a model that can recognize //a specific phrase or word. extern const esp_wn_iface_t esp_sr_wakenet3_quantized; extern const esp_wn_iface_t esp_sr_wakenet4_quan...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp-sr/wake_word_engine/include/esp_wn_models.h
C
apache-2.0
3,459
set(COMPONENT_ADD_INCLUDEDIRS include) # Edit following two lines to set component requirements (see docs) set(COMPONENT_REQUIRES audio_sal nvs_flash spi_flash) set(COMPONENT_PRIV_REQUIRES esp_dispatcher wifi_service display_service esp-adf-libs audio_pipeline audio_sal dueros_service) set(COMPONENT_SRCS ./display_ac...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/CMakeLists.txt
CMake
apache-2.0
578
# # "main" pseudo-component makefile. # # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.) COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := .
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/component.mk
Makefile
apache-2.0
206
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/display_action.c
C
apache-2.0
2,905
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/dueros_action.c
C
apache-2.0
1,795
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/display_action.h
C
apache-2.0
3,455
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/dueros_action.h
C
apache-2.0
2,204
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/nvs_action.h
C
apache-2.0
6,034
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/partition_action.h
C
apache-2.0
3,267
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/player_action.h
C
apache-2.0
4,583
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/recorder_action.h
C
apache-2.0
3,066
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/include/wifi_action.h
C
apache-2.0
3,016
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/nvs_action.c
C
apache-2.0
8,668
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/partition_action.c
C
apache-2.0
2,304
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software")...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/player_action.c
C
apache-2.0
3,500
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/recorder_action.c
C
apache-2.0
2,101
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_actions/wifi_action.c
C
apache-2.0
2,413
set(COMPONENT_ADD_INCLUDEDIRS include) # Edit following two lines to set component requirements (see docs) set(COMPONENT_REQUIRES ) set(COMPONENT_PRIV_REQUIRES audio_sal) set(COMPONENT_SRCS ./audio_service.c ./esp_dispatcher.c ./periph_service.c ./esp_delegate.c) register_component()
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/CMakeLists.txt
CMake
apache-2.0
288
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/audio_service.c
C
apache-2.0
6,161
# # "main" pseudo-component makefile. # # (Uses default behaviour of compiling all source files in directory, adding 'include' to include path.) COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := . COMPONENT_PRIV_INCLUDEDIRS :=
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/component.mk
Makefile
apache-2.0
237
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/esp_delegate.c
C
apache-2.0
2,106
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/esp_dispatcher.c
C
apache-2.0
13,971
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/include/audio_service.h
C
apache-2.0
6,075
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/include/esp_action_def.h
C
apache-2.0
2,041
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/include/esp_action_exe_type.h
C
apache-2.0
4,832
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/include/esp_delegate.h
C
apache-2.0
2,031
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/include/esp_dispatcher.h
C
apache-2.0
6,831
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/include/periph_service.h
C
apache-2.0
6,301
/* * ESPRESSIF MIT License * * Copyright (c) 2019 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/periph_service.c
C
apache-2.0
6,002
# #Component Makefile # COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/test/component.mk
Makefile
apache-2.0
112
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/test/esp_dispatcher_stress_test.c
C
apache-2.0
3,776
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to dea...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_dispatcher/test/esp_dispatcher_with_nvs_actions_test.c
C
apache-2.0
14,745
set(COMPONENT_SRCS "esp_event_cast.c") set(COMPONENT_ADD_INCLUDEDIRS include) set(COMPONENT_REQUIRES audio_sal) register_component()
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_event_cast/CMakeLists.txt
CMake
apache-2.0
136
# # Main Makefile. This is basically the same as a component makefile. COMPONENT_ADD_INCLUDEDIRS := include COMPONENT_SRCDIRS := .
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_event_cast/component.mk
Makefile
apache-2.0
131
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software")...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_event_cast/esp_event_cast.c
C
apache-2.0
6,193
/* * ESPRESSIF MIT License * * Copyright (c) 2020 <ESPRESSIF SYSTEMS (SHANGHAI) CO., LTD> * * Permission is hereby granted for use on all ESPRESSIF SYSTEMS products, in which case, * it is free of charge, to any person obtaining a copy of this software and associated * documentation files (the "Software"), to de...
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_event_cast/include/esp_event_cast.h
C
apache-2.0
3,518
# #Component Makefile # COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
YifuLiu/AliOS-Things
hardware/chip/espressif_adf/esp-adf/components/esp_event_cast/test/component.mk
Makefile
apache-2.0
112