2024年12月4日星期三 上午1:17:31

Microsoft Edge TTS for Home Assistant,no need to apply for app_key DLNA

1 年 前
#20198 引用
基于Edge浏览器的微软TTS插件,无需app_key

Microsoft Edge TTS for Home Assistant,no need to apply for app_key

https://github.com/hasscc/hass-edge-tts

本插件基于Edge浏览器的TTS服务,无需在微软Azure申请app_key等
https://bbs.hassbian.com/thread-14164-1-1.html


0
1 年 前
#20200 引用


Then integrate TTS into configuration.yaml.

https://community.home-assistant.io/t/step-by-step-for-text-to-speech/325608/2?u=msly

插件地址:https://github.com/hasscc/hass-edge-tts

本插件基于Edge浏览器的TTS服务,无需在微软Azure申请app_key等。且可指定声音、语气、角色、银两、语速等选项

step 1. copy edge-tts


step 2.config edge_tts in configuration.yaml

#https://github.com/hasscc/hass-edge-tts
tts:
  - platform: edge_tts
    language: zh-CN # Default language or voice (Optional)

step 3.restart ha


0
1 年 前
#20203 引用
1.Please install edge_tts version 6.1.3. do, pip install -U edge_tts

2.I have copied the lastest files from github to /custom_components/edge_tts

I have copied the lastest files from github to /custom_components/edge_tts, and the the command pip install -U edge_tts is still necessary?

Yes, you need the latest edge_tts to use hass-edge-tts. This is to avoid bug reports that are actually resolved in the latest edge-tts.
0
1 年 前
#20445 引用
test  by using the “call service” in developer tools

OK

service: xiaomi_miot.intelligent_speaker
data:
  entity_id: sensor.xiaomi_lx06_026c_conversation
  text: 打开吸顶灯
  execute: true # 执行指令
  silent: true  # 静默执行
0
1 年 前
#20446 引用
baidu DLNA Digital Media Renderer

ok

service: tts.edge_tts_say
data:
  entity_id: media_player.wifipuffer1c
  message: My name is hanna
  language: zh-CN


0
10 个月 前
#28455 引用
此tts插件仅可用于支持dlna的小爱

大部分小爱音箱都没有dlna功能,此tts插件仅可用于支持dlna的小爱。
小爱音箱通过hass-xiaomi-miot接入后可使用xiaomi_miot.intelligent_speaker服务让其TTS。

del xiaoai pro
https://github.com/mslycn/Home-AssistantConfig20221103/commit/7d369e65e1343d24cc757cf2d4e99b1f061358c0

.storage/core.config_entries


{
        "entry_id": "abd8fc735dd65aeda6e9f2524b5d10c0",
        "version": 1,
        "domain": "dlna_dmr",
        "title": "小爱音箱-6318",
        "data": {
          "url": "http://192.168.2.116:9999/58d3caae-dee1-4637-ae8a-f909481590fd.xml",
          "device_id": "uuid:58d3caae-dee1-4637-ae8a-f909481590fd",
          "type": "urn:schemas-upnp-org:device:MediaRenderer:1",
          "mac": "a4:39:b3:
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "ssdp",
        "unique_id": "uuid:58d3caae-dee1-4637-ae8a-f909481590fd",
        "disabled_by": null
      },



.storage/core.device_registry


     {
        "area_id": null,
        "config_entries": [
          "abd8fc735dd65aeda6e9f2524b5d10c0"
        ],
        "configuration_url": null,
        "connections": [
          [
            "upnp",
            "uuid:58d3caae-dee1-4637-ae8a-f909481590fd"
          ],
          [
            "mac",
            "a4:39:b3:"
          ]
        ],
        "disabled_by": null,
        "entry_type": null,
        "hw_version": null,
        "id": "f6d859f4c5901734aba04403cc44cf61",
        "identifiers": [
          [
            "dlna_dmr",
            "uuid:58d3caae-dee1-4637-ae8a-f909481590fd"
          ]
        ],
        "manufacturer": "Mi, Inc.",
        "model": "S12",
        "name_by_user": null,
        "name": "小爱音箱-6318",
        "sw_version": null,
        "via_device_id": null
      },



.storage/core.entity_registry

     {
        "aliases": [],
        "area_id": null,
        "capabilities": {},
        "config_entry_id": "abd8fc735dd65aeda6e9f2524b5d10c0",
        "device_class": null,
        "device_id": null,
        "disabled_by": null,
        "entity_category": null,
        "entity_id": "media_player.xiao_ai_yin_xiang_6318",
        "hidden_by": null,
        "icon": null,
        "id": "ad417acbe517f7fa539bc7cfb4c4f18d",
        "has_entity_name": false,
        "name": null,
        "options": {
          "conversation": {
            "should_expose": false
          }
        },
        "original_device_class": null,
        "original_icon": null,
        "original_name": "小爱音箱-6318",
        "platform": "dlna_dmr",
        "supported_features": 0,
        "translation_key": null,
        "unique_id": "uuid:58d3caae-dee1-4637-ae8a-f909481590fd",
        "unit_of_measurement": null
      },



del and readd pro dlna
https://github.com/mslycn/Home-AssistantConfig20221103/commit/7d369e65e1343d24cc757cf2d4e99b1f061358c0
0
9 个月 前
#28464 引用
20240120  小爱音箱-6318
step 1. enable dlna in mi home app for mi ai speaker pro

detail:
米家app-小爱音箱pro-功能和设置-更多设置-dlna音乐-打开


step 2.configure it via discover

自动发现

or

添加dlna集成
会发现小爱音箱pro

DLNA Digital Media Renderer  discovery  configure for ha docker 2024.1.5

  
modified:   .storage/auth
  modified:   .storage/core.config_entries
  modified:   .storage/core.device_registry
  modified:   .storage/core.entity_registry
  modified:   .storage/core.restore_state

https://github.com/mslycn/Home-AssistantConfig20221103/commit/ccc793833e56a8aac1ca8ee3bda5ca29a116617d




.storage/core.config_entries

{
        "entry_id": "d14902c17bcc9e7e175f81dd261fc8a0",
        "version": 1,
        "minor_version": 1,
        "domain": "dlna_dmr",
        "title": "小爱音箱-6318",
        "data": {
          "url": "http://192.168.2.114:9999/9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a.xml",
          "device_id": "uuid:9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a",
          "type": "urn:schemas-upnp-org:device:MediaRenderer:1",
          "mac": "a4:39"
        },
        "options": {},
        "pref_disable_new_entities": false,
        "pref_disable_polling": false,
        "source": "ssdp",
        "unique_id": "uuid:9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a",
        "disabled_by": null
      }
0
9 个月 前
#28465 引用
.storage/core.device_registry


},
      {
        "area_id": "book_bedroom",
        "config_entries": [
          "d14902c17bcc9e7e175f81dd261fc8a0"
        ],
        "configuration_url": null,
        "connections": [
          [
            "mac",
            "a4:39:"
          ],
          [
            "upnp",
            "uuid:9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a"
          ]
        ],
        "disabled_by": null,
        "entry_type": null,
        "hw_version": null,
        "id": "f6d859f4c5901734aba04403cc44cf61",
        "identifiers": [],
        "manufacturer": "Mi, Inc.",
        "model": "S12",
        "name_by_user": null,
        "name": "小爱音箱-6318",
        "serial_number": null,
        "sw_version": null,
        "via_device_id": null
      }
    ],


.storage/core.entity_registry


    },
      {
        "aliases": [],
        "area_id": null,
        "capabilities": {},
        "config_entry_id": "d14902c17bcc9e7e175f81dd261fc8a0",
        "device_class": null,
        "device_id": "f6d859f4c5901734aba04403cc44cf61",
        "disabled_by": null,
        "entity_category": null,
        "entity_id": "media_player.xiao_ai_yin_xiang_6318",
        "hidden_by": null,
        "icon": null,
        "id": "5a09c29d86c4957454e064c73f58bb47",
        "has_entity_name": false,
        "name": null,
        "options": {
          "conversation": {
            "should_expose": false
          }
        },
        "original_device_class": null,
        "original_icon": null,
        "original_name": "小爱音箱-6318",
        "platform": "dlna_dmr",
        "supported_features": 512575,
        "translation_key": null,
        "unique_id": "uuid:9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a",
        "previous_unique_id": null,
        "unit_of_measurement": null
      }
    ],
0
9 个月 前
#28467 引用
test edge tts for mi ai speaker pro via dlna


http://localhost:4999/boards/topic/15708/developer-tools-template/page/2#28466

run ok
0
6 个月 前
#35237 引用
homepod mini

TTS service call with edge_tts and Apple HomePod as media player

service: tts.edge_tts_say
data:
  entity_id: media_player.qi_ju_shi
  message: My name is hanna
  language: zh-CN


run ok
0