GHPS / txt2pho

A TTS frontend for the German inventories of the MBROLA project (Official Repository)
GNU Affero General Public License v3.0
6 stars 1 forks source link

Feature: No log-files by default #6

Closed hss16 closed 2 years ago

hss16 commented 2 years ago

Please add a possibility to disable logfile creation. I use txt2pho in my screenreader. That produces a lot of logfile in /tmp. To remove these with a cron job isn't a clean way :-). Thx in advance

GHPS commented 2 years ago

Please add a possibility to disable logfile creation. I use txt2pho in my screenreader.

Thanks for the hint!

I think that's a good idea - I will add this feature in the next release.

GHPS commented 2 years ago

Please add a possibility to disable logfile creation.

Both txt2pho and preproc are effected by this change. With the latest commit preproc has several new options (version, help, debug) - and remains silent by default:

preproc 0.96
Usage: preproc -r Rules-File <-a Abbreviations-File> | read from stdin, write to stdout
Valid options are:
  -r filename      - Specifies the Rules-File.
  -a filename      - Specifies an optional Abbreviations-File.
  -d level         - Level specifies the amount of debugging information (default is 0, maximum is 1).
                     The higher the number, the more information is given. The debug info
                     is written into a preproc*.log file located in /tmp.
  -v               - Gives the version number and exits.
  -h               - Prints this information.

When checking it out, remember to use the new command line format, i.e. -r (and -a) are obligatory.

Usage: preproc -r Rules-File <-a Abbreviations-File> | read from stdin, write to stdout

GHPS commented 2 years ago

With commit b6d83540cb6981a6bbcdb02f65a71ec10b7564b3 txt2pho also is less chatty. Debug/error output is disable. The code needs more polish but works...

@hss16 please check if this version works for you (and reopen the issue if needed).

hss16 commented 2 years ago

Hi, I think your fix doesn't completely fix the issue. I've added -d0 to txt2pho command line. After that, txt2pho creates new files /tmp/txt2pho.* MfG. Halim Sahin

On Sat, May 21, 2022 at 12:42:44PM -0700, GHPS wrote:

Closed #6 as completed.

-- Reply to this email directly or view it on GitHub: https://github.com/GHPS/txt2pho/issues/6#event-6655316821 You are receiving this because you were mentioned.

Message ID: @.***>