Fun, Learning, Friendship and Mutual Respect START  HERE


Unregistered
Go Back   HeliFreak > R/C Electronics Support > Jeti Duplex Radio Systems


Jeti Duplex Radio Systems Jeti Duplex Radio Systems Support


Like Tree2Likes
  • 1 Post By gtak
  • 1 Post By myxiplx
Reply
 
LinkBack Thread Tools Display Modes
Old 03-29-2021, 01:58 AM   #1 (permalink)
Registered Users
 

Join Date: Apr 2015
Location: Oslo, Norway
Default MacOS: Autogenerate all Jeti TTS voice alert files; both stock and custom alerts

So I wanted to add a bunch of custom voice callouts for my DS-12, but I was getting annoyed at the fact that my custom sounds didn't match the stock factory voice (which supposedly is Ivona, but I can't seem to find this voice pack available anywhere today).

So the only solution I saw was to replace ALL the stock sounds together with my custom sounds. This had the potential of being a large ball ache, but ended up being very easy for us MacOS users.

Here's a batch script that can be run from the terminal to create all the voices:

Code:
#!/bin/bash

mkdir -p Audio/en
mkdir -p Voice/en

cd Audio/en

file=../../sounds_audio.txt

while read filename speech
do
    say -v ava -r 200 [[pbas 170]]$speech -o $filename --file-format=WAVE [email protected]
    echo -e $speech

done < $file

cd ../..

cd Voice/en

file=../../sounds_voice.txt

while read filename speech
do
    say -v ava -r 200 [[pbas 170]]$speech -o $filename --file-format=WAVE [email protected]
    echo -e $speech

done < $file
This script takes the contents of two text files (sounds_audio.txt and sounds_voice.txt) and generates Jeti compatiable .wav files.

The text files are of the format:

Code:
...
Ah.wav amp hour
Ahs.wav amp hours
AlarmD.wav Device alarm
AltiMeas.wav Altetude measured
Altitude.wav Altetude
Amp.wav Amp
Amps.wav Amps
Angle.wav Angle
...

The first entry in each line is the filename of the .wav file (which matches the stock file names), and the subsequent words on each line is the text to be spoken. Note, for example, the spelling of "altitude" - I've altered the spelling of some words to improve the pronunciation.

The script places the generated voice files in the folders /Audio/en and /Voice/en. So you've then just got to copy said folders to your Jeti Tx.

This uses the built in voice synthesizer engine of MacOS - it is a very high quality engine and the voice/audio quality is great.

My script is setup to use the "Ava" voice (-v ava), but this can be changed depending on what voices you have installed (see System Preferences > Accessibility > Spoken Content).

See the help page for the "say" command: https://ss64.com/osx/say.html

The voice can be customized. I've changed the default speed (-r 200) and pitch ([[pbas 170]]), but you can also change the pronunciation and inflection if so desired. See this page for info: https://developer.apple.com/library/...ineTuning.html

Download the attached txt files and place them in a new folder. Navigate to the folder in a terminal window, and run the script by typing "bash script.txt". The script will create the Audio and Voice folders.

The .wav files in sounds_audio.txt which begin with 00 are my custom voices that I've added. Just add your own lines of text and generate any custom voice alerts of your choosing.
Attached Files
File Type: txt script.txt (456 Bytes, 9 views)
File Type: txt sounds_audio.txt (2.3 KB, 8 views)
File Type: txt sounds_voice.txt (3.6 KB, 7 views)
nickthenorse is offline        Reply With Quote Quick reply to this message
Sponsored Links
Advertisement
 
Old 03-29-2021, 06:21 AM   #2 (permalink)
Registered Users
 
Posts: 12,405
 

Join Date: Feb 2012
Location: Northern, VA
Default

I went to one of the Jeti sites and created all of my custom voice alerts and it's the same voice as all the other voice alerts built in.
__________________
-Ben
Oxy 2/3/4/5; XL 550/700; Protos 380/700 EVO; RAW; Jeti DS12 Carbon

EGODRIFT Team, Lynx/Oxy Field Rep
jrman83 is online now        Reply With Quote Quick reply to this message
Old 03-29-2021, 06:30 AM   #3 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by jrman83 View Post
I went to one of the Jeti sites and created all of my custom voice alerts and it's the same voice as all the other voice alerts built in.

I assume you mean https://www.rc-thoughts.com/tts/


While an excellent (free!) resource, it is not the same voice as stock.
nickthenorse is offline        Reply With Quote Quick reply to this message
Old 03-29-2021, 08:03 AM   #4 (permalink)
Registered Users
 
Posts: 12,405
 

Join Date: Feb 2012
Location: Northern, VA
Default

Yeah, I guess you're right although very close. For me, this is too much work for such a little difference. I don't use ANY of the files that the heli came with. None work for me anyway. I only use, TH active, IU1, IU2, IU3, Oh Shit (rescue) and that's it.
__________________
-Ben
Oxy 2/3/4/5; XL 550/700; Protos 380/700 EVO; RAW; Jeti DS12 Carbon

EGODRIFT Team, Lynx/Oxy Field Rep
jrman83 is online now        Reply With Quote Quick reply to this message
Old 03-29-2021, 08:17 AM   #5 (permalink)
Registered Users
 

Join Date: Aug 2015
Location: Kingston, Canada
Default

Thanks for the post, Nick!
nickthenorse likes this.
gtak is offline        Reply With Quote Quick reply to this message
Old 03-29-2021, 09:01 AM   #6 (permalink)
Registered Users
 

Join Date: Apr 2013
Default

Very nice, when I get around to tidying up my audio files I'll be stealing this and adapting it for Windows :-)

Sent from my SM-G970F using Tapatalk
nickthenorse likes this.
myxiplx is online now        Reply With Quote Quick reply to this message
Old 03-29-2021, 12:57 PM   #7 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by jrman83 View Post
Yeah, I guess you're right although very close. For me, this is too much work for such a little difference. I don't use ANY of the files that the heli came with. None work for me anyway. I only use, TH active, IU1, IU2, IU3, Oh Shit (rescue) and that's it.

You donít use any of the telemetry readouts? Timer countdown?
nickthenorse is offline        Reply With Quote Quick reply to this message
Old 03-29-2021, 05:17 PM   #8 (permalink)
Registered Users
 
Posts: 12,405
 

Join Date: Feb 2012
Location: Northern, VA
Default

Quote:
Originally Posted by nickthenorse View Post
You don’t use any of the telemetry readouts? Timer countdown?
If I have telemetry, why would I need a timer countdown? I land when a certain mah consumption has been reached. Every system I fly except my Oxy 2, and will put in a YGE 35LVT one day to fix that, I get mah consumption. I even made my own alarm for that that says "battery limit reached".
__________________
-Ben
Oxy 2/3/4/5; XL 550/700; Protos 380/700 EVO; RAW; Jeti DS12 Carbon

EGODRIFT Team, Lynx/Oxy Field Rep
jrman83 is online now        Reply With Quote Quick reply to this message
Old 03-29-2021, 06:52 PM   #9 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by jrman83 View Post
If I have telemetry, why would I need a timer countdown? I land when a certain mah consumption has been reached. Every system I fly except my Oxy 2, and will put in a YGE 35LVT one day to fix that, I get mah consumption. I even made my own alarm for that that says "battery limit reached".

Just surprised you donít use any of the ca. 400(?) built in voice call outs.

Whatever works for you dude!
nickthenorse is offline        Reply With Quote Quick reply to this message
Old 03-30-2021, 05:00 PM   #10 (permalink)
Registered Users
 
Posts: 12,405
 

Join Date: Feb 2012
Location: Northern, VA
Default

Quote:
Originally Posted by nickthenorse View Post
Just surprised you donít use any of the ca. 400(?) built in voice call outs.

Whatever works for you dude!
Curious what all you're using? You can see that most were made for planes. Like they only had an idle1 and idle 2, but no idle3. Not even a throttle hold. If I flew planes I could see quite a few maybe. Maybe I need to download more or something?
__________________
-Ben
Oxy 2/3/4/5; XL 550/700; Protos 380/700 EVO; RAW; Jeti DS12 Carbon

EGODRIFT Team, Lynx/Oxy Field Rep
jrman83 is online now        Reply With Quote Quick reply to this message
Old 03-31-2021, 09:04 AM   #11 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by jrman83 View Post
Curious what all you're using? You can see that most were made for planes. Like they only had an idle1 and idle 2, but no idle3. Not even a throttle hold. If I flew planes I could see quite a few maybe. Maybe I need to download more or something?

Youíre right, they are missing quite a few ęnormalĽ heli announcements.

Otherwise I have voltage and capacity call outs (use the gyro and have the lipo capacity read out loud when I tilt the radio), as well as flight timer for the smaller helis that dont have a current sensor installed.
nickthenorse is offline        Reply With Quote Quick reply to this message
Old 03-31-2021, 12:02 PM   #12 (permalink)
Registered Users
 
Posts: 12,405
 

Join Date: Feb 2012
Location: Northern, VA
Default

I forgot that I use the countdown on my Oxy 2 which doesn't have an mah sensor. Really though, do you have 400 available items to choose from or was that just an exaggeration? I think I might have 100 and that includes the ones I made. I use vibration for some things also.
__________________
-Ben
Oxy 2/3/4/5; XL 550/700; Protos 380/700 EVO; RAW; Jeti DS12 Carbon

EGODRIFT Team, Lynx/Oxy Field Rep
jrman83 is online now        Reply With Quote Quick reply to this message
Old 04-01-2021, 06:32 AM   #13 (permalink)
Registered Users
 
Posts: 5,955
 

Join Date: May 2009
Default

I applaud you creativity and wished I knew how to program better.

I find it funny that I am totally the reverse in so far as voice are concerned, I like the diversity and actually do it on purpose for diversity sake but also to pay better attention to warnings as opposed to more trivial voice announcement like model name or flight modes.
__________________
TDSF, TDR-II, Triabolo, 2 X TDR, Logo 700,Protos evoluzione, T-Rex 700Dominator, Goblin700, SpiritRS, Jeti DC-24,HW,Kosmik,Jive Pro
EF MXS 3W110, Ultimate Aeroworks 20-300, DA 170, PowerBox Mercury, Q80-8M in a 91" EF Extra and MXS 104+ few jets
Puttputt maru is offline        Reply With Quote Quick reply to this message
Old 04-01-2021, 01:23 PM   #14 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by jrman83 View Post
I forgot that I use the countdown on my Oxy 2 which doesn't have an mah sensor. Really though, do you have 400 available items to choose from or was that just an exaggeration? I think I might have 100 and that includes the ones I made. I use vibration for some things also.

400 was too high a number.


There are however 300 voice callouts, these include all possible numbers ("one," "hundred," "thousand" etc) and all the different stock telemetry sensor units ("meters per second," "milliliters" etc).
nickthenorse is offline        Reply With Quote Quick reply to this message
Old 04-01-2021, 01:24 PM   #15 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by Puttputt maru View Post
I applaud you creativity and wished I knew how to program better.

I find it funny that I am totally the reverse in so far as voice are concerned, I like the diversity and actually do it on purpose for diversity sake but also to pay better attention to warnings as opposed to more trivial voice announcement like model name or flight modes.

This is a fair comment - I sometimes notice I "shut out" and ignore certain voice call outs when I'm super concentrated on the heli in flight.
nickthenorse is offline        Reply With Quote Quick reply to this message
Old 04-02-2021, 12:44 PM   #16 (permalink)
Registered Users
 
Posts: 12,405
 

Join Date: Feb 2012
Location: Northern, VA
Default

Quote:
Originally Posted by nickthenorse View Post
400 was too high a number.


There are however 300 voice callouts, these include all possible numbers ("one," "hundred," "thousand" etc) and all the different stock telemetry sensor units ("meters per second," "milliliters" etc).
Sounds like I am missing quite a bit, or I should say I'm not missing anything since I don't appear to use many of the stock sounds.
__________________
-Ben
Oxy 2/3/4/5; XL 550/700; Protos 380/700 EVO; RAW; Jeti DS12 Carbon

EGODRIFT Team, Lynx/Oxy Field Rep
jrman83 is online now        Reply With Quote Quick reply to this message
Old 04-03-2021, 03:34 AM   #17 (permalink)
Registered Users
Thread Starter Thread Starter
 

Join Date: Apr 2015
Location: Oslo, Norway
Default

Quote:
Originally Posted by jrman83 View Post
Sounds like I am missing quite a bit, or I should say I'm not missing anything since I don't appear to use many of the stock sounds.

Hehe yes
nickthenorse is offline        Reply With Quote Quick reply to this message
Reply




Quick Reply
Message:
Options

Register Now

In order to be able to post messages on the HeliFreak forums, you must first register.
Please enter your desired user name, your REAL and WORKING email address and other required details in the form below.
User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.
Password:
Confirm Password:
Email Address
Please enter a valid email address for yourself. Use a real email address or you will not be granted access to the site. Thank you.
Email Address:
Location
Where do you live? ie: Country, State, City or General Geographic Location please.
Name and Lastname
Enter name and last name here. (This information is not shown to the general public. Optional)
Helicopter #1
Enter Helicopter #1 type and equipment.
Helicopter #2
Enter Helicopter #2 type and equipment.
Helicopter #3
Enter Helicopter #3 type and equipment.
Helicopter #4
Enter Helicopter #4 type and equipment.

Log-in


Thread Tools
Display Modes

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Copyright © Website Acquisitions Inc. All rights reserved.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2021 DragonByte Technologies Ltd.

SEO by vBSEO 3.6.1