Skip to content

Commit e13ab7a

Browse files
committed
Merge branch 'dev' of github.com:m5stack/StackFlow into dev
2 parents acf245e + d91c62c commit e13ab7a

572 files changed

Lines changed: 177943 additions & 3 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

projects/llm_framework/SConstruct

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import shutil
55
os.environ['SDK_PATH'] = os.path.normpath(str(Path(os.getcwd())/'..'/'..'/'SDK'))
66
os.environ['EXT_COMPONENTS_PATH'] = os.path.normpath(str(Path(os.getcwd())/'..'/'..'/'ext_components'))
77

8-
version = 'v0.0.5'
8+
version = 'v0.0.6'
99
static_lib = 'static_lib'
1010
update = False
1111

projects/llm_framework/main_depth_anything/mode_depth_anything.json renamed to projects/llm_framework/main_depth_anything/mode_depth-anything-ax630c.json

File renamed without changes.

projects/llm_framework/main_whisper/Kconfig

Whitespace-only changes.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import os
2+
3+
Import('env')
4+
with open(env['PROJECT_TOOL_S']) as f:
5+
exec(f.read())
6+
7+
# env.Append(CXXFLAGS=['-O3', '-fopenmp', '-std=c++17'])
8+
SRCS = append_srcs_dir(ADir('src'))
9+
INCLUDE = [ADir('include'), ADir('.')]
10+
PRIVATE_INCLUDE = []
11+
REQUIREMENTS = ['pthread', 'utilities', 'ax_msp', 'eventpp', 'StackFlow', 'single_header_libs']
12+
STATIC_LIB = []
13+
DYNAMIC_LIB = []
14+
DEFINITIONS = []
15+
DEFINITIONS_PRIVATE = []
16+
LDFLAGS = []
17+
LINK_SEARCH_PATH = []
18+
STATIC_FILES = []
19+
20+
DEFINITIONS += ['-O3', '-fopenmp', '-std=c++17']
21+
LDFLAGS+=['-Wl,-rpath=/opt/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib', '-Wl,-rpath=/usr/local/m5stack/lib/gcc-10.3', '-Wl,-rpath=/opt/lib', '-Wl,-rpath=/opt/usr/lib', '-Wl,-rpath=./']
22+
LINK_SEARCH_PATH += [ADir('../static_lib')]
23+
REQUIREMENTS += ['ax_engine', 'ax_interpreter', 'ax_sys']
24+
REQUIREMENTS += ['onnxruntime', 'samplerate']
25+
26+
INCLUDE += [ADir('../include')]
27+
INCLUDE += [ADir('src/runner'), ADir('../include/onnxruntime/core/session')]
28+
INCLUDE += [ADir('src/runner/opencc/include/opencc')]
29+
30+
LINK_SEARCH_PATH += [ADir('src/runner/opencc/lib')]
31+
# LDFLAGS += ['-l:libcargs.a', '-l:libonnxruntime.a']
32+
LDFLAGS += ['-l:libopencc.a', '-l:libmarisa.a']
33+
34+
STATIC_FILES += Glob('mode_*.json')
35+
36+
env['COMPONENTS'].append({'target':'llm_whisper',
37+
'SRCS':SRCS,
38+
'INCLUDE':INCLUDE,
39+
'PRIVATE_INCLUDE':PRIVATE_INCLUDE,
40+
'REQUIREMENTS':REQUIREMENTS,
41+
'STATIC_LIB':STATIC_LIB,
42+
'DYNAMIC_LIB':DYNAMIC_LIB,
43+
'DEFINITIONS':DEFINITIONS,
44+
'DEFINITIONS_PRIVATE':DEFINITIONS_PRIVATE,
45+
'LDFLAGS':LDFLAGS,
46+
'LINK_SEARCH_PATH':LINK_SEARCH_PATH,
47+
'STATIC_FILES':STATIC_FILES,
48+
'REGISTER':'project'
49+
})
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"mode": "whisper-tiny",
3+
"type": "asr",
4+
"capabilities": [
5+
"Automatic_Speech_Recognition",
6+
"English",
7+
"Chinese"
8+
],
9+
"input_type": [
10+
"sys.pcm"
11+
],
12+
"output_type": [
13+
"asr.utf-8"
14+
],
15+
"mode_param": {
16+
"model_type": "tiny",
17+
"language": "zh",
18+
"encoder": "tiny-encoder.axmodel",
19+
"decoder_main": "tiny-decoder-main.axmodel",
20+
"decoder_loop": "tiny-decoder-loop.axmodel",
21+
"position_embedding": "tiny-positional_embedding.bin",
22+
"tokens": "tiny-tokens.txt",
23+
"t2s": "t2s.json",
24+
"whisper_sample_rate": 16000,
25+
"whisper_n_fft": 400,
26+
"awake_delay": 1000,
27+
"whisper_hop_length": 160,
28+
"whisper_chunk_size": 30,
29+
"whisper_n_mels": 80,
30+
"whisper_sot": 50258,
31+
"whisper_eot": 50257,
32+
"whisper_blank": 220,
33+
"whisper_no_timestamps": 50363,
34+
"whisper_no_speech": 50362,
35+
"whisper_translate": 50358,
36+
"whisper_transcribe": 50359,
37+
"whisper_vocab_size": 51865,
38+
"whisper_n_text_ctx": 448
39+
}
40+
}

0 commit comments

Comments
 (0)