From 265b33cf66a6ad1a522d3d75b104b36a8d0d7e6b Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Mon, 16 Mar 2020 16:30:12 +0100 Subject: [PATCH] Exported audio to google and randomized laura voice --- components/google_assistant/audio.yaml | 8 ++++++++ script/audio.yaml | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 components/google_assistant/audio.yaml diff --git a/components/google_assistant/audio.yaml b/components/google_assistant/audio.yaml new file mode 100644 index 00000000..932ce80d --- /dev/null +++ b/components/google_assistant/audio.yaml @@ -0,0 +1,8 @@ +###################################################################### +# Google Assistant: Audio +###################################################################### + +script.laura_voice: + name: Voce Laura + expose: true + room: Generale diff --git a/script/audio.yaml b/script/audio.yaml index b08fdc9d..bf6c1a5e 100644 --- a/script/audio.yaml +++ b/script/audio.yaml @@ -39,8 +39,11 @@ laura_voice: {{ media_player }} media_content_type: 'audio/mp4' media_content_id: >- + {%- macro set_type() -%} + {{ range(1,5,1) | random }} + {%- endmacro -%} {% if type is not defined %} - {% set type = 1 %} + {% set type = set_type() %} {% endif %} https://home.giorgioravera.it/local/audio/laura/{{type}}.mp3 -- 2.47.3