找回密码
 立即注册
搜索
查看: 4010|回复: 3

[求助] 百度TTS无法正常调用

[复制链接]

7

主题

284

回帖

1041

积分

金牌会员

积分
1041
金钱
749
HASS币
0
发表于 2020-10-22 23:32:16 | 显示全部楼层 |阅读模式
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/websocket_api/commands.py", line 130, in handle_call_service
    connection.context(msg),
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/core.py", line 1308, in async_call
    task.result()
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/core.py", line 1343, in _execute_service
    await handler.func(service_call)
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/tts/__init__.py", line 165, in async_say_handle
    p_type, message, cache=cache, language=language, options=options
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/tts/__init__.py", line 338, in async_get_url
    engine, key, message, use_cache, language, options
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/tts/__init__.py", line 364, in async_get_tts_audio
    data = self.write_tags(filename, data, provider, message, language, options)
  File "/usr/local/lib/python3.7/dist-packages/homeassistant/components/tts/__init__.py", line 465, in write_tags
    tts_file = mutagen.File(data_bytes, easy=True)
  File "/home/pi/.homeassistant/deps/lib/python3.7/site-packages/mutagen/_util.py", line 164, in wrapper_func
    def wrap(func):
  File "/home/pi/.homeassistant/deps/lib/python3.7/site-packages/mutagen/_file.py", line 270, in File
    from mutagen.dsf import DSF
ModuleNotFoundError: No module named 'mutagen.dsdiff'


回复

使用道具 举报

4

主题

34

回帖

126

积分

注册会员

积分
126
金钱
88
HASS币
0
发表于 2020-10-23 08:08:39 | 显示全部楼层
有道理啊,好像不给力啊.你代码怎么写的?
回复

使用道具 举报

7

主题

284

回帖

1041

积分

金牌会员

积分
1041
金钱
749
HASS币
0
 楼主| 发表于 2020-10-23 16:50:05 | 显示全部楼层
RDt4ZdcPpsPMfX 发表于 2020-10-23 08:08
有道理啊,好像不给力啊.你代码怎么写的?

这个好像是树莓派镜像问题,这次安装homeassistant遇到了很多问题,我用的是ISO镜像,08-20的有很多问题
回复

使用道具 举报

7

主题

199

回帖

1044

积分

金牌会员

积分
1044
金钱
838
HASS币
20
发表于 2020-12-11 17:31:58 | 显示全部楼层
说白了,可能就是HA版本和python版本问题。后续HA需要python3.8+
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian ( 晋ICP备17001384号-1 )

GMT+8, 2025-6-21 18:14 , Processed in 0.061047 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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