Code Monkey home page Code Monkey logo

tts's Introduction

微软azure文本转语音 音频下载

Demo : https://tts.131213.xyz/

本文由GitHub Copilot 生成

1. 介绍

本项目是基于微软azure的文本转语音服务,通过调用微软azure的api接口,将文本转换为语音,然后下载到本地。

2. 安装说明

利用Cloudflare Workers部署

  1. 新建一个 Cloudflare Worker

  2. cf_worker.js 中的代码复制到 Cloudflare Worker 中并部署即可

修改前端

https://raw.githubusercontent.com/x-dr/cf_pages/main/tts.html 是前端代码 ,想修改的自己修改cf_worker.js中的下面行就行

    const html = await fetch("https://raw.githubusercontent.com/x-dr/cf_pages/main/tts.html")

利用docker部署

  1. 下载docker镜像
docker pull gindex/tts-azure:latest
  1. 运行容器
docker run -itd \
           --name tts \
            -p 3035:3035 \
           --restart=always \
           gindex/tts-azure:latest
  1. 访问地址
http://ip:3035/

利用Vercel部署

Deploy with Vercel

利用Linux服务器部署

  1. 安装nodejs (如果已经安装过nodejs则跳过此步骤)
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
  1. 安装git (如果已经安装过git则跳过此步骤)
sudo apt-get install git
  1. 下载项目
git clone https://github.com/x-dr/tts.git
  1. 安装依赖
cd tts
npm install
  1. 运行项目
node index.js
  1. 访问地址
http://ip:3035/

3. 使用说明

iOS源阅读tts复制链接网络导入即可

4. 更新日志

  • 2023-11-27 : 添加阅读3.0和iOS源阅读 tts

Star History

Star History Chart

tts's People

Contributors

x-dr 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.