Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Fangjun Kuang
2024-10-31 17:54:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-10-31 17:54:16 +0800
Commit
a3c89aa0d8470d8eab30d7781b3dd7b9ed448046
a3c89aa0
1 parent
9fa3bc40
Add two-pass ASR Android APKs for Moonshine models. (#1499)
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
68 行增加
和
2 行删除
.github/workflows/apk-asr-2pass.yaml
scripts/apk/generate-asr-2pass-apk-script.py
scripts/apk/generate-vad-asr-apk-script.py
sherpa-onnx/kotlin-api/OfflineRecognizer.kt
.github/workflows/apk-asr-2pass.yaml
查看文件 @
a3c89aa
...
...
@@ -23,8 +23,8 @@ jobs:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
]
total
:
[
"
2"
]
index
:
[
"
0"
,
"
1"
]
total
:
[
"
4"
]
index
:
[
"
0"
,
"
1"
,
"
2"
,
"
3"
]
steps
:
-
uses
:
actions/checkout@v4
...
...
scripts/apk/generate-asr-2pass-apk-script.py
查看文件 @
a3c89aa
...
...
@@ -130,6 +130,36 @@ def get_2nd_models():
popd
"""
,
),
Model
(
model_name
=
"sherpa-onnx-moonshine-tiny-en-int8"
,
idx
=
21
,
lang
=
"en"
,
short_name
=
"moonshine_tiny_int8"
,
cmd
=
"""
pushd $model_name
rm -rfv test_wavs
ls -lh
popd
"""
,
),
Model
(
model_name
=
"sherpa-onnx-moonshine-base-en-int8"
,
idx
=
22
,
lang
=
"en"
,
short_name
=
"moonshine_base_int8"
,
cmd
=
"""
pushd $model_name
rm -rfv test_wavs
ls -lh
popd
"""
,
),
]
return
models
...
...
@@ -302,6 +332,14 @@ def get_models():
),
(
"sherpa-onnx-streaming-zipformer-en-20M-2023-02-17"
,
"sherpa-onnx-moonshine-tiny-en-int8"
,
),
(
"sherpa-onnx-streaming-zipformer-en-20M-2023-02-17"
,
"sherpa-onnx-moonshine-base-en-int8"
,
),
(
"sherpa-onnx-streaming-zipformer-en-20M-2023-02-17"
,
"sherpa-onnx-sense-voice-zh-en-ja-ko-yue-2024-07-17"
,
),
]
...
...
scripts/apk/generate-vad-asr-apk-script.py
查看文件 @
a3c89aa
...
...
@@ -387,6 +387,21 @@ def get_models():
popd
"""
,
),
Model
(
model_name
=
"sherpa-onnx-moonshine-base-en-int8"
,
idx
=
22
,
lang
=
"en"
,
short_name
=
"moonshine_base_int8"
,
cmd
=
"""
pushd $model_name
rm -rfv test_wavs
ls -lh
popd
"""
,
),
]
return
models
...
...
sherpa-onnx/kotlin-api/OfflineRecognizer.kt
查看文件 @
a3c89aa
...
...
@@ -438,6 +438,19 @@ fun getOfflineModelConfig(type: Int): OfflineModelConfig? {
tokens = "$modelDir/tokens.txt",
)
}
22 -> {
val modelDir = "sherpa-onnx-moonshine-base-en-int8"
return OfflineModelConfig(
moonshine = OfflineMoonshineModelConfig(
preprocessor = "$modelDir/preprocess.onnx",
encoder = "$modelDir/encode.int8.onnx",
uncachedDecoder = "$modelDir/uncached_decode.int8.onnx",
cachedDecoder = "$modelDir/cached_decode.int8.onnx",
),
tokens = "$modelDir/tokens.txt",
)
}
}
return null
}
...
...
请
注册
或
登录
后发表评论