# Audio processing in Julia

**URL:** <https://discourse.julialang.org/t/audio-processing-in-julia/35248>\
**Category:** New to Julia\
**Tags:** audio\
**Created:** [February 27, 2020, 6:19pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248 "2020-02-27T18:19:04Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![minifdez11](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/minifdez11/32/13140_2.png) [@minifdez11](https://discourse.julialang.org/u/minifdez11)\
**Post date:** [February 27, 2020, 6:19pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/1 "2020-02-27T18:19:04Z")

</div>

Hi, I want to make some operations with an mp3 file or WAV file, like splitting, but idk how to make it in Julia, i saw that the pkgs LibSndFile.jl, AudioIO.jl and WAV.jl don’t work well, is there any library that will help me with that issue?

---

<div class="post-metadata">

**Author:** ![ssfrr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ssfrr/32/3736_2.png) [@ssfrr](https://discourse.julialang.org/u/ssfrr)\
**Post date:** [February 27, 2020, 6:38pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/2 "2020-02-27T18:38:06Z")

</div>

Hi @minifdez11 - AudioIO.jl has been deprecated for a long time, but the other two should still be fine. Can you clarify what didn’t work for you?

Unfortunately neither one supports MP3 files though, so you’ll have to convert to a different format (I use FLAC for lossless and Ogg for lossy), both of which should work with LibSndFile.jl.

---

<div class="post-metadata">

**Author:** ![minifdez11](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/minifdez11/32/13140_2.png) [@minifdez11](https://discourse.julialang.org/u/minifdez11)\
**Post date:** [February 28, 2020, 8:51am UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/3 "2020-02-28T08:51:25Z")

</div>

Hi @ssfrr, I’m trying to split the audio in chunks of a specific length (in seconds) but I’m only able to do it by bytes, not seconds.  
Is there any way to split those audios in seconds instead of bytes? I didn’t find a way to do it.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![ssfrr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ssfrr/32/3736_2.png) [@ssfrr](https://discourse.julialang.org/u/ssfrr)\
**Post date:** [February 28, 2020, 1:53pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/4 "2020-02-28T13:53:26Z")

</div>

Can you share what you’ve tried?

There are some examples in [the README](https://github.com/JuliaAudio/LibSndFile.jl#libsndfilejl), I think the second one is doing what you describe, if I understand you correctly.

---

<div class="post-metadata">

**Author:** ![minifdez11](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/minifdez11/32/13140_2.png) [@minifdez11](https://discourse.julialang.org/u/minifdez11)\
**Post date:** [March 2, 2020, 1:08pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/5 "2020-03-02T13:08:53Z")

</div>

I was trying an example in the Readme, but I just solved the problem.  
Thanks for helping me!

---

<div class="post-metadata">

**Author:** ![evad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/evad/32/15756_2.png) [@evad](https://discourse.julialang.org/u/evad)\
**Post date:** [June 17, 2021, 2:17pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/6 "2021-06-17T14:17:00Z")

</div>

I had a FLAC file \> 1GB and wanted to split it into several files. But failed at loading it into julia using FileIO::load, any recommendation on the size limit of audio which can be properly handled by Julia? or the right way to handle large audio files? Why other softwares like ffmpeg sox can handle very large files?

---

<div class="post-metadata">

**Author:** ![bjarthur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bjarthur/32/9638_2.png) [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Post date:** [February 27, 2026, 4:55pm UTC](https://discourse.julialang.org/t/audio-processing-in-julia/35248/7 "2026-02-27T16:55:30Z")

</div>

i can successfully load a 2.5 GB FLAC file, using julia v1.12.5, FLAC v0.3.0, and FLAC\_jll v1.4.4+0.
