backend/src/main/java/ch/fhnw/speech_collection_app/features/base/admin/statistics/StatisticsService.java
@Scheduled(fixedDelay = 1000 * 60 * 60)
    public void calculateAudioFileSizes() {
        logger.info("scheduled calculateAudioFileSizes");
        try {
            var process = Runtime.getRuntime().exec(speechCollectionAppConfig.getCondaExec() + " 3 ");
            List<String> list = IOUtils.readLines(process.getErrorStream());
            if (!list.isEmpty()) {
                logger.error(String.join("\n", list));
            }
        } catch (Exception e) {
            logger.error("Exception Raised", e);
        }
    }
/**
     * calculate size of audio file every hour.<br>
     * <br>
     * this is needed because:<br>
     * 1. there is no java libary that supports webm/vorbis<br>
     * 2. chrome does not set the duration header of the webm/vorbis (firefox 77.0 does set it).<br>
     * see https://bugs.chromium.org/p/chromium/issues/detail?id=642012
     */
calculate size of audio file every hour.

this is needed because:
1. there is no java libary that supports webm/vorbis
2.
calculate size of audio file every hour . this is needed because : 1 . there is no java libary that supports webm / vorbis 2 .
@Scheduled(fixedDelay = 1000 * 60 * 60)
    public void calculateAudioFileSizes() {
        logger.info("scheduled calculateAudioFileSizes");
        try {
            var process = Runtime.getRuntime().exec(speechCollectionAppConfig.getCondaExec() + " 3 ");
            List<String> list = IOUtils.readLines(process.getErrorStream());
            if (!list.isEmpty()) {
                logger.error(String.join("\n", list));
            }
        } catch (Exception e) {
            logger.error("Exception Raised", e);
        }
    }
@ Scheduled ( fixedDelay = 1000 * 60 * 60 ) public void calculateAudioFileSizes ( ) { logger . info ( "scheduled calculateAudioFileSizes" ) ; try { var process = Runtime . getRuntime ( ) . exec ( speechCollectionAppConfig . getCondaExec ( ) + " 3 " ) ; List < String > list = IOUtils . readLines ( process . getErrorStream ( ) ) ; if ( ! list . isEmpty ( ) ) { logger . error ( String . join ( "\n" , list ) ) ; } } catch ( Exception e ) { logger . error ( "Exception Raised" , e ) ; } }
calculate size of audio file every hour.<br>
 <br>
 this is needed because:<br>
 1. there is no java libary that supports webm/vorbis<br>
 2. chrome does not set the duration header of the webm/vorbis (firefox 77.0 does set it).<br>
 see https://bugs.chromium.org/p/chromium/issues/detail?id=642012
calculate size of audio file every hour . <br > <br > this is needed because : <br > 1 . there is no java libary that supports webm / vorbis<br > 2 . chrome does not set the duration header of the webm / vorbis ( firefox 77 . 0 does set it ) . <br > see https : // bugs . chromium . org / p / chromium / issues / detail?id = 642012