From: Giorgio Ravera Date: Fri, 16 Apr 2021 14:42:29 +0000 (+0200) Subject: Added another voice of Laura X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=9ee9ca83136270d6677bcc43ba6d9ef8abf39a58;p=homeassistant.git Added another voice of Laura --- diff --git a/.storage/lovelace.lovelace_multimedia b/.storage/lovelace.lovelace_multimedia index 7f6fd873..2cd6875c 100644 --- a/.storage/lovelace.lovelace_multimedia +++ b/.storage/lovelace.lovelace_multimedia @@ -1219,7 +1219,7 @@ { "entity": "script.laura_voice", "icon": "mdi:numeric-1", - "name": "Affare", + "name": "Bell'Affare", "tap_action": { "action": "call-service", "service": "script.turn_on", @@ -1302,6 +1302,40 @@ ], "type": "horizontal-stack" }, + { + "cards": [ + { + "entity": "script.laura_voice", + "icon": "mdi:numeric-7", + "name": "Stitch", + "tap_action": { + "action": "call-service", + "service": "script.turn_on", + "service_data": { + "entity_id": "script.laura_voice_7" + } + }, + "type": "entity-button" + }, + { + "entity": "script.laura_voice", + "icon": "mdi:numeric-8", + "name": null, + "show_name": false, + "show_icon": false, + "type": "entity-button" + }, + { + "entity": "script.laura_voice", + "icon": "mdi:numeric-9", + "name": null, + "show_name": false, + "show_icon": false, + "type": "entity-button" + } + ], + "type": "horizontal-stack" + }, { "cards": [ { diff --git a/scripts/audio.yaml b/scripts/audio.yaml index 20941b39..8bcd5f96 100644 --- a/scripts/audio.yaml +++ b/scripts/audio.yaml @@ -8,6 +8,7 @@ # 4 -> ma che schifo è? # 5 -> mamma mia # 6 -> no +# 7 -> io mi chiamo Stitch # # Operations: # - script.volume_manager @@ -48,7 +49,7 @@ laura_voice: media_content_type: 'audio/mp4' media_content_id: >- {%- macro set_type() -%} - {{ range(1,7,1) | random }} + {{ range(1,8,1) | random }} {%- endmacro -%} {% if type is not defined %} {% set type = set_type() %} @@ -97,6 +98,13 @@ laura_voice_6: data: type: '6' +laura_voice_7: + alias: Voce Laura 7 + sequence: + - service: script.laura_voice + data: + type: '7' + ###################################################################### # Script: Babu Frik # Inputs: diff --git a/www/audio/laura/7.mp3 b/www/audio/laura/7.mp3 new file mode 100644 index 00000000..5e3cf150 Binary files /dev/null and b/www/audio/laura/7.mp3 differ