Specify encoding on metadata fname open in save()

This commit is contained in:
rany2 2023-01-04 23:52:21 +02:00
parent 3a3a872899
commit 7a9e4a62e3

View File

@ -421,7 +421,7 @@ class Communicate:
audio = open(audio_fname, "wb")
metadata = None
if metadata_fname is not None:
metadata = open(metadata_fname, "w")
metadata = open(metadata_fname, "w", encoding="utf-8")
async for message in self.stream():
if message["type"] == "audio":