If we have a random variable $Y\sim Ber(p)$ and $$X|Y\sim Y N(0,\sigma_1^2)+(1-Y)N(0,\sigma_2^2)$$
How to get $f(x|y)$ proportion to the product of two normal distribution?
Is it just the sum of two normal distributions? The expectation of $X|Y$ is $\mathbb{E}(X|Y)=0$. Do we have $ Var(X|Y)=Y^2\sigma_1^2+(1-Y)^2\sigma_2^2$
Setting $Z_i\sim N(0;\sigma_i^2)$ and assuming independence between $Z_1$,$Z_2$ and $Y$,
your conditional density is a mixture of the two gaussian densities
$$f_{X|Y=y}(t)=yf_{Z_1}(t) +(1-y)f_{Z_2}(t)$$
The marginal distribution is:
$$f_X(x)=\frac{p}{\sigma_1\sqrt{2\pi}}e^{-\frac{x^2}{2\sigma_1^2}}+\frac{1-p}{\sigma_2\sqrt{2\pi}}e^{-\frac{x^2}{2\sigma_2^2}}$$