Get Started
Plugins
Macros
More information

Speech

Description

Connects the guessLanguage.js library and the ResponsiveVoice service for reading text documents out loud by converting the selected text into speech.

Plugin type: visual, non-system.

Supported editors: documents.

Speech
Installation

Available by default in ONLYOFFICE Enterprise Edition and Community Edition (Document Server + Community Server), and ONLYOFFICE cloud.

You can also download this plugin from the ONLYOFFICE App Directory.

Usage
  1. Select the necessary text.
  2. Open the Plugins tab and press Speech.
  3. The text will be read out loud.
Plugin structure

Repository on GitHub: https://github.com/ONLYOFFICE/plugin-speech.

  1. config.json, index.html and code.js
  2. Icons
  3. index_about.html for the plugin About window
  4. Third-party services:
Config
{
    "name": "Speech",
    "nameLocale": {
        "ru": "Речь",
        "fr": "Parole",
        "es": "Habla",
        "de": "Rede"
    },
    "guid": "asc.{D71C2EF0-F15B-47C7-80E9-86D671F9C595}",
    "version" : "1.0",

    "variations": [
        {
            "description": "Speech",
            "descriptionLocale": {
                "ru": "Речь",
                "fr": "Parole",
                "es": "Habla",
                "de": "Rede"
            },
            "url": "index.html",

            "icons": [ "resources/light/icon.png", "resources/light/icon@2x.png" ],
            "icons2": [
                {
                    "style" : "light",
                    
                    "100%": {
                        "normal": "resources/light/icon.png"
                    },
                    "125%": {
                        "normal": "resources/light/icon@1.25x.png"
                    },
                    "150%": {
                        "normal": "resources/light/icon@1.5x.png"
                    },
                    "175%": {
                        "normal": "resources/light/icon@1.75x.png"
                    },
                    "200%": {
                        "normal": "resources/light/icon@2x.png"
                    }
                },
                {
                    "style" : "dark",
                    
                    "100%": {
                        "normal": "resources/dark/icon.png"
                    },
                    "125%": {
                        "normal": "resources/dark/icon@1.25x.png"
                    },
                    "150%": {
                        "normal": "resources/dark/icon@1.5x.png"
                    },
                    "175%": {
                        "normal": "resources/dark/icon@1.75x.png"
                    },
                    "200%": {
                        "normal": "resources/dark/icon@2x.png"
                    }
                }
            ],
            "isViewer": true,
            "EditorsSupport": [ "word" ],

            "isVisual": false,

            "initDataType": "text",
            "initData": "",

            "buttons": []
        }
        {
            "description": "About",
            "descriptionLocale": {
                "ru": "Справка",
                "fr": "À propos",
                "es": "Sobre programa",
                "de": "Über"
            },
            "url": "index_about.html",

            "icons": [ "resources/img/icon.png", "resources/img/icon@2x.png", "resources/img/icon2.png", "resources/img/icon2@2x.png" ],
            "isViewer": false,
            "EditorsSupport": [ "word" ],

            "isVisual": true,
            "isModal": true,
            "isInsideMode": false,

            "initDataType": "none",
            "initData": "",

            "buttons": [
                {
                    "text": "Ok",
                    "primary": true
                }
            ],

            "size": [ 400, 50 ]
        }
    ]
}
Methods and events
Support

If you want to request a feature or report a bug regarding this plugin, use the issues section on GitHub.