  The goal of this paper is to explicitly compute the Kodaira-Spencer maps over
Hilbert-Siegel modular varieties and twisted Hilbert modular varieties and
their effects on the metrics of the Hodge bundle. Our result is a
generalization of the result in \cite{arXiv:2205.11334}.
