A tool to generate voice files using various TTS providers

erskyTx runs on many radios and upgrade boards
ersky9x was a port of er9x for use on the sky9x board.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

Thanks, will test now and report ;) :)
This is getting really good :)

João
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: A tool to generate voice files using Google Translate

Post by jhsa »

hi, now it is not possible to delete the lines.. Before I just hit delete and I could delete them. I also could select them all (or just a few) and hit delete to get rid of them. Now it is not possible..
Also, with hitting enter to move to the next line folder cell. Currently it is jumping and entering edit. Is it possible to just highlight the next folder cell without editing? If the cell is highlighted we just have to start writing and it will enter edit mode anyway. The way it is now is giving me problems and creates sometimes 2 empty lines at the end. Then when clicking "go" it gives an error. Try it.

Thanks

João

EDIT: funny, if I start to create a +ack from scratch, hitting enter doesn't make it jump to the next folder and enter edit, it just creates a new empty line and highlights its Phrase to speak field, just like the former version. But if I edit an existing line it will jump to editing the cell below, and sometimes creates 2 empty lines at the end. I think that is not desirable, right? And I also think that creates the error I'm seeing.
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

I'll have to see if I can re-instate the line deleting functionality.

In the mean time, I have modified the tool so that it starts with an empty file with 500 blank lines (like Excel would)

The enter key now does to the next line but doesn't start editing.
TTSTranslate 1.3.3.0.zip
(487.72 KiB) Downloaded 247 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

hi, Please create a few files, Press go to download the audio files, click on one of the play buttons to listen to the file. Now press enter.. The utility will crash.


João
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

I think I know what could be causing that. I'll have a look at it shortly.

Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

OK, resolved the issue where hitting enter after clicking play caused a crash.

Also, re-instated row deleting. You can still select individual cells, but now if you click the row header (again, like Excel) the full row will be selected and 'Delete' will remove the row.

You can also select multiple rows and delete them.
TTSTranslate 1.3.4.0.zip
(488.29 KiB) Downloaded 230 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

It seems to be working now.. Delete also works good, thanks..
Been thinking about the Enter key behavior. It is still not very user friendly. You see, I think people are not very used to the Tab key as windows now have buttons everywhere :)
Start writing a cell, we normally tend to hit enter when confirming a value in every progam. If you hit enter after writing in a cell, it will move to the folder cell on the next line. I think it would be more logical to move to the next cell, but without entering edit.
I know I asked for this behavior, but what I meant is only when the last cell (Phrase To Speak) is highlighted, it should move to the next line folder cell..

You know what? I think I know what would work the best.. Edit/create a cell, press ENTER, The same cell will be highlighted but not in edit mode. If you press enter again, it will enter edit mode. Use the keyboard arrows to move to any other cell you want. Easy, and simple? No keystrokes to remember? You can still use the Tab key if you know how to..
Can the cursor also move to the beginning of the next line when moving right from the last cell on the previous line?

Another thing, but not so important, could the play button be skipped when moving with arrow keys? Or if not could at least also play the file by hitting enter?

Like this you would reduce the number of navigational/confirmation keys to be used making it easier to work with.. What do you think?

Thanks, and I do apologise

João

EDIT: I see that more people are also downloading the tool. It would be nice some feedback :) ;)
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: A tool to generate voice files using Google Translate

Post by jhsa »

Also, if you are editing or creating a pack, and for some reason try to load a new "Phrase File" It will just load it without saving the previous?? I think it should ask if you want to save it before loading the other one??

João
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

OK, latest version has these changes:
  • When pressing the right cursor key, if you are in the Phrase To Speak column, the selection will jump to the next line, Folder column (Tab key is unaffected< it still cycles through every cell
  • If you click a Play button, that cell is then selected. Moving down will select the next play button below, moving right will jump to the next line, Folder column
  • Pressing the Enter key toggles edit mode for that cell, without moving to other cells. Note that you do not have to press Enter to start typing, but you do need to press Enter after typing (or Tab)
  • Pressing Enter when the focus is on a Play button does nothing.
  • Loading a phrase file will prompt to save the existing file if necessary (similar prompt to exiting without saving)
TTSTranslate 1.3.5.0.png
TTSTranslate 1.3.5.0.zip
(489.21 KiB) Downloaded 216 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

Thanks, will test as soon as I end this fight I'm having with a glider.. :)

Glider is winning at the moment by the way, but I feel that is about to change ;) ;mrgreen:
I have a big hammer in my workshop ;)

João
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: A tool to generate voice files using Google Translate

Post by jhsa »

If you are editing a cell an hit the right arrow key, the utility crashes :)
Pressing Enter when the focus is on a Play button does nothing.
Hmmm, could it be set to play the file, if any?? ;)

I do like the way the enter button works now.. You have a couple different ways of working with it, and depending on how you are used to work with your computer. it now allows you to quickly edit/create some voices, and it is also easy to do it.
Fantastic tool, thanks..

João
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
CpTChucky
Posts: 19
Joined: Wed Jul 20, 2016 3:38 pm
Country: -

Re: A tool to generate voice files using Google Translate

Post by CpTChucky »

Hope you don't mind me jumping into to this thread. Just read through the thread and downloaded the tool. So once we make the new voices we just add them to the voice folder on the sd card? Also if I want to add a little more like "Enjoy our flight" on the end of the welcome voice I assume for it to work I would have to call it WELCOME and replace it with the one that is already on my sd card.

Great tool and thanks.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

What firmware are you using? Ersky9x? If so, what version number? Yes you can edit the existing WELCOME file and replace it with your own.
But attention. The generated files by this utility seem to have a sample rate of 24Khz. You need to load them onto audacity (or another audio editor) and change it to 16Khz 16 bit.

João
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

I put the files on my sd card and they play on my radio without issue.

I'll change the tool to convert the files to the appropriate bit rate.

I'll also fix the crash on right cursor key!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

Thanks. They will work, but can cause other problems. You will for example be able to play music on your radio on next release I think.. It has a player.. ;) :)
Also make sure your SD card is formatted with a 32Kb cluster size. Don't use windows to format it. Get SD Card formater and use it.

João
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

Fixed the issue with pressing right whilst editing a cell.

Modified to generate 16 bit 16kHz WAV files.

Cleaned up the code a fair bit. I'm going to put it on GitHub soon, as Dropbox is now blocked at work, and transferring files with a USB stick is painful.
TTSTranslate 1.4.0.0.zip
(488.85 KiB) Downloaded 266 times
Last edited by Caffeine on Mon Aug 01, 2016 3:23 am, edited 1 time in total.
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

And it's on GitHub.

https://github.com/CaffeineAU/TTSTranslator

Pretty much everything is in the one file, and nothing is commented, so don't go looking in there for examples of how to code nicely ;)
CpTChucky
Posts: 19
Joined: Wed Jul 20, 2016 3:38 pm
Country: -

Re: A tool to generate voice files using Google Translate

Post by CpTChucky »

So the wav files don't need to be changed in Audacity like suggested above?
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

That should be correct.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

If they are now 16Khz 16bit they can be used right away.
I will still normalize the volume on mine.. last ones I checked, the volume could still go up a bit.. But that is very easy to do.. :)

Will test as soon as I wake completely up :) ;) :D

Thank you

João
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: A tool to generate voice files using Google Translate

Post by jhsa »

Problems fixed it seems.. What about a "New" file button?
I had some phrases loaded, saved them. Then tried clicked "Open Phrase File" and tried to hit enter without inputting a name or clicking on a file.. It's not allowed. Then tried to give a new name in the selection box, thinking that the utility would create a new file with this name.. It didn't, it said that the name wasn't found.
I know we can just delete all the lines, write something else and save it with another name. But it would be nice to have a new button? NOT critical though, just nice.

Thank you so much.

João
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: A tool to generate voice files using Google Translate

Post by jhsa »

Oh, just had a situation here that could be improved?? ;) :)

I'm making another pack for my radio.. I will try this Australian Voice. :)
The thing is, the folders are ordered, System, User, and then modelNames, and that is really nice and organized. But I would like another "user" line, and would like to create a line between the user folders and the modelNames. I don't think we can? Would that be possible sometime in the future? ;) :) Thanks

It is getting better and better.

João

EDIT: What about that idea of the next empty line have the same folder name as the previous one? :)
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

Like an insert row mechanism? I'll have to look in to that.

As for the next line having the same folder as the previous line; it's in the slightly too hard basket at the moment ;)

Stay tuned: Big update coming!
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

I am always tuned :mrgreen:

One annoying thing is the default country language being selected every time at startup.. I always end up building English packs with German accent, because I forget to change :mrgreen:

Could we select a language, and the utility would load it every time it starts, until we select another one, of course :)

João
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: A tool to generate voice files using Google Translate

Post by jhsa »

Caffeine wrote:Like an insert row mechanism? I'll have to look in to that.
Exactly, that is it..
When we click on the folder tab at the end, it reorders the lines but not as nicely as when the program starts, and I can never put it back as it was.. I have to restart the application.

Another point.. imagine you already built a pack. Closed the program. next time you load your Phrase list, all phrases are marked as not done (Play button is grey) and you can't play them, so for using your list again you have to generate the complete pack again :(
Would it be possible that when we load a list that was already built in the same output folder, the existing files could be played? If some files were missing, of course the play button would be grey and the file set to be generated again..

I think this would be a great improvement..

Thanks

João
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

That's a big change in the complexity of the system. I'll have a look in to it.

In the interim, have a go at this one:
TTSTranslate 1.5.0.0.zip
(490.19 KiB) Downloaded 193 times
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

Nice :)
But most of the microsoft voices don't work :(
Only Microsoft Anna works, but it doesn't play the last generated file. All the other files above play.
Error is:
"Couldn't download audio.
Cannot set voice. No matching voice is installed or the voice was disabled."

João
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
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using Google Translate

Post by Caffeine »

That's strange. You're on Windows 7 then?

On Win 10 everything works perfectly (with the 'Hazel' or 'Zira' voices)

Outstanding list of requested changes:
  • Add option to insert rows above / below selected line
  • Automatically fill in 'Folder' column based on previous value
  • Allow 'Play' button to play existing files on disk
  • Remember culture selection
  • Remember TTS engine selection
  • Add MP3 generation for local TTS engine
  • Make 'Enter' on a play button play the audio
  • Fix sometimes inactive play buttons
  • Add SSML support for local TTS engine
  • Add support for modifying pitch, rate, volume for local TTS engine
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using Google Translate

Post by jhsa »

Hey, don't say it is all my fault ;) I didn't ask for all that ;) :D
But I agree they are all wonderful ideas. :)
I find the last one brilliant if it can be done. Some voices play a bit slow. ;)

Thanks

João

EDIT: Oh yes, I'm on a windows 7 machine ;)
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
Helle
Posts: 577
Joined: Sat Jul 21, 2012 7:08 am
Country: -

Re: A tool to generate voice files using Google Translate

Post by Helle »

Hy,

ERROR: this is not a 32bit version only 64bit ??

I am on WIN7 32bit

Post Reply

Return to “erskyTx (was ersky9x)”