Python Forum
Error: audioio has no attribute 'AudioOut'
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error: audioio has no attribute 'AudioOut'
#1
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:

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.
Reply


Messages In This Thread
Error: audioio has no attribute 'AudioOut' - by netwrok - Oct-21-2023, 10:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  cx_oracle Error - AttributeError: 'function' object has no attribute 'cursor' birajdarmm 1 2,471 Apr-15-2023, 05:17 PM
Last Post: deanhystad
  Getting 'NoneType' object has no attribute 'find' error when WebScraping with BS Franky77 2 5,323 Aug-17-2021, 05:24 PM
Last Post: Franky77
  Attribute Error received not understood (Please Help) crocolicious 5 2,731 Jun-19-2021, 08:45 PM
Last Post: crocolicious
  error in scapy attribute 'haslayer' evilcode1 5 6,616 Mar-02-2021, 11:19 AM
Last Post: evilcode1
  attribute error instead of correct output MaartenRo 2 2,223 Aug-28-2020, 10:22 AM
Last Post: Larz60+
  attribute error stumped on how to fix it. hank4eva 7 4,845 Aug-11-2020, 04:47 AM
Last Post: hank4eva
  Attribute Error - trying to create a pixel array out of PNG files The_Sarco 1 2,035 Apr-29-2020, 07:10 PM
Last Post: deanhystad
  Attribute Error for Rename / Replace warden89 6 7,997 Jan-07-2020, 06:08 PM
Last Post: warden89
  Reading DBF files from Amazon s3 throwing error - 'int' object has no attribute 'isa abeesm 1 2,951 Sep-22-2019, 05:49 PM
Last Post: ndc85430
  Attribute Error Adit99 5 3,711 Aug-18-2019, 11:44 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020