Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

增加对静态语音的缓存功能 #84

Merged
merged 7 commits into from
Dec 15, 2017
Merged

增加对静态语音的缓存功能 #84

merged 7 commits into from
Dec 15, 2017

Conversation

shark526
Copy link
Contributor

  1. 将常用的硬编码的语音(如 mic.say("开始家庭助手控制"))缓存至/static/audio 中以方便下次使用,无需再次在线请求语音合成, 提高了叮当的响应速度.
  2. 目前只将plugs/Hass.py应用了缓存功能. 若代码稳定后将逐步应用于其他插件.

@wzpan
Copy link
Owner

wzpan commented Dec 14, 2017

谢谢贡献。不过格式上不符合 pep8 规范,请参照 扫描结果 调整代码。

@shark526
Copy link
Contributor Author

哦哈哈,不好意思,昨晚搞得有点晚,忘记看这茬了

@wzpan wzpan merged commit 1c6ff57 into wzpan:master Dec 15, 2017
@wzpan
Copy link
Owner

wzpan commented Dec 15, 2017

Merged. 谢谢!

wzpan pushed a commit that referenced this pull request Dec 24, 2017
* 去除无用代码:获取设备friendly name

* removed the unformated comments

* 1. added static speech cache feature.  2. applied speech cache for Hass.py

* adjust the code to met flake8 check

* flake8 format...

* flake8 killing me...
wzpan pushed a commit that referenced this pull request Dec 24, 2017
* 去除无用代码:获取设备friendly name

* removed the unformated comments

* 1. added static speech cache feature.  2. applied speech cache for Hass.py

* adjust the code to met flake8 check

* flake8 format...

* flake8 killing me...
@wzpan wzpan mentioned this pull request Dec 24, 2017
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants