Selecting a packet loss concealment procedure
In accordance with an example embodiment of the present invention, disclosed is a method and an apparatus thereof for selecting a packet loss concealment procedure for a lost audio frame of a received audio signal. A method for selecting a packet loss concealment procedure comprises detecting an audio type of a received audio frame and determining a packet loss concealment procedure based on the audio type. In the method, detecting an audio type comprises determining a stability of a spectral envelope of signals of received audio frames.
1. A method of operation by a host device, the method comprising:
receiving audio frames in a stream of consecutive audio frames;
detecting a frame loss in the stream;
determining a packet loss concealment procedure to use for concealing the frame loss, in dependence on a spectral envelope stability of the stream; and
determining the spectral envelope stability of the stream as a numeric measure of inter-frame variability that is calculated in dependence on the spectral envelopes of two or more audio frames in the stream that were correctly received in advance of the frame loss.
2. The method of claim 1 , wherein determining the packet loss concealment procedure to use for concealing the frame loss comprises determining the packet loss concealment procedure in dependence on whether the numeric measure of inter-frame variability is indicative of music or speech.
3. The method of claim 2 , wherein the numeric measure of inter-frame variability is indicative of music when it falls into a range of values characteristic for audio frames having musical content and is indicative of speech when it falls into a range of values characteristic for audio frames having speech content.
4. The method of claim 1 , wherein determining the packet loss concealment procedure to use for concealing the frame loss comprises classifying the frame loss as being associated with music or speech in dependence on whether the numeric measure of inter-frame variability is indicative of music or speech and determining the packet loss concealment procedure to use for concealing the frame loss in dependence on the classification.
5. The method of claim 4 , wherein determining the packet loss concealment procedure to use for concealing the frame loss in dependence on the classification comprises selecting one among two or more packet loss concealment procedures in dependence on the classification.
6. An electronic apparatus comprising:
communication circuitry configured to receive audio frames in a stream of consecutive audio frames; and
processing circuitry configured to:
detect a frame loss in the stream;
determine a packet loss concealment procedure to use for concealing the frame loss, in dependence on a spectral envelope stability of the stream; and
determine the spectral envelope stability of the stream as a numeric measure of inter-frame variability that is calculated in dependence on the spectral envelopes of two or more audio frames in the stream that were correctly received in advance of the frame loss.
7. The electronic apparatus of claim 6 , wherein the processing circuitry is configured to determine the packet loss concealment procedure to use for concealing the frame loss by determining the packet loss concealment procedure in dependence on whether the numeric measure of inter-frame variability is indicative of music or speech.
8. The electronic apparatus of claim 7 , wherein the numeric measure of inter-frame variability is indicative of music when it falls into a range of values characteristic for audio frames having musical content and is indicative of speech when it falls into a range of values characteristic for audio frames having speech content.
9. The electronic apparatus of claim 8 , wherein the electronic apparatus is a wireless terminal configured for operation in a communication network, or is a transcoding node configured for operation in the communication network.
10. The electronic apparatus of claim 6 , wherein the processing circuitry is configured to determine the packet loss concealment procedure to use for concealing the frame loss by classifying the frame loss as being associated with music or speech in dependence on whether the numeric measure of inter-frame variability is indicative of music or speech and determining the packet loss concealment procedure to use for concealing the frame loss in dependence on the classification.
11. The electronic apparatus of claim 10 , wherein the processing circuitry is configured to determine the packet loss concealment procedure to use for concealing the frame loss in dependence on the classification by selecting one among two or more packet loss concealment procedures in dependence on the classification.