http://www.speex.org/
Have you ever considered using this for compressing speech as this is its primary use rather than ogg and mp3 which is aimed at music.
Speech Codec
Moderator: ScummVM Team
- JamesWoodcock
- Posts: 222
- Joined: Wed Nov 09, 2005 12:20 am
- Location: England UK
- Contact:
- eriktorbjorn
- ScummVM Developer
- Posts: 3560
- Joined: Mon Oct 31, 2005 7:39 am
Re: Speech Codec
The idea has been brought up a few times, but I don't know if anyone has bothered to check if Speex would really provide any tangible benefits. A few years ago, I tried encoding a WAV file with Speex. The resulting file was about the same size as an Ogg Vorbis-encoded file, but the sound quality was considerably worse.glidem wrote:http://www.speex.org/
Have you ever considered using this for compressing speech as this is its primary use rather than ogg and mp3 which is aimed at music.
It appears to have improved a lot since then, though.
I'm not sure how many of the games keep the speech separate from the rest of the sound effects, though. The Broken Sword games do. Any others?
-
- Posts: 10
- Joined: Sun Dec 18, 2005 1:33 am
Any compression codecs aimed specifically at voice would be aimed at the frequency range of approxiamtely 300-3500Hz whereas codecs like OGG and MP3 obviously cover the full 20Hz-20kHz range. As Clem says, Speex is aimed at VoIP. I suppose with most things it's a case of quality over file size. I'd personally stick with OGG/MP3 though.
- JamesWoodcock
- Posts: 222
- Joined: Wed Nov 09, 2005 12:20 am
- Location: England UK
- Contact:
-
- Posts: 10
- Joined: Sun Dec 18, 2005 1:33 am
- LogicDeLuxe
- Posts: 437
- Joined: Thu Nov 10, 2005 9:54 pm
They can do that, but they don't have to. With good encoders, you can preselect a band you want to be encoded, which apparently can save a lot on the bitrate. Getting rid of some less important frequencies is the whole point of lossy codecs anyway.JoeysAudioChip wrote:codecs like OGG and MP3 obviously cover the full 20Hz-20kHz range.
Keep in mind that neither WMP nor WMA are free codecs, and there are many platforms which don't support these formats. As ScummVM is supposed to be portable (and stay that way), it's not favorable. Of course it would be possible to add in optional support in the Windows port, but that'd require someone to do it
As for Speex support, I don't think it would lead to anything other than hurting the sample quality. We don't want Guybrush to sound as if he actually called from the carribean
pi~
As for Speex support, I don't think it would lead to anything other than hurting the sample quality. We don't want Guybrush to sound as if he actually called from the carribean
pi~