Skip to content

Commit 23c9299

Browse files
committed
fix: UnicodeDecodeError
1 parent c32db43 commit 23c9299

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vao-recorder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ def test_microphones(
478478
# Play audio
479479
for _file in output_folder.glob('audio*.wav'):
480480
typer.echo(f'Playing {_file}')
481-
with open(_file.with_suffix('.yaml')) as f:
481+
with open(_file.with_suffix('.yaml'), encoding='utf-8') as f:
482482
typer.echo(f.read())
483483
data, fs = wave_read(_file)
484484
sd.play(data, samplerate=fs, blocking=True)

0 commit comments

Comments
 (0)