From: Giorgio Ravera Date: Fri, 2 Apr 2021 10:40:28 +0000 (+0200) Subject: Added Laura additional voices X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=79db6d6d265366b6f8c4b330def51cc0dac70612;p=homeassistant.git Added Laura additional voices --- diff --git a/.storage/lovelace.lovelace_multimedia b/.storage/lovelace.lovelace_multimedia index e782ce99..7f6fd873 100644 --- a/.storage/lovelace.lovelace_multimedia +++ b/.storage/lovelace.lovelace_multimedia @@ -1254,7 +1254,12 @@ } }, "type": "entity-button" - }, + } + ], + "type": "horizontal-stack" + }, + { + "cards": [ { "entity": "script.laura_voice", "icon": "mdi:numeric-4", @@ -1267,6 +1272,32 @@ } }, "type": "entity-button" + }, + { + "entity": "script.laura_voice", + "icon": "mdi:numeric-5", + "name": "Mamma Mia", + "tap_action": { + "action": "call-service", + "service": "script.turn_on", + "service_data": { + "entity_id": "script.laura_voice_5" + } + }, + "type": "entity-button" + }, + { + "entity": "script.laura_voice", + "icon": "mdi:numeric-6", + "name": "No", + "tap_action": { + "action": "call-service", + "service": "script.turn_on", + "service_data": { + "entity_id": "script.laura_voice_6" + } + }, + "type": "entity-button" } ], "type": "horizontal-stack" diff --git a/scripts/audio.yaml b/scripts/audio.yaml index f4658f56..20941b39 100644 --- a/scripts/audio.yaml +++ b/scripts/audio.yaml @@ -1,11 +1,13 @@ ###################################################################### # Script: Laura -# Inputs: +# Inputs: # - type: # 1 -> bell'affare # 2 -> belan # 3 -> una schifezza -# 3 -> ma che schifo è? +# 4 -> ma che schifo è? +# 5 -> mamma mia +# 6 -> no # # Operations: # - script.volume_manager @@ -46,7 +48,7 @@ laura_voice: media_content_type: 'audio/mp4' media_content_id: >- {%- macro set_type() -%} - {{ range(1,5,1) | random }} + {{ range(1,7,1) | random }} {%- endmacro -%} {% if type is not defined %} {% set type = set_type() %} @@ -81,9 +83,23 @@ laura_voice_4: data: type: '4' +laura_voice_5: + alias: Voce Laura 5 + sequence: + - service: script.laura_voice + data: + type: '5' + +laura_voice_6: + alias: Voce Laura 6 + sequence: + - service: script.laura_voice + data: + type: '6' + ###################################################################### # Script: Babu Frik -# Inputs: +# Inputs: # - type: # 1 -> I'm babu frik # 2 -> heheeee diff --git a/www/audio/laura/5.mp3 b/www/audio/laura/5.mp3 new file mode 100644 index 00000000..ca0c4ae2 Binary files /dev/null and b/www/audio/laura/5.mp3 differ diff --git a/www/audio/laura/6.mp3 b/www/audio/laura/6.mp3 new file mode 100644 index 00000000..d32e25df Binary files /dev/null and b/www/audio/laura/6.mp3 differ