Modified the RepositoryUrl to point to the general SubtitleEdit repository and added an IsPackable property to allow the project to be included in packages. This ensures the updated repository URL is more accurate and the project is properly packable.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Corrected the input filename variable from srtFileName to vttFileName to ensure the correct subtitle format is processed. This fixes potential misloading issues when handling WebVTT files.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Simplify the logic by reordering logging updates and transcript checks. This removes redundant `UpdateLog` and `SeLogger.WhisperInfo` calls, streamlining the flow and maintaining the existing functionality.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Corrected the misspelled variable name across both Main.cs and ImportUnknownFormat.cs files. Ensured consistent and accurate reference to 'ImportedSubtitle' for better code readability and functionality.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Replaced direct frame rate based conversions with reusable utility methods across multiple subtitle formats. This improves consistency, readability, and maintainability of the codebase.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Replaced the unused variable 'res' with a discard operator in the PartialResult call to enhance code clarity and maintainability by explicitly indicating the result is not used.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Encapsulate VoskRecognizer instantiation within a using statement to guarantee resource disposal. This change improves memory management and aligns with best practices for resource handling. Also, maintain the existing logic structure for audio file processing.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>
Moved the method `IsDirectoryWritable` from `WhisperAudioToText` to `FileUtil` for better code reuse and maintainability. Adjusted references in `WhisperAudioToText` and `VoskAudioToText` accordingly.
Signed-off-by: Ivandro Jao <Ivandrofly@gmail.com>