A method and apparatus are provided for identifying a noise environment for a
frame
of an input signal based on at least one feature for that frame. Under one embodiment,
the noise environment is identified by determining the probability of each of a
set of possible noise environments. For some embodiments, the probabilities of
the noise environments for past frames are included in the identification of an
environment for a current frame. In one particular embodiment, a count is generated
for each environment that indicates the number of past frames for which the environment
was the most probable environment. The environment with the highest count is then
selected as the environment for the current frame.