Skip to content

asmsaifs/kalliope-neuron-translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Translate

Synopsis

Neuron to translate sentence with google API

Installation

kalliope install --git-url https://github.com/asmsaifs/kalliope-neuron-translate.git

Options

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

Return Values

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"

Synapses example with override voice parameter

- 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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages