Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix ID3 tagging in TTS (#40740)
  • Loading branch information
frenck committed Sep 29, 2020
1 parent 2ee5b0a commit e54ec3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/tts/__init__.py
Expand Up @@ -466,7 +466,7 @@ def write_tags(filename, data, provider, message, language, options):
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)
Expand Down

0 comments on commit e54ec3b

Please sign in to comment.