Fix ID3 tagging in TTS (#40740)

This commit is contained in:
Franck Nijhof 2020-09-29 10:19:26 +02:00 committed by GitHub
parent 432133a12a
commit f3edec1191
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -466,7 +466,7 @@ class SpeechManager:
artist = options.get("voice")
try:
tts_file = mutagen.File(data_bytes, easy=True)
tts_file = mutagen.File(data_bytes)
if tts_file is not None:
tts_file["artist"] = ID3Text(encoding=3, text=artist)
tts_file["album"] = ID3Text(encoding=3, text=album)