问答社区分类: Home Assistant树莓派使用蓝牙+百度TTS报错怎么解决啊?

树莓派使用蓝牙+百度TTS报错怎么解决啊?

农民工 提问于 2年 前     2018年3月30日更新

我在ha中配置了百度TTS 已经能再 ha的tts目录下生成mp3了,同时树莓派使用mplayer也可以通过蓝牙播放mp3了,但是使用ha-tts-bluetooth-speaker

插件来播放tts的时候就会报错 :

Dec 16 12:38:11 hassbian hass[1203]: 2017-12-16 12:38:11 INFO (Thread-9) [custom_components.media_player.tts_bluetooth_speaker] play_media: http://192.168.0.119:8123/api/tts_proxy/7d385d128cc4a59fa5ddb0211327c11b3f70f113_zh_-_baidu.mp3
Dec 16 12:38:11 hassbian hass[1203]: MPlayer 1.3.0 (Debian), built with gcc-6.2.1 (C) 2000-2016 MPlayer Team
Dec 16 12:38:11 hassbian hass[1203]: do_connect: could not connect to socket
Dec 16 12:38:11 hassbian hass[1203]: connect: No such file or directory
Dec 16 12:38:11 hassbian hass[1203]: Failed to open LIRC support. You will not be able to use your remote control.
Dec 16 12:38:11 hassbian hass[1203]: Terminal type `unknown’ is not defined.
Dec 16 12:38:11 hassbian hass[1203]: Playing /home/homeassistant/.homeassistant/tts/7d385d128cc4a59fa5ddb0211327c11b3f70f113_zh_-_baidu.mp3.
Dec 16 12:38:11 hassbian hass[1203]: libavformat version 57.56.101 (external)
Dec 16 12:38:11 hassbian hass[1203]: Mismatching header version 57.56.100
Dec 16 12:38:11 hassbian hass[1203]: Audio only file format detected.
Dec 16 12:38:11 hassbian hass[1203]: Load subtitles in /home/homeassistant/.homeassistant/tts/
Dec 16 12:38:11 hassbian hass[1203]: ==========================================================================
Dec 16 12:38:11 hassbian hass[1203]: Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
Dec 16 12:38:11 hassbian hass[1203]: AUDIO: 16000 Hz, 2 ch, s16le, 16.0 kbit/3.12% (ratio: 2000->64000)
Dec 16 12:38:11 hassbian hass[1203]: Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
Dec 16 12:38:11 hassbian hass[1203]: ==========================================================================
Dec 16 12:38:11 hassbian hass[1203]: AO: [pulse] Init failed: No such entity
Dec 16 12:38:11 hassbian hass[1203]: Failed to initialize audio driver ‘pulse::bluez_sink.96_13_5A_00_4E_1B.a2dp_sink’
Dec 16 12:38:11 hassbian hass[1203]: Could not open/initialize audio device -> no sound.
Dec 16 12:38:11 hassbian hass[1203]: Audio: no sound
Dec 16 12:38:11 hassbian hass[1203]: Video: no video
Dec 16 12:38:11 hassbian hass[1203]: Exiting… (End of file)

有高手能帮忙看下吗