Skip to content

leyaX/kalliope_neuron_translate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kalliope Neuron Translate

Forked : https://github.com/Ultchad/kalliope_neuron_translate

Synopsis

Neuron to translate sentence with google API

Installation

kalliope install --git-url https://github.com/leyaX/kalliope_neuron_translate

Options

parameter required default choices comments
lang_out yes E.g: "en", "fr", "Spanish", "Français" Language to translate sentence: langage code ("en") or language name ("Spanish")
lang_in no auto E.g: "auto", "en", "fr" 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 "en"
lang_out lang id out string "es"

Synapses example with override voice parameter

- name: "translate-es"
  signals:
    - order: "translate {{sentence}} in Spanish"
  neurons:
    - translate:
        lang_in: "fr"
        lang_out: "es"
        sentence: "{{sentence}}"
        say_template: 
          - "{{ result }}"
        tts:             
          pico2wave:
            language: "es-ES"
            cache: False

About

A Kalliope Neuron to translate a sentence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%