Skip to content

Commit 721cd50

Browse files
author
LittleMouse
committed
[update] update kokoro tts used sherpa-onnx backend
1 parent 1ec3045 commit 721cd50

20 files changed

Lines changed: 473 additions & 182 deletions

File tree

SDK

Submodule SDK updated from b2ebfeb to 60b2b89

ext_components/eigen/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
menuconfig EIGEN_ENABLED
2+
bool "Enable eigen support"
3+
default n
4+
help
5+
enable eigen support

ext_components/eigen/SConstruct

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# component2/SConscript
2+
Import("env")
3+
import os
4+
from pathlib import Path
5+
6+
with open(env["PROJECT_TOOL_S"]) as f:
7+
exec(f.read())
8+
9+
_SDK_PATH = os.path.normpath(
10+
os.environ.get("SDK_PATH", str(Path(os.getcwd()) / ".." / ".."))
11+
)
12+
13+
env["GIT_REPO_LISTS"]["eigen"] = {
14+
"url": "https://github.com/Abandon-ht/eigen.git",
15+
"commit": "d71c30c47858effcbd39967097a2d99ee48db464",
16+
"path": str(Path(_SDK_PATH) / "github_source" / "eigen"),
17+
}
18+
19+
if "CONFIG_EIGEN_ENABLED" in os.environ:
20+
check_component("eigen")
21+
SRCS = []
22+
INCLUDE = []
23+
PRIVATE_INCLUDE = []
24+
REQUIREMENTS = []
25+
STATIC_LIB = []
26+
DYNAMIC_LIB = []
27+
DEFINITIONS = []
28+
DEFINITIONS_PRIVATE = []
29+
LDFLAGS = []
30+
LINK_SEARCH_PATH = []
31+
32+
INCLUDE += [
33+
os.path.join(env["GIT_REPO_LISTS"]["eigen"]["path"]),
34+
]
35+
36+
env["COMPONENTS"].append(
37+
{
38+
"target": os.path.basename(env["component_dir"]),
39+
"SRCS": SRCS,
40+
"INCLUDE": INCLUDE,
41+
"PRIVATE_INCLUDE": PRIVATE_INCLUDE,
42+
"REQUIREMENTS": REQUIREMENTS,
43+
"STATIC_LIB": STATIC_LIB,
44+
"DYNAMIC_LIB": DYNAMIC_LIB,
45+
"DEFINITIONS": DEFINITIONS,
46+
"DEFINITIONS_PRIVATE": DEFINITIONS_PRIVATE,
47+
"LDFLAGS": LDFLAGS,
48+
"LINK_SEARCH_PATH": LINK_SEARCH_PATH,
49+
"REGISTER": "static",
50+
}
51+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
menuconfig KALDI_DECODER_ENABLED
2+
bool "Enable kaldi-decoder support"
3+
default n
4+
help
5+
enable kaldi-decoder support
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# component2/SConscript
2+
Import("env")
3+
import os
4+
from pathlib import Path
5+
6+
with open(env["PROJECT_TOOL_S"]) as f:
7+
exec(f.read())
8+
9+
_SDK_PATH = os.path.normpath(
10+
os.environ.get("SDK_PATH", str(Path(os.getcwd()) / ".." / ".."))
11+
)
12+
13+
env["GIT_REPO_LISTS"]["kaldi-decoder"] = {
14+
"url": "https://github.com/k2-fsa/kaldi-decoder.git",
15+
"commit": "52bf99ec828d8cc8ab6a92be8484284b52682777",
16+
"path": str(Path(_SDK_PATH) / "github_source" / "kaldi-decoder"),
17+
}
18+
19+
if "CONFIG_EIGEN_ENABLED" in os.environ:
20+
check_component("kaldi-decoder")
21+
SRCS = []
22+
INCLUDE = []
23+
PRIVATE_INCLUDE = []
24+
REQUIREMENTS = []
25+
STATIC_LIB = []
26+
DYNAMIC_LIB = []
27+
DEFINITIONS = []
28+
DEFINITIONS_PRIVATE = []
29+
LDFLAGS = []
30+
LINK_SEARCH_PATH = []
31+
32+
INCLUDE += [
33+
os.path.join(env["GIT_REPO_LISTS"]["kaldi-decoder"]["path"]),
34+
]
35+
36+
env["COMPONENTS"].append(
37+
{
38+
"target": os.path.basename(env["component_dir"]),
39+
"SRCS": SRCS,
40+
"INCLUDE": INCLUDE,
41+
"PRIVATE_INCLUDE": PRIVATE_INCLUDE,
42+
"REQUIREMENTS": REQUIREMENTS,
43+
"STATIC_LIB": STATIC_LIB,
44+
"DYNAMIC_LIB": DYNAMIC_LIB,
45+
"DEFINITIONS": DEFINITIONS,
46+
"DEFINITIONS_PRIVATE": DEFINITIONS_PRIVATE,
47+
"LDFLAGS": LDFLAGS,
48+
"LINK_SEARCH_PATH": LINK_SEARCH_PATH,
49+
"REGISTER": "static",
50+
}
51+
)

ext_components/kaldifst/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
menuconfig KALDIFST_ENABLED
2+
bool "Enable kaldifst support"
3+
default n
4+
help
5+
enable kaldifst support

ext_components/kaldifst/SConstruct

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# component2/SConscript
2+
Import("env")
3+
import os
4+
from pathlib import Path
5+
6+
with open(env["PROJECT_TOOL_S"]) as f:
7+
exec(f.read())
8+
9+
_SDK_PATH = os.path.normpath(
10+
os.environ.get("SDK_PATH", str(Path(os.getcwd()) / ".." / ".."))
11+
)
12+
13+
env["GIT_REPO_LISTS"]["kaldifst"] = {
14+
"url": "https://github.com/k2-fsa/kaldifst.git",
15+
"commit": "8d26c8dbac0d4a021746da2ec923a2300d4c5828",
16+
"path": str(Path(_SDK_PATH) / "github_source" / "kaldifst"),
17+
}
18+
19+
if "CONFIG_EIGEN_ENABLED" in os.environ:
20+
check_component("kaldifst")
21+
SRCS = []
22+
INCLUDE = []
23+
PRIVATE_INCLUDE = []
24+
REQUIREMENTS = []
25+
STATIC_LIB = []
26+
DYNAMIC_LIB = []
27+
DEFINITIONS = []
28+
DEFINITIONS_PRIVATE = []
29+
LDFLAGS = []
30+
LINK_SEARCH_PATH = []
31+
32+
INCLUDE += [
33+
os.path.join(env["GIT_REPO_LISTS"]["kaldifst"]["path"]),
34+
]
35+
36+
env["COMPONENTS"].append(
37+
{
38+
"target": os.path.basename(env["component_dir"]),
39+
"SRCS": SRCS,
40+
"INCLUDE": INCLUDE,
41+
"PRIVATE_INCLUDE": PRIVATE_INCLUDE,
42+
"REQUIREMENTS": REQUIREMENTS,
43+
"STATIC_LIB": STATIC_LIB,
44+
"DYNAMIC_LIB": DYNAMIC_LIB,
45+
"DEFINITIONS": DEFINITIONS,
46+
"DEFINITIONS_PRIVATE": DEFINITIONS_PRIVATE,
47+
"LDFLAGS": LDFLAGS,
48+
"LINK_SEARCH_PATH": LINK_SEARCH_PATH,
49+
"REGISTER": "static",
50+
}
51+
)

ext_components/sherpa-ncnn/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
menuconfig SHERPA_NCNN_ENABLED
2+
bool "Enable sherpa-ncnn support"
3+
default n
4+
help
5+
enable sherpa-ncnn support
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# component2/SConscript
2+
Import("env")
3+
import os
4+
from pathlib import Path
5+
6+
with open(env["PROJECT_TOOL_S"]) as f:
7+
exec(f.read())
8+
9+
_SDK_PATH = os.path.normpath(
10+
os.environ.get("SDK_PATH", str(Path(os.getcwd()) / ".." / ".."))
11+
)
12+
13+
env["GIT_REPO_LISTS"]["sherpa-ncnn"] = {
14+
"url": "https://github.com/Abandon-ht/sherpa-ncnn.git",
15+
"commit": "c61e50d61e9fbed5972afa4d95bc560e168affe2",
16+
"path": str(Path(_SDK_PATH) / "github_source" / "sherpa-ncnn"),
17+
}
18+
19+
if "CONFIG_EIGEN_ENABLED" in os.environ:
20+
check_component("sherpa-ncnn")
21+
SRCS = []
22+
INCLUDE = []
23+
PRIVATE_INCLUDE = []
24+
REQUIREMENTS = []
25+
STATIC_LIB = []
26+
DYNAMIC_LIB = []
27+
DEFINITIONS = []
28+
DEFINITIONS_PRIVATE = []
29+
LDFLAGS = []
30+
LINK_SEARCH_PATH = []
31+
32+
INCLUDE += [
33+
os.path.join(env["GIT_REPO_LISTS"]["sherpa-ncnn"]["path"]),
34+
]
35+
36+
env["COMPONENTS"].append(
37+
{
38+
"target": os.path.basename(env["component_dir"]),
39+
"SRCS": SRCS,
40+
"INCLUDE": INCLUDE,
41+
"PRIVATE_INCLUDE": PRIVATE_INCLUDE,
42+
"REQUIREMENTS": REQUIREMENTS,
43+
"STATIC_LIB": STATIC_LIB,
44+
"DYNAMIC_LIB": DYNAMIC_LIB,
45+
"DEFINITIONS": DEFINITIONS,
46+
"DEFINITIONS_PRIVATE": DEFINITIONS_PRIVATE,
47+
"LDFLAGS": LDFLAGS,
48+
"LINK_SEARCH_PATH": LINK_SEARCH_PATH,
49+
"REGISTER": "static",
50+
}
51+
)

ext_components/sherpa-onnx/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
menuconfig SHERPA_ONNX_ENABLED
2+
bool "Enable sherpa-onnx support"
3+
default n
4+
help
5+
enable sherpa-onnx support

0 commit comments

Comments
 (0)