← 返回
未分类

Send2tv

Push text messages, images, or audio to Huawei Smart Screen via DLNA/UPnP. Use when user wants to display something on TV or play audio/TTS on TV. Triggers:...
通过DLNA/UPnP将文字、图片或音频推送到华为智慧屏,适用于在电视上展示内容或播放音频/TTS。触发条件:...
seanshen-lec seanshen-lec 来源
未分类 clawhub v1.2.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 413
下载
💾 0
安装
1
版本
#latest

概述

send2tv

Push text, images, or audio to Huawei Smart Screen V75 (or other DLNA-compatible TVs) via UPnP AVTransport protocol.

Quick Usage

# Text (Chinese supported)
python3 scripts/send2tv.py "快去写作业!"

# Text with custom font size
python3 scripts/send2tv.py "Warning!" --font-size 300

# Image file
python3 scripts/send2tv.py --image /path/to/photo.jpg

# Image with text overlay
python3 scripts/send2tv.py --image /path/to/photo.jpg --text "Hello!"

# Audio file
python3 scripts/send2tv.py --audio /path/to/music.mp3

# TTS - Text to speech (requires edge-tts skill)
python3 scripts/send2tv.py --tts "这是一段要朗读的文字"
python3 scripts/send2tv.py --tts "Hello world" --voice en-US-MichelleNeural
python3 scripts/send2tv.py --tts "快点!" --rate +20%

How It Works

Image/Text mode:

  1. Renders text to 1920x1080 black image (or serves image directly)
  2. Starts local HTTP server on port 8082
  3. Sends DLNA/UPnP SOAP SetAVTransportURI + Play commands to TV
  4. TV downloads image via HTTP and displays it

Audio mode:

  1. Prepares audio file (converts to MP3 if needed)
  2. Starts local HTTP server on port 8082
  3. Sends DLNA/UPnP SOAP commands to TV
  4. TV streams audio via HTTP and plays it

TTS mode:

  1. Uses edge-tts to convert text to speech
  2. Pushes audio to TV via DLNA

TV Configuration

  • IP: 192.168.3.252
  • UPnP Port: 25826
  • HTTP Server Port: 8082
  • UPnP Service: urn:schemas-upnp-org:service:AVTransport:1

Font Notes

  • Chinese text uses WenQuanYi Zen Hei (文泉驿正黑), auto-detected
  • English text uses DejaVu Sans Bold
  • Font auto-scales to fit 1920x1080 (90% width max)

TTS Voices (for --tts mode)

Chinese:

  • zh-CN-XiaoxiaoNeural - female, natural (default)
  • zh-CN-YunyangNeural - male, natural
  • zh-CN-XiaoyiNeural - female, sweet
  • zh-CN-YunjianNeural - male, mature

English:

  • en-US-MichelleNeural - female, natural
  • en-US-AriaNeural - female, natural
  • en-US-GuyNeural - male, natural

See full list: https://speech.microsoft.com/portal/voicegallery

Troubleshooting

TV转圈不显示: 端口8082被防火墙拦。需要在Windows防火墙添加入站规则允许8080-8090端口。

文字太小/太大: 用 --font-size 调整,默认200像素。

图片推送失败: 确认图片路径存在且为有效图片文件。

音频不播放: 确认电视支持MP3格式,检查DLNA服务是否开启。

TTS失败: 确认已安装 edge-tts skill (skillhub install openclaw/skills/edge-tts)

版本历史

共 1 个版本

  • v1.2.0 当前
    2026-05-03 07:03 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 243 📥 30,554
life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 55 📥 84,991
life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 452 📥 227,584