Skip to main content

ovos tts server plugin for mycroft

Project description

Description

This plugin connects OpenVoiceOS to an OpenVoiceOS TTS Server instance. It sends text to the server and returns the synthesized audio to OVOS.

Install

pip install ovos-tts-plugin-server

Configuration

  "tts": {
    "module": "ovos-tts-plugin-server",
    "ovos-tts-plugin-server": {
        "host": "https://tts.smartgic.io/piper",
        "v2": true,
        "verify_ssl": true,
        "tts_timeout": 5
     }
 } 
  • host: the URL of the TTS server. The plugin appends /synthesize to this URL.
  • v2: use the v2 API, if the server offers it.
  • verify_ssl: verify the server's SSL certificate. Set this to false for a self-signed certificate, but see the security warning before you do.
  • tts_timeout: timeout, in seconds, for a request to the server. The default is 5 seconds.

v2 API (ovos-tts-server 0.0.3a10 and later)

If the TTS server plugin supports v2, set v2 to true to use the newer API. The host value stays the same either way. For example, it stays https://tts.smartgic.io/piper regardless of the v2 setting.

Security warning

You can set verify_ssl to false to disable SSL verification, but this is not recommended. Use it only for testing. For production, use a private CA or a certificate from Let's Encrypt instead.

Self-hosting (recommended)

Run your own server. Your text stays on your own hardware, you do not depend on somebody else's uptime, and you pick the voices.

pip install ovos-tts-server phoonnx
ovos-tts-server --engine ovos-tts-plugin-phoonnx

phoonnx is the recommended engine: it runs ONNX voices on CPU across 1000+ languages, downloads a voice the first time it is used, and can pick a default voice per language, so one server covers all of them. A prebuilt image is available too — see phoonnx's docker docs.

Then point this plugin at it:

  "tts": {
    "module": "ovos-tts-plugin-server",
    "ovos-tts-plugin-server": {
      "host": "https://your-server.example",
      "v2": true
    }
  }

Public servers

With no host configured, the plugin falls back to public servers.

These are a community courtesy, not a service. They exist so you can try OVOS without setting anything up first. They are provided on a best-effort basis with no guarantees of uptime, latency, voice availability, privacy, or continued existence, and they can change or disappear without notice. They are meant for demos, evaluation and onboarding — not for production, and not for anything you would not want a third party to receive.

For anything beyond trying it out, self-host.

Related projects

License

Apache-2.0

Project details


Download files

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

Source Distribution

ovos_tts_plugin_server-0.0.6a3.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

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

ovos_tts_plugin_server-0.0.6a3-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file ovos_tts_plugin_server-0.0.6a3.tar.gz.

File metadata

File hashes

Hashes for ovos_tts_plugin_server-0.0.6a3.tar.gz
Algorithm Hash digest
SHA256 922b47bced855c964e6d54a0e59a253340ac49df6646a1fcf6a5dec2348c443f
MD5 078bd331f0dd1048529dc4e306abdf2b
BLAKE2b-256 8bb09f9d3a5167efedd92a51c301c5f3145644890c2184811b12d347a173722a

See more details on using hashes here.

File details

Details for the file ovos_tts_plugin_server-0.0.6a3-py3-none-any.whl.

File metadata

File hashes

Hashes for ovos_tts_plugin_server-0.0.6a3-py3-none-any.whl
Algorithm Hash digest
SHA256 7618718764eff27c1baf18cc9161caa1033fe8f6977add82241b09b445526b51
MD5 41a68353447c892c5a67a9d34baf20f8
BLAKE2b-256 275db129a23bec327ccaf1b2fd693dc4a54f3586320707398f5d7de2005a774b

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 Pingdom Monitoring Sentry Error logging StatusPage Status page