Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ovos-translate-server-plugin

An OVOS plugin for language detection and translation. It sends requests to ovos-translate-server and returns the result. The server does the work. This plugin is the client.

It registers two OVOS plugin manager entry points:

  • ovos-lang-detector-plugin-server: detects the language of a text.
  • ovos-translate-plugin-server: translates text into a target language.

Other OVOS components use these plugins to translate utterances and texts on demand, for example solvers and ovos-bidirectional-translation-plugin.

Install

pip install ovos-translate-server-plugin

Usage

Add this to your OVOS configuration file (for example ~/.config/mycroft/mycroft.conf):

"language": {
    "detection_module": "ovos-lang-detector-plugin-server",
    "translation_module": "ovos-translate-plugin-server",
    "ovos-lang-detector-plugin-server": {
        "host": "http://24.199.127.142:9686"
    },
    "ovos-translate-plugin-server": {
        "host": "http://24.199.127.142:9686"
    }
}

The host key sets the server address. It takes a single URL or a list of URLs. Give a list to spread requests across several servers and to add a fallback if one server goes down.

If you omit host, the plugin uses its own list of public servers.

Other config keys:

  • timeout: request timeout in seconds. Default: 5.
  • skip_detection (translation plugin only): skip automatic source-language detection when no source language is given. Default: false.

Related projects

License

Apache-2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ovos_translate_server_plugin-0.0.8a3.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file ovos_translate_server_plugin-0.0.8a3.tar.gz.

File metadata

File hashes

Hashes for ovos_translate_server_plugin-0.0.8a3.tar.gz
Algorithm Hash digest
SHA256 5bd81291ff7d6c1b6360bd5e9c8ee1a78aee76ce1d8f820dba2e00a367674665
MD5 8785855f6e1a67c1f01bd530ffd99a1e
BLAKE2b-256 2e56aae20305f771508118eabe727bdceb6a7348076ed352475dda0e5c7f6bc4

See more details on using hashes here.

File details

Details for the file ovos_translate_server_plugin-0.0.8a3-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_translate_server_plugin-0.0.8a3-py3-none-any.whl
Algorithm Hash digest
SHA256 d64a6572169bcb868f9c7af8b373235c1f4007746c2836919a18fc675c6e02fc
MD5 01674e10ac66cacdc5078dbfd0f2db11
BLAKE2b-256 ba0b484e9e62177761be4faeb0be94839a2d69a5d539a2a89dedcc5ba1eb505c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page