LEVEL UP YOUR ALEXA TTS in Home Assistant

Поділитися
Вставка
  • Опубліковано 14 сер 2024
  • In todays video we are finally carrying on with the Alexa Tutorials. In this one we are having a look at Text To Speech (TTS), Sequences, Sound Effects, Custom Sound effects and a few other little bits. These are some of the Alexa features I utilise in my Home Assistant and they will definitely help you Level Up your Alexa Game!
    ▬ 🎥 VIDEO CHAPTERS: ▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    0:00​​​​ - Intro
    0:30​​​ - Todays Video
    1:11 - TTS on a targeted device (TTS Notification)
    2:29 - Mini Media Player Card (Manual TTS Notifications)
    4:27 - Sequence Commands
    6:34 - Play Sound Effects
    9:12 - Custom Sound Effects .MP3
    11:31 - Alexa Announcements (Speaker Groups)
    12:23 - Summary
    13:07 - Outro
    ------------------------------
    🙏Support my Channel - Become a PATRON🙏
    Consider supporting the channel by becoming a Patron. Any and all funds go into creating new content and bigger projects.
    ► / markwatttech
    Alternatively Support my channel and get access to exclusive perks:
    / @markwatttech
    ▬ Handy Video Links ▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    Mark Watt Tech GitHub
    github.com/Mar...)
    MarkWattTech GitHub (short link)
    shorturl.at/bdeC2
    - Added the above shortlink as its the full URL isnt working for some.
    Setting Up Alexa with Home Assistant
    • ALEXA in HOME ASSISTAN...
    Alexa Sound Library
    • Use Alexa Sound Effect...
    Alexa Custom Mp3s
    • ALEXA CUSTOM MP3's (Us...
    My Full Alexa Playlist
    • ALEXA ACTIONABLE NOTIF...
    Mini Media Player Card
    github.com/kal...
    Custom Alexa
    github.com/cus...
    Alexa Custom Component WiKi
    github.com/cus...
    Aexa Developer (Sound effects Library)
    developer.amaz...
    Alexa Mp3 Information (MP3 Codec Info)
    developer.amaz...
    Jovo Converter
    v3.jovo.tech/a...
    ____________________________________________________________
    📣FOLLOW ME ON SOCIAL MEDIA📣
    Follow me on all of the places for exclusive insights and updates:
    👤 Facebook: / markwatttech
    👤 FB Group: / 2963936147172102
    📸 Instagram: / markwatttech
    🐦 Twitter: / markwatttech
    ► MarkWattTech Sub Reddit :
    / markwatttech
    ▬ Buy Me a Coffee ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    ☕ Found my content helpful?
    Any and all funds will go towards helping improve future content.
    Plus there are an extra few perks to becoming a member.
    ☕ If your interested check it out :
    ► Buy Me a Coffee:
    www.buymeacoff...
    ------------------------------
    🎵 Track Info:
    Title: All That
    Royalty free from : www.bensound.c...
    My Music Used : www.epidemicso...
    (Use my link for a free Month)
    ------------------------------
    #markwatttech​​​​ #homeassistant​​​​ #update
  • Наука та технологія

КОМЕНТАРІ • 108

  • @stevecalise9299
    @stevecalise9299 2 роки тому +4

    Looking forward to part 3 and tying this all together in a script and automation. A lot of videos show how to get this far but skip over putting it to use which leaves some inexperienced users in the dark. Your videos are very thorough and easy to follow!

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      Thanks Steve. I’ll try and have a shorter gap than 4 months for part 3 😂👍🏻

    • @BowWowPewPewCQ
      @BowWowPewPewCQ Рік тому

      +1 I can get service call working but not in an automation.

  • @WoottonRivers
    @WoottonRivers 2 роки тому +8

    Great video. In addition to the things you covered, there is also an easy way to get Alexa to play music or a radio stations:
    Use Call Service with:
    service: media_player.play_media
    data:
    media_content_id: play radio one
    media_content_type: custom
    target:
    entity_id: media_player.bedroom_2
    Just put some instruction after media_content_id: . This can be anything you might say to Alexa. This isn't limited to music or radio stations: you can do anything!

    • @KrispKiwi
      @KrispKiwi 2 роки тому +1

      Hey Geoff, do you know if its possible to play spotify? I've tried to set it up but no luck.

    • @mohammadal-thuwad4075
      @mohammadal-thuwad4075 2 роки тому +1

      Hi Geoff, do you have video for that? It will be easy for us to follow. Thanks

    • @herbrodenhaber01
      @herbrodenhaber01 2 роки тому +1

      yes i use that also try sing happy birthday ;) or tell me a joke

    • @WoottonRivers
      @WoottonRivers 2 роки тому

      @@KrispKiwi I don't have Spotify so I can't be sure. How do you ask Alexa to play something on Spotify? Is it: Alexa, play xyz on Spotify? If so then "media_content_id: play xyz on Spotify" should work.

    • @WoottonRivers
      @WoottonRivers 2 роки тому

      @@mohammadal-thuwad4075 sorry, I don't make videos. Maybe Mark could add this into one of his???

  • @BimmerWon
    @BimmerWon Рік тому +1

    Can I have Alexa speak what I have copied to my clipboard on my iPhone at a certain time of day? If so how would I do this? I’m trying to set up a custom morning alarm message on my iPhone so it’s different each day with Apple shortcuts and Alexa. Ideally I want the TTS to be triggered from Apple Shortcuts for when I shut off my alarm.

  • @fotalimark
    @fotalimark Рік тому +4

    So, this was an excellent two part series. I am now using my Alexa to call out and start a google routine. I just place the nest on top of alexa. I cannot find a way to fire a google routine directly from home assistant. This work around works fine. (assistant relay is not longer supported)

  • @Ellington_Industrial_Arts
    @Ellington_Industrial_Arts Рік тому +3

    You put out some super detailed and helpful tutorials Mark!

  • @vaibhavkhartad
    @vaibhavkhartad Місяць тому

    Thankyou for that extremely useful tutorial. can I integrate echo show camera into home assistant?

  • @markjhorsley
    @markjhorsley Рік тому +1

    Was looking to add a sound before my bin day notification - legend

  • @nunomoreira461
    @nunomoreira461 Рік тому +1

    Nice video, and after a few watched your's make me understant how it work.
    but and about you create a video showing alexa playing a siren triged by sensor when the alarm is armed. and only can turn off after disarm the alarm ? :) this would be amaizing :)
    thanks again

  • @Juzz51
    @Juzz51 Рік тому +1

    Is there any known bug at the moment with TTS and Alexa?
    I've followed your videos and tried a bunch of different methods online, however nothing works.
    Within home assistant cloud I also try out the sample tts feature, it'll work fine playing through the browsers but it will not play anything on my Alexa devices :(

  • @theattorney6072
    @theattorney6072 10 місяців тому

    Hello, having an issue today with alexa media player integration, getting this error : configflow could not be loaded: 500 internal server error. 😢.

  • @_Miner
    @_Miner 2 роки тому +2

    For the TTS I notice that it always uses the default alexa female voice instead of the voice thats setup on the alexa. Is there a way to change this for TTS?

    • @herbrodenhaber01
      @herbrodenhaber01 2 роки тому +1

      Yep you sure can use saml in your code to change the voice of Alexa

  • @charmanr
    @charmanr Рік тому

    Is there anyway of sending an announcement at a specific volume level? Some Alexa apps play very loudly so I adjust the volume on my device when using that app. Then when a notification triggers I don't hear it. :(

  • @faithfe1290
    @faithfe1290 9 місяців тому +1

    After updating the home assistant, the space to write text to convert into voice on the mini media player card no longer appears, do you know how to fix it?

    • @MarkWattTech
      @MarkWattTech  9 місяців тому

      Also just noticed this! The service call still works but not sure about the media card. I will investigate

    • @faithfe1290
      @faithfe1290 9 місяців тому

      @@MarkWattTech yes , service call works, but mini media player card , the line for write the message don’t exist anymore

  • @markshelhart1373
    @markshelhart1373 9 місяців тому

    Is it possible to call a "sound" to be played on the everywhere group?

  • @giglobox
    @giglobox Рік тому

    Hello it seems that i get an error while trying to use an mp3 file on my echo. the error message is that they cannot find the "simon says EU skill" have you heard something about that ? is there any that have information about this issue ? nevertheless great video keep it up ! truly helped me there !

  • @hieslmair
    @hieslmair Рік тому

    Is there actually a Mark for everything else in this world too? Many thanks for your detailed and exemplary tutorials and tips! This is a real pleasure!

  • @MartyW74
    @MartyW74 Рік тому

    Hi Mark, with the TTS i left a comment on the part 1 video about having it go to all the Alexa's in addition to this, i would like preset buttons that will send out pre set sentance to all the Alexas, is this possible?

  • @spug68
    @spug68 2 роки тому +1

    Hey Mark, excellent video... you may have covered this, but does Alexa have any way of changing the style of voices with HA? I know on OEM Amazon Alexa, you can now change the voice between male and female voices, can that be done with the Service Call?

  • @PaulRichards1
    @PaulRichards1 2 роки тому +1

    Next level stuff. Very cool!

  • @mrxmry3264
    @mrxmry3264 2 роки тому +1

    how do i use text to speech using my pi's audio output? i don't have any echos and i don''t want any because they require the internet.

    • @MarkWattTech
      @MarkWattTech  2 роки тому

      If you head into your addons you can add the VLC media player. You can then target the Pi as a Media player and output the sound :)

  • @herbrodenhaber01
    @herbrodenhaber01 2 роки тому +1

    is it possible to change the type from tts to announce if the target is a group
    maybe something like :
    if {{ who }} equals media_player.everywhere type = announce else tts ??
    any help would be greatly appreated
    alexa_tts_example:
    alias: Alexa TTS Test 1
    sequence:
    - service: notify.alexa_media_kitchen_dot
    data:
    data:
    type: tts
    method: speak
    target:
    - media_player.kitchen_dot
    message: "This is an example of text-to-speech"

  • @Gothmok
    @Gothmok Рік тому +2

    Still waiting for part 3 😓

  • @michelebruni5454
    @michelebruni5454 Рік тому

    you can also use type: routine to start a routine. Did you know if is possible to send a command to alexa like a question, in other words ask alexa something (i.e. "what the time is it?") with a service call?

    • @MarkWattTech
      @MarkWattTech  Рік тому

      You can yes :)
      Check the Alexa documentation and there are examples for this.

  • @SnowyPe
    @SnowyPe Рік тому

    How do you add volume up control to announce the sequence and then once the sequence has completed let the volume of alexa resume to the original volume before the sequence ran? Great channel and learning heaps from your vids.

  • @thomaskessler4204
    @thomaskessler4204 Рік тому

    Does "type: announce" only work on true Echo devices? I'm trying it on a Sonos One which has Alexa built in and TTS works, but I can't get an announcement with a sound at the beginning.

    • @MarkWattTech
      @MarkWattTech  Рік тому

      It will also work on Sonos devices that are setup as alexa devices. In your alexa list you should have a device imported as your sonos alexa. This will be the device you target and not the standard sonos one (if using the sonos integration).
      Using the Sonos with its standard TTS works much quicker than the alexa one btw and has 0 setup if your sonos is integrated via the sonos integration.

    • @thomaskessler4204
      @thomaskessler4204 Рік тому

      @@MarkWattTech Mark, thanks. Yes I have the Sonos integration as well and I carefully named the Alexa portion so I could tell them apart. TTS works but Announce doesn't. However, I'm thinking an alternative is to just play a sound effect at the beginning of the TTS message to achieve the same effect as "announce". Not sure why I can't get announce working :/

  • @MrZeeshany
    @MrZeeshany 2 роки тому

    thanks for the vdo Mark, one quick question, I see you mentioned making HA group of echos will allow playing the mp3 file. however, I've tried making the group (both in groups.yml and through helpers) it does not play the mp3 which is accessible fine on a browser.

  • @theattorney6072
    @theattorney6072 Рік тому

    Amazing thx so much

  • @hannesnel5414
    @hannesnel5414 2 роки тому

    great video as always! my sound alert on alexa and TTS via the mini media player card works but calling the notify service fails. any idea why?

  • @image969
    @image969 Рік тому

    This video is great. Is there a way to use one media card to control all of my echoes? Like select which echo/echos I want for text to speech in a drop down or something like that?

  • @FaLLeNaNg3L82
    @FaLLeNaNg3L82 Рік тому

    is it possible to loop a sound? since they are only 3-4sec

  • @TheTheotube100
    @TheTheotube100 Рік тому

    Hey Mark, thank you for all of your videos! They have been helpful. Do you know of a way to resume music after Alexa TTS?

    • @himothaniel
      @himothaniel Рік тому

      When he said use "play_media" instead of "media_play", I believe the other option starts the music

  • @vollekannehoschi
    @vollekannehoschi Рік тому

    Can we get part three please 🙏

  • @Aurleis
    @Aurleis Рік тому

    You are officially my hero!

  • @Tafmie
    @Tafmie 2 роки тому +1

    Hello Mark
    I have been using tts with Alexa Media Player without any problem for more than a year. But a few weeks ago Alexa Media Player stopped working although I did not change anything. All the Alexa Media Player connected identities now have the status 'not connected'.
    This is very annoying as I have several automations that use tts notifications that do not work anymore.
    Do you have an idea what could be the reason this and how to fix it?
    I always immediately do any updates that are indicated.

    • @Tafmie
      @Tafmie 2 роки тому +1

      Problem solved. There was an error in an incorrectly entered Amazon region domain in the Alexa Media Player configuration. I still don't understand why that error suddenly popped up even though I hadn't made any changes to the configuration...

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      Thank you for sharing. Glad you managed to resolve it. There was an update a little while ago, possibly could have been caused by that.

    • @Tafmie
      @Tafmie 2 роки тому +1

      Thank you Mark. This could be the cause. In the meantime I'm glad that all my tts applications are working properly again

    • @gibboireland
      @gibboireland Рік тому

      @@Tafmie Thank you - this was my issue too!

  • @mistert2962
    @mistert2962 2 роки тому

    10:45 Is there a way to play and download the TTS sound file of what Alexa spoke after you type some text in? Example: Alexa says "Today is a wonderful day" --> Generate and download a audio file of Alexa speaking that sentence.

    • @MarkWattTech
      @MarkWattTech  2 роки тому

      As in to download them to reuse them again as mp3s etc? :)

    • @mistert2962
      @mistert2962 2 роки тому

      @@MarkWattTech Exactly

  • @frankraym
    @frankraym 2 роки тому

    by the way, I never saw this covered but how many Alexa smart speaker should I have ? is it overkill to have one in every room? because it's nice to be able to trigger automations in every room. since If there was a room I was in and let's say there was no Alexa speaker then I wouldn't be able to trigger automations ? what you think ?

    • @MarkWattTech
      @MarkWattTech  2 роки тому

      Personally I have them in every room 😂. Its great for music, notifications and of course voice control

  • @brightonvr1806
    @brightonvr1806 Рік тому

    I literally heard a monorail announcement chime last night and thought - if only I could somehow capture that and have it as my announcement chime on Home Assistant and less than 24 hours I've got just that - thanks to you Mark! You're an absolute legend. But how can you do more than one sound effect. Do you just keep repeating the process and adding them to the services YAML? I'm rather new to this. Thanks!

    • @MarkWattTech
      @MarkWattTech  Рік тому +1

      Heya :)
      You can either write a loop or as an alternative use a custom mp3 of your sound (also did a video on that). I prefer the mp3s as you can easily start and stop the track with automations.

  • @huemanalo1646
    @huemanalo1646 2 роки тому

    Hi Mark, first thank you for this nice video! Is there a way to do this on more than 1 device? TTS to two or more Alexa speakers at the same time?

    • @MarkWattTech
      @MarkWattTech  2 роки тому

      You can use the announce feature which will broadcast on all devices. You can also make use of the new run in parallel action to have multiple speakers go off (parallel may not necessarily be in sync though).

  • @AnujMathur1376
    @AnujMathur1376 2 роки тому

    Alexa media player keeps asking for 2 factor authentication after every few minutes, otherwise my automation does not work. Would you have any idea about this?

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      You need to set it up with an app password so it won’t do this. See my part 1 video.

  • @joecanning4004
    @joecanning4004 2 роки тому

    Very informative!! Thanks!!

  • @_od_7825
    @_od_7825 2 роки тому

    Can I just check, are you now able to send TTS to Sonos speakers using the notify Alexa? I've not been able to do this, only to actual Amazon devices. Thanks.

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      You can use tts on sonos directly (without alexa). If you setup your Sonos to use Alexa as the voice assistant you will get a sonos media player in the alexa integration that you can target. That the entity I target throughout the video and it works great.
      The only issue is Sonos devices cannot be grouped with Echos (in Alexa app only). You can create a HA media group though.
      Hope that helps?

    • @_od_7825
      @_od_7825 2 роки тому

      @@MarkWattTech interesting. Mine all show up in the list of devices but I cannot get them to play any TTS from Alexa. When I had the Nabu Casa subscription going I could use their cloud TTS service, but still not Alexa. I must be getting something wrong somewhere.

  • @biggjoe741
    @biggjoe741 2 роки тому

    is it possible to randomize various custom/local MP3 using this method? I was able to randomize text or messages but to play random MP3 from local is throwing me for a loop.

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      You can indeed :)
      I do show some examples of this in my previous custom mp3 tutorial

    • @biggjoe741
      @biggjoe741 2 роки тому

      @@MarkWattTech Thank you. I seen that video too and my mind did not register at the time. Thank you for all the knowledge you are sharing.

  • @robynjamiewatt3695
    @robynjamiewatt3695 2 роки тому +1

    Cool 🤔

  • @christiandeboor6130
    @christiandeboor6130 2 роки тому

    Danke!

  • @khunkham5315
    @khunkham5315 Рік тому

    Can i use Alexa in Myanmar

  • @DINSTAAR-FPV
    @DINSTAAR-FPV Рік тому

    Thanks!

  • @PortlandBanshee
    @PortlandBanshee 2 роки тому +1

    I thought part two was going to have how to have home assistant trigger Alexa routines. I didn't see this?

    • @MarkWattTech
      @MarkWattTech  2 роки тому +1

      As I mentioned in the video. That will he part 3

    • @PortlandBanshee
      @PortlandBanshee Рік тому +1

      Hello when is part three due out?

  • @ashoktvm
    @ashoktvm 2 роки тому

    Custom mp3s are no more working
    Alexa says I have trouble accessing ur Simon says EU skill right now, and yes I have the bit rate reduced using audacity and the link is working perfectly when opened through a browser
    Used the file from Jovo, but still the same error message

    • @MarkWattTech
      @MarkWattTech  2 роки тому

      All of mine are working using this exact method

    • @berkansezer
      @berkansezer 2 роки тому +1

      I am having the exact error as well.

    • @ashoktvm
      @ashoktvm 2 роки тому

      @@MarkWattTech It may be working for nabu casa ID. but its defiinitely not working for duckdns url

    • @tomperry3788
      @tomperry3788 2 роки тому

      Same issues here. I've tried several different sources and am getting the same 'Simon says' error.

    • @ashoktvm
      @ashoktvm 2 роки тому

      @@tomperry3788 Found a method. Using external link created by Cloudflare tunnel. Check in youtube u will find videos to do that

  • @hippopotamus86
    @hippopotamus86 Рік тому

    You don't need to do "type: tts" anymore. Works fine without this for both text to speech and sounds.

  • @robonions
    @robonions 2 роки тому

    Is there a similar wiki page for Google TTS ?

  • @AlexBoltonKing
    @AlexBoltonKing 2 роки тому

    Great video. Could do with adding a bit about getting Alexa to ask a question and then handle a response :D

    • @MarkWattTech
      @MarkWattTech  2 роки тому +3

      Actionable notifications is it’s whole own video 🤪. It’s a bit of a setup. I have previously covered it but will refresh it at some point 👍🏻
      Thanks as always Alex! 😁

    • @AlexBoltonKing
      @AlexBoltonKing 2 роки тому +1

      @@MarkWattTech I had watched the previous video and bookmarked it to come back to but then forgotten about it 🤦🏼‍♂️. You expect me to remember stuff from a year ago?! How about instead of actionable notifications, being able to setup a voice command on Alexa and it then run an automation for you in HA.

    • @WoottonRivers
      @WoottonRivers 2 роки тому +2

      @@AlexBoltonKing if you create a script in HA, say, "My Script" and expose it to Alexa then you can say: Alexa, run My Script. If you don't like saying "run" then you can make an Alexa routine and use some other command.

  • @chrisedwards5447
    @chrisedwards5447 8 місяців тому

    In 2 years you've went over everything except how to run alexa routines. What a waste of time

  • @Tarikmoe
    @Tarikmoe 2 роки тому

    @markwatttech . Cool stuff. I tried messing with NTTS one day but I never got it working.
    Have you ever tinkered with it?

    • @MarkWattTech
      @MarkWattTech  2 роки тому +2

      I have had a play with NTTS and things like Polly. There's a bit more setup involved and a subscription. However I've found I really like the HA Cloud TTS voice and it says things perfectly so I would personally just use that if I didn't have echoes everywhere.

  • @b3y0urs3lf
    @b3y0urs3lf 2 роки тому

    your GitHub link is incomplete!

    • @b3y0urs3lf
      @b3y0urs3lf 2 роки тому

      And a question, if the "DEV SOUND" i chose has 4 seconds length how can i make it sound longer?

    • @MarkWattTech
      @MarkWattTech  2 роки тому

      Is it? 😬 - ill fix it now
      Hmm it looks like its an issue with the Url being long. Only not working on some devices. Added a short link. Failing that just checkout MarkWattTech on GitHub :)