- Posts: 983
Voice alerts test build
- Fernandez
- Offline
a)Build dfplayer as per schematic in this topic, connect to ppm port.
b) load voice test build (in my case happyharry u7e)
c)Add into hardware.ini following line: extended-audio = dfplayer
d)Copy mp3 files onto dfplayer. In my case used a 2gb sd. Files may be in root or in a folder doesn't matter. The file must start with a number, but may contain addional characters.
0001Welcometodeviation.mp3
0002Goodbye.mp3
etc etc
e) Write model#.map file for each model, were is defined for each model when to play mp3, save the .map file in the models folder.
model1.map
FMODE0:0000
FMODE1:0001
HOLD0:0002
HOLD1:0003
SW B0:0004
SW B1:0005
SW B2:0006
SW A0:0007
SW A1:0008
SW A2:0009
So some questions;
Were can we find full list of all variables we can assign in the map file? Such a Vbat for Tx battery etc?
telem_alarm1 to telem_alarm6 I still have to test.
Can we write annotation into the map file, so we can write the info of each mp3 nr ?
How can we choose to use buzzer or voice at event as telemetry?
***Some wish for future is that we can select the sound to play from deviation Tx menu. I think personally we should have in the media folder all sounds declared which are stored on the dfplayer. Then in the models file we could define which mp3 to play at which switch or event instead of separate map file.***
One more idea on playing readout of numbers, is to store all the numbers in step of 0.1-200, would make 2000mp'3s, but storage should be no problem as is all short mp3 files.
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
www.ebay.com/itm/Loudspeaker-Speaker-Buz...%26sd%3D291630679302
What do you think?
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Small speakers
The technology is amazing, they seem to work best when they are fit into some sort of sound chamber. I couldn't get more than about 85-90db volume, but I didn't spend a lot of time with amplifiers.
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- HappyHarry
- Offline
- Posts: 1136
www.gearbest.com/development-boards/pp_151548.html
www.gearbest.com/development-boards/pp_145319.html
once I get some time to set things up I'll post the results
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Were can I find the list of all the available alerts/event names which can be declared/assigned in the MAP file?
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Would be good to get some more users to continue this great development!
As mentioned I have the voicemod running and happy to help in testing.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
I finally received my DFPlayer Mini, but I'm still unsure about the power supply issue. From readings I figured the Devo7E 3.3 V rail is already stressed enough by the two additional modules I put in, but running the DFPlayer directly from the 4AA input is also out of specs...I guess adding another voltage regulator is the only real option here.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
When all is final and working as it should I will modify my tx and drill holes etc.
Some stuff missing;
Urgent;
-Selection menu all the available sounds, so if to set an alarm, to be able to scroll true the list of sounds from Tx menu and to select vibrator/buzzer sound/voice sound.
Wish; the ability to play nummeric values.
For instand play multiple mp3 files "Battery" "three" "point" "five" "Volt" another option to do it, could be to put all pre recorded mp3 nr files on the Sd card, with nrs 1-1000 in 0.1steps. just label them as nrs and call off play direct the right nummer mp3 track?
Another wish related to alrams is to have also a timer threshold for any of the alarms, so only sound the alarm if a threshold is reached for more than set period of seconds. (in steps of 0.1sec)
So example only if battery is below <3.5v for >3sec sound the alarm etc. so we can control and avoid unnecary alarm.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
I think we need in deviation some kind of ini file etc, were we can define all the voice files nr + label, as we have stored on the Dfplayer sd card.
Then when to select, a voice alert, we must be able to choose/browse the name from this ini? and the selection store somewere in a MAP file etc? Possibly the MAP file can be completely removed and just store in the model.ini under sounds or alerts.
No idea what is the best/easiest and universal way to implement.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
I added an example map file to help you understand what is needed on you SD card an in the map file. Probably the quickest way to test this build is by just changing the battery alarm threshold above your current voltage, as this should immediately trigger the alarms (0007.mp3 plus the current value including decimal separator and unit).
edit: warning, this build uses UART5 of the U7E, not PPM port!
edit 2: all builds can now be found in this post
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- mtx63
- Offline
- Posts: 37
I have a Devo 6s with 4-1 module, a dream.
Dieter
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Deal57 wrote: I would be happy to test it, too, if you post a DFU for the 6s.
Here you go. I also updated the build for u7e in the other post due to minor code changes.
Please note that the buzzer is probably currently not going to work while using extended audio, I will clean up the code and find a solution to run both later on when the telemetry/voltage announcement are working in general.
edit: all builds can now be found in this post
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
Can you once more explain how it works ?
Just play one dedicate sound or message (current implementation)
Play nr of dedicated sounds or messages, new sound starts after timeout previous mp3 ("Warning", "RSSI")
To be numerical, play dedicated sound and variable numeric ("Tx Battery", "Four", "Point", "Three", "Volt" )
Can you be bit more clear what you like to test? See if it can play multiple MP3?
How to set the scnario's and how it find the right mp3? Or you just want to verify with the test if duration of play mp3 work?
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Fernandez wrote: Can you once more explain how it works ?
Can you be bit more clear what you like to test? See if it can play multiple MP3?
How to set the scnario's and how it find the right mp3? Or you just want to verify with the test if duration of play mp3 work?
My implementation of value readout has so far been implemented for telemetry alarm 1-6 and battery voltage alarm. Once these get triggered by the values you define in the Transmitter (Transmitter menu -> Transmitter config -> Batt alarm or Model menu -> Telemetry config). Once triggered, it will first play the Alarm sound file (0013-0018 for TELEMALARM1-6, 0007 for BATT_ALARM) followed by the respective value that triggered the alarm (e.g. 4.3 V will subsequently play 1004, 1010, 1003, 1012 as "Four", "Point", "Three", "Volt").
Each file will get played once the time in ms provided in the MAP file for the previously played mp3 has passed. The values in there surely will need some fine trimming, since I'm not sure how much delay the DFPlayer introduces when receiving the play command. Also, we need some delay between playing each number to make the voice output not too rushed. For the sake of testing, you might just set all times to 2000 or 3000, so we have enough room to play each file. Once it has been proven working, we should only put the true file length in the map file and add the additionally needed delay between files in the code.
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
edit 1: all files can now be found in this post
Please Log in or Create an account to join the conversation.
- Moeder
- Offline
- Posts: 796
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Builds
- Voice alerts test build