mirror of
https://github.com/rany2/edge-tts
synced 2024-11-22 01:45:02 +00:00
Specify encoding on metadata fname open in save()
This commit is contained in:
parent
3a3a872899
commit
7a9e4a62e3
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user