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.
Post Reply
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using various TTS providers

Post by Caffeine »

IBM provide a TTS engine with a free limit of 1 million characters per month. At around 2300 characters for a full set of voices, that should last a while.

I'll have a look at integrating it into this tool. In the interim, can you have a play with the demo and klet me know if you think it's worthwhile.

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

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

I will thank you..
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: RE: Release 2.1.4.1

Post by jhsa »

Caffeine wrote:When the option 'Copy previous folder when selecting empty row' is checked, the tool will automatically fill in the folder when pressing right or tab from the Phrase column of a previous row. Focus will then be set to the filename column of the next row.

When the option 'Copy previous folder when selecting empty row' is not checked, focus will then be set to the folder column of the next empty row.
Is this on the new version, or was it supposed to work already like this? I'm asking because this is not what I saw, hence my post asking if it could behave like this :)
I have both options checked but it would only copy the folder if I click on the line number..

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 various TTS providers

Post by Caffeine »

Hi João,
I generally title each post Release x.x.x.x when I make a new version available.

The post you mention was a release in response to your request. Version 2.1.4.1 adds support for the automatic fill in of the folder based on the previous line when pressing right or tab.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

OK, Sorry for the confusion :(
Will test in a while

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 various TTS providers

Post by jhsa »

Latest version, settings. Selection box for "Bits per sample" is missing??

The automatic folder copying iseems to be working as it should ;)
Need to try the translator next :)

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

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Strange, I had a series of crashes when editing the last cell in the last line and then hitting tab to create a new line with a copied folder.
Then it stopped crashing and I am not able to reproduce it anymore. But there is another problem, if I create a new line from the last one by hitting tab to move to a new line and copy the folder, it does create it now, but the last cell is highlighted instead of the File name cell (second cell).

If I do the same using the arrow key, it works as it should.

João

Edit: when editing the last cell on the line, if I hit enter before before I hit TAB, the right cell (file name) on the new created line is highlighted. If I don't hit enter before and just hit TAB, the last (wrong) cell is highlighted..

If you hit TAB directly, you have to hit it twice for the new line to be created, and it causes the problem described above. If you hit ENTER before you hit TAB, the preview button is skipped, the next line with copied folder is created, and the correct cell is highlighted.

I managed to get more crashes, just keep adding lines at the end using TAB to create more lines. You might eventually get a crash.
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 various TTS providers

Post by Caffeine »

jhsa wrote:But there is another problem, if I create a new line from the last one by hitting tab to move to a new line and copy the folder, it does create it now, but the last cell is highlighted instead of the File name cell (second cell).

If I do the same using the arrow key, it works as it should.

João
I can't reproduce that. Both the right arrow key and the tab key produce exactly the same effect for me. Is your tab key registering two presses?

Both buttons follow the same code path;

Code: Select all

            if ((e.Key == Key.Right || e.Key == Key.Tab )&& !((DependencyObject)e.OriginalSource is TextBox))
I see the missing bitrate combo box, copy / paste error here :oops: . I'll fix that.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Also save your edited phrase file by hitting the "Save Phrase File" Button.
The output directory box is erased.

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 various TTS providers

Post by jhsa »

Caffeine wrote:
If I do the same using the arrow key, it works as it should.


I can't reproduce that. Both the right arrow key and the tab key produce exactly the same effect for me. Is your tab key registering two presses?
Not here.. Will make a video of the problems

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 various TTS providers

Post by Caffeine »

I see the crash now. Working on it.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Good.. trying to make a video of the other problem.. wife confiscated my computer to write an email :(
Will post it as soon as she find the right keys on the keyboard and let me have my computer back. Grrrrrrr..

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 various TTS providers

Post by jhsa »

Ok, while making the video, I couldn't demonstrate the problem because as soon as I hit TAB twice to create the new line, the tool would crash. I guess you will have to fix that first..
Also, now, suddenly the output directory wasn't disappearing when saving the phrase file as I tried to demonstrate it on the video :(
It is making fun of me :)
Found another problem. When writing a long text on the 3rd cell, it extends to the right if you don't change line. But then the first cell won't display, or the text in it won't display properly..

This version is really making a fool out of me :) :D
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 various TTS providers

Post by Caffeine »

I told you the feature to automatically fill in the folder name was dangerous ;)
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

You're nearly there ;) :mrgreen:

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 various TTS providers

Post by Caffeine »

jhsa wrote:Ok, while making the video, I couldn't demonstrate the problem because as soon as I hit TAB twice to create the new line, the tool would crash. I guess you will have to fix that first..
Also, now, suddenly the output directory wasn't disappearing when saving the phrase file as I tried to demonstrate it on the video :(
It is making fun of me :)
Found another problem. When writing a long text on the 3rd cell, it extends to the right if you don't change line. But then the first cell won't display, or the text in it won't display properly..

This version is really making a fool out of me :) :D
João
Hi João,

I've resolved the crash. If you're editing a cell now, and you press tab, focus moves to the button cell. If you press tab again, the button is selected and you can press enter to preview the phrase. That means everything can be done from the keyboard now.

I've resolved an issue where automatically loading the last psv file wouldn't detect that you already have a filename selected, so the save button would bring up the save as dialog. Now it just saves the file.

I can't reproduce the missing output directory after save functionality.

As for the poor display of long lines of text. I see that here too. Unfortunately the functionality appears to be inherent in the WPF datagrid control. I'll see if anyone has any suggestions for a fix.

I'll make a new release shortly with these fixes in it.

Thanks for the testing!
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Release 2.2.0.1

Post by Caffeine »

The following issues have been resolved:
  • Fix crash when pressing tab whilst editing phrase
  • Fix display of long items in datagrid. (was related to internal issues with WPF, when not using row virtualisation)
  • Add improved row numbering mechanism (turning row virtualisation on, to fix the above issue, caused issues with the previous row numbering mechanism. Replaced with a greatly improved mechanism)
  • Fixed saving automatically opened psv files
https://github.com/CaffeineAU/TTSAutoma ... ag/2.2.0.1
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Hitting tab to move to the next line now doesn't copy the previous folder. :(

Just In case you forgot about it, the bit rate still can't be selected. Box is missing. ;) :D

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 various TTS providers

Post by Caffeine »

It will if you're not still editing when you press tab.

I'll see if I can improve that.

I forgot to check in the change for the bit rate combo box! I'll fix that again :oops:
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Thanks, will check in the morning if there is something new.. Too late here now ;) :)

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

Release 2.2.0.3

Post by Caffeine »

  • Fix crash issue with selecting rows down and then up
  • Fix moving rows when selecting up
  • Restore bits per sample combobox
  • Make tab press when phrase is being edited respect the copy folder setting
  • Fixed crash when pressing tab from editing existing row.
  • Tab and right should now work identically when not editing.
  • When editing, tab should act like right, except going via the play button column.
https://github.com/CaffeineAU/TTSAutoma ... ag/2.2.0.3
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

That is great thank you. Will check in a while. Will also have to find out how the translator works :)

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 various TTS providers

Post by jhsa »

Creating a new line With a copy from the previous folder by hitting TAB is now working, and the right cell (File Name) is highlighted. TAB jumps to the preview Button before creating this new line, but if when the Preview button is highlighted we press ENTER, it doesn't play the file as it should. It just jumps to the preview button of the line below.

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 various TTS providers

Post by Caffeine »

Yes, that's a limitation of the mechanism used to programatically move between cells. I'm not sure of a way around it yet.
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Release 2.2.0.4

Post by Caffeine »

  • Pressing enter when focus is on a preview / play button will (download if necessary and) play the voice
https://github.com/CaffeineAU/TTSAutoma ... ag/2.2.0.4
Caffeine
Posts: 170
Joined: Wed Jul 27, 2016 5:29 am
Country: Australia

Re: A tool to generate voice files using various TTS providers

Post by Caffeine »

Interesting. I can add id3 tags to WAV files.

Perhaps I can tag the MP3 and WAV files with the TTS engine, phrase and voice that I use to generate them. That would allow me to examine the files on start up of the tool, and see which ones have already been generated with the selected engine / voice, to avoid having to generate them again.
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Please don't tag the files.. That caused problems in the past with the radio..
Actually the current version still puts some kind of tag on the files.. Maybe the converter I don't know. That should be removed. The resulting wav files should be completely clean.

João
EDIT: Maybe you could tag the mp3 files ONLY, as they are not used on the radio anyway. Then you could use them to check if a file was already dowloaded.
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

Release 2.3.0.0

Post by Caffeine »

Here's a version that identifies whether voices have already been generated using the current voice, speed, and volume. It tags the MP3 files only.

There are a few small bugs where it doesn't update whether the voices have been previously generated occasionally. Clicking on the voice name should trigger an update. I'll look into the rest.

https://github.com/CaffeineAU/TTSAutoma ... ag/2.3.0.0
User avatar
jhsa
Posts: 19480
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: A tool to generate voice files using various TTS providers

Post by jhsa »

Thanks.. let me get to the computer :)
This feature will be great to know what files we already have in the folder and/or if some are missing.
Have a good night :)

João
EDIT: oops, still not night there :) Thought it was later ;)
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: Release 2.3.0.0

Post by jhsa »

Caffeine wrote: There are a few small bugs where it doesn't update whether the voices have been previously generated occasionally. Clicking on the voice name should trigger an update. I'll look into the rest.
Clicking anywhere on a line, a button, or the "GO" button will trigger an update..

The rest seems to be working.. The previous bug seems to be fixed. All key entries and mouse seem to be working really well now. 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

Post Reply

Return to “erskyTx (was ersky9x)”