Skip to content

Commit

Permalink
Update utterance translator plugin to support configuring language de…
Browse files Browse the repository at this point in the history
…tection

Disable language detection for Mark2/RPi4 to improve overall latency
  • Loading branch information
NeonDaniel committed Nov 9, 2023
1 parent 0651665 commit 4ad9f27
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion neon_core/configuration/mark_2/neon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,7 @@ system:
- websocket:host
language:
detection_module: None
translation_module: libretranslate_plug
translation_module: libretranslate_plug
utterance_transformers:
neon_utterance_translator_plugin:
enable_detector: False
1 change: 1 addition & 0 deletions neon_core/configuration/neon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
utterance_transformers:
neon_utterance_translator_plugin:
active: True
enable_detector: True
neon_utterance_normalizer_plugin:
active: True

Expand Down
5 changes: 4 additions & 1 deletion neon_core/configuration/rpi4/neon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,4 +170,7 @@ system:
- websocket:host
language:
detection_module: None
translation_module: libretranslate_plug
translation_module: libretranslate_plug
utterance_transformers:
neon_utterance_translator_plugin:
enable_detector: False
2 changes: 1 addition & 1 deletion requirements/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mock~=5.0

# default plugins
neon-lang-plugin-libretranslate~=0.2
neon-utterance-translator-plugin~=0.1,>=0.1.2a0
neon-utterance-translator-plugin~=0.1,>=0.1.2a2
neon-utterance-normalizer-plugin~=0.0.2

# TODO: Patching test failures https://github.com/NeonGeckoCom/NeonCore/actions/runs/4888865255/jobs/8727164992?pr=422
Expand Down

0 comments on commit 4ad9f27

Please sign in to comment.