Python Forum
Reading a directory and outputting as sound
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading a directory and outputting as sound
#1
Hi everyone,

I'm a total beginner when it comes to code, and wondering if Python would be the best solution for this problem.

I use Audacity to convert files to sound using the import RAW data method, however I would like to set up an art installation with a Raspberry Pi in which when a USB drive is inserted it looks at the devices files and outputs everything as sound, one file at a time, without any user input. When the device is removed, I would like the sound to stop.

I have been looking into audioop, which i think can read non sound files as sound and output them, but I have no idea how to implement this as i have only had experience with visual interfaces.

Again, i'm a beginner and thanks for any suggestions/help.

I did post this on the Raspberry Pi forum here:

https://www.raspberrypi.org/forums/viewt...ead#unread


Thankyou

Luke
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading CSV From another directory jamesaarr 1 1,521 Sep-20-2021, 05:25 PM
Last Post: deanhystad
  Opening file and outputting its text content example leodavinci1990 1 1,891 Oct-12-2020, 05:33 AM
Last Post: buran
  Outputting Sorted Text files Help charlieroberrts 1 1,742 Jul-05-2020, 08:37 PM
Last Post: menator01
  Error With Reading Files In Directory And Calculating Values chascp 2 2,454 Feb-15-2020, 01:57 PM
Last Post: chascp
  Outputting results into other program ancient650 1 1,866 Jun-11-2019, 02:49 PM
Last Post: gontajones
  Python only outputting "101" Spuffle 4 9,279 Jan-09-2019, 10:07 AM
Last Post: buran
  reading directory paths from file to list malonn 6 4,103 Oct-26-2018, 11:19 PM
Last Post: malonn
  Outputting a float value in a print() statement RedSkeleton007 2 3,535 Jan-11-2018, 09:23 AM
Last Post: buran
  Attribute errors, and outputting johnnyaustin 3 3,355 Dec-09-2017, 02:58 PM
Last Post: buran
  Code is Outputting Incorrectly mikerosz94 0 2,086 Sep-01-2017, 01:28 PM
Last Post: mikerosz94

Forum Jump:

User Panel Messages

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