mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-07 13:08:54 -07:00
fix(anki): lower audio normalization target to -23 LUFS (EBU R128)
This commit is contained in:
@@ -168,7 +168,7 @@ test('generateAudio normalizes sentence audio by default', async () => {
|
|||||||
await generator.generateAudio('/video.mp4', 10, 12);
|
await generator.generateAudio('/video.mp4', 10, 12);
|
||||||
|
|
||||||
const args = readFfmpegArgs(argsPath);
|
const args = readFfmpegArgs(argsPath);
|
||||||
assert.equal(args[args.indexOf('-af') + 1], 'loudnorm=I=-18:TP=-1.5:LRA=11');
|
assert.equal(args[args.indexOf('-af') + 1], 'loudnorm=I=-23:TP=-2:LRA=11');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import { createLogger } from './logger';
|
|||||||
import { normalizeMediaInput, type MediaInput } from './media-input';
|
import { normalizeMediaInput, type MediaInput } from './media-input';
|
||||||
|
|
||||||
const log = createLogger('media');
|
const log = createLogger('media');
|
||||||
const AUDIO_NORMALIZATION_FILTER = 'loudnorm=I=-18:TP=-1.5:LRA=11';
|
const AUDIO_NORMALIZATION_FILTER = 'loudnorm=I=-23:TP=-2:LRA=11';
|
||||||
|
|
||||||
export type { MediaInput, MediaInputOptions } from './media-input';
|
export type { MediaInput, MediaInputOptions } from './media-input';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user