Oct-21-2023, 10:55 PM
Having issues with audioio within CircuitPython giving the error 'audioio' has no attribute 'AudioOut'
AudioOut is used to set the audio interface for the files played on the Pi; in this case targeted to the standard headphone jack.
Details:
Pi3 B Using CircuitPython for Adafruit Trellis as sound board trigger
Validated and Reinstalled audioio using pip3
All packages were installed via pip3 as Python3 is intended environment
All packages are listed in pip and pip3
Tried running the script using sudo and non-sudo with python and python3
Example of a script that will throw the error:
Any help would be appreciated. Not finding any reference to audioio having this issue.
Resolutions I've tried of similar "no attribute" issues do not resolve my issue.
AudioOut is used to set the audio interface for the files played on the Pi; in this case targeted to the standard headphone jack.
Details:
Pi3 B Using CircuitPython for Adafruit Trellis as sound board trigger
Validated and Reinstalled audioio using pip3
All packages were installed via pip3 as Python3 is intended environment
All packages are listed in pip and pip3
Tried running the script using sudo and non-sudo with python and python3
Example of a script that will throw the error:
import board import time import busio import audioio import audiocore import adafruit_trellis #Create I2C object i2c_bus = busio.I2C(SCL, SDA) #Create Trellis Object trellis = Trellis(i2c_bus) #Set Audio to play from board myaudio = audioio.AudioOut(board.A0)I thought maybe being a novice is the issue but at this point I have exhausted what resources I can.
Any help would be appreciated. Not finding any reference to audioio having this issue.
Resolutions I've tried of similar "no attribute" issues do not resolve my issue.