Skip to content

Commit 7884467

Browse files
authored
restore zh (#1419)
1 parent ae041b0 commit 7884467

Some content is hidden

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

43 files changed

+1934
-1272
lines changed

README.md

Lines changed: 1 addition & 1 deletion

demo/mcu/generate_pv_params_file.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright 2020-2022 Picovoice Inc.
2+
# Copyright 2020-2025 Picovoice Inc.
33
#
44
# You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
55
# file accompanying this source.
@@ -14,7 +14,7 @@
1414

1515
HEADER = """
1616
/*
17-
Copyright 2020-2023 Picovoice Inc.
17+
Copyright 2020-2025 Picovoice Inc.
1818
1919
You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
2020
file accompanying this source.
@@ -45,6 +45,7 @@
4545
"ja": "japanese",
4646
"ko": "korean",
4747
"pt": "portuguese",
48+
"zh": "mandarin",
4849
}
4950

5051

@@ -124,6 +125,7 @@ def ppn_to_c_array(ppn_file_path):
124125
"ja": ("こんにちは コンピューター",),
125126
"ko": ("안녕 컴퓨터",),
126127
"pt": ("olá computador",),
128+
"zh": ("你好电脑",),
127129
}
128130
include_folders = [
129131
"stm32f411/stm32f411e-disco/Inc/",

demo/mcu/stm32f411/README.md

Lines changed: 4 additions & 3 deletions

demo/mcu/stm32f411/stm32f411e-disco/.cproject

Lines changed: 1735 additions & 1266 deletions
Large diffs are not rendered by default.

demo/mcu/stm32f411/stm32f411e-disco/Inc/pv_params.h

Lines changed: 181 additions & 0 deletions
Large diffs are not rendered by default.

lib/common/porcupine_params_zh.pv

963 KB
Binary file not shown.
315 KB
Binary file not shown.

resources/.test/test_data.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
"language": "ko",
2626
"wakeword": "빅스비"
2727
},
28+
{
29+
"language": "zh",
30+
"wakeword": "豪猪"
31+
},
2832
{
2933
"language": "pt",
3034
"wakeword": "fenômeno"
@@ -65,6 +69,11 @@
6569
"wakewords": ["아이스크림", "빅스비", "코뿔소"],
6670
"groundTruth": [1, 2, 0]
6771
},
72+
{
73+
"language": "zh",
74+
"wakewords": ["豪猪", "咖啡", "你好", "水饺"],
75+
"groundTruth": [0, 1, 2, 3]
76+
},
6877
{
6978
"language": "pt",
7079
"wakewords": ["abacaxi", "fenômeno", "formiga"],
179 KB
Binary file not shown.

resources/audio_samples/豪猪.wav

50.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)