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

  Рет қаралды 70,164

MrDIY

MrDIY

Күн бұрын

Пікірлер: 259
@DrZzs
@DrZzs 4 жыл бұрын
Oh you KNOW I'm building one! Where's my D1mini???
@JB-rh1ir
@JB-rh1ir 4 жыл бұрын
nevermind ! got it working with the TTS ,so now it's basically a wifi speaker with dynamic content! Awesome work MrDIY !
@MrDIYca
@MrDIYca 4 жыл бұрын
Great to hear! I'm guessing you pointed the URL to the TTS folder?
@MadLabZ
@MadLabZ 2 жыл бұрын
Just found your channel, I've been looking for this specific project now on and off for about three years, thankyou!!!
@MrDIYca
@MrDIYca 2 жыл бұрын
Glad I could help!
@bensekh
@bensekh 3 жыл бұрын
Thank you MrDIY. I've made it. I even wired it up with PAM8403 and Loudspeaker. Very cool project!
@MrDIYca
@MrDIYca 3 жыл бұрын
Glad you like it!
@arkadian-labs
@arkadian-labs 3 жыл бұрын
this is amazing! great work! I will definitely use it. Thanks!!!!
@AndrewDanne
@AndrewDanne 4 жыл бұрын
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.
@yosoyestoyarto
@yosoyestoyarto Ай бұрын
Its possible to use an esp32cam together with the playlable sound. So i can use one module only and not 2? One for playing the mp3 file and anotehr to stream de video ? my idea its to use one module, in this case an esp32cam in my doorbell.
@fantasygraph
@fantasygraph 4 ай бұрын
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 /)
@santorcuato
@santorcuato 4 жыл бұрын
It looks really nice. Will try with an ESP32 and let you know. Thanks for sharing.
@MrDIYca
@MrDIYca 4 жыл бұрын
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.
@yosoyestoyarto
@yosoyestoyarto 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 2 жыл бұрын
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 2 жыл бұрын
@@misha1533 because its not in stereo, he put the 2 channel in the same speaker, be carefull no all amps allow that.
@ChristopheBoudeauDivisionRuine
@ChristopheBoudeauDivisionRuine Жыл бұрын
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.👌
@UndregoGrey
@UndregoGrey 10 ай бұрын
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.
@PlayMoro2013
@PlayMoro2013 Жыл бұрын
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 Жыл бұрын
Nice, thanks for sharing .. that is an interesting use
@clintAdventures
@clintAdventures Жыл бұрын
mine makes a clicking sound. how is this from slow wifi?
@PlayMoro2013
@PlayMoro2013 Жыл бұрын
@@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
@llg.208
@llg.208 4 жыл бұрын
Very cool project, will give it a try :) Thanks for sharing!
@yuchoy1
@yuchoy1 Жыл бұрын
The say function reminds me so much of SAM on my old Commodore 64!
@SuperVitcom
@SuperVitcom Жыл бұрын
you can also connect the speakers to the device running home Assistants and configure it as media_player mpd
@EngineerFromPakistan
@EngineerFromPakistan 4 ай бұрын
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.
@WayneRigley
@WayneRigley 3 жыл бұрын
Yep.. KZbin counter and Google mini speaker .. ding you have another follower
@MrDIYca
@MrDIYca 3 жыл бұрын
Right on!
@michaelbatchelder
@michaelbatchelder 4 жыл бұрын
nice project, will give it a try
@MrDIYca
@MrDIYca 4 жыл бұрын
let me know how that goes!
@kenmcmullan9330
@kenmcmullan9330 3 ай бұрын
I'm inspired. I've been trying to get audio output from a D1 Mini for a while. The PWM output on a GPIO seems to be software only, and there's a lot of interrupts going on, so it was quite poor. this looks like a "serial port abuser". I'll look closer. My use case is almost exactly the same as yours: I want to subscribe to an MQTT topics and have it say the words!
@garycornelius7815
@garycornelius7815 3 жыл бұрын
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!
@HiagoCosta
@HiagoCosta 3 ай бұрын
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
@patjohn775
@patjohn775 3 жыл бұрын
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
@StrongBad210
@StrongBad210 8 ай бұрын
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 8 ай бұрын
I am about to by the amplifier mentioned, got the same doubt. Have you figured it out? Are there any connection diagram?
@hamadalmarri2141
@hamadalmarri2141 3 жыл бұрын
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
@JJustYarik
@JJustYarik Жыл бұрын
Thank you so much!!! I repeat step by step and it is working
@henkoschoeman9608
@henkoschoeman9608 15 күн бұрын
This is working great with a D1 mini. Is there any chance this can be setup to work through HTTPS
@CancunManny
@CancunManny 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@MrDIYca Thanks for the quick reply
@RoSi4You
@RoSi4You 4 жыл бұрын
I will 100% build one. Thank you!
@C8008C
@C8008C 4 жыл бұрын
Runs perfectly. Thank you :) Could you have another function to switch a Gpio? To switch off the amp filter via a relay
@MrDIYca
@MrDIYca 4 жыл бұрын
Thank you. I don't see why not. Give it a try!
@easthulk99
@easthulk99 4 жыл бұрын
This will be my next project... tq for sharing
@stanislavshulaev8763
@stanislavshulaev8763 2 жыл бұрын
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
@danneh1982
@danneh1982 4 жыл бұрын
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 4 жыл бұрын
You can use the "Hosting Files" option in HA. Check www.home-assistant.io/integrations/http/#hosting-files
@danneh1982
@danneh1982 4 жыл бұрын
@@MrDIYca Thanks thats saved me a lot of head scratching :D
@danneh1982
@danneh1982 4 жыл бұрын
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?
@mandeepmails
@mandeepmails 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@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 3 жыл бұрын
@@mandeepmails You can use a esp32 with an external dac
@sjaakjochems3848
@sjaakjochems3848 10 ай бұрын
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.
@brunomiguelcanteirodacunha6800
@brunomiguelcanteirodacunha6800 Жыл бұрын
hello MrDiy know de play is not working
@caiomon
@caiomon 5 ай бұрын
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 5 ай бұрын
Thanks. Check Chris' work - kzbin.info/www/bejne/mpDLZGuOacSYh7M
@timcowell9031
@timcowell9031 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
​@Tim Cowell You are right, that extra "/" was missing in the bin package. I uploaded a new bin file. Thanks a lot!
@PaulPhillipsIndy
@PaulPhillipsIndy Жыл бұрын
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.
@102diy
@102diy Жыл бұрын
Very good job! 👍
@hecjr2964
@hecjr2964 8 ай бұрын
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 8 ай бұрын
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 8 ай бұрын
@@MrDIYca Thank you so much for getting back to me so quickly, appreciate it and will do, Thanks again!!
@matrix_returned
@matrix_returned Жыл бұрын
Great! I am also looking something even without external servers.
@lilchera7905
@lilchera7905 2 жыл бұрын
Home wifi credentials is something we want to create an SSID and password ?
@amirghorbanian1300
@amirghorbanian1300 28 күн бұрын
this is awesome ! thank you
@kevinedward4108
@kevinedward4108 2 жыл бұрын
Hey, Where Can i Get My MQTT Server?
@MrDIYca
@MrDIYca 2 жыл бұрын
that is something you need to install on a server
@kevinedward4108
@kevinedward4108 2 жыл бұрын
@@MrDIYca Can u Help Me?
@MrDIYca
@MrDIYca 2 жыл бұрын
@@kevinedward4108 try googling "how to install an mqtt server", I am sure you will find great tutorials out there
@tomidabjakoaudytorprzewazn8853
@tomidabjakoaudytorprzewazn8853 3 жыл бұрын
Can use only http, not mqtt?
@MaxGoddur
@MaxGoddur 3 жыл бұрын
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 3 жыл бұрын
Hi Rud, I am not using 12v to power the d1 mini. I am using the 5v from the USB.
@MaxGoddur
@MaxGoddur 3 жыл бұрын
@@MrDIYca ah ok, didn't see the USB plugged in so that is why I was asking.
@yourdream8
@yourdream8 3 жыл бұрын
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 3 жыл бұрын
the best way to eliminate statics is to go with an external I2S DAC like MAX98357A.
@yourdream8
@yourdream8 3 жыл бұрын
@@MrDIYca I ordered one. How would I wire this and will it work with your bin file? Thank you for your help.
@MrDIYca
@MrDIYca 3 жыл бұрын
@@yourdream8 check James' repo. He did excatly that. github.com/aspork42/speaker
@madebyjunk1501
@madebyjunk1501 4 жыл бұрын
Wow amazing💓👍💪 Thanks for sharing
@MrDIYca
@MrDIYca 4 жыл бұрын
Thanks for visiting!
@valbuz
@valbuz Жыл бұрын
Hi Great Project! But is it possible to deactivate the AP after config?
@MrDIYca
@MrDIYca Жыл бұрын
yes, that is possible if you want to code it that way
@misha1533
@misha1533 2 жыл бұрын
There is connection to GND port for ground by audio cable and RX simultaneously for other 2 wires, right?
@yuchoy1
@yuchoy1 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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!
@mrtchedamaia
@mrtchedamaia Жыл бұрын
Hi mate, I did the exactly just like you did, but the sound is not clear... how to make it clear?
@Юрий-х9л1п
@Юрий-х9л1п 2 жыл бұрын
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?
@yosoyestoyarto
@yosoyestoyarto 2 жыл бұрын
the sound of mp3 needs to be in specific sample rate or something? because its sound very bad on some files
@MrDIYca
@MrDIYca 2 жыл бұрын
I found better luck with low sampled files - less processing needed.
@Francois_Dupont
@Francois_Dupont 9 ай бұрын
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 9 ай бұрын
You might want to check schmurtz's work at github.com/schmurtzm/MrDiy-Audio-Notifier
@Francois_Dupont
@Francois_Dupont 9 ай бұрын
@@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 9 ай бұрын
@@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 9 ай бұрын
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 9 ай бұрын
@@MrDIYca Thank you i will try.
@zulkarnainkarim
@zulkarnainkarim Жыл бұрын
How to get those mqtt?
@sagaardusagaardu4048
@sagaardusagaardu4048 3 жыл бұрын
Hello, Interesting project, what is the connection diagram of the amplifier with the wemos D1 and the speaker?
@itichi101185
@itichi101185 4 жыл бұрын
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 4 жыл бұрын
Intersting. Did you check the command is not sent twice? what MQTT client are you using?
@itichi101185
@itichi101185 4 жыл бұрын
@@MrDIYca well I am sending it through call sevice from home assistant developer section
@itichi101185
@itichi101185 4 жыл бұрын
I am trying to connect two projects, will it work with two projects in same wifi, is there any way to change mqtt topic
@arnoldmic
@arnoldmic 4 жыл бұрын
Excellent project. I am using openhab2 on raspberry pi, is there any easy way to share the mp3 file?
@MrDIYca
@MrDIYca 4 жыл бұрын
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 4 жыл бұрын
@@MrDIYca thanks for the reply. I'll do on weekend.
@phillipmaus9634
@phillipmaus9634 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
OK, I see. Maybe there someone else out there who has succesfully compiled the code?
@AndrewVanTil
@AndrewVanTil 8 ай бұрын
@@MrDIYca Did this ever make it out? Thanks.
@lilchera7905
@lilchera7905 2 жыл бұрын
What is home wifi credentials?
@MrDIYca
@MrDIYca 2 жыл бұрын
Your own Wi-Fi at home where the device can connect to the Internet
@lilchera7905
@lilchera7905 2 жыл бұрын
@@MrDIYca does ESP8266 have permanent SSID and password ?
@muzammilbathi6483
@muzammilbathi6483 3 жыл бұрын
Its good but air kindly tell me if i need to play alaram when sensor sense the person so which code i will edit
@Youcancallmesua
@Youcancallmesua 2 жыл бұрын
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
@Youcancallmesua
@Youcancallmesua 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.
@terrymaker4781
@terrymaker4781 3 жыл бұрын
Has anyone tried building a standalone server that does not use MQTT?
@DilnuwanAmaraweera
@DilnuwanAmaraweera Жыл бұрын
That's awesome and Thank You
@misha1533
@misha1533 2 жыл бұрын
is it possible to play m3u, like stream in radio in that way?
@splash128100
@splash128100 4 жыл бұрын
❤️ Thank you
@benoitd94
@benoitd94 23 күн бұрын
hi very good tutorial. What i don't understand is the wiring between the wemos and the Amplifier ? do you use an amplifier ? thanks
@MrDIYca
@MrDIYca 23 күн бұрын
Yes, the IKEA speaker has a built-in amp
@benoitd94
@benoitd94 23 күн бұрын
@@MrDIYca Can you share the link where i can find that speaker? thx
@benoitd94
@benoitd94 23 күн бұрын
@@MrDIYca what about the jack pinout ? please show me how to realise that cable ?
@benoitd94
@benoitd94 23 күн бұрын
seems more clear now, don’t need an amplifier only a speaker with a built-in amplifier (please share the link for the Ikea one) need also a jack with this wiring: D1Wemos RX to Left and Right jack D1Wemos Gnd to ground jack I will try that soon Regards
@JB-rh1ir
@JB-rh1ir 4 жыл бұрын
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 3 жыл бұрын
Hi, how are you? Did you find a way to use google tts? or change the language? Thank you
@aryeguetta8592
@aryeguetta8592 4 жыл бұрын
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 4 жыл бұрын
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.
@elkoNDesigner
@elkoNDesigner 6 ай бұрын
Im really new to this, how you make your mp3 files to an url? Thanks
@MrDIYca
@MrDIYca 6 ай бұрын
community.home-assistant.io/t/turn-an-esp8266-wemosd1mini-into-an-audio-notifier-for-home-assistant-play-mp3-tts-rttl/211499
@elkoNDesigner
@elkoNDesigner 6 ай бұрын
@@MrDIYca I dont know how to do it, is my first time with this.
@rychei5393
@rychei5393 4 жыл бұрын
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 4 жыл бұрын
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.
@wattage2007
@wattage2007 Жыл бұрын
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!
@Youcancallmesua
@Youcancallmesua 2 жыл бұрын
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 2 жыл бұрын
Thanks! Yes, this change was added in the source code but not in the bin file. Just rebuild it and you should be good.
@Youcancallmesua
@Youcancallmesua 2 жыл бұрын
@@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.
@gradek111
@gradek111 3 жыл бұрын
Is it possible to change the TTS voice (i.e. male->femaile) and change the speaking language?
@MrDIYca
@MrDIYca 3 жыл бұрын
No, the voice is fixed.
@DerNerdChannel
@DerNerdChannel 3 жыл бұрын
does it react to mqtt commands quickly or is there a couple secs of delay?
@jqzIII
@jqzIII Жыл бұрын
The first command I sent using mqtt, a stream url, was lighting fast. Really surprised me.
@rasimmonds
@rasimmonds 4 жыл бұрын
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 4 жыл бұрын
Sometimes the ground wire is the cable shield - try that.
@rasimmonds
@rasimmonds 4 жыл бұрын
Thanks!
@fernando8948
@fernando8948 2 жыл бұрын
Awesome proyect
@MrDIYca
@MrDIYca 2 жыл бұрын
Thank you! Cheers!
@manuelmatus2959
@manuelmatus2959 Жыл бұрын
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 Жыл бұрын
Yes, I added that field after the video. You can set it to /mrdiynotifier
@manuelmatus2959
@manuelmatus2959 Жыл бұрын
@@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?
@er.jugalmandal7736
@er.jugalmandal7736 3 жыл бұрын
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 3 жыл бұрын
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')
@ilyassiddiqi7739
@ilyassiddiqi7739 4 жыл бұрын
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 4 жыл бұрын
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.
@ighost_1337
@ighost_1337 2 жыл бұрын
Is there any update on this ?
@StePhanMckillen
@StePhanMckillen 4 жыл бұрын
10 out 10 bro thanks
@MrDIYca
@MrDIYca 4 жыл бұрын
You are weclome!
@nawafbana8100
@nawafbana8100 3 жыл бұрын
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 3 жыл бұрын
It looks like it could be topics issue. Maybe check the MQTT topics?
@nawafbana8100
@nawafbana8100 3 жыл бұрын
​@@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?
@RoSi4You
@RoSi4You 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
@@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 4 жыл бұрын
@@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 4 жыл бұрын
@@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!
@ericvandewalle9003
@ericvandewalle9003 3 жыл бұрын
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 3 жыл бұрын
Hi Eric, I replied to your Gitlab issue here gitlab.com/MrDIYca/mrdiy-audio-notifier/-/issues/8
@ericvandewalle9003
@ericvandewalle9003 3 жыл бұрын
@@MrDIYca thank you for quick response and fix
@Automatasyt
@Automatasyt 3 жыл бұрын
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 3 жыл бұрын
He is using Home Assistant, you can use any web server in windows you have xampp, witch is your language ?
@Automatasyt
@Automatasyt 3 жыл бұрын
@@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 3 жыл бұрын
@@Automatasyt Ok, if you need help, just write me on instagram @im_sanso. I speak Spanish, so English is better :)
@rasimmonds
@rasimmonds 4 жыл бұрын
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 4 жыл бұрын
hi rdak, when you send a command to the /play topic, do yo get anything on the /status topic?
@rasimmonds
@rasimmonds 4 жыл бұрын
@@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!
@donny_bahama
@donny_bahama 4 жыл бұрын
Is there any way to make it play PLAYLISTS?
@MrDIYca
@MrDIYca 4 жыл бұрын
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.
@piratesofbytes
@piratesofbytes 3 жыл бұрын
Wow cool project 👌🏼
@ahmedelwan9129
@ahmedelwan9129 4 жыл бұрын
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 4 жыл бұрын
Hi Ahmed, did you try using a diffrent esp8266 module/board?
@TecSanento
@TecSanento 3 жыл бұрын
can we extend this to be used as a homeassitant mqtt media player ?
@MrDIYca
@MrDIYca 3 жыл бұрын
I don't see why not. It is just MQTT commands.
@alexl66
@alexl66 2 жыл бұрын
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 2 жыл бұрын
You are welcome. username (admin) and password (same as the wifi AP).
@alexl66
@alexl66 2 жыл бұрын
@@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
@sshah876
@sshah876 3 жыл бұрын
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 3 жыл бұрын
Not built-in but you should be able to add it easily in the source code
@sshah876
@sshah876 3 жыл бұрын
@@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!
@elnurmehdiyev5062
@elnurmehdiyev5062 Жыл бұрын
Really cool project, but How to get it to play mp3 from ?
@MrDIYca
@MrDIYca Жыл бұрын
Thanks. It only supports HTTP.
@James-xw3pl
@James-xw3pl 4 жыл бұрын
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 4 жыл бұрын
Hi James, the username is 'admin' and the password is the same as the AP's.
@James-xw3pl
@James-xw3pl 4 жыл бұрын
@@MrDIYca Thanks for you help
@James-xw3pl
@James-xw3pl 4 жыл бұрын
I was able to login
@TheDiverJim
@TheDiverJim 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@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 3 жыл бұрын
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 3 жыл бұрын
@@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.
@maartent8401
@maartent8401 4 жыл бұрын
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 4 жыл бұрын
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 4 жыл бұрын
MrDIY wonder if it has something to do with to mp3 bitrate. Playing the ringtone works without noise.
@MrDIYca
@MrDIYca 4 жыл бұрын
It is possible. Maybe it was a high bitrate or maybe network buferring issue.
@greggotcher9336
@greggotcher9336 4 жыл бұрын
@@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.
#419 ESP32 Audio Tutorial with lots of examples
13:48
Andreas Spiess
Рет қаралды 249 М.
The selfish The Joker was taught a lesson by Officer Rabbit. #funny #supersiblings
00:12
I Made a Car Trip Tracker .... without using GPS
6:59
MrDIY
Рет қаралды 10 М.
Make your Doorbell Smart using ESP8266
4:48
MrDIY
Рет қаралды 51 М.
Play MP3 Files on ESP32 Without Codec Chip: Easy Guide
8:51
atomic14
Рет қаралды 87 М.
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
10 Great ESP8266 Projects for Beginners!
6:59
ToP Projects Compilation
Рет қаралды 101 М.
Streaming Video and Audio over WiFi with the ESP32
8:54
atomic14
Рет қаралды 27 М.
Best power saving mode - Much Deeper Deep Sleep ESP8266
10:30
DIY TECH BROS
Рет қаралды 98 М.
Adding an ESP32, MQTT and more to the Arylic Amp
23:27
ResinChem Tech
Рет қаралды 8 М.