From 3ffd52e44526710539fdd5362a3291ecf9c28305 Mon Sep 17 00:00:00 2001 From: zhujisheng <30714273+zhujisheng@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:27:13 +0800 Subject: [PATCH] Add tts.baidu platform (#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. --- source/_components/tts.baidu.markdown | 38 ++++++++++++++++++ source/images/supported_brands/baiducloud.png | Bin 0 -> 1239 bytes 2 files changed, 38 insertions(+) create mode 100644 source/_components/tts.baidu.markdown create mode 100644 source/images/supported_brands/baiducloud.png diff --git a/source/_components/tts.baidu.markdown b/source/_components/tts.baidu.markdown new file mode 100644 index 00000000000..430a6f3fdda --- /dev/null +++ b/source/_components/tts.baidu.markdown @@ -0,0 +1,38 @@ +--- +layout: page +title: "Baidu Text-to-Speech" +description: "Instructions how to setup Baidu TTS with Home Assistant." +date: 2017-11-21 09:00 +sidebar: true +comments: false +sharing: true +footer: true +logo: baiducloud.png +ha_category: Text-to-speech +ha_release: 0.59 +--- + +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. + +To get started, add the following lines to your `configuration.yaml`: + +```yaml +#Example configuration.yaml entry +tts: + - platform: baidu + app_id: YOUR_APPID + api_key: YOUR_APIKEY + secret_key: YOUR_SECRETKEY + person: 4 +``` + +Configuration variables: + +- **app_id** (*Required*): AppID for use this service, registered on Baidu. +- **api_key** (*Required*): Apikey from Baidu. +- **secret_key** (*Required*): Secretkey from Baidu. +- **speed** (*Optional*): Audio speed, from 0 to 9, default is 5. +- **pitch** (*Optional*): Audio pitch, from 0 to 9, default is 5. +- **volume** (*Optional*): Audio volume, from 0 to 15, default is 5. +- **person** (*Optional*): You can choose 0, 1, 3, 4, default is 0(a female voice). + diff --git a/source/images/supported_brands/baiducloud.png b/source/images/supported_brands/baiducloud.png new file mode 100644 index 0000000000000000000000000000000000000000..bdfd421703bea92fa3c3ad419631764804130ec4 GIT binary patch literal 1239 zcmeAS@N?(olHy`uVBq!ia0vp^>wwsXgBeJks41KRq!tDEgt!9f|AQN_=#@1AU1?ep zgjvy zvV5bQM01(MUp!`DU|#R(;uw-~@9M3WMT;Cn+8*)?1PUJEExi9&?5x@IfBCr!Vx``& z^*mO2`&s*H$cgBq8+#Ql?Km7(8+y3-Lsuym>-!3}ZLaFova3G(KALk~f5jPDGmV1* z6)k(~=CU|4X8qdYv1-X9j?W84b=d;E(_aR(UF-HzezW(grh6q*=$hkG7JT8@-n#Jb zer21>N?Wbl!zT0Qet5pL@-#>El=fJm?NXbq)*YX2#c{J$hM{ZILeqa04Y#vTxK-5p z=QVE1G@r|TAWd=P^HwmuXyQO30{>mMX)h8)&DV3}&;PaX>lSp+N$r?@WL?p|sG|zI&Rs3O z$N6~Y)Hlj`dkX&o%y;Amsz1elsokeOdzV1J8R^w9JmDru%^HcH+&oZdzOxqoxwB4(y zW^+MwPIBF}J4&-tzeg6`e7Enw|8u$1TqfOoJMY~gu^9`U-FrVje{JTvOkj_+;_Kz+ zM(fLU?)-E}cT``j1h zJ=(ICC+}n~&xE7pauZM2Ya{sLP zldh59A(Ilm{l&xY9sVnRRJZ9zzTf$ybdtNK=u5L5tDQIxHLtR4xcK#g-@>lf>DSd7 zE?vFgr26i{&U2x;8Ix;_P0RN+HreTB=7rB)DC!n*BDc;V_T7ewCvs&&ekC=u?6-cd wWxd7o+qWsV=RTCII2z8tUAiy-zopr0In*s-~a#s literal 0 HcmV?d00001