Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
audio read/write library
#1
does anyone know of a good audio library that could let my code read and write audio files in flac and mp3 (vbr) formats, along with the ability to discover and configure number of channels, number of bits per sample, byte order (where applicable), signedness (where applicable), sample rate, etc.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#2
pydub
Reply
#3
that library is not a read/write library. it's a front-end to running ffmpeg. i need operations/methods like opening a file, setting parameters on output file, reading/writing samples of audio. samples would be a list/tuple of ints, or a list/tuple of those for many samples at once. stuff like that.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#4
I have used https://pypi.org/project/pocketsphinx/ may or may not fit your needs.
Reply
#5
pocketsphinx is for speech recognition. what i am doing is reading in an audio waveform which is a stream of sample tuples, applying some arithmetic changes, and writing the results back out.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#6
In that case, perhaps https://audiomath.readthedocs.io/en/release/
Reply
#7
it refers to "AVbin" which i don't find in pip search. so maybe that's a binary it provides an interface to.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply
#8
I have no clue, you'll need to investigate.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can and I read and write css files SheeppOSU 2 2,388 May-04-2020, 11:56 PM
Last Post: SheeppOSU

Forum Jump:

User Panel Messages

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