Metadata-Version: 2.4
Name: ovos-google-translate-plugin
Version: 0.0.4a2
Summary: OVOS translation module for google
Author-email: jarbasAi <jarbasai@mailfence.com>
License: Apache-2.0
Project-URL: Homepage, https://github.com/OpenVoiceOS/ovos-google-translate-plugin
Classifier: Intended Audience :: Developers
Classifier: Topic :: Text Processing :: Linguistic
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests
Requires-Dist: ovos-plugin-manager<3.0.0,>=2.1.0
Dynamic: license-file

# Google Translate Plugin

This plugin is an [OVOS](https://openvoiceos.github.io/ovos-technical-manual/) language plugin for [OpenVoiceOS](https://github.com/OpenVoiceOS). It provides text translation and language detection through Google Translate, without an API key.

The package registers two plugins:

- `ovos-google-translate-plugin`: translates text between languages.
- `ovos-google-lang-detector-plugin`: detects the language of a text.

## Install

```bash
pip install ovos-google-translate-plugin
```

## Usage

Other components use this plugin to translate utterances and texts, for example [solvers](https://openvoiceos.github.io/ovos-technical-manual/solvers/) and [ovos-bidirectional-translation-plugin](https://github.com/OpenVoiceOS/ovos-bidirectional-translation-plugin).

Add this to one of the configuration files (for example `~/.config/mycroft/mycroft.conf`):

```javascript
"language": {
    "detection_module": "ovos-google-lang-detector-plugin",
    "translation_module": "ovos-google-translate-plugin"
}
```

## Related projects

- [ovos-bidirectional-translation-plugin](https://github.com/OpenVoiceOS/ovos-bidirectional-translation-plugin): translates utterances in both directions around a pipeline that only understands one language.
- [ovos-plugin-manager](https://github.com/OpenVoiceOS/ovos-plugin-manager): loads and manages OVOS plugins, including this one.

## License

Apache-2.0
