Git Product home page Git Product logo

espplayer's Introduction

EspPlayer

2023版本请使用homeassistant 2023以后的版本

1、为 rf-bridge 盒子提供支持的TTS播放器

https://github.com/ryanh7/esphome-custom-components

通过上面esphome组件 esp8266 通过http流播放wav 等方法生成的esphome.rf_bridge_play_audio类似服务可播放音频,可用此集成。

因为盒子只能播放wav格式, 用了ffmpeg转码,需要在config/www目录下创建 wav目录,即:/config/www/wav/ 存在。

新版esphome会直接生成一下media_player实体,功能都齐全,但一般的TTS是MP3格式,无法播放,需要转成wav格式。

此集成生成一个新的media_player,状态传感器栏设置成原media_player的entity_id,即可通过新的实体在盒子中TTS.

2、为ESP8266-Play-MP3-TTS提供支持的TTS播放器

https://www.instructables.com/MQTT-Audio-Notifier-for-ESP8266-Play-MP3-TTS-RTTL/

通过mqtt播放音频,可用此集成。

先通过mqtt集成生成播放状态实体,用于播放器。

ha 2022.6.0之后版本在config/configuration.yaml中加入:

mqtt:
sensor:
- name: esp8266mqttplayerstate
unique_id: esp8266mqttplayerstate
expire_after: 600
state_topic: "/mrdiynotifier/status"

老版本加入:

sensor: \

  • platform: mqtt
    name: esp8266mqttplayerstate
    unique_id: esp8266mqttplayerstate
    expire_after: 600
    state_topic: "/mrdiynotifier/status" \

重启ha后状态显示正常再添加此集成。

###示例1:

1

2

3

4

###示例2:

5

6

7

9

10 设置音量控制 及 支持外网地址播放tts文件(利用公网ip或frp等反向代理使其它网络中的esp8266设备发声)

espplayer's People

Contributors

dscao avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.