Neuron to translate sentence with google API
kalliope install --git-url https://github.com/asmsaifs/kalliope-neuron-translate.git
parameter | required | default | choices | comments |
---|---|---|---|---|
lang_out | yes | E.g: "en", "bn", "Spanish", "Français" | Language to translate sentence: langage code ("bn") or language name ("Spanish") | |
lang_in | yes | auto | E.g: "auto", "en", "bn" | Language of original sentence: "auto" for automatique detection or lang code |
sentence | yes | Sentence translate |
Langage support and ISO-639-1 Code
Name | Description | Type | sample |
---|---|---|---|
result | Result of translation | string | "Buenas noches" |
lang_in | lang id in | string | "bn" |
lang_out | lang id out | string | "en" |
- name: "translate-bn"
signals:
- order: "{{sentence}} এর ইংরেজি কি"
neurons:
- translate:
lang_in: "bn"
lang_out: "en"
sentence: "{{sentence}}"
say_template:
- "{{ result }}"
tts:
googletts:
language: "en"
cache: False