Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
minhvh-nals committed Feb 8, 2025
1 parent adf47c4 commit b78ec32
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 66 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Build & Upload to GitHub Releases
uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
binary_name: tts
Expand Down
65 changes: 0 additions & 65 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,65 +0,0 @@
# edge-tts-go

`edge-tts-go` is a golang module that allows you to use Microsoft Edge's online text-to-speech service from within your golang code or using the provided `edge-tts-go` command.

## Installation

To install it, run the following command:

$ go install github.com/surfaceyu/edge-tts-go

## Usage

### Basic usage

If you want to use the `edge-tts-go` command, you can simply run it with the following command:

$ edge-tts-go --text "Hello, world!" --write-media hello.mp3

### Changing the voice

If you want to change the language of the speech or more generally, the voice.

You must first check the available voices with the `--list-voices` option:

$ edge-tts-go --list-voices
Name: Microsoft Server Speech Text to Speech Voice (af-ZA, AdriNeural)
ShortName: af-ZA-AdriNeural
Gender: Female
Locale: af-ZA

Name: Microsoft Server Speech Text to Speech Voice (am-ET, MekdesNeural)
ShortName: am-ET-MekdesNeural
Gender: Female
Locale: am-ET

Name: Microsoft Server Speech Text to Speech Voice (ar-EG, SalmaNeural)
ShortName: ar-EG-SalmaNeural
Gender: Female
Locale: ar-EG

Name: Microsoft Server Speech Text to Speech Voice (ar-SA, ZariyahNeural)
ShortName: ar-SA-ZariyahNeural
Gender: Female
Locale: ar-SA

...

$ edge-tts-go --voice zh-CN-XiaoxiaoNeural --text "秦时明月汉时关,万里长征人未还" --write-media hello_in_chinese.mp3

### Changing rate and volume

It is possible to make minor changes to the generated speech.

$ edge-tts-go --rate=-50% --text "Hello, world!" --write-media hello_with_rate_halved.mp3
$ edge-tts-go --volume=-50% --text "Hello, world!" --write-media hello_with_volume_halved.mp3

## go module

It is possible to use the `edge-tts-go` module directly from go. For a list of example applications:

* https://github.com/surfaceyu/edge-tts-go/edgeTTS

## thanks

* https://github.com/rany2/edge-tts

0 comments on commit b78ec32

Please sign in to comment.