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

A tool to generate voice files using various TTS providers

Post by Caffeine »

I don't often update this first post. Click here for newer versions of this tool

Hi All,

I've created a tool to generate voice files, using the a variety of TTS providers (such as Ivona.com and Google Translate.)

The tool allows you to automatically generate all the voice files used in ersky9x. It takes around 2-3 minutes to generate the full set (on my internet connection here, it may vary)

The tool downloads MP3 files, and locally converts them to 16kHz, 16 bit WAV files suitable for use in ersky9x. Both MP3 and WAV files are saved.

The tool allows you to open a 'psv' file containing folder, filename and phrase to be spoken. You can also create new files. You can modify the variables on each line, and save the file over the top of the existing file, or with a new name. I have included a sample Voices.psv file that includes all of the phrases in the pack provided by João

You can specify the voice to use (or language for Google Translate). I quite like the Australian accent, so I select that from the drop down box .

If you create a psv file with German text and select German from the drop down box, the tool can create German voice files for example.

Limitations of the tool are:
  • Ivona.com voices - There's a restriction of 50000 units a month, where each voice file generally equates to 1 unit. We haven't hit that limit so far, but if we do, then the Ivona voices will stop working for the rest of the month.
  • Google Translate - Can't select voice. You're stuck with whatever the default voice is for the selected culture.
  • Google Translate - Can't adjust quality, speed or volume.
  • Google Translate - Google may kill this at any time. It uses an undocumented API to call their TTS engine, and they may break that without warning. If they do I will endeavour to keep the tool updated to keep it working, but no guarantees.
  • The tool will overwrite any existing file in the directory with the same name, without warning
A quick usage guide:
  • Select Browse Phrases File (Ctrl-O) to open an existing psv file, or enter new phrases directly into the blank lines
  • Select Browse Output Directory (Ctrl-P) to choose where to save the audio files. The files will be saved under two directories under the selected folder; One for MP3, one for WAV, and under that each voice file will be saved with the Folder and Filenames specified
  • Add, or modify the folder, filename or phrases in the list of phrases below.
  • Select a TTS provider and voice using the drop down boxes.
  • Preview a line to hear how that voice will sound.
  • Select Go (Ctrl-G) to start the downloading process. As each file is downloaded, the preview button next to it changes to Play, which you can use to listen to the voice from within the tool. Select Stop (Ctrl-H) to stop the download process, or let it run to completion (the progress bar indicates overall progress)
  • If you want to modify any of the phrases, edit the phrase in the list, and preview again to hear the change. You will note that the Play button changes to Preview after you edit the line. You can select Go (Ctrl-G) again to have the tool download only those missing files.
  • If you have modified your phrases file, or created a new phrases file, you can save the file with the Save Phrases File (Ctrl-S) button, or save the file with a new name using the Save Phrases File As... (Ctrl-A) button.
  • You can move lines up and down, by selecting the lines (click on the row header and using the buttons.
  • You can add new rows above / below selected lines, or delete lines
You will need Microsoft .Net 4.5.2 to run this tool
TTSAutomate 2.1.4.1 option selected.png
Download from GitHub
Last edited by Caffeine on Mon Aug 22, 2016 12:23 am, edited 6 times in total.

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 »

This is a great tool, thank you.. Will try it again and see if I can find any problem.

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: [*]If you want to modify any of the phrases, edit the phrase in the list, and then click elsewhere on the screen. You will note that the Play button is now disabled. You can select Go (Ctrl-G) again to have the tool download only those missing files.
This doesn't seem to work well. The "Play" becomes unavailable only if I click on one of the tabs at the top, for example, "Phrase to Speak". And it only works once, if I try to repeat the operation, some other play button will become unavailable, not the one I edited :)

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 »

And sometimes it alsdo messes up when saving.. Please have a look at the attached csv file.

It should be:

user / Gear_2 / Gear, Down

But have a look at the picture

Thanks

João
Attachments
Gear.csv
(46 Bytes) Downloaded 395 times
Untitled.jpg
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 have resolved both of your issues.

I have changed the tool to use the pipe character ( | ) as the delimiter, and I have resolved the sorting issue. I've updated the first post with the new executable.

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 »

Whoops: forgot to hit submit on this one before I fixed it and posted the fix!

For your first issue, the play button for a row becomes unavailable when one of the three columns is edited, and then the .Net framework sends a DataGridCellEditEndingEvent when you move focus away from the cells (try the tab key)

It marks the item in the collection as requiring downloading based on the row index that was edited. When you click on the column header it sorts the rows by that column, but the rows in the underlying collection are not sorted, so the row that gets marked as requiring download is different to the one that it edited.

I'll see what I can do to resolve that. The easiest way is to just disable sorting on the datagrid ;)

For the second issue, you can't use commas in the phrase to speak, as commas are the delimiter in a comma separated variable file ;)

I can change it to use some other delimiter. Perhaps a pipe symbol ( | ) as that's unlikely to be used in a phrase.

If you want the audio to pause slightly, you can try a semicolon ( ; ) as it doesn't cause issues with CSV files.
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:Whoops: forgot to hit submit on this one before I fixed it and posted the fix!

For your first issue, the play button for a row becomes unavailable when one of the three columns is edited, and then the .Net framework sends a DataGridCellEditEndingEvent when you move focus away from the cells (try the tab key)
Hitting the "TAB" key on the keyboard works, but you must be editing it and the cursor still blinking there. Clicking anywhere on the utility, doesn't work for me..

Maybe you could insert some text saying that we should hit the Tab key on the keyboard when done editing a line.
It marks the item in the collection as requiring downloading based on the row index that was edited. When you click on the column header it sorts the rows by that column, but the rows in the underlying collection are not sorted, so the row that gets marked as requiring download is different to the one that it edited.

I'll see what I can do to resolve that. The easiest way is to just disable sorting on the datagrid ;)
I think you should/could lock it to display the files by folder. Less confusing.. So, first the system files, then the user files, and finally the modelNames files.
For the second issue, you can't use commas in the phrase to speak, as commas are the delimiter in a comma separated variable file ;)

I can change it to use some other delimiter. Perhaps a pipe symbol ( | ) as that's unlikely to be used in a phrase.

If you want the audio to pause slightly, you can try a semicolon ( ; ) as it doesn't cause issues with CSV files.
Semiocolon (;) works fine, and it does the same as the comma, But it would be nice if that could be fixed.. Actually, I think that your last version did save OK with the comma. :o

Also,
Please click the "Browse Phrase File" button select a file (you changed the extension?) :) ), Now it says "Save" instead of "Open", Not a big deal but you might want to fix 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
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, would it be possible to create a new phrase file and save it? That would avoid having to use other program to make new files :)
I tried but couldn't also create the voice files as the program is expecting me to load a phrase file..
Also did you change the file extension from csv to psv? it is not possible to open it in libre office, unless you change it back to csv :)

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 »

You can create a new file by typing a new name in the browse phrases file dialog (that's why it says save instead of open)

I can change it back to csv if you promise to stop using commas in your phrases ;)
User avatar
Kilrah
Posts: 11108
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: A tool to generate voice files using Google Translate

Post by Kilrah »

It is not a problem to use the csv extension with other delimiters.
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:You can create a new file by typing a new name in the browse phrases file dialog (that's why it says save instead of open)
Ahh, if no one tells us, we don't guess :mrgreen: :mrgreen: Thanks.. ;)
I can change it back to csv if you promise to stop using commas in your phrases ;)
Actually (and you can try it yourself) commas and semicolons, produce different effects on the spoken words.. Try it. Sometimes the words are spoken differently with one or the other.. I have just created an English AUS pack, and had to change some of the text lines so it would sound clear.
Attached is the psv file.
If we can create our own Phrase Files" and save them as you say, we don't need to use libreoffice to do it, so you can keep the extension as psv in my opinion..

Thank you

João

EDIT: Attached file is not the full pack, something went wrong and I might have overwritten it while testing :(
Sorry.
Attachments
My Voices.zip
(422 Bytes) Downloaded 326 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
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:You can create a new file by typing a new name in the browse phrases file dialog (that's why it says save instead of open)
I still think it should say "Open". You are really opening the file you are just creating :) the program will open that new one after saving it to the computer.. Like that it wouldn't be confusing when opening a file from other user for example :)
Better yet, instead of Open or Save, just use "OK" :)

By the way, I just tried to create a new file and it did work the way you say..

So, there are really a couple things that we should know when operating this utility.
1 - Every time we edit a line, we need to hit the "Tab" key on the computer's keyboard to finish editing it and the "Play" button will be unavailable. After editing we can just click the "Go" button, and the utility will create again only the files we've just edited.
2- When creating a new pack, or new voices, that we wish to save in a separate .psv file, we just need to hit the "Browse Phrase File" button, insert an new name, and click the "Open,Save, OK" (Whatever will be at the end) button.. A new file will be created on the PC and opened in the utility.

What do say about the idea of organizing the files by "Folder" name only??

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 Google Translate

Post by jhsa »

It looks like that something went wrong with the file attached to my post above . The file is not complete. I might have deleted most of the lines while testing, and forgot to give it a new name before saving. So, my existing file was probably overwritten :(

Sorry about that.

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 »

It's not easy to change the 'Save' to an 'Open' as it's a standard windows dialog. If I use an open file dialog, then it can't open a non-existent (i.e. new) file.

What if I had it so that when the tool opens, it opens with a blank file (perhaps called 'Unsaved phrase file' or something, and then you could save or save as the file from there (sort of like MS Word does)?
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 have made an update to the tool to address some of the observations above:
  • When opening the tool, it opens with a blank phrase file open
  • The Open Phrase File button now only opens existing phrase files
  • The Phrase File text box indicates whether the current phrase file needs to be saved by having a red background. The title of the tool also indicates (unsaved)
  • When you attempt to exit the tool, and your phrase file is not empty and unsaved, the tool will prompt you to save it before exiting (Yes = save, No = exit without saving, Cancel = don't exit)
  • You can now edit the text in the list of phrases and press enter to complete the edit (as an alternative to tab)
  • You can also use the cursor keys to navigate around the list of phrases (unless you're editing a cell, behaviour is like excel)
  • For example, navigate around with the cursor keys, start typing to overwrite a cell, press enter to commit the change, or escape to cancel the change
  • Limitation: pressing enter will not visibly mark the current phrase as requiring download, but pressing Go will re-download it
TTSTranslate.zip
(248.79 KiB) Downloaded 341 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 looks like that the zip file "Contains characters that prevent its extraction". Windows said it not me :)

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 »

Hrmm I see that too.

I'll recreate the zip file and re-upload tonight.
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 »

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
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 »

Of course I left the USB stick with the source code on my desk at work. :(
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 »

And it is weekend ;) :) :D

:mrgreen: Whenever you can :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 Google Translate

Post by Caffeine »

Fortunately, it turns out I left the USB stick plugged in to my work PC, so a few minutes with a VPN connection and I have the files again.
TTSTranslate.zip
(246.67 KiB) Downloaded 298 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 »

Hey hey, smart people is something else :mrgreen: ;) :)

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 Google Translate

Post by jhsa »

Wow, it seems that all is working quite well now, thank you. As you said, the play button only goes gray if you use the tab key, but that is minor :)

A last request if possible. As i am a lazy person, would it be possible for it to remember the last folder's path when hitting "Select Output Directory", the same as it does for all the other buttons? Thanks

Great work caffeine, really.. Thank you so much..I believe your tool will be very useful for all er9x, ersky9x users. OpenYX users could use it as well as i find it easier to use than the opentx tool.
Would it be possible, in the future, and if you feel like doing it, to make it work with voice files you may have installed on your computer? I guess this would be a lot of work, and the tool is good as it is providing google continues to allow it. But the other possibility would be also nice, just in case..

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 where using the enter key wouldn't mark the phrase visibly as requiring re-download.

Along with that fix came a number of other improvements, the determination of whether re-download is required is much cleaner now.

I'll look at remembering the output folder. I agree that it's not very user-friendly to have to re-enter it each time.

When you say voice files that are already installed on your PC, do you mean text to speech generators built in to windows? I'll have to investigate that. I did get it working with the Microsoft TTS engine on their Azure cloud platform but the voices weren't as nice as Google's.
TTSTranslate 1.3.0.0.zip
(246.7 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 »

Caffeine wrote:Fixed the issue where using the enter key wouldn't mark the phrase visibly as requiring re-download.

Along with that fix came a number of other improvements, the determination of whether re-download is required is much cleaner now.
Thanks, testing next..
I'll look at remembering the output folder. I agree that it's not very user-friendly to have to re-enter it each time.
That would be great, thanks. I for example have "D:\Modelismo\ERSky9x\´Voice\Voice Utilities\TTSTranslate" to keep things organized, so it is quite a pain to enter it all the time. :) And that is the only button that works differently..
When you say voice files that are already installed on your PC, do you mean text to speech generators built in to windows?
Yes, those or voices that people can buy.
I'll have to investigate that. I did get it working with the Microsoft TTS engine on their Azure cloud platform but the voices weren't as nice as Google's.
That is very true. Google is a better option at the moment.. It was just an idea for the future.

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
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, last one for the evening. I replaced the folder select dialog to make it more user friendly.

I also implemented remembering the location of the last selected phrases file (updated on open or save as), and the last selected output directory.

The settings file for remembering which folders were last selected is stored in the user profile of the PC, so if you copy the tool to another PC, it probably won't remember your settings.
TTSTranslate 1.3.1.0.zip
(487.31 KiB) Downloaded 240 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 »

Hey, you didn't even let me test the previous file and complain about it.. Where is the fun?? ;) :D

Thanks. Downloading 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
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:
The settings file for remembering which folders were last selected is stored in the user profile of the PC, so if you copy the tool to another PC, it probably won't remember your settings.
I think that is not a problem at all.. 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 Google Translate

Post by jhsa »

There is a little problem, let's see if I can explain.

Ok, I created a few files..
File1 to file11 Take the example below.

Test|file10|Radio battery
Test|file11|Voltage

This will be ok, but if i swap the file name/number like this:

Test|file11|Radio battery
Test|file10|Voltage

After creating creating these new files, the utility still reads file 10 as radio battery and file11 as voltage. But, the files created in the wav and mp3 folders are correct.

I mean, for our application this might never not be a ptoblem, but I'm just letting you know.

Another thing you might want to look at is when we are creating a new line is after we write the folder name, hit the tab key on the keyboard, the next cell is highlighted, we write the file name and hit tab, now we write the phrase and hit enter to finish editing that line. The box highlighted is the one on the next line under the phrase we just wrote. Could it be made to jump to the folder cell on the next line? I believe that if we use the Tab key instead to move to the next line, this is what happens already. Again, this is not a big deal

Now, this one would save some time while creating new files. What about if when we created a new line The folder name from the previous line was automatically inserted'. This would leave only 3 cells to write instead of 4. that means we would save about one fourth of the time to create a new pack. I know I'm lazy, but this can be a tedious job, ask me about it :( :)

Then if we want to create a new folder, just change the name from the folder on a new line, and the next one yo be created will have the name from the previous, which is the one you've just created.. :)
What do you think?
João

EDIT: Ah forgot to say that after editing the files a few times, some of then are not playing when hitting play, but they are ok on the folder. After saving the .psv file and restarting the utility, they will play again.
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 »

Hi João,

I've resolved the issue where when you swap filenames it reads the wrong value out. In doing so I think I've addresses the issue where sometimes after a few edits it wouldn't play anymore (potentially the same bug, both due to INotifyPropertyChange implementation)

I've also made it so that when you hit 'enter' it jumps to the folder cell on the next row (and starts editing)

I've also cleaned up the keyboard navigation of the grid a bit, it should be much simpler now.

I haven't implemented the automatic fill-in of the folder from the previous line. That may take a bit of extra thinking.
TTSTranslate 1.3.2.0.png
TTSTranslate 1.3.2.0.zip
(487.7 KiB) Downloaded 262 times

Post Reply

Return to “erskyTx (was ersky9x)”