1 Star 0 Fork 0

liangsai12/home-assistant-recorder-card

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

home-assistant audio-recorder-card (Beta)

audio-recorder-card

You can use this card to record your voice and send a wav file via http to a server (e.g. rhasspy).

The card uses recorder.js by addpipe

Buy Me A Coffee

Installation

Download the repositiory and extract it to your home-assistant config directory. The filestructure should be like this:

<hass-config-folder>
    ├── custom_components                   
        ├──  recorder_service
            ├── __init__.py  
            ├── manifest.json 
    ├── www
        ├── audio-recorder-card
            ├── images
                ├── ...
            ├── audio-recorder-card.js

Add to your configuration.yaml:

recorder_service:

Add the resource to your home-assistant:

url: /local/audio-recorder-card/audio-recorder-card.js?v=0.1
type: module
RESTART HOME-ASSISTANT

How to use the card

Goto your Dashboard and add a new card. At the bottom you will find the audio-recorder-card.

Add the audio-recorder-card

Or you write into the yaml directly type:'custom:audio-recorder-card'.

Card settings:
attribute description example
target (required) the url of the http server you want to send the wav file http://<your-rhasspi-url>:12101/api/speech-to-intent
header (optional) add a header to your recorder card My awesome recorder
color (optional) change the css color attribute of the recorder ligthgreen
size (optional) change the size of the recorder (default=50px) 100px
Simple example:
type: 'custom:audio-recorder-card'
target: 'media_player.mpd'
mp3enable: 0

Then the audio recorder card should appear:

audio-recorder-card

to start the recording click once on the record button:

audio-recorder-card

to stop the recording click once again on the recorder button. Now the recording_service will send the wav file to your defined target http server.

Problems

At the moment the card is only available in browsers. This function will be added in the next version.

Thanks to

recorder.js: addpipe/simple-recorderjs-demo

css-styling: u_conor

空文件

简介

暂无描述 展开 收起
JavaScript 等 2 种语言
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liangsai12/home-assistant-recorder-card.git
git@gitee.com:liangsai12/home-assistant-recorder-card.git
liangsai12
home-assistant-recorder-card
home-assistant-recorder-card
main

搜索帮助