Skip to content

Text To Speech (TTS) command-line tool using Azure Cognitive Services.

Notifications You must be signed in to change notification settings

zhouker94/langdu-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

langdu-rust

Build

Text To Speech (TTS) command-line tool, powered by Azure Cognitive Services.

Prerequisites

  • Azure subscription.
  • Create a Speech resource in the Azure portal.
  • Get the Speech resource key and region.

Quick Start

Add the environment variables

export SPEECH_KEY=your-key
export SPEECH_REGION=your-region

Run the command to synthesize speech from your txt file, and save speech to mp3.

langdu sample.txt output.mp3

Synthesize a dialog

Follow this format in your input txt file to synthesize a dialog-style speech with different voices with multilingual support.

# sample.txt

[en-US-ElizabethNeural] What do you do?
^^^^^^^^^^^^^^^^^^^^^^^
[en-US-JasonNeural] What do I do? System architecture.
^^^^^^^^^^^^^^^^^^^
|
Any supported voice identifier

About

Text To Speech (TTS) command-line tool using Azure Cognitive Services.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages