Code Monkey home page Code Monkey logo

azure-tts-web's Introduction

在web页面中使用azure文字转语音功能

网页地址:https://james-curtis.github.io/azure-tts-web/

支持 SSML

img

参考示例:

抖音:https://www.douyin.com/video/7096410070052867341

azure tts:mp3

SSML代码

<speak
  xmlns="http://www.w3.org/2001/10/synthesis"
  xmlns:mstts="http://www.w3.org/2001/mstts"
  xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="zh-CN">
  <voice name="zh-CN-YunxiNeural">
    <s />
    <mstts:express-as role="Narrator" style="serious">这个连饭都吃不起的流浪汉,却用全身的积蓄,买了盒手写体英文卡片,这些钱足以让他饱餐一顿</mstts:express-as>
    <s />
    <mstts:express-as role="Narrator" style="serious">而他买卡片。只是因为他捡到一本日记,本子上没有藏宝图,只是一个小女孩的碎碎念
      他看了第一篇,小女孩说妈妈去世了,只留下这个本子,让她每天记录生活,这样妈妈就能在天堂看到
      他翻到下一页,字体变成手写体英文,他看不懂,向周围人求助,可周围也都是流浪汉</mstts:express-as>
  </voice>
</speak>

纯文本

这个连饭都吃不起的流浪汉,却用全身的积蓄,买了盒手写体英文卡片,这些钱足以让他饱餐一顿
而他买卡片。只是因为他捡到一本日记,本子上没有藏宝图,只是一个小女孩的碎碎念
他看了第一篇,小女孩说妈妈去世了,只留下这个本子,让她每天记录生活,这样妈妈就能在天堂看到
他翻到下一页,字体变成手写体英文,他看不懂,向周围人求助,可周围也都是流浪汉

墙裂推荐 Azure 有声内容创作门户

11

相关教程

  1. 配音与字幕教程(含魔云熙调音教程)

Q/A

代码都是存您的本机,请知晓

class Storage {
  static getItem(key: string) {
    if (IN_UTOOLS) return utools.dbStorage.getItem(key)
    return localStorage.getItem(key);
  }

  static setItem(key: string, data: any) {
    if (IN_UTOOLS) return utools.dbStorage.setItem(key, data)
    return localStorage.setItem(key, data);
  }
}

免费额度

参考官网:https://azure.microsoft.com/zh-cn/pricing/details/cognitive-services/speech-services/ img

azure-tts-web's People

Contributors

eric-gitta-moore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.