『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 10480|回复: 9

[技术探讨] TTS循环播放问题

[复制链接]

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
发表于 2021-6-22 19:04:49 | 显示全部楼层 |阅读模式
本帖最后由 dinglifeng 于 2021-7-1 09:22 编辑

用的baidu tts 音响是sonos TTS可以成功 ,但问题就是一直念起来不停,哪位大侠知道怎么解决
实际情况是念起来没完,在media player 界面使用tts 也是一样的情况,一直重复

截屏2021-07-01 上午8.47.07.png
截屏2021-07-01 上午8.47.40.png
截屏2021-07-01 上午8.47.22.png
截屏2021-07-01 上午8.48.00.png


回复

使用道具 举报

6

主题

85

帖子

705

积分

高级会员

Rank: 4

积分
705
金钱
620
HASS币
0
发表于 2021-6-22 23:06:48 | 显示全部楼层
持续时间那里 不写  我刚解决完
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-6-23 10:06:11 | 显示全部楼层
么么 发表于 2021-6-22 23:06
持续时间那里 不写  我刚解决完

哪里的持续时间?我用node red 写的自动化
回复

使用道具 举报

3

主题

223

帖子

3047

积分

元老级技术达人

积分
3047
金钱
2819
HASS币
10
发表于 2021-6-23 14:15:29 | 显示全部楼层
用的sonos 没遇到这种情况
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-6-23 19:18:06 | 显示全部楼层
哎 咋搞啊 一念念一天 都烦死了都
回复

使用道具 举报

105

主题

2954

帖子

1万

积分

超级版主

智能家居&单板滑雪痴迷爱好者

Rank: 8Rank: 8

积分
12103
金钱
9084
HASS币
460

教程狂人突出贡献

发表于 2021-6-23 20:11:17 | 显示全部楼层
dinglifeng 发表于 2021-6-23 10:06
哪里的持续时间?我用node red 写的自动化

把你的具体配置贴出来,也许能有人看出问题来。笼统地说没多大意义
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-6-23 21:00:06 | 显示全部楼层
[{"id":"aed0d86f.26b788","type":"api-current-state","z":"557fd105.fe3338","name":"客厅温度","server":"4379efdc.d0568","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.ke_ting_wen_shi_du_chuan_gan_qi_temperature","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":820,"wires":[["1ddfd892.584177"]]},{"id":"1ddfd892.584177","type":"change","z":"557fd105.fe3338","name":"客厅温度数据处理","rules":[{"t":"move","p":"payload","pt":"msg","to":"ketingwendu","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":820,"wires":[["a335437b.07b2a8"]]},{"id":"a335437b.07b2a8","type":"api-current-state","z":"557fd105.fe3338","name":"客厅湿度","server":"4379efdc.d0568","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.ke_ting_wen_shi_du_chuan_gan_qi_humidity","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":880,"wires":[["4f325e38.41c138"]]},{"id":"4f325e38.41c138","type":"change","z":"557fd105.fe3338","name":"客厅湿度数据处理","rules":[{"t":"move","p":"payload","pt":"msg","to":"ketingshidu","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":590,"y":880,"wires":[["52dc7d1a.9a4254"]]},{"id":"52dc7d1a.9a4254","type":"function","z":"557fd105.fe3338","name":"获取当前时间戳","func":"var now = new Date();\nvar timestamp = Date.parse(new Date());\nmsg.timestamp = timestamp;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":360,"y":940,"wires":[["c637a321.baaad"]]},{"id":"c637a321.baaad","type":"moment","z":"557fd105.fe3338","name":"转换时间格式","topic":"","input":"timestamp","inputType":"msg","inTz":"Asia/Shanghai","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm","locale":"C","output":"time","outputType":"msg","outTz":"Asia/Shanghai","x":580,"y":940,"wires":[["f5e282a5.660a78"]]},{"id":"f5e282a5.660a78","type":"function","z":"557fd105.fe3338","name":"TTS内容","func":"var message = `欢迎您回家,现在时间是${msg.time},当前客厅温度为${msg.ketingwendu}摄氏度,湿度为百分之${msg.ketingshidu}。`;\nmsg.payload = {};\nmsg.payload.data = {\"message\":message};\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":940,"wires":[["71361e33.04d4f8"]]},{"id":"71361e33.04d4f8","type":"api-call-service","z":"557fd105.fe3338","name":"SONOS播报TTS","server":"4379efdc.d0568","version":3,"debugenabled":false,"service_domain":"tts","service":"baidu_say","entityId":"media_player.ke_ting","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":940,"y":940,"wires":[[]]},{"id":"4379efdc.d0568","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-6-23 21:01:43 | 显示全部楼层
XCray 发表于 2021-6-23 20:11
把你的具体配置贴出来,也许能有人看出问题来。笼统地说没多大意义

收到,其实也没什么配置 就是在Media_player的界面中 输入要念出来的问题 点那个小飞机图标 然后 音响就会一直循环念下去不是读一遍就停
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-6-24 16:27:24 | 显示全部楼层
么么 发表于 2021-6-22 23:06
持续时间那里 不写  我刚解决完

再给往详细了解释一下呗。。愁死了
回复

使用道具 举报

31

主题

531

帖子

2463

积分

金牌会员

Rank: 6Rank: 6

积分
2463
金钱
1927
HASS币
20
 楼主| 发表于 2021-6-28 19:40:06 | 显示全部楼层
有没有高人给指点指点啊
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-27 08:31 , Processed in 0.369070 second(s), 35 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表