语音发布

描述性

将所选文本转换为语音插件使用猜语言识别语言语音合成接口Web语音API.

插件类型 :可视非系统

支持编辑器 :文档记录

语音发布
安装

默认可用词有UnitedOffifte企业版与社区版(文档服务器+社区服务器)和UnitedOFFITE云

也可以下载插件Optife应用目录.

用法
  1. 选择必备文本
  2. 打开插件设置选择语音转播语言(默认设置为自识别模式)。
  3. 打开插件标签并按语音发布.
  4. 文本会大声读出
已知问题
  1. 一些浏览器,例如MozzilaOpera系统只能使用预安装语言生成语音使用新语言需要添加到系统中
  2. 插件不工作Safari 15.3问题定在Safari15.4上(17614.1.7.7)。
插件结构

Github存储器https://github.com/ONLYOFFICE/onlyoffice.github.io/tree/master/sdkjs-plugins/content/speech.

  1. config.json,索引.html语音.js
  2. 图标
  3. 上头翻译文件夹中包含俄文、德文、西班牙文、捷克文、意大利文、日文、荷兰文、葡萄牙文、中文和法文译文
  4. 设置.html指定窗口插件设置
  5. 第三方服务
    • 猜语言自然语言检测库基于字元统计分析库用JaavaScript写,浏览器或节点js运行时工作效果相同许可证:GNULGPL.
    • Query查询JavaScript快速简洁库简化HTML文档遍历、事件处理、动画和Ajax交互快速网络开发许可证:MIT许可.
    • 选择2可定制选择框支持搜索、标签标签、远程数据集、无限滚动和许多其他高用选项许可证:麻省理工学院.
配置
{     "name": "Speech",     "nameLocale": {         "cs": "Řeč",         "de": "Rede",         "es": "Habla",         "fr": "Parole",         "it": "Discorso",         "ja": "スピーチ",         "nl": "Spraak",         "pt": "Discurso",         "zh": "讲话"     },     "guid": "asc.{D71C2EF0-F15B-47C7-80E9-86D671F9C595}",     "version" : "2.0.0",      "variations": [         {             "description": "Convert the selected text into speech.",             "descriptionLocale": {                 "fr": "Convertissez le texte sélectionné en parole.",                 "es": "Convierta el texto seleccionado en voz.",                 "de": "Konvertieren Sie den ausgewählten Text in die 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",              "buttons": [],             "store": {                 "background": {                     "light": "#444444",                     "dark": "#444444"                 },                 "screenshots" : ["resources/store/screenshots/screen_1.png"],                 "icons"       : {                     "light" : "resources/store/icons",                     "dark"  : "resources/store/icons"                 }             }         },         {             "description": "Settings",             "descriptionLocale": {                 "cs": "Nastavení",                 "de": "Einstellungen",                 "es": "Configuración",                 "fr": "Paramètres",                 "it": "Impostazioni",                 "ja": "設定",                 "nl": "Instellingen",                 "pt": "Definições",                 "zh": "设置"                              },             "url": "settings.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",              "buttons": [                 {                     "text": "Ok",                     "primary": true                 }             ],              "size": [ 300, 150 ]         }     ] }
方法事件
支持

如果要请求特性或报告关于此插件的故障,请使用问题段GitHub.