Page 1 of 1

Audio Formats?

Posted: Thu Feb 16, 2017 5:14 pm
by RalleYTN
Just wanted to ask which audio formats for sound effects are valid. I looked at the base mod and could only see .OGG files. now I wanted to know if other formats are allowed too and if yes which formats

Re: Audio Formats?

Posted: Thu Feb 16, 2017 6:22 pm
by Kayanor
I recommend using OGG as audio format for modding purposes.
OGG has the big advantage that it can have the same quality as a high quality MP3 file while OGG uses a way smaller bitrate.

Re: Audio Formats?

Posted: Thu Feb 16, 2017 6:24 pm
by RalleYTN
Kajanor wrote:I recommend using OGG as audio format for modding purposes.
OGG has the big advantage that it can have the same quality as a high quality MP3 file while OGG uses a way smaller bitrate.
ok. just wanted to know if I should include an audio converter in a project. :D

Re: Audio Formats?

Posted: Fri Oct 08, 2021 6:30 pm
by Bilka
Seems like this shows up in some search results and I just documented this, so here is the answer:
Support sound file formats are .ogg, .wav and .voc.

Re: Audio Formats?

Posted: Tue Jun 03, 2025 4:43 pm
by Stargateur
Bilka wrote: Fri Oct 08, 2021 6:30 pm Seems like this shows up in some search results and I just documented this, so here is the answer:
Support sound file formats are .ogg, .wav and .voc.
where did you document it ? Can't find anything in wiki or doc

Re: Audio Formats?

Posted: Tue Jun 03, 2025 5:01 pm
by Bilka
Stargateur wrote: Tue Jun 03, 2025 4:43 pm
Bilka wrote: Fri Oct 08, 2021 6:30 pm Seems like this shows up in some search results and I just documented this, so here is the answer:
Support sound file formats are .ogg, .wav and .voc.
where did you document it ? Can't find anything in wiki or doc
On the sound type: https://lua-api.factorio.com/latest/typ ... l#filename

In the meantime we dropped support for .voc.

Re: Audio Formats?

Posted: Tue Jun 03, 2025 6:39 pm
by Stargateur
Bilka wrote: Tue Jun 03, 2025 5:01 pm On the sound type: https://lua-api.factorio.com/latest/typ ... l#filename
Thanks, I start from play_sound of runtime doc, then realize I needed to add my audio file in data stage. Since `play_sound` need a `path` I was using `__mymod__` directly and the game just quit :lol:. Then I define my sound in data.lua but I didn't expect filename doc would contain the file supported format, I was searching at the top of sound doc, wiki or in concept or auxiliary topic.
Bilka wrote: Tue Jun 03, 2025 5:01 pm In the meantime we dropped support for .voc.
:lol: My source audio file are in mp3 but I was expecting it would not be supported and.... never ever hear about .voc