3.0.5 • Published 4 months ago

@sw7d/ssml-editor v3.0.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 months ago

ssml-editor

模仿魔音工坊UISSML编辑器
根据微软语音文档生成SSML, 可配合大佬项目tts-vue一起使用

预览

在线体验

npm.io

开始

详细使用方法请参考ssml-editor-demo项目

一、环境

  • Node 18

二、开始

1.安装插件

yarn add @sw7d/ssml-editor

2.使用

src/main.ts

import { createApp } from 'vue'
import App from './App.vue'

import '@sw7d/ssml-editor/dist/style.css'

import SSMLEditor from '@sw7d/ssml-editor'

const app = createApp(App)
app.use(SSMLEditor)
app.mount('#app')

src/App.vue

<script setup lang="ts">
import { EditorView } from '@sw7d/ssml-editor'
</script>

<template>
  <EditorView></EditorView>
</template>

<style scoped></style>

开发指南

开发指南

参考

  1. 阿里TTS
  2. wangEditor 5
  3. slate-table
  4. wangEditor
  5. SlateNode | SlateTransforms | SlateNormalizing