Cant print speakers anymore
Closed this issue · 0 comments
fvviz commented
this is my code
import soundcard as sc
print(sc.all_speakers())
and this is the error im getting
Traceback (most recent call last):
File "/Users/faizrahim/PycharmProjects/pleamswrk/main.py", line 3, in <module>
print(sc.all_speakers())
File "/Users/faizrahim/PycharmProjects/pleamswrk/venv/lib/python3.8/site-packages/soundcard/coreaudio.py", line 164, in __repr__
return '<Speaker {} ({} channels)>'.format(self.name, self.channels)
File "/Users/faizrahim/PycharmProjects/pleamswrk/venv/lib/python3.8/site-packages/soundcard/coreaudio.py", line 134, in name
return _CoreAudio.CFString_to_str(name)
File "/Users/faizrahim/PycharmProjects/pleamswrk/venv/lib/python3.8/site-packages/soundcard/coreaudio.py", line 297, in CFString_to_str
assert err == 1, "Could not decode string"
AssertionError: Could not decode string
this error just randomly came up now it wasnt there when i tried this last week. what couldve possible happened and how can i fix it? Im on MacOS big sur btw (m1)