Skip to content

Commit 3ffd52e

Browse files
zhujishengfabaff
authored andcommitted
Add tts.baidu platform (home-assistant#4032)
* Add tts.baidu platform * Update tts.baidu.markdown Change appid to api_id, apikey to api_key, and secretkey to secret_key, because the baidu.py platform program changed.
1 parent f9ff39b commit 3ffd52e

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

source/_components/tts.baidu.markdown

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
layout: page
3+
title: "Baidu Text-to-Speech"
4+
description: "Instructions how to setup Baidu TTS with Home Assistant."
5+
date: 2017-11-21 09:00
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: baiducloud.png
11+
ha_category: Text-to-speech
12+
ha_release: 0.59
13+
---
14+
15+
The `baidu` text-to-speech platform uses [Baidu TTS engine](https://cloud.baidu.com/product/speech/tts) to read a text with natural sounding voices.
16+
17+
To get started, add the following lines to your `configuration.yaml`:
18+
19+
```yaml
20+
#Example configuration.yaml entry
21+
tts:
22+
- platform: baidu
23+
app_id: YOUR_APPID
24+
api_key: YOUR_APIKEY
25+
secret_key: YOUR_SECRETKEY
26+
person: 4
27+
```
28+
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).
38+
1.21 KB
Loading

0 commit comments

Comments
 (0)