Create a plugin template and configure its settings which will be displayed in the DocSpace plugin settings:
To create a plugin template, open the terminal and run the following npx command:
If the npx command is not avaibale, install the @onlyoffice/docspace-plugin-sdk npm package globally using the following command:
npm i -g @onlyoffice/docspace-plugin-sdk
Configure the plugin in the terminal by specifying settings in the dialog. All the settings are described here.
For the speech-to-text plugin, you can use the following values:
|Speech to Text Conversion is a speech recognition software that allows you to recognize and translate spoken speech into text.
|Select scopes (Press <space> to select, Enter when finished)
|API, Settings, Context menu
A folder with the plugin template will be placed at the path where you executed the command.
You can change all the specified parameters later in the package.json file.
You can also create a plugin in any project by adding the @onlyoffice/docspace-plugin-sdk npm package as a dependency and specifying all the necessary fields in the package.json file.