If you do not receive your verification email after registering, please check your spam folder. You can also get in contact with us via other methods.
Если вы не получили письмо c подтверждением регистрации, пожалуйста, проверьте папку спам. В случае отсутствия письма и там напишите нам другим способом.

[EN] Distorted Voice playback

Community-based support for our public releases.
Общественная поддержка для публичных релизов.
Locked
drojf
Posts: 7
Joined: 17 Dec 2015, 11:11
Gender: Male

[EN] Distorted Voice playback

Post by drojf »

1. You must make sure to be using the latest engine and game script but even so, write engine filename and script date and filename here.
Version v3.2b+
onscripter-ru_sdl2_win_r1699
scripts_11.12.15

3. Describe the issue happened properly, step by step.
Hi, I was trying out your Episode 2 Beta release, on a Windows 10 x64 machine.

I already played the old umitweak version a long time ago, and noticed some issues when I was playing the chapters 1-4 with voice/sfx/music playback. So I thought I'd try out your version to compare.

The main problem I found was that the voices didn't sound quite right, so I went to the voice folder to play the originals. It looks like during playback, the voices are downsampled from 44100hz to 22000hz ..or some other filtering is applied, making the voices sound a bit muffled, and the "sss" sounds a bit off. Could also be clipping, not sure. Actually upon closer listening it sounds like a slight ringing as well.

I have attached two sound files, one from the game, and one playing the voice files back in foobar. The game was played with the VOICE volume set to 6/10, and all other volumes set to 0/10 (off) - this file is (bad eva). The other (good eva) is playing the raw sound files (in the sound\voice\05 folder) in foobar. Both are recorded the same way to make the comparison fair (my soundcard has loopback recording built in, so I used Audacity to record it). They have both been amplified to reach the same volume level so there is no discrepancy in that respect.

(note: only the first few phrases are the same)

Eva Sound Samples: https://mega.nz/#F!Iswy2KQJ!vmKIXe7zTa811SRhwEng8g

Streaming (not really a good way to compare):
https://clyp.it/fbc3nvfe
https://clyp.it/lkss2o0f

I think you'll agree that they sound slightly different, the only question is whether this only happens on my machine or not :S.

5. It may well be helpful to post your hardware information here (esp. CPU, GPU, RAM, VRAM).

Code: Select all

         Operating System: Windows 10 Pro 64-bit (10.0, Build 10240) (10240.th1_st1.151104-1714)
                 Language: English (Regional Setting: English)
                Processor: Intel(R) Core(TM) i5-4570S CPU @ 2.90GHz (4 CPUs), ~2.9GHz
                GPU: Intel HD Graphics 4600 (Integrated Graphics)
                Soundcard: Realtek ALC892
                   Memory: 8192MB RAM
      Available OS Memory: 7846MB RAM
          DirectX Version: 12
       System DPI Setting: 96 DPI (100 percent)
           DxDiag Version: 10.00.10240.16384 64bit Unicode
Knox
Администратор
Posts: 202
Joined: 24 Feb 2015, 23:11
Gender: Male

Re: [EN] Distorted Voice playback

Post by Knox »

Great find. Thank you for the detailed report :) I verified the issue on my machine.

We will explore this today.
vit9696
Администратор
Posts: 1767
Joined: 24 Feb 2015, 00:48
Gender: Male

Re: [EN] Distorted Voice playback

Post by vit9696 »

I think we have resolved the issue, many thanks for such a find.

The cause is pretty ancient: in old days ons was unable to properly handle 48 KHz sounds, so all the files were downsampled to 44.1 KHz. This created a lot of glitches to lipsync, which we fixed by reencoding the voice files only. However, the default audio rate remained 44.1 causing the voices to be downsampled on the fly.

From this point we have switched to 48 KHz for all the sounds and even reencoded the bgms to get closer to their original quality. This should not only fix your bug, but improve the sound throughout the game. Unfortunately in order to verify the fix you will either have to wait for the next public release, or switch to alpha upgrade channel (which I would prefer :D), a fix will arrive there this weekend.
Knox
Администратор
Posts: 202
Joined: 24 Feb 2015, 23:11
Gender: Male

Re: [EN] Distorted Voice playback

Post by Knox »

Also, if you would like to be featured in our credits for finding this bug, please post your preferred credit name :)
drojf
Posts: 7
Joined: 17 Dec 2015, 11:11
Gender: Male

Re: [EN] Distorted Voice playback

Post by drojf »

I can't believe you guys respond so quickly, thanks - you can credit me as "drojf" :)

hmm I dunno if I have time to be an alpha tester, but I'll at least check this particular issue and put in my alpha test request.
drojf
Posts: 7
Joined: 17 Dec 2015, 11:11
Gender: Male

Re: [EN] Distorted Voice playback

Post by drojf »

Hi, I tried out the fixed version and all is well, seems to match the voice files in quality.

I was just wondering what the original PS3 voice file format was (i'm guessing AAC or ogg vorbis, but what bitrate?). For the beta versions it's not really worth it to upload huge voice files, but for the final version, would it be possible to use the original voice files? how big is the original voice archive?
vit9696
Администратор
Posts: 1767
Joined: 24 Feb 2015, 00:48
Gender: Male

Re: [EN] Distorted Voice playback

Post by vit9696 »

Hi,

The original voices are in ATRAC3: 1 ch, 48 KHz, 64 Kbps. We do not support this format decoding, and therefore reencoded them into vorbis: 1 ch, 48 KHz, 80 Kbps. Opensource ATRAC3 decoders are rather imperfect (and at the time we started there were none at all) so even if we bothered using them, which is not a trivial task, there will unlikely be any quality increase. As for sizes, it should be obvious that our voice pack is bigger by ~500 MBs.
In case you still have doubts I uploaded a couple of original files for a test:
http://rghost.ru/private/6sG5cS5sx/6993 ... 783b1b9ec3
Locked