Vidalnt / Applio

A simple, high-quality voice conversion tool focused on ease of use and performance.
https://applio.org
MIT License
1.58k stars 254 forks source link

Prevents Unicode decode errors in TTS text file upload #703

Closed 6Morpheus6 closed 1 week ago

6Morpheus6 commented 1 week ago

Open text file with utf-8 encoding

Added utf-8 encoding when opening a text file upladed in tts tab to prevent unicode errors

Description

Motivation and Context

Text upload fails if the text file contains non-unicode letters. Explicit utf-8 encoding when opening the file fixes this issue.

How has this been tested?

Uploading a file with non-unicode letters resulted in a UnicodeDecodeError

Screenshots (if appropriate):

image

Types of changes

Checklist: