Audio (voice) - Stock 9X PCB

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Audio (voice)

Post by Rob Thomson »

WAV files can be saved off as a variety of formats. 8 bit mono, stereo etc.

May just need the specific format!


---
I am here: http://tapatalk.com/map.php?y0uzgt
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!

User avatar
Rob Thomson
Site Admin
Posts: 4543
Joined: Tue Dec 27, 2011 11:34 am
Country: United Kingdom
Location: Albury, Guildford
Contact:

Audio (voice)

Post by Rob Thomson »

SkyNorth wrote:
Rob - I have the 9XR radio (from HK) in the ERSKY9x sight ....a nice new $50 DSM2 radio , with a spot for a FLSKY RF module...looks like a good hack.
By the looks of the specs of the FLSKY Radio , they have already copied the ERSKY work....
-Brent
Great to hear!

Please do consider the frsky tx when it comes out as an option too!

No guarantee, but I suspect they will go for a slightly higher quality case and gimbal on their units. But hey.. This is just speculation; and I don't know any real details yet!





---
I am here: http://tapatalk.com/map.php?g54k0t
Sent from my iPhone using Tapatalk
Slope Soaring, FPV, and pretty much anything 'high tech'
...........if you think it should be in the wiki.. ask me for wiki access, then go add it!
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio (voice)

Post by cre8tiveleo »

MikeB wrote:...
I think the biggest problem now is fitting it in the case. It may be necessary to bend the two spring contacts to allow the sound module to fit between them. Maybe we will have to add a couple of bonding wires if, after bending, they no longer touch the board in the front half of the case.

Mike.
You don't need those two big pieces of metal.... ask Brent what I did to mine to put the Voltage regulator there... better yet... here is a pic...


Image


You can rip it off, then you can stick a plastic standoff, and voila, perfect place to mount anything you want.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

Here are the specs for the new frsky TX.. I think it was already posted here on the forum though..

http://www.rcgroups.com/forums/showpost ... ostcount=1
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Next step for the software is to actually get something useful generating the voice output. As a first step, I'll add to the alarms that may be generated using what were the safety switches, and now double as audible alarms. Currently, for each switch, you may select either S or A (for Safety or Alarm). I'll add 'V' for Voice alarm, and then the parameter will be a number as a reference to the filename on the SD card, so 0 plays voice 0000.ad4 etc.
I shall slow down the repeat rate for these, the existing 2 seconds is not very long given the time it takes to actually play a voice sound.

We are, of course, tight on flash storage. I want to gain some back.
Over time, various alarms have been put in (e.g. height, A1, A2, RSSI, battery capacity). These are now possible using the custom switch-safety/alarm switch mechanism, so I propose to remove these 'hard coded' alarms, and leave just the custom switch-safety/alarm switch alarms.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

I need to have an working unit so I can actually help.. module still on a slow boat from China :(

I have some ideas.. inactivity alarm, timer count down but only the same alarms we have. 30 seconds, 20 seconds, 10, and the last 5 or so..
to be able to set a voice alarm when a switch/mix is enabled, obviously all the necessary alarms like low voltage, low RSSI and all the telemetry important alarms. I think is also important to set priorities.. for example a RSSI alarms should override a mix alarm as these are more an information than an alarm..

But as I said I need to have this circuit working.. ggrrrrrrr :evil: ;) :D
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Some things, like the beeps when you press a button, need to remain on the beeper/piezo. It takes too long for the voice system to start the sound so they would become 'disconnected', i.e. push button, wait half a second, hear beep.

Timer countdown could probably be:
"Thirty seconds"
"Twenty seconds"
"Ten seconds"
"Five"
"Four"
"Three"
"Two"
"One"
"Zero"
There won't be enough time between "Five" and "Four" to say seconds as well!

I'm trying to keep to a single version of the code, I don't really want to have a custom compiled 'voice' version on top of all the other versions we already have.

Just another thought, we have a 'spare' output from the 74HC574, this could be used for the haptic drive, it would save soldering to another processor pin.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

I think that is a great idea.. and we would have one more free pin for something else ;)

I think the sound countdown is good as you say.. no need to say seconds every second on the final 5 secs.. In fact, I think I've never heard that..
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

In passing, we could actually have 4 more outputs, with a bit more wiring, can't easily get inputs though. Not sure what else these outputs could be used for.

I'm wondering if the timer could also say the minutes, if the minute beep is on. I usually have it on, and count the beeps to know how long I have left on the timer.
We need a queue of sounds to say, need to add all this into the code. I'm intending, for now, to limit this to 240 different voice sounds, plus eight volume levels. These will fit in a single byte to code, saves on flash usage. This is going to need some documentation, so we know which sound is 0000.AD4 etc. (plus the hardware details).

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

do we need more than 240? how are the numbers handled? with combination?
Yes, I have the minute beep on also, but I normally forget how many I've heard so I don't know How long I've been flying until the 30 seconds beep sound, or till I look down at the screen which can be quite dangerous if you hover a multirotor or heli in front of you ;)

Also, would it be possible to put some of the audio information not alarm, (like voltage, or altitude.... ) on a switch that we have that information when we want it? It doesn't need to be repeating constantly.. it's non priority info. then come all the sounds we could assign to mixes, like flaps down or gear up sort of thing.. still info.
Then of course we have the priority info that comes out automatically, like all the safety stuff.. Low battery, altitude level reached, throttle not idle, thr switch not engaged, switch warning, etc.
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

and then of course and not less important ;) the spash screen welcome audio file, the insults :mrgreen: and all the trivial stuff if there is space for it

Sorry, I think I'm having a brainstorm here.. :mrgreen: :mrgreen:
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Audio (voice)

Post by ReSt »

And I would like to have the possibility of:
whenever I switch the trainer switch I get the actual altitude.
That means, no fixed voice but it had to read the actual altitude and combine the necessary hundreds, tens and meters


Reinhard
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

that's what I meant by having the information on a switch.. now I don't know if the trainer switch is a good idea if you use the instant trims, but I guess that could be configured and we could choose any switch we wanted? if we leave the switch on, the info would loop, like voltage and altitude, or whatever? it would be nice if we could choose also which info to hear..

brainstorm again :D
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Malcurin
Posts: 61
Joined: Fri Apr 20, 2012 7:58 pm
Country: -
Location: Matamata New Zealand
Contact:

Re: Audio (voice)

Post by Malcurin »

and all must be said by a very hot sounding female voice to make everyone at the clubs jealous of the transmitter :)
Turnigy 9x with ER9X and back light FrSky DHT 8ch DIY, FLD-02 Telemetry Display Screen
AXN with 6x4 prop .... AWESOME!!!!!!!
Canterbury Sailplanes Jazz 60 and Eraser 60
Dyna-flight Butterfly ( under construction )
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

That will be up to you, which voice.. you will be able to record your own.. I have some speech program that I will use also. there are a few on internet where you can write a text and then download the audio file..
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Crashj007
Posts: 133
Joined: Tue Jan 31, 2012 11:44 pm
Country: -
Location: Raleigh, NC, USA
Contact:

Re: Audio (voice)

Post by Crashj007 »

MikeB wrote:<>
Timer countdown could probably be:
"Thirty seconds"
"Twenty seconds"
"Ten seconds"
Etc.,
<>
Mike.
Some good countdowns could be copied from Star Trek and Fifth Element soundtracks.
"Use the voice of LeeLou for all other warnings"
--
FS-TH9X 2.4GHz 9CH from Nitroplanes
Smartieparts board & backlight
Stock Flysky RF and mainboard
er9x FW V 744
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

Yep, let your imagination roll ;) I think we will be able to play any voice we want.. we just have to record it and convert it.. then give it the right file name/number
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Crucial
Posts: 581
Joined: Tue Dec 27, 2011 6:56 pm
Country: -
Location: SE WI, USA

Re: Audio (voice)

Post by Crucial »

I am looking at gathering up a list of parts from digikey. I noticed that they have a few different 74hc574n chips. Specifically, there are 2 different speed chips. One is a TI chip that runs at 40MHz and the other is a NXP that runs at 133MHz. Is there any reason to get one over the other?
User avatar
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio (voice)

Post by cre8tiveleo »

Marge Simpson or bust!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

:mrgreen: :mrgreen: :mrgreen: :mrgreen: :mrgreen:
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

Crucial wrote:I am looking at gathering up a list of parts from digikey. I noticed that they have a few different 74hc574n chips. Specifically, there are 2 different speed chips. One is a TI chip that runs at 40MHz and the other is a NXP that runs at 133MHz. Is there any reason to get one over the other?
The ones I bought in the ebay shop, they showed only 74HC574.. but when they arrived on saturday the numbers are SN74HC574N.. I think it is the same.. I tried reading the datasheet and couldn't find any difference and or reference to the last letter.. maybe I've missed it.
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
Crucial
Posts: 581
Joined: Tue Dec 27, 2011 6:56 pm
Country: -
Location: SE WI, USA

Re: Audio (voice)

Post by Crucial »

Here is the parts list from Digikey minus the resistors.

296-1598-5-ND----------------IC OCT D-TYPE FLIP-FLOP 20-DIP-------SN74HC574N
497-4258-1-ND----------------IC REG LDO 100MA 3.3V TO-92---------3.3V reg
BC548BRL1GOSCT-ND -------TRANS NPN GP 30V 100MA TO-92-------transistors
LM7805CT-ND-----------------IC REG 1A POS 5V TO-220---------------5V reg
478-3187-ND------------------CAP CER 0.1UF 50V 10% RADIAL--------cap
338-1700-ND------------------CAP ALUM 10UF 100V 20% RADIAL------cap
V2018-ND----------------------PC BOARD .1"SP 3X3.5 SINGLE SIDE----Stripboard
User avatar
Crashj007
Posts: 133
Joined: Tue Jan 31, 2012 11:44 pm
Country: -
Location: Raleigh, NC, USA
Contact:

Re: Audio (voice)

Post by Crashj007 »

cre8tiveleo wrote:Marge Simpson or bust!
"well, homer, is that really what you want to do?"
--
FS-TH9X 2.4GHz 9CH from Nitroplanes
Smartieparts board & backlight
Stock Flysky RF and mainboard
er9x FW V 744
C.João
Posts: 147
Joined: Thu Jan 12, 2012 7:49 pm
Country: -

Re: Audio (voice)

Post by C.João »

for "landing gear down" we could have a setting like this: play once, repeat (something) and loop
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

you will want the loop (configurable is possible) on a switch. or it will drive you nuts :)
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

A couple of pictures:
AudioMain.jpg
AudioStripBoard.jpg
Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

mike, how did you connect the module to the board? I'm asking because on the component layout picture there's only one row of pins.. but the module seems to have 2?
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
C.João
Posts: 147
Joined: Thu Jan 12, 2012 7:49 pm
Country: -

Re: Audio (voice)

Post by C.João »

Very nice! not that big. how about the volume into a pair of headphones?
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

Looks cool by the way.. ;)
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW
User avatar
MikeB
9x Developer
Posts: 17993
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

You only need the end row of pins from the module to connect to the stripboard, all the required signals are on this row, makes it easy to connect.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

Post Reply

Return to “er9x”