Wifi Audio Notifier using ESP8266: Play MP3, TTS & RTTL

Sdílet
Vložit
  • čas přidán 23. 07. 2024
  • Make ESP8266 play MP3 files, TTS and RTTL tones over MQTT. Buy the Wemos D1 Mini store.mrdiy.ca/product/wemos-...
    Install the code directly using a web browser
    ====================================
    mrdiyca.gitlab.io/mrdiy-esp-o...
    Get the Parts
    ==================================
    ╚═ Wemos d1 mini (4M version)
    ■ geni.us/wemos1min (Amazon)
    ■ s.click.aliexpress.com/e/_Af36zD (AliExpress)
    ╚═ Amplifier shown in video
    ■ geni.us/Tpnn (Amazon)
    ■ s.click.aliexpress.com/e/_A5OaIg (AliExpress)
    Source Code
    ==================================
    gitlab.com/MrDIYca/mrdiy-audi...
    username: admin
    password: same as the wifi AP you setup
    DISCLAIMER: Some of the links found here may be affiliate links, meaning I will make commission on sales you make through my link. This is at no extra cost to you to use my links/codes, it's just one more way to support me and my work. Much of the information contained is based on personal knowledge and experience. It is the responsibility of the viewer to independently verify all information.
  • Věda a technologie

Komentáře • 250

  • @AndrewDanne
    @AndrewDanne Před 4 lety +5

    That is awesome.! Thank you. I'm playing with ESP8266's with Home Assistant and this looks like a great project to use for all sorts of local notifications.

  • @bensekh
    @bensekh Před 3 lety +7

    Thank you MrDIY. I've made it. I even wired it up with PAM8403 and Loudspeaker. Very cool project!

  • @JB-rh1ir
    @JB-rh1ir Před 3 lety +2

    nevermind ! got it working with the TTS ,so now it's basically a wifi speaker with dynamic content! Awesome work MrDIY !

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Great to hear! I'm guessing you pointed the URL to the TTS folder?

  • @MadLabZ
    @MadLabZ Před 2 lety +2

    Just found your channel, I've been looking for this specific project now on and off for about three years, thankyou!!!

  • @arkadianeu
    @arkadianeu Před 3 lety +2

    this is amazing! great work! I will definitely use it. Thanks!!!!

  • @llg.208
    @llg.208 Před 4 lety +3

    Very cool project, will give it a try :)
    Thanks for sharing!

  • @alv1nxx
    @alv1nxx Před rokem +1

    This is genius... pure gold, thanks for sharing !

  • @JJustYarik
    @JJustYarik Před rokem +1

    Thank you so much!!! I repeat step by step and it is working

  • @ilyassiddiqi7739
    @ilyassiddiqi7739 Před 4 lety

    Thanks for sharing. Earlier I had one made up with mini MP3 player but for sure this option is better. I will try it soon.

    • @MrDIYca
      @MrDIYca  Před 4 lety +1

      You are welcome. That is exactly what I was trying to avoid. Just keep in mind that this is not a replacement to a full mp3 player - it is more of a notifier than an entertainment player.

  • @RoSi4You
    @RoSi4You Před 4 lety +2

    I will 100% build one. Thank you!

  • @user-on3ck5ok8z
    @user-on3ck5ok8z Před 11 měsíci +1

    Excellent. Now I will do it and then I will stop calling my childrens many time to eat or to wake-up. I will just use mqqt to send a Wifi audio notification.👌

  • @DrZzs
    @DrZzs Před 3 lety +17

    Oh you KNOW I'm building one! Where's my D1mini???

  • @wattage2007
    @wattage2007 Před rokem +2

    This is ingenious. I was thinking I'd have to order an I2S DAC and learn how to write an arduino sketch for MQTT integration to get something like this on the go. Turns out I've got a WemosD1 Mini and a couple of amplifiers lying around and I'll be doing this tomorrow! Thanks!

  • @easthulk99
    @easthulk99 Před 3 lety +1

    This will be my next project... tq for sharing

  • @santorcuato
    @santorcuato Před 4 lety +1

    It looks really nice. Will try with an ESP32 and let you know. Thanks for sharing.

    • @MrDIYca
      @MrDIYca  Před 4 lety +2

      By the way, you will probably need to download the source code and compile it yourself. The bin file was made for ESP8266 devices. Let me know how that goes.

  • @102diy
    @102diy Před rokem +1

    Very good job! 👍

  • @yuchoy1
    @yuchoy1 Před rokem +1

    The say function reminds me so much of SAM on my old Commodore 64!

  • @piratesofbytes
    @piratesofbytes Před 3 lety

    Wow cool project 👌🏼

  • @DilnuwanAmaraweera
    @DilnuwanAmaraweera Před rokem

    That's awesome and Thank You

  • @sagaardusagaardu4048
    @sagaardusagaardu4048 Před 3 lety

    Hello,
    Interesting project, what is the connection diagram of the amplifier with the wemos D1 and the speaker?

  • @user-dk4bf1kw2v
    @user-dk4bf1kw2v Před 2 lety

    Hey! Great stuff! I use Home Assistant and RHVoice voice synthesizer, can you tell me how to output mp3 generated RHVoice from HA to your DIY Wifi Audio Notifier?

  • @patjohn775
    @patjohn775 Před 3 lety +1

    I am looking to do something similar but way simpler. I need my esp32 to play audio files when some pins are activated, but the audio won’t change so it can be stored locally and played locally. Neat project though

  • @splash128100
    @splash128100 Před 4 lety +1

    ❤️ Thank you

  • @UndregoGrey
    @UndregoGrey Před 8 měsíci +1

    Hi thx for the project. Issue i picked up with the supplied bin files is that you can not have multiple devices on the same network. the moment a 2nd device connect then none of them work. I am trying to compile your source but a lot of details are not included.

  • @madebyjunk1501
    @madebyjunk1501 Před 4 lety +1

    Wow amazing💓👍💪 Thanks for sharing

  • @SuperVitcom
    @SuperVitcom Před rokem +1

    you can also connect the speakers to the device running home Assistants and configure it as media_player mpd

  • @danneh1982
    @danneh1982 Před 4 lety +2

    This is just what i've been looking for! I've ordered the bits now and will be attempting as soon as they arrive. I have one question how are you sharing the mp3 files from your HA server? Sorry if a silly question i'm still very new to it!

    • @MrDIYca
      @MrDIYca  Před 4 lety +3

      You can use the "Hosting Files" option in HA. Check www.home-assistant.io/integrations/http/#hosting-files

    • @danneh1982
      @danneh1982 Před 4 lety +1

      @@MrDIYca Thanks thats saved me a lot of head scratching :D

    • @danneh1982
      @danneh1982 Před 4 lety

      Back again with another question! my parts have finally arrived and ive started putting it together but i have one question - can i power the PAM8403 from the 5v and ground pins of the d1 or should i have a seperate powersupply?

  • @michaelbatchelder
    @michaelbatchelder Před 4 lety +1

    nice project, will give it a try

    • @MrDIYca
      @MrDIYca  Před 4 lety

      let me know how that goes!

  • @misha1533
    @misha1533 Před 2 lety

    There is connection to GND port for ground by audio cable and RX simultaneously for other 2 wires, right?

  • @matrix_returned
    @matrix_returned Před 10 měsíci

    Great!
    I am also looking something even without external servers.

  • @PileofKyle
    @PileofKyle Před 3 lety

    Amazing!!

  • @fernando8948
    @fernando8948 Před 2 lety +1

    Awesome proyect

  • @PlayMoro2013
    @PlayMoro2013 Před rokem

    Great project , i have two running for a long time and they are very useful. One of the units I did even have a good side effect of bad wiring that is detecting slow wifi ( or being impacted by slow wifi) and will make a clicking sound .I do not want to fix that as it seems useful to get such warring like that and might even try to setup the notifier to check the wifi signal

    • @MrDIYca
      @MrDIYca  Před rokem

      Nice, thanks for sharing .. that is an interesting use

    • @clintAdventures
      @clintAdventures Před rokem

      mine makes a clicking sound. how is this from slow wifi?

    • @PlayMoro2013
      @PlayMoro2013 Před rokem

      @@clintAdventures Once the unit start to connect to wifi or loses the connection there is a clicking sound . As said that is a side effect of bad wiring and only noticed on one unit. You may test from your side how losing the WiFi signal is being handled in code if that could be useful as a feature . I could not post video here but I think if you scoped your output you will get the idea

  • @muzammilbathi6483
    @muzammilbathi6483 Před 3 lety

    Its good but air kindly tell me if i need to play alaram when sensor sense the person so which code i will edit

  • @EngineerFromPakistan
    @EngineerFromPakistan Před 2 měsíci

    I want to build a project that connects 50 speakers (every speak has its different esp that connects) to a webpage and play music on all the speakers together. Please guide me on how I should start.

  • @HiagoCosta
    @HiagoCosta Před 29 dny

    is it possible to change tasmota to esphome ? i would like to create this DIY doorbell, but I already have ESPhome with an ESP32 and a doorbell camera using it

  • @mrtchedamaia
    @mrtchedamaia Před rokem

    Hi mate, I did the exactly just like you did, but the sound is not clear... how to make it clear?

  • @PaulPhillipsIndy
    @PaulPhillipsIndy Před rokem

    Wish I understood the code well enough to convert this to run on an ESP32 as I don't have any WemosD1.
    Found a github where they ported your code to work with ESP32, but it locks up if you give it a stream, you can't issue further MQTT commands if it's playing a continuous web stream. Sadly it even freezes up the web interface of the ESP32. Was really hopping to be able to tie this into my openHAB.

  • @StePhanMckillen
    @StePhanMckillen Před 4 lety +1

    10 out 10 bro thanks

  • @C8008C
    @C8008C Před 4 lety

    Runs perfectly. Thank you
    :)
    Could you have another function to switch a Gpio?
    To switch off the amp filter via a relay

    • @MrDIYca
      @MrDIYca  Před 4 lety +1

      Thank you. I don't see why not. Give it a try!

  • @mandeepmails
    @mandeepmails Před 3 lety

    Simply Awesome!!! I think this creates opportunities for multiple projects using wemos.
    Question - considering I would like to have WiFi AirPlay + DLNA to work with my TV and any device over WiFi. Would it be average for me to buy any regular home theatre speakers (with inbuilt Amp) and put wemos with every speaker (to make that truly-wireless-home-theatre-system)
    Appreciate any tips/guidance on this.
    I already have NOdered setup for inside home with full on mqtt stuff. That I’m planning to use with regular doorbell.

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Hello and thank you. I don't think you will be happy with the audio quality if you use this in a "home theater" settings: the device is under powered, the DAC is of low resolution, mono output, and the wifi lag will probably drive you nuts. But it is sill excellent for audio notifications in home automation, or as an audio player of a sort. I hope that helped.

    • @mandeepmails
      @mandeepmails Před 3 lety

      @@MrDIYca i appreciate your answer. Have one thought that i need something like that in the big drawing room that i don't want to wire across (missed the big opportunity during construction) is there a way i can do it.
      using multiple raspberry pi 3B+ would you that be better ?
      Also, while reviewing volumio i read that has significant wifi instability, whereas RuneAudio is better.
      any way to achieve it ? with your expertise i'm willing to hear if there's anything i can do it :)

    • @satiaxsanti1
      @satiaxsanti1 Před 3 lety

      @@mandeepmails You can use a esp32 with an external dac

  • @StrongBad210
    @StrongBad210 Před 6 měsíci

    Awesome project. I don't see where you used the amplifier, just the ESP board. What am I missing?
    I have flashed my board, and setup my MQTT server on HA, but HA doesn't recognize the board. Should it behave this way?

    • @tamildesan837
      @tamildesan837 Před 5 měsíci

      I am about to by the amplifier mentioned, got the same doubt. Have you figured it out? Are there any connection diagram?

  • @fantasygraph
    @fantasygraph Před 2 měsíci +1

    ok nice project: get a problem with the firmware that you direct flash from the browser. work perfect on one notifier. but if i try to add a second notifier on my network with a different mqtt topic, the 2 notifiers get a spam of mqtt message and run in loop. if i switch off one of the notifier, all is now ok on the remaining notifier. i tryed to flash on one of the notifier the firmware from the current source code (Firmware config version 'MrD3') .the problem of loop is not there, but i can't play anything on this notifier (no output, no error... no status playing nor idle in the mqtt message) edit: seem that the mqtt topic configuration of the direct flash firmware accept a name like XXXXXXX, and the source code one need a /XXXXXX (with a /)

  • @misha1533
    @misha1533 Před 2 lety

    is it possible to play m3u, like stream in radio in that way?

  • @lilchera7905
    @lilchera7905 Před rokem

    Home wifi credentials is something we want to create an SSID and password ?

  • @MaxGoddur
    @MaxGoddur Před 3 lety

    A nice project just broke out a new mini. One question how are you getting 12v down to 3.3v for the input to power the mini? Not familiar with that shield you used.

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Hi Rud, I am not using 12v to power the d1 mini. I am using the 5v from the USB.

    • @MaxGoddur
      @MaxGoddur Před 3 lety +1

      @@MrDIYca ah ok, didn't see the USB plugged in so that is why I was asking.

  • @garycornelius7815
    @garycornelius7815 Před 3 lety +1

    Great project and video and thanks for sharing! However, I tried to get working on an ESP32 and it does seem to work and just loops at start - Anyone got this working on ESP32? (I will order same board as MrDIY, unless I hear back and try again!). Regards the sound crackling and popping some people have commented on possibly I had a similar thing on another circuit and it disappeared as soon as I changed from a cheap USB wall plug + going into a standard wall socket to a direct much more stable USB wall socket!

  • @caiomon
    @caiomon Před 2 měsíci

    Hi! Great project! I am looking for a DIY intercom for a team to comunicate in live events, do you believe I could use ESP8266 for this purpose? Sending real time audio from one device to another? Hollyland comunicators are way to expensive here and I got excited with a DIY tally light project and started researching on a DIY solution for comunication between the team on live events on YT.

    • @MrDIYca
      @MrDIYca  Před 2 měsíci +1

      Thanks. Check Chris' work - czcams.com/video/d_h38X4_eQQ/video.html

  • @maartent8401
    @maartent8401 Před 4 lety

    Thanks. This works great!!!.. Only thing is after an mp3 is done playing (using both stream and play topic) the speaker click and pops.

    • @MrDIYca
      @MrDIYca  Před 4 lety +1

      Great! and ya, mine sometimes does the pop sound but before it plays the mp3, couldn't find a quick way around it. Maybe someone out there can share a solution.

    • @MLJTI
      @MLJTI Před 4 lety

      MrDIY wonder if it has something to do with to mp3 bitrate. Playing the ringtone works without noise.

    • @MrDIYca
      @MrDIYca  Před 4 lety

      It is possible. Maybe it was a high bitrate or maybe network buferring issue.

    • @greggotcher9336
      @greggotcher9336 Před 4 lety

      @@MrDIYca I get a popping before and after the mp3 plays. I also seem to have a hissing sound while the mp3 is playing. The hissing isn't terrible, but you can tell that it is there. Any thoughts on how I might cure this.

  • @yourdream8
    @yourdream8 Před 2 lety +1

    Hi, I've built this and have it all integrated with HA. When I play the audio file over the ESP connected to any speakers I've tried. It has a lot of static when the file plays. I even soldered a 3.5 mm jack to the rx and ground pins as shown in the video. I've tried different variations of audio formats as well. Does anyone know how I can fix this? Otherwise its perfect.

    • @MrDIYca
      @MrDIYca  Před 2 lety

      the best way to eliminate statics is to go with an external I2S DAC like MAX98357A.

    • @yourdream8
      @yourdream8 Před 2 lety

      @@MrDIYca I ordered one. How would I wire this and will it work with your bin file? Thank you for your help.

    • @MrDIYca
      @MrDIYca  Před 2 lety

      @@yourdream8 check James' repo. He did excatly that. github.com/aspork42/speaker

  • @CancunManny
    @CancunManny Před 3 lety

    OMG, what a simple but great solution. Two questions, as someone asked, how difficult would it be to add playback through bluetooth as well. This way we can use any bluetooth speaker including echo dots, etc. Also, how difficult would it be to make it stereo, or if already stereo which would be the other pin for the other channel?

    • @MrDIYca
      @MrDIYca  Před 3 lety

      I haven't looked into the bluetooth option due to the range limitations. You can always send Audio over Bluetooth gateway without ESP8266. The ESPAudio library which I use only supports mono playback. Stereo might not even be possible on the ESP8266 alone.

    • @CancunManny
      @CancunManny Před 3 lety

      @@MrDIYca Thanks for the quick reply

  • @yuchoy1
    @yuchoy1 Před rokem

    Your design looks amazing, exactly the function I need, but can I use this directly with Home Assistant without setting up a special MQTT broker? I have looked up the setup instructions for Mosquitto on my NAS, but it looks like a bit more than I can handle. I use NodeRed with HA all the time without issues BTW. I have flashed my D1 Mini with your bin file, but it seems to not work without an MQTT broker. There are boxes that I cannot fill in. thanks for your help!

    • @MrDIYca
      @MrDIYca  Před rokem +1

      Try this post - community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499
      If I remember correctly, someone posted an alternative solution using ESPHome.

    • @yuchoy1
      @yuchoy1 Před rokem +1

      @@MrDIYca Thanks for your response. I was able to add Mosquitto as an AddOn in Home Assistant, and configuration was relatively straightforward. My notifier (your design) now works beautifully. Next I will try the mod that has the MAX98357A, to clean up the audio. Thanks again, nice work, so glad you shared it!

  • @ericvandewalle9003
    @ericvandewalle9003 Před 3 lety

    Hi, i am having problems with using 2 boards at the same time. I have given them each there own different mqtt-topic( used the bin with custom mqtt topic). I can acces them through webbrowser on their own ip adress. Seperate they work fine, but if i power them up at the same time none work.
    Do i have to change someting in the code to be able too use 2 at a time?

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      Hi Eric, I replied to your Gitlab issue here gitlab.com/MrDIYca/mrdiy-audio-notifier/-/issues/8

    • @ericvandewalle9003
      @ericvandewalle9003 Před 3 lety

      @@MrDIYca thank you for quick response and fix

  • @timcowell9031
    @timcowell9031 Před 4 lety +1

    I've tried this and cannot get this to work, I can get the audio to play when it connects for the first time... but when trying to send message via MQTT nothing happens. I've manually tried to push message etc. any options?

    • @timcowell9031
      @timcowell9031 Před 4 lety +1

      Ok, I got it working however in the node red MQTT out I had to remove the / from /mydiynotifier/play so mine looked like this mydiynotifier/play and for some reason that worked????

    • @MrDIYca
      @MrDIYca  Před 4 lety

      ​@Tim Cowell You are right, that extra "/" was missing in the bin package. I uploaded a new bin file.
      Thanks a lot!

  • @tomidabjakoaudytorprzewazn8853

    Can use only http, not mqtt?

  • @sjaakjochems3848
    @sjaakjochems3848 Před 7 měsíci

    Hi, I made the project, all works great. I attached a 10 Euro speaker without any problem. Volume, tone, status, say are working good. Mp3 files seem have a configuration problem, but I suspect to get this fixed aswell.

  • @phillipmaus9634
    @phillipmaus9634 Před 3 lety +1

    Hi, thanks a lot for sharing this great project.
    I tried to compile the source code with the 'define USE_I2S' - option to use an external DAC. Unfortunately it did not work as I got several error messages within Arduino. Could you provide another *.BIN file for that option? Thanks!

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Thanks. I am working on another project that uses an external DAC and will release a bin file with it but this won't be out for months unfortunately.

    • @phillipmaus9634
      @phillipmaus9634 Před 3 lety

      OK, I see. Maybe there someone else out there who has succesfully compiled the code?

    • @AndrewVanTil
      @AndrewVanTil Před 6 měsíci

      @@MrDIYca Did this ever make it out? Thanks.

  • @manuelmatus2959
    @manuelmatus2959 Před rokem

    Hi! Great video! I have tasmotized my D1 mini and I was able to connect it to my home assistant. I get the little sound that one should hear when connected to the wifi and mqtt server. However, when I call a [ "/mrdiynotifier/say" ; payload: Hello ] nothing happens. Also, in the installation of wifi credentials, at the end was a new configuration that was not present in the video, it was MQTT Topic (which I left blank). Please help!!!

    • @MrDIYca
      @MrDIYca  Před rokem

      Yes, I added that field after the video. You can set it to /mrdiynotifier

    • @manuelmatus2959
      @manuelmatus2959 Před rokem

      @@MrDIYca Thanks for your reply! I have added the /mrdiynotifier to the MQTT Topic. I get the connection sound, but when try to publish a [ /mrdiynotifier/say ; payload: Hello ]. Then I try doing /mrdiynotifier/status, I get nothing either. I think I have done all correctly. I am trying to send the commands via "Developer Tools/Services/Service:MQTT.publish/ and then:
      service: mqtt.publish
      data:
      topic: /mrdiynotifier/say
      payload: "test"
      Any other idea on what could be wrong?

  • @sshah876
    @sshah876 Před 3 lety

    Great device, well done, hey is there any auto reboot on mqtt failure, or remote reboot using mqtt or daily reboot possible in the firmware that you wrote?

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      Not built-in but you should be able to add it easily in the source code

    • @sshah876
      @sshah876 Před 2 lety

      @@MrDIYca Hey is it possible to play an mp3 file stored in local net share and accessed by sending http url to this device "without" connecting to MQTT server, this way this device could be shared by two servers!

  • @rasimmonds
    @rasimmonds Před 4 lety

    Hi, I don't understand the wiring 'ground to ground'. My speaker cable just has left and right channels, what do I connect the ground pin to? Thanks

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Sometimes the ground wire is the cable shield - try that.

    • @rasimmonds
      @rasimmonds Před 4 lety +1

      Thanks!

  • @gradek111
    @gradek111 Před 3 lety

    Is it possible to change the TTS voice (i.e. male->femaile) and change the speaking language?

    • @MrDIYca
      @MrDIYca  Před 3 lety

      No, the voice is fixed.

  • @RoSi4You
    @RoSi4You Před 4 lety

    So, it is topic in setup where I should send commands please? I've setup diynotifier1, and inject to /dyinotifier1/play string with mp3 (through Node-RED) and nothing happened.
    After turning on it plays a welcome sound, but refuses to play anything else.
    Should I see some info in debug window after sending commands through MQTT? Or it prints just info at boot?
    Through MQTT explorer I can see, that message goes to the topic.
    It also gives me a status on /diynotifier1/status - "connected" and then "idle". But after injecting, of play command, no "playing" status appears.
    Thank you!
    This is my debug log:
    Loaded config 'iwcThingName'= 'DIY notifier 1'
    Loaded config 'iwcApPassword'=
    Loaded config 'iwcWifiSsid'= 'Virus24'
    Loaded config 'iwcWifiPassword'=
    Loaded config 'iwcApTimeout'= '30'
    Loaded config 'mqttServer'= '192.168.1.200'
    Loaded config 'mqttUser'= 'mqtt'
    Loaded config 'mqttPass'=
    Loaded config 'mqttTopic'= 'diynotifier1'
    SkipApStartup mode was applied
    State changing from: 0 to 3
    Connecting to [*******] (password is hidden)
    State changed from: 0 to 3
    WiFi connected
    IP address: 192.168.1.11
    State changing from: 3 to 4
    Accepting connection
    ==================================================================
    MrDIY Notifier
    ==================================================================
    Connected to Wifi [192.168.1.11]
    status: connected
    Connected to MQTT: mrdiynotifier
    status: idle
    State changed from: 3 to 4

    • @MrDIYca
      @MrDIYca  Před 4 lety

      It looks like the device never receives MQTT messages. Did you change the MQTT topics yourself in the code or using the setup portal?

    • @RoSi4You
      @RoSi4You Před 4 lety

      @@MrDIYca In the portal. Now, if I delete that topic in the setup, should it go back to mrdiynotifier? I'll try and let u know. *EDIT* : It didn't revert back to that topic, but when i put mrdiynotifier into portal, it works. Horray. Now trying to change back to another topic.

    • @MrDIYca
      @MrDIYca  Před 4 lety

      @@RoSi4You I would try another MQTT client like MQTTBox to make sure the MQTT message is sent correctly first. Because it looks like you are connected corretly, the MQTT prefix is good but the device is not getting any messages.

    • @RoSi4You
      @RoSi4You Před 4 lety +2

      @@MrDIYca Changed to notif1, and it works! *Hooray!* Another though I have is, if You might consider to add support for light, like project here: github.com/CosmicMac/ESParkle It will be great!

  • @ahmedelwan9129
    @ahmedelwan9129 Před 3 lety

    hello when i try to play or stream mp3 files there is alot of noise and it's play at very slow speed

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Hi Ahmed, did you try using a diffrent esp8266 module/board?

  • @HoianElectric
    @HoianElectric Před 2 lety

    Hi Mr DiY, I also complete your code with ESP V3.2 and EspSound Version 1.9.5. It is not working well as your bin file. The MP3 sound not smoothing and drop. Could you please specify me the library version for audio and esp version? It is very hurry up please

    • @HoianElectric
      @HoianElectric Před 2 lety +2

      I also found the solution. The cause is an option for IP model in Arduino build lwIP option. Just select the model build Higher Bandwidth so that the stream do not drop suddenly.

  • @rasimmonds
    @rasimmonds Před 3 lety

    I have got as far as connecting everything up, but no connection sound and scripts don't play anything either. Board is connected to MQTT as logs show:
    1597599645: New connection from 192.168.1.19 on port 1883. [INFO] found user1 on Home Assistant 1597599646: Client MrDIY Notifier already connected, closing old connection. 1597599646: New client connected from 192.168.1.19 as MrDIY Notifier (p2, c1, k15, u'user1'). Speaker makes static noise when plugging in audio jack so I am guessing my soldering is ok. Any ideas how to investigate further?

    • @MrDIYca
      @MrDIYca  Před 3 lety

      hi rdak, when you send a command to the /play topic, do yo get anything on the /status topic?

    • @rasimmonds
      @rasimmonds Před 3 lety +1

      @@MrDIYca I sorted it. Being a total noob at electronics, I decided the easiest way to connect would be to use Pi jumper cables to connect to the board and then join these to the speaker wire. It was either a bad connection or jumper cables aren't a suitable wire for this job. All working now, thanks!

  • @ighost_1337
    @ighost_1337 Před 2 lety

    Is there any update on this ?

  • @yosoyestoyarto
    @yosoyestoyarto Před rokem

    the sound of mp3 needs to be in specific sample rate or something? because its sound very bad on some files

    • @MrDIYca
      @MrDIYca  Před rokem

      I found better luck with low sampled files - less processing needed.

  • @valbuz
    @valbuz Před rokem

    Hi
    Great Project!
    But is it possible to deactivate the AP after config?

    • @MrDIYca
      @MrDIYca  Před rokem

      yes, that is possible if you want to code it that way

  • @hamadalmarri2141
    @hamadalmarri2141 Před 3 lety

    Very cool idea . I’m wondering if this project can be used for Muslim Azan/ Adan ? The problem with the time it is not fixed for 5 times a day . That would be a great project for Muslims . Thanks a lot

  • @DerNerdChannel
    @DerNerdChannel Před 2 lety

    does it react to mqtt commands quickly or is there a couple secs of delay?

    • @zianian
      @zianian Před rokem

      The first command I sent using mqtt, a stream url, was lighting fast. Really surprised me.

  • @rychei5393
    @rychei5393 Před 3 lety

    Wut? I LOVE this! I would like to hook something like this to automate the regular changing of my doorbell chime with some sort of calendar. I hate those manual mp3 door bell options, I want wifi and scheduling, Could do the same with seasonal door/window/alarm alerts? Halp!

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      You probably want to look into a home automation system like Home Assistant for that. They are capable of doing all that kind of logic and automation.

  • @zulkarnainkarim
    @zulkarnainkarim Před rokem

    How to get those mqtt?

  • @JB-rh1ir
    @JB-rh1ir Před 3 lety +2

    Hi! It's working great !One question :In setup(raspi,hassio) from node red how to use google ttl ?I cannot find a way to send the temporary mp3 file what I must have from google ttl service, (the tts endpoint)

    • @egeainc
      @egeainc Před 3 lety

      Hi, how are you? Did you find a way to use google tts? or change the language? Thank you

  • @alexl66
    @alexl66 Před 2 lety

    Thanks you for this project! What is the user name when I want to login later when it is connected to local WIFI?

    • @MrDIYca
      @MrDIYca  Před 2 lety +1

      You are welcome. username (admin) and password (same as the wifi AP).

    • @alexl66
      @alexl66 Před 2 lety

      @@MrDIYca Do you have a tip to minimize the noise , I have quite some noise and clicking...I'm not using the recommended amp yet, just external amp

  • @itichi101185
    @itichi101185 Před 4 lety +1

    Nice project! I have built one and it's working well. I have one issue with text say command. When I publish mqtt with the text, it says the text twice. How can this be corrected? please reply

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Intersting. Did you check the command is not sent twice? what MQTT client are you using?

    • @itichi101185
      @itichi101185 Před 4 lety

      @@MrDIYca well I am sending it through call sevice from home assistant developer section

    • @itichi101185
      @itichi101185 Před 4 lety

      I am trying to connect two projects, will it work with two projects in same wifi, is there any way to change mqtt topic

  • @TecSanento
    @TecSanento Před 3 lety

    can we extend this to be used as a homeassitant mqtt media player ?

    • @MrDIYca
      @MrDIYca  Před 3 lety

      I don't see why not. It is just MQTT commands.

  • @arnoldmic
    @arnoldmic Před 4 lety +1

    Excellent project. I am using openhab2 on raspberry pi, is there any easy way to share the mp3 file?

    • @MrDIYca
      @MrDIYca  Před 4 lety +1

      Sadly, I don't have any experience with openhab but worst case scenario you can always install Apache/Nginx on RPi's OS and use www folder directly. Good luck.

    • @arnoldmic
      @arnoldmic Před 4 lety +1

      @@MrDIYca thanks for the reply. I'll do on weekend.

  • @aryeguetta8592
    @aryeguetta8592 Před 3 lety

    As far as I can see it - this is ONE Flash project.
    After I upload the BIN Files I can NOT see it as a COM Port anymore. That is a bit shame since I want to be able to test it and see if it works for me and if need to upload an update that would be great to have the COM Port back.
    No place on the page you have mentioned the username and password for the web interface - that made me wondering a lot till I looked in the comments here. I think that you should put the info on the main page as well.
    Regarding the COM Port I would be happy to get back to work with my D1 Mini again as a COM Port and not loosing it at all. I am sure that the BIN file just overwritten my bootloader and that is the reason I can NOT see my device anymore in COM Ports.
    Please let me know How to make it back with tasmota or what should I do if I need to upgrade the firmware?
    One of the changes I want to make is the topic. How can I do that? and How it can be done after the First time of flashing?
    Thanks for the project.

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Hi Arye, that is good idea. I will add the username (admin) to the README. The COM port is managed by the OS not ESP8266. No code on the ESP8266 should prevent you from seeing the COMs. Maybe check your cable/restart and try again.

  • @clintAdventures
    @clintAdventures Před 4 lety

    whenever i reboot the d1 mini i have to reneter all the wifi/mqtt details again otherwise it will not work. possible to get some kind of fix for this?

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Yes, there is an open issue here gitlab.com/MrDIYca/mrdiy-audio-notifier/-/issues/1. I am working on it. :)

    • @MrDIYca
      @MrDIYca  Před 4 lety

      I updated the bin file for a fix for this issue. Please redownload it, try again and let me know.

    • @clintAdventures
      @clintAdventures Před 4 lety +1

      @@MrDIYca thank you for this appreciate it. Would it be possible to adapt this to output the audio over blue tooth or would that take a lot of work? My thought is instead of external speakers have the audio go to my echo dots as they can work as blue tooth speakers.

  • @nawafbana8100
    @nawafbana8100 Před 2 lety

    Wemos D1 Mini was connected to WIFI (I can hear the initial sound), but from home assistant I cannot hear the mp3 or TTS or ... :(

    • @MrDIYca
      @MrDIYca  Před 2 lety

      It looks like it could be topics issue. Maybe check the MQTT topics?

    • @nawafbana8100
      @nawafbana8100 Před 2 lety

      ​@@MrDIYca (Ringtone) and (say text) are working fine, only I have problem with loading audio files in home assistant, is it due to samba security?

  • @TheDiverJim
    @TheDiverJim Před 3 lety

    I'm trying to follow along, but I can't get the board to show up in HA. I'm not sure what I'm doing wrong. Think it is my Mosquito config in HA. is there any good documentation on this?

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      Hi Jim, I recommend you test the MQTT msgs on an MQTT client first (something like MQTT Explorer) to make sure they are indeed sent out. If that works then work on MQTT-HA intergration ( this is a good start www.home-assistant.io/integrations/mqtt/). Hope that helps.

    • @TheDiverJim
      @TheDiverJim Před 3 lety

      @@MrDIYca yep, it’s either that the speaker’s built in amp isn’t strong enough or I’m hooking up the wrong wire.

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      Are you connecting the Gnd-Rx to an amp input or to a passive speaker directly? Yes, it is a good idea to always double check that wiring.

    • @TheDiverJim
      @TheDiverJim Před 3 lety

      @@MrDIYca because the speaker is powered separately, I believe its going to an amp. Using a nodeMCU v1 and the rx pin to the audio lines. The ground is connected to gnd but I don’t think it’s going to the speaker. Because the input from the speaker is 2 wire.

  • @er.jugalmandal7736
    @er.jugalmandal7736 Před 3 lety

    How can I create a url for audio notifier and what should I fill the access I'd and password please let me know

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      You can use any HTTP ( not HTTPS) server to host the mp3 and use their URL. For the portal login from the local network, use 'admin' for username and the same password you set for the access point to login ( default 'mrdiy.ca')

  • @hecjr2964
    @hecjr2964 Před 6 měsíci

    Newbie here, Awesome project, thank you, accomplish to connect to MQTT and wifi heard sound, :) YES! just cant seem to publish to speaker any example of YAML to play Mp3 would be very appreciated if you or anyone has time... Thanks again!

    • @MrDIYca
      @MrDIYca  Před 6 měsíci

      You are on the right track - I recommend you take a look at this post community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499

    • @hecjr2964
      @hecjr2964 Před 6 měsíci +1

      @@MrDIYca Thank you so much for getting back to me so quickly, appreciate it and will do, Thanks again!!

  • @elkoNDesigner
    @elkoNDesigner Před 4 měsíci

    Im really new to this, how you make your mp3 files to an url? Thanks

    • @MrDIYca
      @MrDIYca  Před 4 měsíci

      community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499

    • @elkoNDesigner
      @elkoNDesigner Před 4 měsíci

      @@MrDIYca I dont know how to do it, is my first time with this.

  • @HoianElectric
    @HoianElectric Před 2 lety

    It is working smoothly but get wrong if two Wemos flash custom bin file. The problem is the MQTT client ID. Could you please change MQTT client ID for each device by involving their chip ID to the suffix. Very nice project and impression your experience.

    • @MrDIYca
      @MrDIYca  Před 2 lety

      Thanks! Yes, this change was added in the source code but not in the bin file. Just rebuild it and you should be good.

    • @HoianElectric
      @HoianElectric Před 2 lety

      @@MrDIYca Thank you very much for your prompt reply. I have one more question could you please fix it. The issue is the speaker generates noise "bup..bup" every change the mp3 link. So my question is how to suppress it.

  • @terrymaker4781
    @terrymaker4781 Před 3 lety

    Has anyone tried building a standalone server that does not use MQTT?

  • @donny_bahama
    @donny_bahama Před 3 lety

    Is there any way to make it play PLAYLISTS?

    • @MrDIYca
      @MrDIYca  Před 3 lety +1

      Not natively, no.
      A thought: I dont' know if this is even doable but you can try to get something like NodeRed to send a '/play' command for the first MP3 file's URL in the playlist, then wait for the 'idle' /status (meaning playing is done) then send the second "/play" command with the next URL ... and so on.

  • @James-xw3pl
    @James-xw3pl Před 4 lety

    Thanks for the plugin,
    I have tasmotizer my D1 Mini with your bin file that you provided and also joined it to my WIFI, but when it try to browse to the D1 mini IP address it request for username & password
    can you please advice what the username and password will be
    Thanks

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Hi James, the username is 'admin' and the password is the same as the AP's.

    • @James-xw3pl
      @James-xw3pl Před 4 lety

      @@MrDIYca Thanks for you help

    • @James-xw3pl
      @James-xw3pl Před 4 lety +1

      I was able to login

  • @yosoyestoyarto
    @yosoyestoyarto Před 2 lety +2

    I try it today, and no sound for mp3, or tts; ringtone are ok. try the mp3 file on an external server to avoid HA permissions and no sound.
    Update: I get it working. the url for playing mp3 needs to be http no https

    • @misha1533
      @misha1533 Před 2 lety

      can you help me? There is connection to GND port for ground by audio cable and RX simultaneously for other 2 wires, isn't there?

    • @yosoyestoyarto
      @yosoyestoyarto Před rokem

      @@misha1533 because its not in stereo, he put the 2 channel in the same speaker, be carefull no all amps allow that.

  • @brunomiguelcanteirodacunha6800

    hello MrDiy know de play is not working

  • @MrCheakheang
    @MrCheakheang Před 4 lety

    I have try many time, while plug the jack in to speaker there is welcome sound. but while public mqtt message there nothing hear..., i not sure what is wrong? and how to debug it?

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Since you are able to hear the welcome sound, it means Wifi and MQTT are connected correctly. What MQTT topic are you using to send the play commands?

    • @MrCheakheang
      @MrCheakheang Před 4 lety

      the MQTT Topic setting is : myspeaker
      call service:
      payload: '192.168.123.222:8123/local/alarm1.mp3'
      topic: /myspeaker/play

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Are you seeing any status updates on the "/myspeaker/status" MQTT topic?

    • @MrCheakheang
      @MrCheakheang Před 4 lety +1

      @@MrDIYca I can successful do:
      I am using MQTT Explorer to monitor
      1. "/myspeaker/say" , payload : Hello ==> return hello from speaker
      2. "/myspeaker/tone", payload: Soap:d=8,o=5,b=125:g,a,c6,p,a,4c6,4p,a,g,e,c,4p,4g,a ==> return tone from speaker.
      3. "/myspeaker/status" - show idle
      but
      4. "/myspeaker/play" & "/myspeaker/stream" , payload: 192.168.123.222:8123/local/bell_in_temple.mp3 ==> some time show status "Error" and some time "Idle".
      I am not sure if this because of ssl certificate or not? i have try to run the url from chrome of my pc is working well. kindly advice. thank you.

    • @MrDIYca
      @MrDIYca  Před 4 lety

      Did you try using http instead of https?

  • @stanislavshulaev8763
    @stanislavshulaev8763 Před rokem

    I've used D1mini v 3.0.0, and can't connect to AP. It says that the password is incorrect. what am i doing wrong?
    Get this:
    23:33:57.262 -> AP password was not set in configuration
    23:33:57.262 -> State changing from: 0 to 1
    23:33:57.262 -> Setting up AP: MrDIYNotifier-145574
    23:33:57.309 -> With default password:
    23:33:58.152 -> AP IP address: 192.168.4.1
    23:33:58.152 -> AP password was not set.
    23:33:58.152 -> WiFi SSID was not set.
    23:33:58.152 -> Will stay in AP mode.
    23:33:58.152 -> State changed from: 0 to 1
    23:33:59.559 -> [MQTT] /status idle

  • @Francois_Dupont
    @Francois_Dupont Před 7 měsíci

    i was trying to make this using ESP-32 board and it seems the Tasmotizer program doesnt support this board. anyway thank you very much for your work!

    • @MrDIYca
      @MrDIYca  Před 7 měsíci

      You might want to check schmurtz's work at github.com/schmurtzm/MrDiy-Audio-Notifier

    • @Francois_Dupont
      @Francois_Dupont Před 7 měsíci

      @@MrDIYca Ahh!! Thank you very much!!
      ESPhome should really integrate this somehow in their programs. i searched for days online how to play music with any speakers and people all said you needed special compatible speakers. i wish your work was more well known.

    • @Francois_Dupont
      @Francois_Dupont Před 7 měsíci

      @@MrDIYca sorry to bother you again. sadly i have another question if i could take a bit of your time. i have everything working now, but i am wondering where to store .mp3 files and how to format the url for the esp32 board. for example i put a test.mp3 inside a new "media" folder with the file editor of homeassistant. then i try to send "192.168.0.35/homeassistant/media/test.mp3". it never works. i have tried alot of formulation, but it is not working.
      i can manage to play RTTTL tones, and voice correctly.
      if you can please help me a little bit with this i would be very happy.

    • @MrDIYca
      @MrDIYca  Před 7 měsíci

      Glad to hear it is working for you. You might want to explore this post for HA troubleshooting - community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499

    • @Francois_Dupont
      @Francois_Dupont Před 7 měsíci

      @@MrDIYca Thank you i will try.

  • @Automatasyt
    @Automatasyt Před 3 lety

    I dont speak english, so please dont bother about any mistakes. Your project were really helpfull, I would like to know how do you acess the mp3 archive in the local network

    • @satiaxsanti1
      @satiaxsanti1 Před 3 lety +1

      He is using Home Assistant, you can use any web server in windows you have xampp, witch is your language ?

    • @Automatasyt
      @Automatasyt Před 3 lety

      @@satiaxsanti1 thanks for the tip, i decided to set up a python webserver for communication between the pc and a esp network.
      My language is portuguese!

    • @satiaxsanti1
      @satiaxsanti1 Před 3 lety

      @@Automatasyt Ok, if you need help, just write me on instagram @im_sanso. I speak Spanish, so English is better :)

  • @andriessyx5225
    @andriessyx5225 Před 3 lety

    Helo,
    made this for my Home assistant setup.
    How can I connect 2 ESP8266 in a different room? Now I have looked into the log file of MQTT and it notice that there is "already MrDIY notifier connected and close the old connection" as result that non of them are working.
    If I disconnect 1 esp8266 than the other one works.
    Do you have a solution for that?
    Thx

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Hi Andries, which bin file did you use? did you try the _mqtt version? This allows mutiple instances.

    • @andriessyx5225
      @andriessyx5225 Před 3 lety

      @@MrDIYca hi, i use the MrDIY_notifier.bin. I will try the other one and let you know.

    • @andriessyx5225
      @andriessyx5225 Před 3 lety

      @@MrDIYca ok have try the notifier custom mqtt but still the same. What do I have to do extra?

    • @andriessyx5225
      @andriessyx5225 Před 3 lety

      @@MrDIYca with the notifier_custom_MQTT.bin file i see that i have a an extra field "topic". What should I fill in?? I didn't fill it in and the speaker but it doesn't work. It connect to the wifi and hear the sound but does not play anything else that i inject on Nodered. I uploaded the notifier.bin file and the speakers works directly. What am i doing wrong?

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Hi, for that field, you need to put the MQTT topic prefix. For example, if you put 'livingroom' your MQTT play command topic becomes 'livingroom/play'.

  • @ilyassiddiqi7739
    @ilyassiddiqi7739 Před 4 lety +1

    I tried it and it worked without any hiccups. I wish if this particular
    audio library or any other audio library could make use of an external
    microphone to issue voice command to trigger an output on Wemos d1 mini
    or NODE MCU. If this is possible then we may be able to make a DIY stand alone
    smart audio system to issue commands to our automation.
    I will wait for your comments.
    Thanks again for sharing such a practical automation idea.

    • @MrDIYca
      @MrDIYca  Před 4 lety

      The ESP8266 is not really capable of processing any kind of audio recognition but maybe it could be used as a gateway to stream an audio feed to something like rhasspy. I haven't looked into that but it is definitely an interesting idea. Thanks for watching!

    • @ilyassiddiqi7739
      @ilyassiddiqi7739 Před 4 lety

      @@MrDIYca Thanks .

  • @andriessyx5225
    @andriessyx5225 Před 3 lety

    Is there a way were I can change the IP to a Static IP?

    • @MrDIYca
      @MrDIYca  Před 3 lety

      Yes, the full source is available.

    • @andriessyx5225
      @andriessyx5225 Před 3 lety

      @@MrDIYca can you help me out a bit? I think that I should write here the static adress but don't no were exactly and how...
      // WifiManager -----------------------------
      #ifdef ESP8266
      String ChipId = String(ESP.getChipId(), HEX);
      #elif ESP32
      String ChipId = String((uint32_t) ESP.getEfuseMac(), HEX);
      #endif
      String thingName = String("MrDIY Notifier - ") + ChipId;
      #define wifiInitialApPassword "mrdiy.ca"
      char mqttServer[16];
      char mqttUserName[32];
      char mqttUserPassword[32];
      char mqttTopicPrefix[32];
      char mqttTopic[MQTT_MSG_SIZE];
      DNSServer dnsServer;
      WebServer server(80);
      IotWebConf iotWebConf(thingName.c_str(), &dnsServer, &server, wifiInitialApPassword, "MrD3");
      IotWebConfParameter mqttServerParam = IotWebConfParameter("MQTT server", "mqttServer", mqttServer, sizeof(mqttServer) );
      IotWebConfParameter mqttUserNameParam = IotWebConfParameter("MQTT username", "mqttUser", mqttUserName, sizeof(mqttUserName));
      IotWebConfParameter mqttUserPasswordParam = IotWebConfParameter("MQTT password", "mqttPass", mqttUserPassword, sizeof(mqttUserPassword), "password");
      IotWebConfParameter mqttTopicParam = IotWebConfParameter("MQTT Topic", "mqttTopic", mqttTopicPrefix, sizeof(mqttTopicPrefix));

    • @MrDIYca
      @MrDIYca  Před 3 lety

      @@andriessyx5225 I have used a library called IotWebConf. There is a post on their github with someone using Static IP with code. This should be a good starting point github.com/prampec/IotWebConf/issues/171

  • @kevinedward4108
    @kevinedward4108 Před 2 lety +1

    Hey, Where Can i Get My MQTT Server?

    • @MrDIYca
      @MrDIYca  Před 2 lety +1

      that is something you need to install on a server

    • @kevinedward4108
      @kevinedward4108 Před 2 lety +1

      @@MrDIYca Can u Help Me?

    • @MrDIYca
      @MrDIYca  Před 2 lety +1

      @@kevinedward4108 try googling "how to install an mqtt server", I am sure you will find great tutorials out there

  • @WayneRigley
    @WayneRigley Před 3 lety +1

    Yep.. CZcams counter and Google mini speaker .. ding you have another follower