Skip to content

TTS Azure Web 是一个 Azure 文本转语音(TTS)网页应用,可以在本地或者云端使用你的 Azure Key 一键部署。TTS Azure Web is an Azure Text-to-Speech (TTS) web application. It allows you to run it locally or deploy it with a single click using your Azure Key.

License

Notifications You must be signed in to change notification settings

Femoon/tts-azure-web

Repository files navigation

TTS Azure Web

English / 简体中文

TTS Azure Web is an Azure Text-to-Speech (TTS) web application. Fine-tune the output speech results using Speech Synthesis Markup Language (SSML). It allows you to run it locally or deploy it with a single click using your Azure Key.

Key Features:

  • Supports selection of voice, language, style, and character.
  • Supports adjustments of speech speed, intonation, and volume.
  • Supports audio output download.
  • One-click deployment for both local and cloud environments.
  • Supports SSML config import and export.

This application is ideal for those looking to minimize setup while experiencing the full capabilities of Azure TTS.

Live demo: https://tts.femoon.top

Getting Started

Get your API Key

  • Go to Microsoft Azure Text to Speech and click "Try Text to Speech Free"
  • Go to Azure AI services
  • In the "Speech services" block, click "Add"
  • A region and two subscription keys will be listed beside Speech Services. You only need one key and its corresponding region.

Deploy on Vercel

Deploy with Vercel

Deploy locally

# install yarn
npm i -g yarn
# install dependencies
yarn
# building the production environment
yarn build
# run production environment serve
yarn start

Development

Before starting development, you must create a new .env.local file at project root, and place your azure key and region into it:

# your azure key (required)
SPEECH_KEY=your_azure_key
# your azure region (required)
SPEECH_REGION=your_azure_region
# Maximum input length limit (optional)
NEXT_PUBLIC_MAX_INPUT_LENGTH=4000

Run the development server:

# install yarn
npm i -g yarn
# install dependencies
yarn
# run serve
yarn dev

Open http://localhost:3000 with your browser to see the result.

Git commit specification reference

  • feat add new functions
  • fix Fix issues/bugs
  • perf Optimize performance
  • style Change the code style without affecting the running result
  • refactor Re-factor code
  • revert Undo changes
  • test Test related, does not involve changes to business code
  • docs Documentation and Annotation
  • chore Updating dependencies/modifying scaffolding configuration, etc.
  • ci CI/CD

About

TTS Azure Web 是一个 Azure 文本转语音(TTS)网页应用,可以在本地或者云端使用你的 Azure Key 一键部署。TTS Azure Web is an Azure Text-to-Speech (TTS) web application. It allows you to run it locally or deploy it with a single click using your Azure Key.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published