OpenTX voice file generator

openTx has introduced a range of new features, ideas and bling. It is fast becoming the firmware of choice for many users. openTx will run on ALL current hardware platforms, including the gruvin9x and sky9x boards. Work has already started to support the new FrSky X9D radio!
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

OpenTX voice file generator

Post by dvogonen »

I was a bit bored today so I made an editor/generator for the voice files in the Taranis.

It is a 0-installation file, just drop it anywhere and run it. It is able to produce all the standard strings in the directory format that is used on Taranis. It is also possible to change any of the spoken sentences and add your own custom sentences.
It is possible to adjust the rate of speech.

Some limitations:
This is a beta. There may well be some bugs.
The application relies heavily on the .NET 4 synthesizer. So no Linux/Mac for this one.
The application only deals with the English set of voice strings.
The application uses the default SAPI voice. If you have anything else than the default English voice set up, you can expect amusing, but hardly usable output.

https://dl.dropboxusercontent.com/u/176 ... Xspeak.exe

This is not a permanent link. It will be open for a couple of days until I have decided if it is worth while to make something more permanent of the editor or if I just scrap it.

rdeanchurch
Posts: 750
Joined: Tue Dec 27, 2011 11:22 pm
Country: United States
Location: Carson City, Nv

Re: OpenTX voice file generator

Post by rdeanchurch »

I tried it briefly and it seemed to work fine on my Vista 32 bit sys.
Dean
OldDmbThms: 1. Takeoff, 2. Crash, 3. Repair, GOTO 1
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: OpenTX voice file generator

Post by Helle »

Hy,

is this the same sound generator with 5 or 6 languages?

http://212.59.78.77/taranis-sounds-beta1/index.php

Helle
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

No, my editor/voice generator uses whatever voice you have installed as default on your computer. In practice this usually means the pretty good default voice "Anna".
I am thinking on adding support for selecting any of the TTS languages that are installed and all default stings for all supported languages.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: OpenTX voice file generator

Post by dvogonen »

A new version is up that supports switching between all installed TTS voices.
It also supports switching between two lsnguages, but the strings are the same in both. Adding all the language strings is a lot of mechanical work. That will come eventually.

Skickat från min SM-N9005 via Tapatalk

User avatar
davidmc36
Posts: 20
Joined: Wed Jan 22, 2014 6:06 am
Country: -
Location: Morewood Ontario

Re: OpenTX voice file generator

Post by davidmc36 »

Just trying this out. Seems to make some pretty nice files. I suppose it is not a function of your program rather something that is native to MS and Anna but the only weird thing that I don't like is sometimes she puts the wrong emphasis on certain words that are strung together. Like landing FLAPS? It sort of sounds like a question from her. I am very grateful that there are more knowledgeable people out there than I who are willing to spend time make these sorts of programs. The speed control is genius.
No Bounce, No Play.
The one who dies with the most toys wins!
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

Yes, you are right. It is the speech machinery that determines emphasis . Some things can be corrected by changing the spelling and punctuation (like G-P-S rather than gps), but Anna is very stubborn.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: OpenTX voice file generator

Post by jhsa »

Aren't they all? :mrgreen:

Sent from my GT-I9195 using Tapatalk
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
totof1965
Posts: 34
Joined: Thu Jul 11, 2013 4:23 pm
Country: -

Re: OpenTX voice file generator

Post by totof1965 »

This is totaly wonderfull

Thanks a lot for your work
French FrSKY taranis forum
http://www.frskytaranis.fr
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: OpenTX voice file generator

Post by dvogonen »

A new version is now up. It has full support for English, Swedish and Italian with all strings.
I have added place holders for the non-spoken sounds (Horn, shutter click). The sounds are kind of produced, even if a synthetic voice makes for a bad horn.
I also fixed a problem with the earlier versions that gave the system sound files the names 1.wav, 2.wav rather than 0001.wav, 0002.wav.
French is up next.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: OpenTX voice file generator

Post by dvogonen »

Full German and French support added.
User avatar
nicholgd
Posts: 70
Joined: Tue Sep 03, 2013 4:29 pm
Country: -
Location: Herefordshire

Re: OpenTX voice file generator

Post by nicholgd »

Web site is unavailable?
Geoff N
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: OpenTX voice file generator

Post by dvogonen »

No, I don´t think so. The file is hosted via DropBox, which is very stable.
I just added support for Czech and tested a download. That worked fine.
User avatar
nicholgd
Posts: 70
Joined: Tue Sep 03, 2013 4:29 pm
Country: -
Location: Herefordshire

Re: OpenTX voice file generator

Post by nicholgd »

Sorry my bad. I was using a tablet.
Geoff N
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: OpenTX voice file generator

Post by dvogonen »

Version 1.0 is up.
All Taranis voice languages are supported. Instructions about installing TTS voices have been added.

Skickat från min SM-N9005 via Tapatalk
User avatar
ckleanth
Posts: 81
Joined: Sun Dec 23, 2012 11:19 pm
Country: United Kingdom
Contact:

Re: OpenTX voice file generator

Post by ckleanth »

cool
If it has wings it will fly...
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

OpenTX voice file generator

Post by Koarl »

Too bad it's not for mac...
I would like my Tx to talk like Darth Vader.
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: OpenTX voice file generator

Post by Kilrah »

I doubt you'll find a Darth Vader SAPI voice, so you'll have to make that one on your own anyway ;)
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: OpenTX voice file generator

Post by G550Ted »

How does one export a file from this program?

Ted
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: OpenTX voice file generator

Post by Kilrah »

Same question, I just tried it and had to edit a few things on the included French template. Closing the program and reopening it, all changes are lost. We should probably be able to save and load a sentence list.

Haven't been able to get decent French files even after loading and selecting supposedly French voices, but that's another problem. The tone changes so the other voice is used, but it still says things with an unuseable English accent.
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: OpenTX voice file generator

Post by G550Ted »

Or just a single sentence file.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

G550Ted wrote:How does one export a file from this program?

Ted
Just generate the sound files for the language you are interested in.
Two text files with the strings used to generate the sound files are written to the same folder as the strings. The same files are read the next time the program is started and the language is loaded. This way you will be able to pick up where you left off.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

Kilrah wrote: Haven't been able to get decent French files even after loading and selecting supposedly French voices, but that's another problem. The tone changes so the other voice is used, but it still says things with an unuseable English accent.
In Windows 7 Microsoft supplied a free high quality voice (Anna). But only in English. They published high quality versions of Anna in more than 20 languages that were supposedly going to be available for download and use if you had a correct Windows 7 language version. It sure does not work any longer for my genuine Win7 pro Swedish version. That sucks.
In Windows 8 Anna is gone and replaced with other voices, which are locked down and can not be used through the Speech API. The reason is to force us to pay for commercial alternatives. These are also locked and DRM ptotected and can generally only be used by specialized software. So even if you buy them you are not allowed to use them. That sucks even more. As a result it is harder to get decent speech out of a Windows computer today than it was with my mac in the mid 80ies. This is just sad.
The only half decent free alternative I have found is eSpeak. But I guess that this is the one you have tried and found unusable. It is pretty good in Swedish but worse in other languages.

Skickat från min SM-N9005 via Tapatalk
G550Ted
Posts: 389
Joined: Tue Dec 27, 2011 6:15 pm
Country: -
Location: Savannah, GA, USA

Re: OpenTX voice file generator

Post by G550Ted »

I guess I don't understand. I have no need of all of the files in the program. I am also not able to delete or otherwise normally manipulate any of the existing files. All I want to do is to create an occasional file or two to export to my Taranis sound folder. Can I do this with this program?

Ted
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

If someone has any ideas about how to find and install good SAPI5 voices, this is a good place to do so :-) As far as I understand there have been open versions of Anna for all major languages available at some point in time. Perhaps someone knows how to get hold of them.
Koarl
Posts: 203
Joined: Sun Jul 01, 2012 5:08 pm
Country: -

Re: OpenTX voice file generator

Post by Koarl »

I'm afraid you are right. Haven't found something useable.

Are there any plans to make it mac compatible?
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Sv: OpenTX voice file generator

Post by Kilrah »

dvogonen wrote:The only half decent free alternative I have found is eSpeak. But I guess that this is the one you have tried and found unusable.
I haven't actually tried the eSpeak program, but (based on some info I found in a French forum) installed it, and the voices it installs then show up in your program's dropdown list. But even after selecting the french one it plays with English accent and says numbers in English.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

That is very strange. I used the eSpeak installer from eSpeaks home page and installed a number of voices, including french. Selecting the voice called eSpeak-fr results in robotic, but clearly French pronunciation. And the numbers are spoken in French.

Skickat från min SM-N9005 via Tapatalk
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: Sv: OpenTX voice file generator

Post by dvogonen »

I think I just found the problem.
I had forgotten to select the synthetic voice before writing files to disk. This meant that the default voice (English) or whatever other voice that had been used previously was used.

I have also added volume controls for the synthetic voice.
User avatar
dvogonen
Posts: 453
Joined: Tue Jan 31, 2012 9:38 pm
Country: Sweden
Location: Stockholm

Re: OpenTX voice file generator

Post by dvogonen »

The support for synthetic speech for other languages than English has turned out to be almost non-existent.
To still make it possible to generate a sound library I have made a specialized recording application for the sound files that go in the Taranis. It is called OpenTX Recorder. It is nothing else than an automated voice recorder. The advantage is that the program has text prompts for what is to be spoken and then automatically stores the voice files at the right place and in the right name. Judging by my own experience, it is possible to produce voice files at least ten times faster using OpenTX Recorder than with e.g. Audacity.

Version 0.1 can be downloaded from OpenTX home page (http://www.open-tx.org/). But just as the v0.1 implies, it is a very early version and it is guaranteed to be unstable under pressure.

Post Reply

Return to “openTx”