2024年11月21日星期四 下午6:34:45

dlna音箱 连接 ha,再配合 麦克风,就是开源智能音响

1 年 前
#20135 引用
此库是神啊,只有用几行代码就能把 esp32 变成蓝牙,可以用手机连接 ,播放音乐。

https://github.com/0neday/esp32- ... 051098be7c07829.mp4

再 配合 dlna 连接 ha,再配合 麦克风,就是妥妥的开源智能音响啊!想到这里心中澎湃万千!

https://bbs.hassbian.com/thread-16077-1-1.html
0
7 个月 前
#31926 引用
假设你的那只廉价买来的EDIFIER MA3音箱已经联网,而且你知道你的音箱内网ip。
那么,除了让home assistant主动发现你的音箱,其实你还可以通过这个方式主动添加:
1、在UI界面选择添加【DLNA数字媒体渲染器】:
第1步


2、不要选任何设备(如果HA已经发现有设备的话),直接点击提交:
第2步


0
7 个月 前
#31927 引用
DLNA音箱手动接入HA的方法

3、输入这个地址,提交即可:
【记得根据你的实际IP地址修改】
http://192.168.2.115:49154/description.xml


xiao ai player pro
http://192.168.2.115:9999/9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a.xml



<?xml version="1.0" encoding="utf-8"?>
<root
    xmlns="urn:schemas-upnp-org:device-1-0">
    <specVersion>
        <major>1</major>
        <minor>1</minor>
    </specVersion>
    <device>
        <deviceType>urn:schemas-upnp-org:device:MediaRenderer:1</deviceType>
        <friendlyName>灏忕埍闊崇-6318</friendlyName>
        <manufacturer>Mi, Inc.</manufacturer>
        <modelDescription>The Mi AI SoundBox</modelDescription>
        <modelName>S12</modelName>
        <modelNumber>S12</modelNumber>
        <qq:X_QPlay_SoftwareCapability
            xmlns:qq="http://www.tencent.com">QPlay:2
        </qq:X_QPlay_SoftwareCapability>
        <dlna:X_DLNADOC
            xmlns:dlna="urn:schemas-dlna-org:device-1-0">DMR-1.50
        </dlna:X_DLNADOC>
        <dlna:X_DLNACAP
            xmlns:dlna="urn:schemas-dlna-org:device-1-0">,
        </dlna:X_DLNACAP>
        <UDN>uuid:9a6cf01a-8fe4-4e1e-9d2d-afa1721f6e2a</UDN>
        <serviceList>
            <service>
                <serviceType>urn:schemas-upnp-org:service:AVTransport:1</serviceType>
                <serviceId>urn:upnp-org:serviceId:AVTransport</serviceId>
                <SCPDURL>AVTransport1.xml</SCPDURL>
                <controlURL>/AVTransport/control</controlURL>
                <eventSubURL>/AVTransport/event</eventSubURL>
            </service>
            <service>
                <serviceType>urn:schemas-upnp-org:service:ConnectionManager:1</serviceType>
                <serviceId>urn:upnp-org:serviceId:ConnectionManager</serviceId>
                <SCPDURL>ConnectionManager1.xml</SCPDURL>
                <controlURL>/ConnectionManager/control</controlURL>
                <eventSubURL>/ConnectionManager/event</eventSubURL>
            </service>
            <service>
                <serviceType>urn:schemas-upnp-org:service:RenderingControl:1</serviceType>
                <serviceId>urn:upnp-org:serviceId:RenderingControl</serviceId>
                <SCPDURL>RenderingControl1.xml</SCPDURL>
                <controlURL>/RenderingControl/control</controlURL>
                <eventSubURL>/RenderingControl/event</eventSubURL>
            </service>
            <service>
                <serviceType>urn:xiaomi-com:service:Queue:1</serviceType>
                <serviceId>urn:xiaomi-com:serviceId:Queue</serviceId>
                <SCPDURL>Queue1.xml</SCPDURL>
                <controlURL>Queue1/control</controlURL>
                <eventSubURL>Queue1/event</eventSubURL>
            </service>
            <service>
                <serviceType>urn:xiaomi-com:service:Playlist:1</serviceType>
                <serviceId>urn:xiaomi-com:serviceId:Playlist</serviceId>
                <SCPDURL>Playlist1.xml</SCPDURL>
                <controlURL>Playlist1/control</controlURL>
                <eventSubURL>Playlist1/event</eventSubURL>
            </service>
            <service>
                <serviceType>urn:schemas-tencent-com:service:QPlay:1</serviceType>
                <serviceId>urn:tencent-com:serviceId:QPlay</serviceId>
                <SCPDURL>QPlay1.xml</SCPDURL>
                <controlURL>QPlay1/control</controlURL>
                <eventSubURL>QPlay1/event</eventSubURL>
            </service>
            <service>
                <serviceType>urn:xiaomi-com:service:Favorites:1</serviceType>
                <serviceId>urn:xiaomi-com:serviceId:Favorites</serviceId>
                <SCPDURL>Favorites1.xml</SCPDURL>
                <controlURL>Favorites1/control</controlURL>
                <eventSubURL>Favorites1/event</eventSubURL>
            </service>
        </serviceList>
    </device>
</root>


0
7 个月 前
#31928 引用

Manual DLNA DMR device connection
URL to a device description XML file

URL:
0