Closed queechy closed 2 years ago
Hey there, thanks for reporting this bug.
Can you try adding the encoding argument to line 59 in backend/app/file_system.py
from:
with open(path, 'r+') as f:
to:
with open(path, 'r+', encoding='utf8') as f:
Stream mapping: Stream #0:0 -> #0:0 (opus (native) -> pcms16le (native)) Press [q] to stop, [?] for help Output #0, wav, to 'C:\Users\zoco\Desktop\mimic-recording-studio\dummy../audio_files/72521da8-c2a4-cf4c-2a68-3b67b09b0f66\0602d995131245171561d037f0189510.wav': Metadata: ISFT : Lavf58.76.100 Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s (default) Metadata: encoder : Lavc58.134.100 pcm_s16le size= 320kB time=00:00:01.85 bitrate=1412.2kbits/s speed= 161x video:0kB audio:320kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.023773% Traceback (most recent call last): File "app\api.py", line 44, in save_audio File "app\file_system.py", line 61, in save_meta_data UnicodeDecodeError: 'cp949' codec can't decode byte 0xec in position 50: illegal multibyte sequence 'cp949' codec can't decode byte 0xec in position 50: illegal multibyte sequence 127.0.0.1 - - [13/Aug/2021 10:09:46] "POST /api/audio/?uuid=72521da8-c2a4-cf4c-2a68-3b67b09b0f66&prompt=바깥쪽에%20그것 은%20선명하고%20깔끔한%20가장자리가%20가장%20깨끗한%20면을%20만들어%20냅니다. HTTP/1.1" 200 -
I'm doing recoding with korean, but it causes an error. What should I do?