41 lines
1.1 KiB
Python
41 lines
1.1 KiB
Python
# ------------------------------------------------------------
|
||
# AAC Coder/Decoder - Configuration
|
||
#
|
||
# Multimedia course at Aristotle University of
|
||
# Thessaloniki (AUTh)
|
||
#
|
||
# Author:
|
||
# Christos Choutouridis (ΑΕΜ 8997)
|
||
# cchoutou@ece.auth.gr
|
||
#
|
||
# Description:
|
||
# This module contains the global configurations
|
||
#
|
||
# ------------------------------------------------------------
|
||
from __future__ import annotations
|
||
|
||
# Imports
|
||
from typing import Final
|
||
|
||
from core.aac_types import WinType
|
||
|
||
# Filterbank
|
||
# ------------------------------------------------------------
|
||
# Window type
|
||
# Options: "SIN", "KBD"
|
||
WIN_TYPE: WinType = "SIN"
|
||
|
||
|
||
# TNS
|
||
# ------------------------------------------------------------
|
||
PRED_ORDER = 4
|
||
QUANT_STEP = 0.1
|
||
QUANT_MAX = 0.7 # 4-bit symmetric with step 0.1 -> clamp to [-0.7, +0.7]
|
||
|
||
|
||
# -----------------------------------------------------------------------------
|
||
# Psycho
|
||
# -----------------------------------------------------------------------------
|
||
|
||
NMT_DB: Final[float] = 6.0 # Noise Masking Tone (dB)
|
||
TMN_DB: Final[float] = 18.0 # Tone Masking Noise (dB) |