mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 05:16:49 +00:00
Update Gstreamer media_player component configuration (#7244)
This commit is contained in:
parent
bbe54a82db
commit
0b3f98f0bd
@ -23,10 +23,16 @@ media_player:
|
|||||||
- platform: gstreamer
|
- platform: gstreamer
|
||||||
```
|
```
|
||||||
|
|
||||||
Configuration variables:
|
{% configuration %}
|
||||||
|
name:
|
||||||
- **name** (*Optional*): Name the player.
|
description: Name of the media player.
|
||||||
- **pipeline** (*Optional*): `gst` pipeline description.
|
required: false
|
||||||
|
type: string
|
||||||
|
pipeline:
|
||||||
|
description: A `gst` pipeline description.
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
Only the `music` media type is supported.
|
Only the `music` media type is supported.
|
||||||
|
|
||||||
@ -56,7 +62,7 @@ If you're running Home Assistant in a virtual environment, you'll need to symlin
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
ln -s /path/to/your/installation/of/gi /path/to/your/venv/lib/python3.4/site-packages
|
ln -s /path/to/your/installation/of/gi /path/to/your/venv/lib/python3.4/site-packages
|
||||||
```
|
```
|
||||||
|
|
||||||
On a Raspberry Pi, you may need to add the Home Assistant user to the `audio` group:
|
On a Raspberry Pi, you may need to add the Home Assistant user to the `audio` group:
|
||||||
|
|
||||||
@ -65,7 +71,7 @@ sudo usermod -a -G audio <ha_user>
|
|||||||
```
|
```
|
||||||
|
|
||||||
## {% linkable_title Example Usage %}
|
## {% linkable_title Example Usage %}
|
||||||
|
|
||||||
### {% linkable_title Using with TTS %}
|
### {% linkable_title Using with TTS %}
|
||||||
|
|
||||||
To play TTS on your local computer (for example, if you have speakers attached to your Raspberry Pi:
|
To play TTS on your local computer (for example, if you have speakers attached to your Raspberry Pi:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user