Skip to content

Commit c33016d

Browse files
committed
Update configuration variables description style
1 parent 3ffd52e commit c33016d

File tree

1 file changed

+34
-10
lines changed

1 file changed

+34
-10
lines changed

source/_components/tts.baidu.markdown

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,40 @@ tts:
2323
app_id: YOUR_APPID
2424
api_key: YOUR_APIKEY
2525
secret_key: YOUR_SECRETKEY
26-
person: 4
2726
```
2827
29-
Configuration variables:
30-
31-
- **app_id** (*Required*): AppID for use this service, registered on Baidu.
32-
- **api_key** (*Required*): Apikey from Baidu.
33-
- **secret_key** (*Required*): Secretkey from Baidu.
34-
- **speed** (*Optional*): Audio speed, from 0 to 9, default is 5.
35-
- **pitch** (*Optional*): Audio pitch, from 0 to 9, default is 5.
36-
- **volume** (*Optional*): Audio volume, from 0 to 15, default is 5.
37-
- **person** (*Optional*): You can choose 0, 1, 3, 4, default is 0(a female voice).
28+
{% configuration %}
29+
app_id:
30+
description: The App ID for the use this service, must be already registered on Baidu.
31+
required: true
32+
type: string
33+
api_key:
34+
description: The API key from Baidu.
35+
required: true
36+
type: string
37+
secret_key:
38+
description: The secret key from Baidu.
39+
required: true
40+
type: string
41+
speed:
42+
description: Audio speed from 0 to 9.
43+
required: false
44+
type: int
45+
default: 5
46+
pitch:
47+
description: Audio pitch from 0 to 9.
48+
required: false
49+
type: int
50+
default: 5
51+
volume:
52+
description: Audio volume from 0 to 15.
53+
required: false
54+
type: int
55+
default: 5
56+
person:
57+
description: Voice type. You choose one from 0, 1, 3 or 4.
58+
required: false
59+
type: int
60+
default: 0
61+
{% endconfiguration %}
3862

0 commit comments

Comments
 (0)