Skip to content

Commit

Permalink
Language deprecations (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksyeo1010 authored Feb 7, 2025
1 parent 7562f5d commit d6733ee
Show file tree
Hide file tree
Showing 332 changed files with 12 additions and 1,380 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Porcupine is the right product if you need to detect one or a few static (always

## Language Support

- Arabic, Dutch, English, Farsi, French, German, Hindi, Italian, Japanese, Korean, Mandarin, Polish, Portuguese, Russian, Spanish, Swedish, and Vietnamese
- English, French, German, Italian, Japanese, Korean, Portuguese, and Spanish.
- Support for additional languages is available for commercial customers on a case-by-case basis.

## Performance
Expand Down Expand Up @@ -276,7 +276,7 @@ pod install

3) Replace `let accessKey = "${YOUR_ACCESS_KEY_HERE}"` in the file [ViewController.swift](./demo/ios/ForegroundApp/PorcupineForegroundAppDemo/ViewController.swift) with your `AccessKey`.

4) Go to `Product > Scheme` and select the scheme for the language you would like to demo (e.g. `arDemo` -> Arabic Demo, `deDemo` -> German Demo)
4) Go to `Product > Scheme` and select the scheme for the language you would like to demo (e.g. `esDemo` -> Spanish Demo, `deDemo` -> German Demo)

5) Run the demo with a simulator or connected iOS device

Expand Down
3 changes: 1 addition & 2 deletions demo/ios/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ pod install

3) Replace `let accessKey = "${YOUR_ACCESS_KEY_HERE}"` in the file [ViewController.swift](./ForegroundApp/PorcupineForegroundAppDemo/ViewController.swift) with your `AccessKey`.

4) Go to `Product > Scheme` and select the scheme for the language you would like to demo (e.g. `arDemo` -> Arabic Demo, `deDemo` -> German Demo)
4) Go to `Product > Scheme` and select the scheme for the language you would like to demo (e.g. `esDemo` -> Spanish Demo, `deDemo` -> German Demo)

5) Run the demo with a simulator or connected iOS device

The demo allows you to select any of the pre-built keywords for detection. Press start and say the selected keyword.

18 changes: 0 additions & 18 deletions demo/mcu/generate_pv_params_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,23 +37,14 @@
"""

LANGUAGE_CODE_TO_NAME = {
"ar": "arabic",
"de": "german",
"en": "english",
"es": "spanish",
"fa": "farsi",
"fr": "french",
"hi": "hindi",
"it": "italian",
"ja": "japanese",
"ko": "korean",
"nl": "dutch",
"pl": "polish",
"pt": "portuguese",
"ru": "russian",
"sv": "swedish",
"vn": "vietnamese",
"zh": "mandarin",
}


Expand Down Expand Up @@ -120,7 +111,6 @@ def ppn_to_c_array(ppn_file_path):

if __name__ == "__main__":
wake_words = {
"ar": ("مرحبا الكمبيوتر",),
"de": ("hey computer",),
"en": (
"porcupine",
Expand All @@ -129,19 +119,11 @@ def ppn_to_c_array(ppn_file_path):
"alexa",
),
"es": ("hola computadora",),
"fa": ("سلام رایانه",),
"fr": ("bonjour ordinateur",),
"hi": ("नमस्ते कंप्यूटर",),
"it": ("ciao computer",),
"ja": ("こんにちは コンピューター",),
"ko": ("안녕 컴퓨터",),
"nl": ("hallo computer",),
"pl": ("cześć komputer",),
"pt": ("olá computador",),
"ru": ("привет компьютер",),
"sv": ("hej dator",),
"vn": ("xin chào máy tính",),
"zh": ("你好电脑",),
}
include_folders = [
"stm32f411/stm32f411e-disco/Inc/",
Expand Down
24 changes: 8 additions & 16 deletions demo/mcu/stm32f411/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,14 @@ This package contains a demo project for the STM32F411 Discovery kit using Porcu

## Supported Languages

1. Arabic
2. Dutch
3. English
4. French
5. German
6. Hindi
7. Italian
8. Japanese
9. Korean
10. Mandarin
11. Polish
12. Portuguese
13. Russian
14. Spanish
15. Swedish
16. Vietnamese
1. English
2. French
3. German
4. Italian
5. Japanese
6. Korean
7. Portuguese
8. Spanish

- Support for additional languages is available for commercial customers on a case-by-case basis.

Expand Down
372 changes: 0 additions & 372 deletions demo/mcu/stm32f411/stm32f411e-disco/.cproject

Large diffs are not rendered by default.

866 changes: 1 addition & 865 deletions demo/mcu/stm32f411/stm32f411e-disco/Inc/pv_params.h

Large diffs are not rendered by default.

Binary file removed lib/common/porcupine_params_ar.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_fa.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_hi.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_nl.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_pl.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_ru.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_sv.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_vn.pv
Binary file not shown.
Binary file removed lib/common/porcupine_params_zh.pv
Binary file not shown.
Binary file removed lib/mcu/stm32f411/ar/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/fa/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/hi/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/nl/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/pl/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/ru/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/sv/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/vn/libpv_porcupine.a
Binary file not shown.
Binary file removed lib/mcu/stm32f411/zh/libpv_porcupine.a
Binary file not shown.
81 changes: 0 additions & 81 deletions resources/.test/test_data.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
{
"tests": {
"singleKeyword": [
{
"language": "ar",
"wakeword": "الحمص"
},
{
"language": "nl",
"wakeword": "stekelvarken"
},
{
"language": "en",
"wakeword": "porcupine"
Expand All @@ -21,10 +13,6 @@
"language": "de",
"wakeword": "heuschrecke"
},
{
"language": "hi",
"wakeword": "नमस्ते"
},
{
"language": "it",
"wakeword": "cameriere"
Expand All @@ -37,50 +25,16 @@
"language": "ko",
"wakeword": "빅스비"
},
{
"language": "zh",
"wakeword": "豪猪"
},
{
"language": "pl",
"wakeword": "jeżozwierz"
},
{
"language": "pt",
"wakeword": "fenômeno"
},
{
"language": "ru",
"wakeword": "помогите"
},
{
"language": "es",
"wakeword": "manzana"
},
{
"language": "sv",
"wakeword": "piggsvin"
},
{
"language": "vn",
"wakeword": "chào chị"
},
{
"language": "fa",
"wakeword": "جوجه تیغی"
}
],
"multipleKeyword": [
{
"language": "ar",
"wakewords": ["الحمص", "قهوة", "أخطبوط", "محمصة"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "nl",
"wakewords": ["stekelvarken", "hoi lotte", "koffie", "broodrooster"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "en",
"wakewords": ["americano", "blueberry", "bumblebee", "grapefruit", "grasshopper", "picovoice", "porcupine", "terminator"],
Expand All @@ -96,11 +50,6 @@
"wakewords": ["ananas", "heuschrecke", "leguan", "stachelschwein"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "hi",
"wakewords": ["नमस्ते", "विदाई", "मोहब्बत", "सुभग"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "it",
"wakewords": ["espresso", "cameriere", "porcospino"],
Expand All @@ -116,45 +65,15 @@
"wakewords": ["아이스크림", "빅스비", "코뿔소"],
"groundTruth": [1, 2, 0]
},
{
"language": "zh",
"wakewords": ["豪猪", "咖啡", "你好", "水饺"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "pl",
"wakewords": ["jeżozwierz", "kawa", "żubrówka", "pierogi"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "pt",
"wakewords": ["abacaxi", "fenômeno", "formiga"],
"groundTruth": [0, 2, 1]
},
{
"language": "ru",
"wakewords": ["помогите", "внимание", "осторожный", "открыто"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "es",
"wakewords": ["emparedado", "leopardo", "manzana"],
"groundTruth": [0, 1, 2]
},
{
"language": "sv",
"wakewords": ["piggsvin", "kaffe", "köttbullar", "hygge"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "vn",
"wakewords": ["con nhím", "chào chị", "máy pha cà phê", "máy nướng bánh mì"],
"groundTruth": [0, 1, 2, 3]
},
{
"language": "fa",
"wakewords": ["جوجه تیغی", "صبح بخیر", "خداحافظ"],
"groundTruth": [0, 1, 2]
}
]
}
Expand Down
Binary file removed resources/audio_samples/chào_chị.wav
Binary file not shown.
Binary file removed resources/audio_samples/jeżozwierz.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_ar.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_fa.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_hi.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_nl.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_pl.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_ru.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_sv.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_vn.wav
Binary file not shown.
Binary file removed resources/audio_samples/multiple_keywords_zh.wav
Binary file not shown.
Binary file removed resources/audio_samples/piggsvin.wav
Binary file not shown.
Binary file removed resources/audio_samples/stekelvarken.wav
Binary file not shown.
Binary file removed resources/audio_samples/помогите.wav
Binary file not shown.
Binary file removed resources/audio_samples/الحمص.wav
Binary file not shown.
Binary file removed resources/audio_samples/جوجه_تیغی.wav
Binary file not shown.
Binary file removed resources/audio_samples/नमस्ते.wav
Binary file not shown.
Binary file removed resources/audio_samples/豪猪.wav
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_ar/ios/أخطبوط_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/ios/الحمص_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/ios/قهوة_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/ios/محمصة_ios.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_ar/linux/قهوة_linux.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_ar/mac/أخطبوط_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/mac/الحمص_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/mac/قهوة_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/mac/محمصة_mac.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_ar/wasm/الحمص_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/wasm/قهوة_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_ar/wasm/محمصة_wasm.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions resources/keyword_files_hi/cortexm/सुभग_cortexm.ppn

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_hi/ios/सुभग_ios.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_hi/mac/सुभग_mac.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 0 additions & 4 deletions resources/keyword_files_nl/cortexm/broodrooster_cortexm.ppn

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_nl/cortexm/koffie_cortexm.ppn
Binary file not shown.
5 changes: 0 additions & 5 deletions resources/keyword_files_nl/cortexm/stekelvarken_cortexm.ppn

This file was deleted.

Binary file removed resources/keyword_files_nl/ios/broodrooster_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/ios/hoi lotte_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/ios/koffie_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/ios/stekelvarken_ios.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_nl/linux/hoi lotte_linux.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/linux/koffie_linux.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_nl/mac/broodrooster_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/mac/hoi lotte_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/mac/koffie_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/mac/stekelvarken_mac.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_nl/wasm/hoi lotte_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_nl/wasm/koffie_wasm.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/android/kawa_android.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/cortexm/kawa_cortexm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/cortexm/pierogi_cortexm.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/ios/jeżozwierz_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/ios/kawa_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/ios/pierogi_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/ios/żubrówka_ios.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/linux/kawa_linux.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/linux/pierogi_linux.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/mac/jeżozwierz_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/mac/kawa_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/mac/pierogi_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/mac/żubrówka_mac.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/wasm/jeżozwierz_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/wasm/kawa_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/wasm/pierogi_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_pl/wasm/żubrówka_wasm.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_pl/windows/kawa_windows.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_sv/android/hygge_android.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/android/kaffe_android.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_sv/cortexm/hygge_cortexm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/cortexm/kaffe_cortexm.ppn
Binary file not shown.
3 changes: 0 additions & 3 deletions resources/keyword_files_sv/cortexm/köttbullar_cortexm.ppn

This file was deleted.

3 changes: 0 additions & 3 deletions resources/keyword_files_sv/cortexm/piggsvin_cortexm.ppn

This file was deleted.

Binary file removed resources/keyword_files_sv/ios/hygge_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/ios/kaffe_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/ios/köttbullar_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/ios/piggsvin_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/linux/hygge_linux.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/linux/kaffe_linux.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_sv/linux/piggsvin_linux.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/mac/hygge_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/mac/kaffe_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/mac/köttbullar_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/mac/piggsvin_mac.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_sv/wasm/hygge_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/wasm/kaffe_wasm.ppn
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_sv/wasm/piggsvin_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/windows/hygge_windows.ppn
Binary file not shown.
Binary file removed resources/keyword_files_sv/windows/kaffe_windows.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_vn/ios/chào chị_ios.ppn
Binary file not shown.
Binary file removed resources/keyword_files_vn/ios/con nhím_ios.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_vn/linux/con nhím_linux.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_vn/mac/chào chị_mac.ppn
Binary file not shown.
Binary file removed resources/keyword_files_vn/mac/con nhím_mac.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed resources/keyword_files_vn/wasm/chào chị_wasm.ppn
Binary file not shown.
Binary file removed resources/keyword_files_vn/wasm/con nhím_wasm.ppn
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d6733ee

Please sign in to comment.