1
1
# :speaking_head : aspeak
2
+
2
3
[ ![ GitHub stars] ( https://img.shields.io/github/stars/kxxt/aspeak )] ( https://github.com/kxxt/aspeak/stargazers )
3
4
[ ![ GitHub issues] ( https://img.shields.io/github/issues/kxxt/aspeak )] ( https://github.com/kxxt/aspeak/issues )
4
5
[ ![ GitHub forks] ( https://img.shields.io/github/forks/kxxt/aspeak )] ( https://github.com/kxxt/aspeak/network )
@@ -28,7 +29,7 @@ $ pip install aspeak
28
29
## Usage
29
30
30
31
```
31
- usage: aspeak [-h] [-V | [-t [TEXT] | -s [SSML]]] [-f FILE] [-o OUTPUT_PATH] [-l LOCALE] [-v VOICE]
32
+ usage: aspeak [-h] [-V | [-t [TEXT] | -s [SSML]]] [-p PITCH] [-r RATE] [- f FILE] [-o OUTPUT_PATH] [-l LOCALE] [-v VOICE]
32
33
33
34
This program uses trial auth token of Azure Cognitive Services to do speech synthesis for you.
34
35
@@ -46,10 +47,16 @@ options:
46
47
Locale to use, default to en-US
47
48
-v VOICE, --voice VOICE
48
49
Voice to use.
50
+
51
+ Text options:
52
+ -p PITCH, --pitch PITCH
53
+ Set pitch, default to 0
54
+ -r RATE, --rate RATE Set speech rate, default to 0.04
49
55
```
50
56
51
57
- If you don't specify ` -o ` , we will use your default speaker.
52
58
- If you don't specify ` -t ` or ` -s ` , we will assume ` -t ` is provided.
59
+ - You must specify voice if you want to use ` -p ` or ` -r ` option.
53
60
54
61
### Examples
55
62
@@ -101,11 +108,18 @@ $ aspeak -t "你好,世界!" -l zh-CN
101
108
$ aspeak -t " 你好,世界!" -v zh-CN-YunjianNeural
102
109
```
103
110
111
+ #### Custom pitch and rate
112
+
113
+ ``` sh
114
+ $ aspeak -t " 你好,世界!" -v zh-CN-XiaoxiaoNeural -p 1.5 -r 0.5
115
+ ```
116
+
104
117
## About This Application
105
118
106
119
- I found Azure TTS can synthesize nearly authentic human voice, which is very interesting :laughing : .
107
120
- I wrote this program to learn Azure Cognitive Services.
108
121
- And I use this program daily, because ` espeak ` and ` festival ` outputs terrible :fearful : audio.
109
- - But I respect :raised_hands : their maintainers' work, both are good open source software and they can be used off-line.
122
+ - But I respect :raised_hands : their maintainers' work, both are good open source software and they can be used
123
+ off-line.
110
124
- I hope you like it :heart : .
111
125
0 commit comments