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

 找回密码
 立即注册
查看: 8015|回复: 4

[求助] MPD 怎么折腾都没声音

[复制链接]

1

主题

35

帖子

173

积分

注册会员

Rank: 2

积分
173
金钱
138
HASS币
0
发表于 2020-4-21 20:11:20 | 显示全部楼层 |阅读模式
media_player:
  - platform: mpd
    host: 127.0.0.1
前台显示正常,输入文字TTS,播放器显示播放按钮,但就是没声音是啥问题。。。
树莓派raspi系统+hassio+docker,包括在做百度TTS的时候,百度也显示调用成功,但就是3.5mm音频上没声音。音频设置里已经成从音频口(而不是HDMI)播放了,但是怎么折腾都没声音,求大大指导一下?ps:在树莓派系统里用omxplayer是可以播放正常的mp3文件有声音输出的,说明音频口正常的。

回复

使用道具 举报

2

主题

151

帖子

1814

积分

金牌会员

Rank: 6Rank: 6

积分
1814
金钱
1663
HASS币
0
发表于 2020-4-22 13:30:31 | 显示全部楼层
安装MPD媒体播放器
sudo apt-get install mpd
设置用户组
sudo usermod -a -G audio pi
查看状态
sudo systemctl status mpd
再看看6600端口是否占用

回复

使用道具 举报

1

主题

35

帖子

173

积分

注册会员

Rank: 2

积分
173
金钱
138
HASS币
0
 楼主| 发表于 2020-4-22 20:12:54 | 显示全部楼层
已解决,我是docker安装的home assistant,之前折腾一直在系统里装mpd,后来意识到不太对,系统里装了mpd似乎没什么用,因为home assistant加载后,音频似乎就被后者占用了,基于这个,后来试了下,翻了论坛的帖子,添加了repository,从add-on里安装了mopidy,问题解决。谢谢各位!
回复

使用道具 举报

22

主题

414

帖子

2255

积分

金牌会员

Rank: 6Rank: 6

积分
2255
金钱
1841
HASS币
30
发表于 2020-7-25 19:42:53 | 显示全部楼层
kally11112 发表于 2020-4-22 20:12
已解决,我是docker安装的home assistant,之前折腾一直在系统里装mpd,后来意识到不太对,系统里装了mpd似 ...

请问怎么配置的,我的安装了一直报错
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/dist-packages/mopidy/m3u/playlists.py", line 70, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/dist-packages/mopidy/m3u/playlists.py", line 70, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/dist-packages/mopidy/m3u/playlists.py", line 70, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/dist-packages/mopidy/m3u/playlists.py", line 70, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/dist-packages/mopidy/m3u/playlists.py", line 70, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
ERROR    M3UBackend backend caused an exception.
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 18, in _backend_error_handling
    yield
  File "/usr/lib/python2.7/dist-packages/mopidy/core/playlists.py", line 66, in as_list
    playlists = future.get()
  File "/usr/lib/python2.7/dist-packages/pykka/threading.py", line 52, in get
    compat.reraise(*self._data['exc_info'])
  File "/usr/lib/python2.7/dist-packages/pykka/compat.py", line 12, in reraise
    exec('raise tp, value, tb')
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 201, in _actor_loop
    response = self._handle_receive(message)
  File "/usr/lib/python2.7/dist-packages/pykka/actor.py", line 295, in _handle_receive
    return callee(*message['args'], **message['kwargs'])
  File "/usr/lib/python2.7/dist-packages/mopidy/m3u/playlists.py", line 70, in as_list
    for entry in os.listdir(self._playlists_dir):
OSError: [Errno 2] No such file or directory: '/share/mopidy/playlists'
你有所不知,小米设备带屏幕都是为了后期广告投送的。
灵长类退散
回复

使用道具 举报

7

主题

206

帖子

1037

积分

金牌会员

Rank: 6Rank: 6

积分
1037
金钱
830
HASS币
20
发表于 2020-12-26 04:48:35 | 显示全部楼层
我addon能安装上,但是在log也显示权限问题
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 07:47 , Processed in 0.102630 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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