CaffeineAU / TTSAutomate

A tool to generate Audio files from text strings in WAV and MP3 format, using various TTS engines as the source
54 stars 6 forks source link

Issue with French accent #1

Closed LapinFou closed 7 years ago

LapinFou commented 8 years ago

First of all, congratulation for your excellent application! :smile:

I tried to generate a French sound pack for OpenTX 2.1 I got an annoying issue with the foreign accents é è à ç ù When the psv file is opened, all those characters are replaced with some unwanted symbol (see attached pic). So, I can't used your tool for now. Accent a very important, otherwise the pronunciation will be incorrect. Is it possible to fix it? I attached an example psv file (ZIP archive).

tmp

OpenTX_2.1_Fr.psv.zip

LapinFou commented 8 years ago

I think, I found the origin of the problem. Playing with Notepad++, I saw that the file is encoded in UTF-8 without BOM (UtF-8). If I convert the file on UTF-8 format (UTF-8-BOM), then the file is properly loaded. :smiling_imp: I hope this can help.

CaffeineAU commented 8 years ago

Thanks for your feedback. I load the PSV files assuming the encoding matches the operating system's current ANSI code page. (unless, as you identified, the file specifies a different encoding)

I'll investigate adding support for different encodings

LapinFou commented 8 years ago

OK. I'm glad you've been able to reproduce the issue. With Notepad++, I got a good workaround. I love your tool. :+1:

LapinFou commented 7 years ago

Thanks !!! I tried the version 2.7.0.1. Everything is working perfectly. :100:

CaffeineAU commented 7 years ago

Excellent, thanks for trying it out.