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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

yeah, The prob is that I still don't the module and I can only guess by looking at your pics..
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 »

Is the sound still not very loud?? that means in case you did some testing of course.. oh, another question.. Is there another audio output that I could connect to an amplifier (the manual is a bit confusing), or can I use the speakr output for 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
C.João
Posts: 147
Joined: Thu Jan 12, 2012 7:49 pm
Country: -

Re: Audio (voice)

Post by C.João »

both the module and the "internal" IC have a pin to drive an external amp. I'm not looking at the manual right now but I saw that before.

the speaker output must be filtered to use on an external amp. (hence the sound output) this point is common to an external 'filter'
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

I was just thinkin', very rare that happening by the way.. ;)

I think certain audio files like numbers and units will have to be assingned a fixed number/file name and can't be moved and can't be selected by the user. these are the files that the tx will use to give voltages, altitudes and other relevant information. then we could have other files that could be chosen by the user to give voice to the mixes or switches or inactivity alarm, welcome message and so on. it doesn't really matter the order they are as long as we keep a record of the number and what it says of course..
obviously this is just an idea.. it will all depend on how much more flash we can use.. ;)
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
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 »

I have some text to speech software to make the files... Let me know what you want made :)


---
I am here: http://tapatalk.com/map.php?h5yiwv
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
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

I have it too.. ;)
Just waiting for Mike to finish his testing so we can see what could be possible.. my post before was just an idea, me thinking loud..
Last edited by jhsa on Tue Jun 05, 2012 11:15 am, edited 1 time in total.
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Yes, the flash is tight, I need to find tinme to slim then code again. There are some possibilities around, Bertrand has passed a few along.
I really don't know how much we can get in. Given users could put their own voice files on the SD card, much can be 'hard coded' in er9x. As long as you know the file 0045.AD4 will be played when the transmitter has been idle for your set time, you get whatever voice message you want.
There is a slight problem of timing, this sort of alarm is repeated, we will need to make sure there is a long enough time between repeats to allow the message to be heard properly. I would think the inactive alarm could be every 5 seconds, I think it is 2 at the moment. Indeed, many alarms may be at 5 second intervals.

I'm working on codes for voice, first set of suggestions:

Code: Select all

Code,,sound
0,,zero
1,,one
2,,two
3,,three
4,,four
5,,five
6,,six
7,,seven
8,,eight
9,,nine
10,,ten
11,,eleven
12,,twelve
13,,thirteen
14,,fourteen
15,,fifteen
16,,sixteen
17,,seventeen
18,,eighteen
19,,nineteen
20,,twenty
30,,thirty
40,,forty
50,,fifty
60,,sixty
70,,seventy
80,,eighty
90,,ninety
100,,hundred
21,,warning
22,,error
23,,alert
24,,feet
25,,metres
26,,turn me off
27,,hello
28,,er9x/ersky9x/open9x
29,,limit
31,,battery
32,,voltage
33,,current
34,,height
35,,point
36,,volts
37,,amps
38,,minutes
39,,seconds
41,,30 seconds
42,,20 seconds
43,,10 seconds
44,,percent
45,,inactive
46,,battery low
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 for example number 41, 42, 43, which are the timer seconds I guess, we can save some files.. just use the numbers above and the word seconds.. also we should organize the files, maybe the numbers on top of the list, then the units (seconds, amps, meters, etc), and then the files that we could choose freely for mixes and switches. a switch for me could be flaps and for others could be gear for example, so some files must be freely assigned. these could be at any position at the end leave the last numbers available for those.. Maybe if that saves flash we could make the inactivity alarm and/or welcome message not possible to choose.. we can record anything we want but the file would have to have a fixed number..

Also we should leave some empty numbers in between the fixes ones and the others.. we might add some more in case we forget some..
Last edited by jhsa on Tue Jun 05, 2012 11:52 am, edited 1 time in total.
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
cre8tiveleo
Posts: 1434
Joined: Tue Dec 27, 2011 6:13 pm
Country: -
Location: Ontario,(GTA North)
Contact:

Re: Audio (voice)

Post by cre8tiveleo »

nice work , the sound assignments, you wouldn't need 41,42,43. just do 30,39 for thirty seconds... :)

34 should be altitude maybe? 46 could just be low, since you already have battery... this way you could also do warning, low , altitude. 21,46,34

:)

hmmm... that's what I said.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

also, is it possible to give a control to the module to play a file only once or to loop 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
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

I thought I'd use "30", then "seconds" myself, but the code in er9x will be smaller if we can use a single code for a specific voice message. Particularly, as we need to 'turn off' the normal beeps of the countdown when the voice is active. Not cast in stone yet though, but as we have 240 messages to work with, I think we can use a few up to keep the code smaller.

I think the module will only play a sound once.

I'm preparing a set of instructions for doing this mod.

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 »

Thanks Mike.. if it helps I will make a list as well with how I think the files could be organised.. just need my son to go to sleep before.. :(
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
bertrand35
9x Developer
Posts: 2764
Joined: Fri Dec 30, 2011 11:11 pm
Country: -

Re: Audio (voice)

Post by bertrand35 »

MikeB wrote:I thought I'd use "30", then "seconds" myself, but the code in er9x will be smaller if we can use a single code for a specific voice message. Particularly, as we need to 'turn off' the normal beeps of the countdown when the voice is active. Not cast in stone yet though, but as we have 240 messages to work with, I think we can use a few up to keep the code smaller.

I think the module will only play a sound once.

I'm preparing a set of instructions for doing this mod.

Mike.
Mike, I have already prepared some files for playing numbers and numbers with an unit for telemetry in open9x, I will send you a link as soon as commited. It will be in the next open9x release (of course at the moment only for open9x / gruvin9x board + SOMO-14D module).

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

Re: Audio (voice)

Post by jhsa »

Ok, I did a list and it's far from being perfect. I'm sure there is stuff missing and some other stuff can't be used for some reason. but here it is.. Please have a look and update it if you have ideas.. when I was doing the list sometimes forgot some things that should be more up in the list.. It's not very organized at the moment.. anyway it's just an idea.. ;)
Also I left some free file numbers after the alarms section and before the free assignable ones in case I forgot some..

João
Attachments
Sound List.doc
(17 KiB) Downloaded 396 times
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Useful list. When I did mine, you will notice the codes are out of order. This was deliberate. I wanted the code for thirty to be 30 etc.
This way, if we need to say 35, we can send the codes for 30 and 5, which may be obtained directly from the number 35, without looking anything up, nice and easy to do.
We will obviously need to make a complete list, but some things may just not be possible to include due to flash space. Like everything else, this is going to evolve.

Sorted a few minor problems like the sound module needs a second to initialise after power up, can't say anything until then.

Anyway, I now have my modified 9x (standard version, not FrSky), saying ER9X when I switch it on, and the timer countdown says 30 seconds etc. Thats all at the moment, but it seems all the low level stuff is working. I'll probably update this radio to FrSky standard, didn't want to mod the radio I fly with until all was proved working.

The volume actually doesn't seem too quiet now.

Definitely had some problems with the conversion from WAV to AD4, words like "two" came out like "two t". Fixed this by editing the WAV to have a solid SILENCE before and after the sound, then I can see this in the AD4 file and delete the extra at the end that is not needed.

Rest: What did you use to generate your AD4 files?

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

I'm using the first post in this thread as a place holder for released information and test versions of er9x etc.
So far I've put in a pdf of how to do the hardware mod, even that is in progress, but it keeps all the info together.

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 »

that's already an improvement.. I'm here chewing my nails cos my module didn't arrive yet.. gggrrr :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
kaos
Posts: 3247
Joined: Wed Dec 28, 2011 1:15 am
Country: United States

Re: Audio (voice)

Post by kaos »

jhsa wrote:Ok, I did a list and it's far from being perfect. I'm sure there is stuff missing and some other stuff can't be used for some reason. but here it is.. Please have a look and update it if you have ideas.. when I was doing the list sometimes forgot some things that should be more up in the list.. It's not very organized at the moment.. anyway it's just an idea.. ;)
Also I left some free file numbers after the alarms section and before the free assignable ones in case I forgot some..

João
I see you have mile/h and ft but don't have miles and yards only meter and kilometer.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Audio (voice)

Post by jhsa »

In that case we won more space on the SD Card :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 »

MikeB wrote:
Rest: What did you use to generate your AD4 files?
I used a recorder program and recorded all the numbers via microfon and soundcard as one single .wav file in stereo with 44100 samples/sec.

Then converted the whole file to mono and cut it into all the single sound files (still .wav). I partially increased the volume and cut leading and trailing part to get best sound I could.

I installed the '4D-Somo-Tools.exe' (there was a link to it as well as to the manual) and converted the files to AD4.
Independent of the input file format, you will get mono at 32000 sample/sec, if your wav-file has higher solution.

btw. how do you edit AD4 files? (I'm on win XP).


Reinhard
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Much the same As I'm doing then. I use a free download program called Audacity for the recording and WAV file amplifying and editing. I thought I downloaded the same tools program, but it is called USB recorder!

For all my editing I use a program called multioedit. Ir will edit binary files, just shows the bytes in HEX.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

To those that are asking for something like "Gear Down". This seems like a whole new facility to me. At present we have alarms, based on conditions. These repeat at certain intervals, as long as the alarm is active. "Gear up" or "Gear down" would need to be triggered by a switch changing state, and only sounded once. Something to configure, and find EEPROM storage for as well.

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 »

it would be a nice feature though.. ;)
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

I have: Switch on message, timer countdown - last 30 seconds, inactivity alarm, battery low, and user configurable voice alarms on safety/alarm switch screen. These last allow you to select any of the 240 voice sounds to be played.

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 »

so, we would just need to select any of the 240 voice for the mixes :mrgreen:
but I guess that would be asking a little too much from this chip??.. ;)
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Is this the mix warning you are referring to? So you want to choose any of the 240 possible sounds when a particular mix is active?

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 »

Yeah, active or inactive.. that was the idea
for example.. I think that would allow the alarms type gear down or flaps up or whatever you would like..
Mike, I think I didn't understand well but did you allow voice on the custom switches or it's at the moment just triggered with alarms like the normal beeper?
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: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Mixer warnings keep repeating as long as a mix is active, so even if we say "Gear Up" on a mix, it will keep saying it every few seconds as long as the gear is up!.

You may have missed a recent couple of features added to er9x.
In the custom switch screen, you can select the timers and some telemetry values as inputs to custom switches. So you can, for example, select altitude and, using v>ofs, turn a custom switch on if the altitude is greater than 400 feet (or 500 or 600 come to that).
In the Safety switch screen, there is now a letter at the left of each row, the default is 'S' for Safety. This allows the switch to work as a safety switch as before. If you change the 'S' to 'A', the switch now operates as an alarm. You choose the switch, may be one of the custom switches, and one of the alarm sounds (siren, robot, etc). If the switch is ON, the selected sound is played every few seconds.
I have now added another option 'V' which does the same as 'A', except it plays the selected voice file every few seconds as long as the switch is ON. It is a bit tricky to detect the switch has just turned ON and only play the sound once. Then we might want one sound when it turns on, and another when it turns off, that would need two of the safety/alarm switches to achieve easily, as well as a configurable option to select.
All needs thinking about, as we also need some continuous voice output such as altitude, or flight battery voltage, or flight battery capacity used.

Mike.
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!
ReSt
Posts: 1581
Joined: Tue Dec 27, 2011 11:34 pm
Country: -

Re: Audio (voice)

Post by ReSt »

MikeB wrote: I thought I downloaded the same tools program, but it is called USB recorder!
Mike.
That is that same program that is installed from ...SOMO.exe

How do you know from the Hex display af AD4 files, what you may cut off ?
Do you simply, try and error, cut off a piece of the file?

I thought you possibly had a program that, similar to audacity with wav files, could handle the AD4 files ?

Reinhard
User avatar
MikeB
9x Developer
Posts: 17990
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Audio (voice)

Post by MikeB »

Using Audacity, I force the end of the WAV file to SILENCE. After conversion to AD4, this shows up as a repeated byte sequence. The actual bytes vary, but it stands out clearly as one or two bytes repeating many times.

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

Post Reply

Return to “er9x”