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

 找回密码
 立即注册
查看: 8384|回复: 15

[技术探讨] Hass.io Docker mopidy X86平台,tts没有声音

[复制链接]

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
发表于 2018-9-5 16:27:09 | 显示全部楼层 |阅读模式
本帖最后由 arrive 于 2018-9-5 16:34 编辑

Hass.ioDocker
mopidy
X86平台


使用的百度tts,tts的mp3正常生成了,但是没有播放声音
网页moped也无法播放保存本地的音乐mp3文件
但是找到文件后播放一切正常

这是为什么呢?

{  "local_scan": true,
  "options": [
    {
      "name": "local/media_dir",
      "value": "/share/mopidy/media"
    },
    {
      "name": "m3u/playlists_dir",
      "value": "/share/mopidy/playlists/"
    }
  ]
}

网页上在线播放qq音乐正常


回复

使用道具 举报

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
 楼主| 发表于 2018-9-5 16:40:01 | 显示全部楼层
下午4:38
Time changed to 16:38
下午4:37
MPD turned off
下午4:37
MPD changed to unavailable
下午4:35
MPD turned off
下午4:35
MPD changed to playing
下午4:29
Time changed to 16:29
下午4:19
MPD turned off
下午4:18
MPD changed to playing
下午4:18
MPD turned off
下午4:18
MPD changed to playing
下午4:18
MPD changed to paused
下午4:17
MPD changed to playing
下午4:17
MPD turned off
下午4:16
Home Assistant started

这是部分日志,正常吧?!
回复

使用道具 举报

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
 楼主| 发表于 2018-9-5 16:46:51 | 显示全部楼层
starting version 3.2.2

(gst-plugin-scanner:18): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstdtls.so': Error relocating /usr/lib/gstreamer-1.0/libgstdtls.so: BIO_set_data: symbol not found
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from /var/lib/mopidy/.config/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Creating dir /root/.config/mopidy
INFO     Enabled extensions: mpd, http, moped, stream, m3u, softwaremixer, file, local, local-sqlite
INFO     Disabled extensions: gmusic
WARNING  Found gmusic configuration errors, the extension has been automatically disabled:
WARNING    gmusic/username must be set.
WARNING    gmusic/password must be set.
WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO     Found 3 files in media_dir.
INFO     Checking 3 tracks from library.
INFO     Removing 0 missing tracks.
INFO     Found 0 tracks which need to be updated.
INFO     Scanning...
INFO     Scanned 0 of 0 files in 0s.
INFO     Done scanning.
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from /var/lib/mopidy/.config/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: mpd, http, moped, stream, m3u, softwaremixer, file, local, local-sqlite
INFO     Disabled extensions: gmusic
WARNING  Found gmusic configuration errors, the extension has been automatically disabled:
WARNING    gmusic/username must be set.
WARNING    gmusic/password must be set.
WARNING  Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO     Starting Mopidy mixer: SoftwareMixer
INFO     Starting Mopidy audio
INFO     Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend
INFO     Audio output set to "autoaudiosink"
INFO     Loaded 3 local tracks using sqlite
INFO     Starting Mopidy core
INFO     Starting Mopidy frontends: MpdFrontend, HttpFrontend
INFO     MPD server running at [::ffff:0.0.0.0]:6600
INFO     HTTP server running at [::ffff:0.0.0.0]:6680
INFO     Starting GLib mainloop
INFO     New MPD connection from [::ffff:192.168.1.126]:45090
回复

使用道具 举报

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
 楼主| 发表于 2018-9-6 15:59:34 | 显示全部楼层
麻烦各位成功的分享一下步骤!
回复

使用道具 举报

65

主题

853

帖子

3038

积分

论坛元老

Rank: 8Rank: 8

积分
3038
金钱
2180
HASS币
40
发表于 2018-9-6 16:04:36 | 显示全部楼层
早不用mopidy了,现在都用dlna直接连智能音箱tts来得方便
回复

使用道具 举报

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
 楼主| 发表于 2018-9-7 11:30:31 | 显示全部楼层
plutosherry 发表于 2018-9-6 16:04
早不用mopidy了,现在都用dlna直接连智能音箱tts来得方便

智能音箱没有dlna功能
回复

使用道具 举报

65

主题

853

帖子

3038

积分

论坛元老

Rank: 8Rank: 8

积分
3038
金钱
2180
HASS币
40
发表于 2018-9-7 15:41:18 | 显示全部楼层
你是不是在docker下部署的mopidy吧?我以前没有用dlna功能的时候也遇到同样的问题。我是这样解决的:
不要再docker下安装mopidy 而是在正式环境下(我的是ubuntu16)去mopidy官方直接下载安装包,安装mopidy 随后对conf文件进行简单配置后就可以正常播放了。。。。
至于ha要调用mpd的话,就直接通过ip+端口即可
回复

使用道具 举报

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
 楼主| 发表于 2018-9-10 10:52:08 | 显示全部楼层
plutosherry 发表于 2018-9-7 15:41
你是不是在docker下部署的mopidy吧?我以前没有用dlna功能的时候也遇到同样的问题。我是这样解决的:
不要 ...

非常感谢帮助
回复

使用道具 举报

9

主题

264

帖子

1095

积分

金牌会员

Rank: 6Rank: 6

积分
1095
金钱
826
HASS币
20
 楼主| 发表于 2018-9-10 10:55:41 | 显示全部楼层
按照@plutosherry的方法,我在ubuntu系统下安装了mopidy,然后在hassio下安装mopidy,http://192.168.0.243:6680/moped这个界面下也可以播放了
回复

使用道具 举报

65

主题

853

帖子

3038

积分

论坛元老

Rank: 8Rank: 8

积分
3038
金钱
2180
HASS币
40
发表于 2018-9-10 13:27:31 | 显示全部楼层
arrive 发表于 2018-9-10 10:55
按照@plutosherry的方法,我在ubuntu系统下安装了mopidy,然后在hassio下安装mopidy,http://192.168.0.243 ...

回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-15 09:02 , Processed in 0.085942 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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