Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
ENCODING AND DECODING AUDIO SIGNALS
Document Type and Number:
WIPO Patent Application WO/2019/091980
Kind Code:
A1
Abstract:
There are provided methods and apparatus and non-transitory memory units for encoding/decoding audio signal information. The encoder side may determine if a signal frame is useful for long term post filtering (LTPF) and/or packet lost concealment (PLC) and may encode information in accordance to the results of the determination. The decoder side may apply the LTPF and/or PLC in accordance to the information obtained from the encoder.

Inventors:
RAVELLI EMMANUEL (DE)
TOMASEK ADRIAN (DE)
LUTZKY MANFRED (DE)
BENNDORF CONRAD (DE)
Application Number:
PCT/EP2018/080350
Publication Date:
May 16, 2019
Filing Date:
November 06, 2018
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
FRAUNHOFER GES FORSCHUNG (DE)
International Classes:
G10L19/26; G10L19/005; G10L19/08
Domestic Patent References:
WO2014202535A12014-12-24
WO2012000882A12012-01-05
Foreign References:
US20170133029A12017-05-11
US20170140769A12017-05-18
US20170133029A12017-05-11
Other References:
DVB ORGANIZATION: "ISO-IEC_23008-3_A3_(E)_(H 3DA FDAM3).docx", DVB, DIGITAL VIDEO BROADCASTING, C/O EBU - 17A ANCIENNE ROUTE - CH-1218 GRAND SACONNEX, GENEVA - SWITZERLAND, 13 June 2016 (2016-06-13), XP017851888
Attorney, Agent or Firm:
ZINKLER, Franz et al. (DE)
Download PDF:
Claims:
Claims

1. An apparatus (70, 300) for decoding audio signal information (12, 12', 12") associated to an audio signal divided in a sequence of frames, comprising: a bitstream reader (71 , 320) configured to read encoded audio signal information (12, 12', 12", 310) having: an encoded representation (16a, 17a, 18a, 310) of the audio signal (1 1 ) for a first frame (16, 16', 16") and a second frame (17, 17', 17"); a first pitch information (16b) for the first frame (16, 16', 16") and a first control data item (16c) having a first value; and a second pitch information (17b) for the second frame (17, 17', 17") and a second control data item (17c) having a second value being different from the first value; and a controller (72) configured to control a long term post filter, LTPF, (73, 376) to: filter a decoded representation (71 a, 372) of the audio signal in the second frame (17, 17', 17") using the second pitch information (17b) when the second control data item (17c) has the second value; and deactivate the LTPF (73, 376) for the first frame (16, 16', 16") when the first control data item (16c) has the first value.

2. The apparatus of claim 1 , wherein: the bitstream reader (71 , 320) is configured to read a third frame (18"), the third frame (18") having a control data item (18e) indicating the presence or absence of the first pitch information (16b) and/or the second pitch information (17b).

3 The apparatus of claim 2, wherein: the third frame (18") has a format which lacks the first pitch information (16b), the first control data item (16c), the second pitch information (17b), and the second control data item (17c).

4. The apparatus of claim 2 or 3, wherein: the third control data item (18e) is encoded in one single bit having a value which distinguishes the third frame (18") from the first and second frame (16", 17").

5. The apparatus of any of the preceding claims, wherein: in the encoded audio signal information, for the first frame (16"), one single bit is reserved for the first control data item (16c) and a fixed data field (16b) is reserved for the first pitch information.

6. The apparatus of any of the preceding claims, wherein: in the encoded audio signal information, for the second frame (17"), one single bit is reserved for the second control data item (17c) and a fixed data field (17b) is reserved for the second pitch information.

7. The apparatus of any of the preceding claims, wherein: the first control data item (16c) and the second control data item (17c) are encoded in the same portion or data field in the encoded audio signal information.

8. The apparatus of any of the preceding claims, wherein: the encoded audio signal information comprises one first signalling bit encoding the third control data item (18e); and, in case of a value of the third control data item (18e) indicating the presence of the first pitch information (16b) and/or the second pitch information (17b), a second signalling bit encoding the first control data item (16c) and the second control data item (17c). 9. The apparatus of any of the preceding claims, further comprising: a concealment unit (75, 380) configured to use the first and/or second pitch information (16b, 17b) to conceal a subsequent non-properly decoded audio frame.

10. The apparatus of claim 9, the concealment unit (75, 380) being configured to: in case of determination of decoding of an invalid frame (S102), check whether pitch information relating a previously correctly decoded frame is stored (S107), so as to conceal an invalidly decoded frame with a frame obtained using the stored pitch information (S108). 1 1 An apparatus (10, 10') for encoding audio signals (1 1 ), comprising: a pitch estimator (13) configured to obtain pitch information (13a) associated to a pitch of an audio signal (1 1 ); a signal analyzer (14) configured to obtain harmonicity information (14a, 24a, 24c) associated to the harmonicity of the audio signal (1 1 ); and a bitstream former (15) configured to prepare encoded audio signal information (12") encoding frames (16", 17", 18") so as to include in the bitstream: an encoded representation (16a, 17a, 18a) of the audio signal (1 1 ) for a first frame (16"), a second frame (17"), and a third frame (18"); a first pitch information (16b) for the first frame (16") and a first control data item (16c) having a first value; a second pitch information (17b) for the second frame (17") and a second control data item (17c) having a second value being different from the first value; and a third control data item (18e) for the first, second and third frame, wherein the first value (16c) and the second value (17c) depend on a second criteria (600) associated to the harmonicity information (14a, 24a, 24c), and the first value (16c) indicates a non-fulfilment of the second criteria (600) for the harmonicity of the audio signal (1 1 ) in the first frame (16"), and the second value (17c) indicates a fulfilment of the second criteria (600) for the harmonicity of the audio signal (1 1 ) in the second frame (17"), wherein the second criteria (600) comprise at least a condition (S63) which is fulfilled when at least one second harmonicity measurement (24a") is greater than at least one second threshold, the third control data item (18e) being encoded in one single bit having a value which distinguishes the third frame (18") from the first and second frame (16", 17"), the third frame (18") being encoded in case of non-fulfilment of a first criteria (S61 ) and the first and second frames (16", 17") being encoded in case of fulfilment of the first criteria (S61 ), wherein the first criteria (S61 ) comprise at least a condition which is fulfilled when at least one first harmonicity measurement (24a') is greater than at least one first threshold, wherein, in the bitstream, for the first frame (16"), one single bit is reserved for the first control data item (16c) and a fixed data field (16b) is reserved for the first pitch information, wherein, in the bitstream, for the second frame (17"), one single bit is reserved for the second control data item (17c) and a fixed data field (17b) is reserved for the second pitch information, and wherein, in the bitstream, for the third frame (18"), no bit is reserved for the fixed data field and/or for the first and second control item.

12. The apparatus of claim 11 , wherein the second criteria (600) comprise at least an additional condition which is fulfilled when at least one harmonicity measurement of the previous frame is greater than the at least one additional threshold. 13. The apparatus of any of claims 1 1 or 12, wherein the first and second harmonicity measurements are obtained at different sampling rates.

14. The apparatus of any of claims 1 1 -13, wherein: the pitch information (13a) comprises a pitch lag information or a processed version thereof. 15. The apparatus of any of claims 1 1 -14, wherein: the harmonicity information (14a, 24a, 24a', 24a", 24c) comprises at least one of an autocorrelation value and/or a normalized autocorrelation value and/or a processed version thereof.

16. A method (100) for decoding audio signal information associated to an audio signal divided in a sequence of frames, comprising: reading (S101 ) an encoded audio signal information (12") comprising: an encoded representation (16a, 17a) of the audio signal (1 1 ) for a first frame (16") and a second frame (17"); a first pitch information (16b) for the first frame (16") and a first control data item (16c) having a first value; a second pitch information (17b) for the second frame (17") and a second control data item (17c) having a second value being different from the first value, at the determination that the first control data item (16c) has the first value, using the first pitch information (16b) for a long term post filter, LTPF, and at the determination of the second value of the second control data item (17c), deactivating the LTPF.

17. The method of claim 16, further comprising: at the determination that the first or second control data item (16c, 17c) has the first or second value, using the first or second pitch information (16c, 17b) for an error concealment function.

18. A method (60) for encoding audio signal information associated to a signal divided into frames, comprising: obtaining (S60) measurements (24a, 24a', 24a") from the audio signal; verifying (S63, S610-S612) the fulfilment of a second criteria (600), the second criteria (600) being based on the measurements (24a, 24a', 24a") and comprising at least one condition which is fulfilled when at least one second harmonicity measurement (24a') is greater than a second threshold; forming (S64) an encoded audio signal information (12, 12', 12") having frames

(16", 17", 18") including: an encoded representation (16a, 17a) of the audio signal (1 1 ) for a first frame (16") and a second frame (17") and a third frame (18"); a first pitch information (16b) for the first frame (16") and a first control data item (16c) having a first value and a third control data item (18e); a second pitch information (17b) for the second frame (17") and a second control data item (17c) having a second value being different from the first value and a third control data item (18e), wherein the first value (16c) and the second value (17c) depend on the second criteria (600), and the first value (16c) indicates a non-fulfilment of the second criteria (600) on the basis of a harmonicity of the audio signal (1 1) in the first frame (16"), and the second value (17c) indicates a fulfilment of the second criteria (600) on the basis of a harmonicity of the audio signal (11 ) in the second frame (17"), the third control data item (18e) being one single bit having a value which distinguishes the third frame (18") from the first and second frames (16", 17") in association to the fulfilment of first criteria (S61 ), so as to identify the third frame (18") when the third control data item (18e) indicates the non-fulfilment of the first criteria (S61 ), on the basis of at least one condition which is fulfilled when at least one first harmonicity measurement (24a') is higher than at least one first threshold, wherein the encoded audio signal information is formed so that, for the first frame (16"), one single bit is reserved for the first control data item (16c) and a fixed data field for the first pitch information (16b), and wherein the encoded audio signal information is formed so that, for the second frame (17"), one single bit is reserved for the second control data item (17c) and a fixed data field for the second pitch information (17b), and wherein the encoded audio signal information is formed so that, for the third frame (18"), no bit is reserved for the fixed data field and no bit is reserved for the first control data item (16c) and the second control data item (17c).

19. A method comprising: encoding an audio signal (1 1 ) according to claim 16 or 17; transmitting the encoded audio signal information (12, 12', 12") to a decoder or storing the encoded audio signal information; decoding the audio signal information (12, 12', 12") according to claim 18.

20. A non-transitory memory unit storing instructions which, when executed by a processor, perform a method according to any of claims 16-19.

Description:
Encoding and decoding audio signals

Description 1. Technical field

Examples refer to methods and apparatus for encoding/decoding audio signal information. 2. Prior art

The prior art comprises the following disclosures;

[1] 3GPP TS 26.445; Codec for Enhanced Voice Services (EVS); Detailed algorithmic description.

[2] ISO/I EC 23008-3:2015; Information technology ~ High efficiency coding and media delivery in heterogeneous environments - Part 3: 3D audio.

[3] Ravelli et al. "Apparatus and method for processing an audio signal using a harmonic post-filter." U.S. Patent Application No. 2017/0140769 A1. 18 May. 2017. [4] Markovic et al. "Harmonicity-dependent controlling of a harmonic filter tool." U.S.

Patent Application No. 2017/0133029 A1. 1 1 May. 2017.

[5] ITU-T G.718: Frame error robust narrow-band and wideband embedded variable bit- rate coding of speech and audio from 8-32 kbit/s.

[6] ITU-T G.711 Appendix I: A high quality low-complexity algorithm for packet loss concealment with G.711.

[7] 3GPP TS 26.447: Codec for Enhanced Voice Services (EVS); Error concealment of lost packets.

Transform-based audio codecs generally introduce inter-harmonic noise when processing harmonic audio signals, particularly at low delay and low bitrate. This inter-harmonic noise is generally perceived as a very annoying artefact, significantly reducing the performance of the transform-based audio codec when subjectively evaluated on highly tonal audio material. Long Term Post Filtering (LTPF) is a tool for transform-based audio coding that helps at reducing this inter-harmonic noise. It relies on a post-filter that is applied on the time- domain signal after transform decoding. This post-filter is essentially an infinite impulse response (MR) filter with a comb-like frequency response controlled by parameters such as pitch information (e.g., pitch lag).

For better robustness, the post-filter parameters (a pitch lag and, in some examples, a gain per frame) are estimated at the encoder-side and encoded in the bitstream, e.g., when the gain is non-zero. In examples, the case of the gain being zero is signalled with one bit and corresponds to an inactive post-filter, used when the signal does not contain a harmonic part.

LTPF was first introduced in the 3GPP EVS standard [1] and later integrated to the MPEG-H 3D-audio standard [2]. Corresponding patents are [3] and [4],

In the prior art, other functions at the decoder may make use of pitch information. An example is packet loss concealment (PLC) or error concealment. PLC is used in audio codecs to conceal lost or corrupted packets during the transmission from the encoder to the decoder. In the prior art, PLC may be performed at the decoder side and extrapolate the decoded signal either in the transform-domain or in the time-domain. Ideally, the concealed signal should be artefact-free and should have the same spectral

characteristics as the missing signal. This goal is particularly difficult to achieve when the signal to conceal contains a harmonic structure.

In this case, pitch-based PLC techniques may produce acceptable results. These approaches assume that the signal is locally stationary and recover the lost signal by synthesizing a periodic signal using an extrapolated pitch period. These techniques may be used in CELP-based speech coding (see e.g. ITU-T G.718 [5]). They can also be used for PCM coding (ITU-T G.711 [6]). And more recently they were applied to MDCT-based audio coding, the best example being TCX time domain concealment (TCX TD-PLC) in the 3GPP EVS standard [7].

The pitch information (which may be the pitch lag) is the main parameter used in pitch- based PLC. This parameter can be estimated at the encoder-side and encoded into the bitstream. In this case, the pitch lag of the last good frames are used to conceal the current lost frame (like in e.g. [5] and [7]). If there is no pitch lag in the bitstream, it can be estimated at the decoder-side by running a pitch detection algorithm on the decoded signal (like in e.g. [6]). In the 3GPP EVS standard (see [1 ] and [7]), both LTPF and pitch-based PLC are used in the same MDCT-based TCX audio codec. Both tools share the same pitch lag parameter. The LTPF encoder estimates and encodes a pitch lag parameter. This pitch lag is present in the bitstream when the gain is non-zero. At the decoder-side, the decoder uses this information to filter the decoded signal. In case of packet-loss, pitch-based PLC is used when the LTPF gain of the last good frame is above a certain threshold and other conditions are met (see [7] for details). In that case, the pitch lag is present in the bitstream and it can directly be used by the PLC module.

The bitstream syntax of the prior art is given by

However, some problems may arise.

The pitch lag parameter is not encoded in the bitstream for every frame. When the gain is zero in a frame (LTPF inactive), no pitch lag information is present in the bitstream. This can happen when the harmonic content of the signal is not dominant and/or stable enough.

Accordingly, by discriminating the encoding of the pitch lag on the basis of the gain, no pitch lag may be obtained by other functions (e.g., PLC).

For example, there are frames where the signal is slightly harmonic, not enough for LTPF, but sufficient for using pitch based PLC. In that case, the pitch-lag parameter would be required at the decoder-side even though it is not present in the bitstream.

One solution would be to add a second pitch detector at the decoder side, but this would add a significant amount of complexity, which is a problem for audio codecs targeting low- power devices.

3. The present invention According to examples, there is provided an apparatus for decoding audio signal information associated to an audio signal divided in a sequence of frames, comprising: a bitstream reader configured to read encoded audio signal information having: an encoded representation of the audio signal for a first frame and a second frame; a first pitch information for the first frame and a first control data item having a first value; and a second pitch information for the second frame and a second control data item having a second value being different from the first value; and a controller configured to control a long term post filter, LTPF, to: filter a decoded representation of the audio signal in the second frame using the second pitch information when the second control data item has the second value; and deactivate the LTPF for the first frame when the first control data item has the first value.

Accordingly, it is possible for the apparatus to discriminate between frames suitable for LTPF and frames non-suitable for LTPF, while using frames for error concealment even if the LTPF would not be appropriate. For example, in case of higher harmonicity the apparatus may make use of the pitch information (e.g., pitch lag) for LTPF. In case of lower harmonicity, the apparatus may avoid the use of the pitch information for LTPF, but may make use of the pitch information for other functions (e.g., concealment).

According to examples, the bitstream reader is configured to read a third frame, the third frame having a control data item indicating the presence or absence of the first pitch information and/or the second pitch information. According to examples, the third frame has a format which lacks the first pitch information, the first control data item, the second pitch information, and the second control data item.

According to examples, the third control data item is encoded in one single bit having a value which distinguishes the third frame from the first and second frame. According to examples, in the encoded audio signal information, for the first frame, one single bit is reserved for the first control data item and a fixed data field is reserved for the first pitch information.

According to examples, in the encoded audio signal information, for the second frame, one single bit is reserved for the second control data item and a fixed data field is reserved for the second pitch information.

According to examples, the first control data item and the second control data item are encoded in the same portion or data field in the encoded audio signal information.

According to examples, the encoded audio signal information comprises one first signalling bit encoding the third control data item; and, in case of a value of the third control data item (18e) indicating the presence of the first pitch information (16b) and/or the second pitch information (17b), a second signalling bit encoding the first control data item (16c) and the second control data item (17c).

According to examples, the apparatus may further comprise a concealment unit configured to use the first and/or second pitch information to conceal a subsequent non- properly decoded audio frame.

According to examples, the concealment unit may be configured to, in case of

determination of decoding of an invalid frame, check whether pitch information relating a previously correctly decoded frame is stored, so as to conceal an invalidly decoded frame with a frame obtained using the stored pitch information.

Accordingly, it is possible to obtain a good concealment every time the audio signal is compliant to concealment, and not only when the audio signal is compliant to LTPF. When the pitch information is obtained, there is no necessity of estimating the pitch lag, hence reducing the complexity. According to examples, there is provided apparatus for encoding audio signals, comprising: a pitch estimator configured to obtain pitch information associated to a pitch of an audio signal; a signal analyzer configured to obtain harmonicity information associated to the harmonicity of the audio signal; and a bitstream former configured to prepare encoded audio signal information encoding frames so as to include in the bitstream: an encoded representation of the audio signal for a first frame, a second frame, and a third frame; a first pitch information for the first frame and a first control data item having a first value; a second pitch information for the second frame and a second control data item having a second value being different from the first value; and a third control data item for the first, second and third frame, wherein the first value and the second value depend on a second criteria associated to the harmonicity information, and the first value indicates a non-fulfilment of the second criteria for the harmonicity of the audio signal in the first frame, and the second value indicates a fulfilment of the second criteria for the harmonicity of the audio signal in the second frame, wherein the second criteria comprise at least a condition which is fulfilled when at least one second harmonicity measurement is greater than at least one second threshold, the third control data item being encoded in one single bit having a value which distinguishes the third frame from the first and second frames, the third frame being encoded in case of non-fulfilment of first criteria and the first and second frames being encoded in case of fulfilment of the first criteria, wherein the first criteria comprise at least a condition which is fulfilled when at least one first harmonicity measurement is greater than at least one first threshold, wherein in the bitstream, for the first frame, one single bit is reserved for the first control data item and a fixed data field is reserved for the first pitch information, wherein in the bitstream, for the second frame, one single bit is reserved for the second control data item and a fixed data field is reserved for the second pitch

information, and wherein in the bitstream, for the third frame, no bit is reserved for the fixed data field and/or for the first and second control item.

Accordingly, it is possible for the decoder to discriminate between frames useful for LTPF, frames useful for PLC only, and frames useless for both LTPF and PLC. According to examples, the second criteria comprise an additional condition which is fulfilled when at least one harmonicity measurement of the previous frame is greater than the at least one second threshold.

According to examples, the signal analyzer is configured to determine whether the signal is stable between two consecutive frames as a condition for the second criteria. Accordingly, it is possible for the decoder to discriminate, for example, between a stable signal and a non-stable signal. In case of non-stable signal, the decoder may avoid the use of the pitch information for LTPF, but may make use of the pitch information for other functions (e.g., concealment).

According to examples, the first and second harmonicity measurements are obtained at different sampling rates

According to examples, the pitch information comprises a pitch lag information or a processed version thereof.

According to examples, the harmonicity information comprises at least one of an autocorrelation value and/or a normalized autocorrelation value and/or a processed version thereof.

According to examples, there is provided a method for decoding audio signal information associated to an audio signal divided in a sequence of frames, comprising: reading an encoded audio signal information comprising: an encoded representation of the audio signal for a first frame and a second frame; a first pitch information for the first frame and a first control data item (16c) having a first value; a second pitch information for the second frame and a second control data item having a second value being different from the first value, at the determination that the first control data item has the first value, using the first pitch information for a long term post filter, LTPF, and at the determination of the second value of the second control data item (17c), deactivating the LTPF.

According to examples, the method further comprises, at the determination that the first or second control data item has the first or second value, using the first or second pitch information for an error concealment function. According to examples, there is provided a method for encoding audio signal information associated to a signal divided into frames, comprising: obtaining measurements from the audio signal; verifying the fulfilment of a second criteria, the second criteria being based on the measurements and comprising at least one condition which is fulfilled when at least one second harmonicity measurement is greater than a second threshold; forming an encoded audio signal information having frames including: an encoded representation of the audio signal for a first frame and a second frame and a third frame; a first pitch information for the first frame and a first control data item having a first value and a third control data item; a second pitch information for the second frame and a second control data item having a second value being different from the first value and a third control data item, wherein the first value and the second value depend on the second criteria, and the first value indicates a non-fulfilment of the second criteria on the basis of a harmonicity of the audio signal in the first frame, and the second value indicates a fulfilment of the second criteria on the basis of a harmonicity of the audio signal in the second frame, the third control data item being one single bit having a value which distinguishes the third frame from the first and second frames in association to the fulfilment of first criteria, so as to identify the third frame when the third control data item indicates the non- fulfilment of the first criteria on the basis of at least one condition which is fulfilled when at least one first harmonicity measurement is higher than at least one first threshold, wherein the encoded audio signal information is formed so that, for the first frame, one single bit is reserved for the first control data item and a fixed data field for the first pitch information, and wherein the encoded audio signal information is formed so that, for the second frame, one single bit is reserved for the second control data item and a fixed data field for the second pitch information, and wherein the encoded audio signal information is formed so that, for the third frame, no bit is reserved for the fixed data field and no bit is reserved for the first control data item and the second control data item. According to examples, there is provided a method comprising: encoding an audio signal; transmitting the encoded audio signal information to a decoder or storing the encoded audio signal information; decoding the audio signal information. According to examples, there is provided a method for encoding/decoding audio signals, comprising: at the encoder, encoding an audio signal and deriving harmonicity information and/or pitch information; at the encoder, determining whether the harmonicity information and/or pitch information is suitable for at least an LTPF and/or error concealment function; transmitting from the decoder to an encoder and/or storing in a memory a bitstream including a digital representation of the audio signal and information associated to harmonicity and signalling whether the pitch information adapted for LTPF and/or error concealment; at the decoder, decoding the digital representation of the audio signal and using the pitch information for LTPF and/or error concealment according to the signalling form the encoder.

In examples, the encoder is according to any of the examples above or below, and/or the decoder is according to any of the examples above or below, and/or encoding is according to the examples above or below and/or decoding is according to the examples above or below.

According to examples, there is provided a non-transitory memory unit storing instructions which, when executed by a processor, perform a method as above or below. Hence, the encoder may determine if a signal frame is useful for long term post filtering (LTPF) and/or packet lost concealment (PLC) and may encode information in accordance to the results of the determination. The decoder may apply the LTPF and/or PLC in accordance to the information obtained from the encoder.

4, Description of the drawings Figs. 1 and 2 show apparatus for encoding audio signal information.

Figs. 3-5 show formats of encoded signal information which may be encoded by the apparatus of Figs. 1 or 2.

Fig. 6a and 6b show methods for encoding audio signal information. Fig. 7 shows an apparatus for decoding audio signal information. Figs. 8a and 8b show formats of encoded audio signal information. Fig. 9 shows an apparatus for decoding audio signal information. Fig. 10 shows a method for decoding audio signal information. Figs. 11 and 12 show systems for encoding/decoding audio signal information. Fig. 13 shows a method of encoding/decoding.

5. Encoder side Fig. 1 shows an apparatus 10. The apparatus 10 may be for encoding signals (encoder). For example, the apparatus 10 may encode audio signals 1 1 to generate encoded audio signal information (e.g., information 12, 12', 12", with the terminology used below).

The apparatus 10 may include a (not shown) component to obtain (e.g., by sampling the original audio signal) the digital representation of the audio signal, so as to process it in digital form. The audio signal may be divided into frames (e.g., corresponding to a sequence of time intervals) or subframe (which may be subdivisions of frames). For example, each interval may be 20 ms long (a subframe may be 10 ms long). Each frame may comprise a finite number of samples (e.g., 1024 or 2048 samples for a 20 ms frame) in the time domain (TD). In examples, a frame or a copy or a processed version thereof may be converted (partially or completely) into a frequency domain (FD) representation. The encoded audio signal information may be, for example, of the Code-Excited Linear Prediction, (CELP), or algebraic CELP (ACELP) type, and/or TCX type. In examples, the apparatus 10 may include a (non-shown) downsampler to reduce the number of samples per frame. In examples, the apparatus 10 may include a resampler (which may be of the upsampler, low-pass filter, and upsampler type).

In examples, the apparatus 10 may provide the encoded audio signal information to a communication unit. The communication unit may comprise hardware (e.g., with at least an antenna) to communicate with other devices (e.g., to transmit the encoded audio signal information to the other devices). The communication unit may perform communications according to a particular protocol. The communication may be wireless. A transmission under the Bluetooth standard may be performed. In examples, the apparatus 10 may comprise (or store the encoded audio signal information onto) a storage device.

The apparatus 10 may comprise a pitch estimator 13 which may estimate and provide in output pitch information 13a for the audio signal 1 1 in a frame (e.g., during a time interval). The pitch information 13a may comprise a pitch lag or a processed version thereof. The pitch information 13a may be obtained, for example, by computing the autocorrelation of the audio signal 1 1. The pitch information 13a may be represented in a binary data field (here indicated with "ltpf_pitch_lag"), which may be represented, in examples, with a number of bits comprised between 7 and 1 1 (e.g., 9 bits).

The apparatus 10 may comprise a signal analyzer 14 which may analyze the audio signal 1 1 for a frame (e.g., during a time interval). The signal analyzer 14 may, for example, obtain harmonicity information 14a associated to the audio signal 1 1. Harmonicity information may comprise or be based on, for example, at least one or a combination of correlation information (e.g., autocorrelation information), gain information (e.g., post filter gain information), periodicity information, predictability information, etc. At least one of these values may be normalized or processed, for example. In examples, the harmonicity information 14a may comprise information which may be encoded in one bit (here indicated with "ltpf_active"). The harmonicity information 14a may carry information of the harmonicity of the signal. The harmonicity information 14a may be based on the fulfilment of a criteria ("second criteria") by the signal. The harmonicity information 14a may distinguish, for example, between a fulfilment of the second criteria (which may be associated to higher periodicity and/or higher predictability and/or stability of the signal), and a non-fulfilment of the second criteria (which may be associated to lower harmonicity and/or lower predictability and/or signal instability). Lower harmonicity is in general associated to noise. At least one of the data in the harmonicity information 14a may be based on the verification of the second criteria and/or the verification of at least one of the condition(s) established by the second criteria. For example, the second criteria may comprise a comparison of at least one harmonicity-related measurement (e.g., one or a combination of autocorrelation, harmonicity, gain, predictability, periodicity, etc., which may also be normalized and/or processed), or a processed version thereof, with at least one threshold. For example, a threshold may be a "second threshold" (more than one thresholds are possible). In some examples, the second criteria comprise the verification of conditions on the previous frame (e.g., the frame immediately preceding the current frame). In some examples, the harmonicity information 14a may be encoded in one bit. In some other examples, a sequence of bits, (e.g., one bit for the "ltpf_active" and some other bits, for example, for encoding a gain information or other harmonicity information). As indicated by the selector 26, output harmonicity information 21 a may control the actual encoding of pitch information 13a. For example, in case of extremely low harmonicity, the pitch information 13a may be prevented from being encoded in a bitstream.

As indicated by the selector 25, the value of the output harmonicity information 21a Otpf_pitchJag_presenf) may control the actual encoding of the harmonicity information 14a. Therefore, in case of detection of an extremely low harmonicity (e.g., on the basis of criteria different from the second criteria), the harmonicity information 14a may be prevented from being encoded in a bitstream. The apparatus 10 may comprise a bitstream former 15. The bitstream former 15 may provide encoded audio signal information (indicated with 12, 12', or 12") of the audio signal 1 1 (e.g., in a time interval). In particular, the bitstream former 15 may form a bitstream containing at least the digital version of the audio signal 1 1 , the pitch information 13a (e.g., "Itpf_pitch_lag"), and the harmonicity information 14a (e.g., "Itpf_active"). The encoded audio signal information may be provided to a decoder. The encoded audio signal information may be a bitstream, which may be, for example, stored and/or transmitted to a receiver (which, in turn, may decode the audio information encoded by the apparatus 10). The pitch information 13a in the encoded audio signal information may be used, at the decoder side, for a long term post filter (LTPF). The LTPF may operate in TD. In examples, when the harmonicity information 14a indicates a higher harmonicity, the LTPF will be activated at the decoder side (e.g., using the pitch information 13a). When the harmonicity information 14a indicates a lower (intermediate) harmonicity (or anyway a harmonicity unsuitable for LTPF), the LTPF will be deactivated or attenuated at the decoder side (e.g., without using the pitch information 13a, even if the pitch information is still encoded in the bitstream). When the harmonicity information 14a comprises the field "ltpf_active" (which may be encoded in one bit), ltpf_active=0 may mean "don't use the LTPF at the decoder", while ltpf_active=1 may mean "use the LTPF at the decoder"). For example, ltpf_active=0 may be associated to a harmonicity which is lower than the harmonicity associated to ltpf_active=1 , e.g., after having compared a harmonicity measurement to the second threshold. While according to the conventions in this document ltpf_active=0 refers to a harmonicity lower than the harmonicity associated to ltpf_active=1 , a different convention (e.g., based on different meanings of the binary values) may be provided. Additional or alternative criteria and/or conditions may be used for determining the value of the ltpf_active. For example, in order to state ltpf_active=1 , it may also be checked whether the signal is stable (e.g., by also checking a harmonicity measurement associated to a previous frame).

In addition to the LTPF function, the pitch information 13a may be used, for example, for performing a packet loss concealment (PLC) operation at the decoder. In examples, irrespective of the harmonicity information 14a (e.g., even if ltpf_active=0), the PLC will be notwithstanding carried out. Therefore, in examples, while the pitch information 13a will be always used by the PLC function of the decoder, the same pitch information 13a will only be used by a LTPF function at the decoder only under the condition set by the harmonicity information 14a. It is also possible to verify the fulfilment or non-fulfilment of a "first criteria" (which may different from the second criteria), e.g., for determining if the transmission of the harmonicity information 13a would be a valuable information for the decoder.

In examples, when the signal analyzer 14 detects that the harmonicity (e.g., a particularly measurement of the harmonicity) does not fulfil first criteria (the first criteria being fulfilled, for example, on the condition of the harmonicity, and in particular the measurement of the harmonicity, being higher than a particular "first threshold"), then the choice of encoding no pitch information 13a may be taken by the apparatus 10. In that case, for example, the decoder will use the data in the encoded frame neither for an LTPF function nor for a PLC function (at least, in some examples, the decoder will use a concealment strategy not based on the pitch information, but using different concealment techniques, such as decoder-based estimations, FD concealment techniques, or other techniques).

The first and second thresholds discussed above may be chosen, in some examples, so that: - the first threshold and/or first criteria discriminate(s) between an audio signal suitable for a PLC and an audio signal unsuitable for PLC; and

- the second threshold and/or second criteria discriminate(s) between an audio signal suitable for a LTPF and an audio signal unsuitable for LTPF.

In examples, the first and second thresholds may be chosen so that, assuming that the harmonicity measurements which are compared to the first and second thresholds have a value between 0 and 1 (where 0 means: not harmonic signal; and 1 means: perfectly harmonic signal), then the value of the first threshold is lower than the value of the second threshold (e.g., the harmonicity associated to the first threshold is lower than the harmonicity associated to the second threshold). Amongst the conditions set out for the second criteria, it is also possible to check if the temporal evolution of the audio signal 1 1 is such that it is possible to use the signal for LTPF. For example, it may be possible to check whether, for the previous frame, a similar (or the same) threshold has been reached. In examples, combinations (or weighted combinations) of harmonicity measurements (or processed versions thereof) may be compared to one or more thresholds. Different harmonicity measurements (e.g., obtained at different sampling rates) may be used. Fig. 5 shows examples of frames 12" (or portions of frames) of the encoded audio signal information which may be prepared by the apparatus 10. The frames 12" may be distinguished between first frames 16", second frames 17", and third frames 18". In the temporal evolution of the audio signal 1 1 , first frames 16" may be replaced by second frames 17" and/or third frames, and vice versa, e.g., according to the features (e.g., harmonicity) of the audio signal in the particular time intervals (e.g., on the basis of the signal fulfilling or non-fulfilling the first and/or second criteria and/or the harmonicity being greater or smaller than the first threshold and/or second threshold).

A first frame 16" may be a frame associated to a harmonicity which is held suitable for PLC but not necessarily for LTPF (first criteria being fulfilled, second criteria non-fulfilled). For example, a harmonicity measurement may be lower than the second threshold or other conditions are not fulfilled (for example, the signal has not been stable between the previous frame and the current frame). The first frame 16" may comprise an encoded representation 16a of the audio signal 1 1. The first frame 16" may comprise first pitch information 16b (e.g., "Itpf_pitch_lag"). The first pitch information 16b may encode or be based on, for example, the pitch information 13a obtained by the pitch estimator 13. The first frame 16" may comprise a first control data item 16c (e.g., "Itpf_active", with value "0" according to the present convention), which may comprise or be based on, for example, the harmonicity information 14a obtained by the signal analyzer 14. This first frame 16" may contain (in the field 16a) enough information for decoding, at the decoder side, the audio signal and, moreover, for using the pitch information 13a (encoded in 16b) for PLC, in case of necessity. In examples, the decoder will not use the pitch information 13a for LTPF, by virtue of the harmonicity not fulfilling the second criteria (e.g., low harmonicity measurement of the signal and/or non-stable signal between two consecutive frames). A second frame 17" may be a frame associated to a harmonicity which is retained sufficient for LTPF (e.g., it fulfils the second criteria, e.g., the harmonicity, according to a measurement, is higher than the second threshold and/or the previous frame also is greater than at least a particular threshold). The second frame 17" may comprise an encoded representation 17a of the audio signal 1 1. The second frame 17" may comprise second pitch information 17b (e.g., "Itpf_pitch_lag"). The second pitch information 17b may encode or be based on, for example, the pitch information 13a obtained by the pitch estimator 13. The second frame 17" may comprise a second control data item 17c (e.g., "Itpf _active", with value "1 " according to the present convention), which may comprise or be based on, for example, the harmonicity information 14a obtained by the signal analyzer 14. This second frame 17" may contain enough information so that, at the decoder side, the audio signal 11 is decoded and, moreover, the pitch information 17b (from the output 13a of the pitch estimator) may be used for PLC, in case of necessity. Further, the decoder will use the pitch information 17b (13a) for LTPF, by virtue of the fulfilment of the second criteria, based, in particular on the high harmonicity of the signal (as indicated by ltpf_active=1 according to the present convention).

In examples, the first frames 16" and the second frames 17" are identified by the value of the control data items 16c and 17c (e.g., by the binary value of the "ltpf_active").

In examples, when encoded in the bitstream, the first and the second frames present, for the first and second pitch information (16b, 17b) and for the first and second control data items (16c, 17c), a format such that:

- one single bit is reserved for encoding the first and second control data items 16c and 17c; and

- a fixed data field is reserved for each of the first and second pitch information 16b and 17b. Accordingly, one single first data item 16c may be distinguished from one single second data item 17c by the value of a bit in a particular (e.g., fixed) portion in the frame. Also the first and second pitch information may be inserted in one fixed bit number in a reserved position (e.g., fixed position).

In examples (e.g., shown in Fig. 4 and/or 5), the harmonicity information 14a does not simply discriminate between the fulfilment and non-fulfilment of the second criteria, e.g., does not simply distinguished between higher harmonicity and lower harmonicity. in some cases, the harmonicity information may comprise additional harmonicity information such as a gain information (e.g., post filter gain), and/or correlation information (autocorrelation, normalized correlation), and/or a processed version thereof, in some cases, reference is here made a gain or other harmonicity information may be encoded in 1 to 4 bits (e.g., 2 bits) and may refer to the post filter gain as obtained by the signal analyzer 14.

In examples in which the additional harmonicity information is encoded, the decoder, by recognizing ltpf_active=1 (e.g., second frame 17' or 17"), may understand that a subsequent field of the second frame 17' or 17" encodes the additional harmonicity information 17d. To the contrary, by identifying ltpf_active=0 (e.g., first frame 16' or 16"), the decoder may understand that no additional harmonicity information field 17d is encoded in the frame 17' or 17". In examples (e.g., Fig. 5), a third frame 18" may be encoded in the bitstream. The third frame 18" may be defined so as to have a format which lacks of the pitch information and the harmonicity information. Its data structure provides no bits for encoding the data 16b, 16c, 17b, 17c. However, the third frame 18" may still comprise an encoded representation 18a of the audio signal and/or other control data useful for the encoder.

In examples, the third frame 18" is distinguished from the first and second frames by a third control data 18e ("ltpf_pitch_lag_present"), which may have a value in the third frame different form the value in the first and second frames 16" and 17". For example, the third control data item 18e may be "0" for identifying the third frame 18" and 1 for identifying the first and second frames 16" and 17".

In examples, the third frame 18" may be encoded when the information signal would not be useful for LTPF and for PLC (e.g., by virtue of a very low harmonicity, for example, e.g., when noise is prevailing). Hence, the control data item 18e ("ltpf_pitchjag_present") may be "0" to signal to the decoder that there would be no valuable information in the pitch lag, and that, accordingly, it does not make sense to encode it. This may be the result of the verification process based on the first criteria.

According to the present convention, when the third control data item 18e is "0", harmonicity measurements may be lower than a first threshold associated to a low harmonicity (this may be one technique for verifying the fulfilment of the first criteria). Figs. 3 and 4 show examples of a first frame 16, 16' and a second frame 17, 17' for which the third control item 18e is not provided (the second frame 17' encodes additional harmonicity information, which may be optional in some examples). In some examples, these frames are not used. Notably, however, in some examples, apart from the absence of the third control item 18e, the frames 16, 16', 17, 17' have the same fields of the frames 16" and 17" of Fig. 5.

Fig. 2 shows an example of apparatus 10', which may be a particular implementation of the apparatus 10. Properties of the apparatus 10 (features of the signal, codes, transmissions/storage features, Bluetooth implementation, etc.) are therefore here not repeated. The apparatus 10' may prepare an encoded audio signal information (e.g., frames 12, 12', 12") of an audio signal 1 1 . The apparatus 10' may comprise a pitch estimator 13, a signal analyzer 14, and a bitstream former 15, which may be as (or very similar to) those of the apparatus 10. The apparatus 10' may also comprise components for sampling, resampling, and filtering as the apparatus 10. The pitch estimator 13 may output the pitch information 13a (e.g., pitch lag, such as "ltpf_pitch_lag").

The signal analyzer 14 may output harmonicity information 24c (14a), which in some examples may be formed by a plurality of values (e.g., a vector composed of a multiplicity of values). The signal analyzer 14 may comprise a harmonicity measurer 24 which may output harmonicity measurements 24a. The harmonicity measurements 24a may comprise normalized or non-normalized correlation/autocorrelation information, gain (e.g., post filter gain) information, periodicity information, predictability information, information relating the stability and/or evolution of the signal, a processed version thereof, etc.

Reference sign 24a may refer to a plurality of values, at least some (or all) of which, however, may be the same or may be different, and/or processed versions of a same value, and/or obtained at different sampling rates.

In examples, harmonicity measurements 24a may comprise a first harmonicity

measurement 24a' (which may be measured at a first sampling rate, e.g., 6.4 KHz) and a second harmonicity measurement 24a" (which may be measured at a second sampling rate, e.g., 12.8 KHz). In other examples, the same measurement may be used.

At block 21 it is verified if harmonicity measurements 24a (e.g., the first harmonicity measurement 24a') fulfil the first criteria, e.g., they are over a first threshold, which may be stored in a memory element 23. For example, at least one harmonicity measurement 24a (e.g., the first harmonicity measurement 24a') may be compared with the first threshold. The first threshold may be stored, for example, in the memory element 23 (e.g., a non-transitory memory element). The block 21 (which may be seen as a comparer of the first harmonicity measurement 24a' with the first threshold) may output harmonicity information 21 a indicating whether harmonicity of the audio signal 1 1 is over the first threshold (and in particular, whether the first harmonicity measurement 24a' is over the first threshold).

In examples, the ltpf_pitch_present may be, for example,

where is an audio signal at a sampling rate of 6.4 kHz, N 6A is the length of the current frame and is a pitch-lag obtained by the pitch estimator for the current frame and

normcorr(x, L, T) is the normalized correlation of the signal x of length L at lag T

In some examples, other sampling rates or other correlations may be used. In examples, the first threshold may be 0.6. It has been noted, in fact, that for harmonicity

measurements over 0.6, PLC may be reliably performed. However, it is not always guaranteed that, even for values slightly over 0.6, LTPF could be reliably performed.

The output 21 a from the block 21 may therefore be a binary value (e.g.,

"Itpf_pitch_lag_present") which may be "1 " if the harmonicity is over the first threshold (e.g., if the first harmonicity measurement 24a' is over the first threshold), and may be "0" if the harmonicity is below the first threshold. The harmonicity information 21 a (e.g., "ltpf_pitch_lag_present") may control the actual encoding of the output 13a: if (e.g., with the first measurement 24a' as shown above) the harmonicity is below the first threshold (ltpf_pitch_lag_present=0) or the first criteria is not fulfilled, no pitch information 13a is encoded; if the harmonicity is over the first threshold (ltpf_pitchjag_present=1 ) or the first criteria are fulfilled, pitch information is actually encoded. The output 21 a

("ltpf_pitchjag_present") may be encoded. Hence, the output 21 a may be encoded as the third control item 18e (e.g., for encoding the third frame 18" when the output 21 a is "0", and the second or third frames when the output 21 a is "1 ").

The harmonicity measurer 24 may optionally output a harmonicity measurement 24b which may be, for example, a gain information (e.g., "Itpf_gain") which may be encoded in the encoded audio signal information 12, 12', 12" by the bitstream former 15. Other parameters may be provided. The other harmonicity information 24b may be used, in some examples, for LTPF at the decoder side.

As indicated by the block 22, a verification of fulfilment of the second criteria may be performed on the basis of at least one harmonicity measurement 24a (e.g., a second harmonicity measurement 24a").

One condition on which the second criteria is based may be a comparison of at least one harmonicity measurement 24a (e.g., a second harmonicity measurement 24a") with a second threshold. The second threshold may be stored, for example, in the memory element 23 (e.g., in a memory location different from that storing the first threshold). The second criteria may also be based on other conditions (e.g., on the simultaneous fulfilment of two different conditions). One additional condition may, for example, be based on the previous frame. For example, it is possible to compare at least one harmonicity measurement 24a (e.g., a second harmonicity measurement 24a") with a threshold.

Accordingly, the block 22 may output harmonicity information 22a which may be based on at least one condition or on a plurality of conditions (e.g., one condition on the present frame and one condition on the previous frame).

The block 22 may output (e.g., as a result of the verification process of the second criteria) harmonicity information 22a indicating whether the harmonicity of the audio signal 1 1 (for the present frame and/or for the previous frame) is over a second threshold (and, for example, whether the second harmonicity measurement 24a" is over a second threshold). The harmonicity information 22a may be a binary value (e.g., "Itpf_active") which may be "1 " if the harmonicity is over the second threshold (e.g., the second harmonicity measurement 24a" is over the second threshold), and may be "0" if the harmonicity (of the present frame and/or the previous frame) is below the second threshold (e.g., the second harmonicity measurement 24a" is below the second threshold). The harmonicity information 22a (e.g., "Itpf_active") may control (where provided) the actual encoding of the value 24b (in the examples in which the value 24b is actually provided): if the harmonicity (e.g., second harmonicity measurement 24a") does not fulfil the second criteria (e.g., if the harmonicity is below the second threshold and

ltpf_active=0), no further harmonicity information 24b (e.g., no additional harmonicity information) is encoded; if the harmonicity (e.g., the second harmonicity measurement 24a") fulfils the second criteria (e.g., it is over the second threshold and ltpf_active=1 ), additional harmonicity information 24b is actually be encoded.

Notably, the second criteria may be based on different and/or additional conditions. For example, it is possible to verify if the signal is stable in time (e.g., if the normalized correlation has a similar behaviour in two consecutive frames).

The second threshold(s) may be defined so as to be associated to a harmonic content which is over the harmonic content associated to the first threshold. In examples, the first and second thresholds may be chosen so that, assuming that the harmonicity

measurements which are compared to the first and second thresholds have a value between 0 and 1 (where 0 means: not harmonic signal; and 1 means: perfectly harmonic signal), then the value of the first threshold is lower than the value of the second threshold (e.g., the harmonicity associated to the first threshold is lower than the harmonicity associated to the second threshold). The value 22a (e.g., "Itpf_active") may be encoded, e.g., to become the first or second control data item 16c or 17c (Fig. 4). The actual encoding of the value 22a may be controlled by the value 21 a (e.g., using the selector 25): for example, "ltpf_active" may be encoded only if ltpf_pitchjag_present=1 , while "ltpf_active" is not provided to the bitstream former 15 when ltpf_pitch_lag_present=0 (to encode the third frame 18"). In that case, it is unnecessary to provide pitch information to the decoder: the harmonicity may be so low, that the decoder will use the pitch information neither for PLC nor for LTPF. Also harmonicity information such as "ltpf_active" may be useless in that case: as no pitch information is provided to the decoder, there is no possibility that the decoder will try to perform LTPF.

An example for obtaining the ltpf_active value (16c, 17c, 22a) is here provided. Other alternative strategies may be performed.

A normalized correlation may be first computed as follows with pitchjnt being the integer part of the pitch lag, pitch jr being the fractional part of the pitch lag, and with being the resampled input signal at 12.8kHz (for example) and h ( being the impulse response of a FIR low-pass filter given by

with chosen, for example, from the following values:

The LTPF activation bit ("Stpf_active") may then be obtained according to the following procedure:

where mem_ltpf_active is the value of ltpf_active in the previous frame (it is 0 if ltpf_pitch_present=0 in the previous frame), mem_nc is the value of nc in the previous frame (it is 0 if ltpf_pitch_present=0 in the previous frame), pit=pitch_int+pitch_fr/4 and mem_pit is the value of pit in the previous frame (it is 0 if !tpf_pitch_present=0 in the previous frame). This procedure is shown, for example, in Fig. 6b (see also below). It is important to note that the schematization of Fig. 2 is purely indicative. Instead of the blocks 21 , 22 and the selectors, different hardware and/or software units may be used. In examples, at least two of components such as the blocks 21 and 22, the pitch estimator, the signal analyzer and/or the harmonicity measurer and/or the bitstream former may be implemented one single element. On the basis of the measurements performed, it is possible to distinguish between:

- a third status, in which: o the first criteria are not fulfilled; o both the outputs 21 a and 22a of the block 21 and the block 22 are "0"; o the outputs 13a ("e.g., "Itpf_pitch_lag"), 24b (e.g., additional harmonicity information, optional), and 22a (e.g., "Itpf_active") are not encoded; o only the value "0" (e.g., "Itpf_pitch_lag_present") of the output 21 a is

encoded; o a third frame 18" is encoded with third control item "0" (e.g., from ultpf_pitch_lag_present") and the signal representation of the audio signal, but without any bit encoding pitch information and/or the first and second control item; o accordingly, the decoder will understand that no pitch information and harmonicity information can be used for LTPF and PLC (e.g., by virtue of extremely low harmonicity); st status, in which. o the first criteria are fulfilled and the second criteria are not fulfilled; o the output 21 a of the block 21 is "1 " (e.g., by virtue of the fulfilment of the first criteria, e.g., by virtue of the first measurement 24a' being greater than the first threshold), while the output 22a of the block 22 is "0" (e.g., by virtue of the non-fulfilment of the second criteria, e.g., by virtue of the second measurement 24a", for the present or the previous frame, being below a second threshold); o the value "1 " of the output 21 a (e.g., "Itpf_pitchjag_present") is encoded in 18e; o the output 13a ("e.g., "Itpf_pitch_lag") is encoded in 16b; o the value "0" of the output 22a (e.g., 1tpf_active") is encoded in 16c; o the optional output 24b (e.g., additional harmonicity information) is not encoded; o a first frame 16" is encoded with third control data item equal to "1 " (e.g., from "ltpf_pitch_lag_present" 18e), with one single bit encoding a first control data item equal to "0" (e.g., from "ltpf_active" 16c), and a fixed amount of bits (e.g., in a fixed position) to encode a first pitch information 16b (e.g., taken from "ltpf_pitch_lag"); o accordingly, the decoder will understand that will make use of the pitch information 13a (e.g., a pitch lag encoded in 16b) only for PLC, but no pitch information or harmonicity information will be used for LTPF; - a second status, in which: o the first and second criteria are fulfilled; o both the outputs 21 a and 22a of the block 21 and the block 22 are "1 " (e.g., by virtue of the fulfilment of the first criteria, e.g., by virtue of the first measurement 24a' being greater than the second threshold and the second measurement 24a" fulfilling the second criteria, e.g., the second

measurement 24a" being greater, in the current frame or in the previous frame, than a second threshold); o the value "1" of the output 21a (e.g., 1tpf_pitchjag_present") is encoded; o the output 13a ("e.g., "Itpf_pitch_lag") is encoded; o the value "1" of the output 22a (e.g., "Itpf_active") is encoded; o a second frame 17" is encoded with third control data item equal to 1 (e.g., from "ltpf_pitch_lag_present" in 18e), with one single bit encoding a second control data item equal to "Γ (e.g., from "ltpf_active" in 17c), a fixed amount of bits (e.g., in a fixed position) to encode a second pitch information (e.g., taken from "ltpf_pitchjag") in 17b, and, optionally, additional information (such as additional harmonicity information) in 17d; o accordingly, the decoder will make use of the pitch information 13a (e.g., a pitch lag) for PLC, and will make also use of the pitch information and (in case) the additional harmonicity information for LTPF (e.g., assuming that the harmonicity is enough for both LTPF and PLC).

Therefore, with reference to Fig. 5, frames 12" are shown that may be provided by the bitstream former 15, e.g., in the apparatus 10'. In particular there may be encoded:

- in case of third status, a third frame 18" with the fields: o a third control data item 18e (e.g., "Itpf_pitch_lag_present", obtained from 21a) with value "0"; and o an encoded representation 18a of the audio signal 11 ;

- in case of first status, a first frame 16" with the fields: o a third control data item 18e (e.g., u ltpf_pitch_lag_present", obtained from 21 a) with value "1"; o an encoded representation 16a of the audio signal 11 ; o a first pitch information 16b (e.g., 1tpf_pitch_lag", obtained from 13a) in a fixed data field of the first frame 16"; and o a first control data item 16c (e.g., "Itpf_active n , obtained from 22a) with value "0"; and

- in case of second status, a second frame 17" with the fields: o a third control data item 18e (e.g., 1tpf_pitch_lag_present", obtained from 21 a) with value "1"; o an encoded representation 17a of the audio signal 1 1 ; o a second pitch information 17b (e.g., "Itpf_pitchjag", obtained from 13a) second frame 17"; o a second control data item 17c (e.g., 1tpf_active", obtained from 22a) with value Ί "; and o where provided, an (optional) harmonicity information 17d (e.g., obtained from 24b).

In examples, the third frame 18" does not present the fixed data field for the first or second pitch information and does not present any bit encoding a first control data item and a second control data item

From the third control data item 18e and the first and second control data items 16c and 17c, the decoder will understand whether:

- the decoder will not implement LTPF and PLC with pitch information and

harmonicity information in case of third status,

- the decoder will not implement LTPF but will implement PLC with pitch information only in case of first status, and - the decoder will perform both LTPF using both pitch information and PLC using pitch information in case of second status.

As can be seen from Fig. 5, in some examples:

- the third frame 18 may have has a format which lacks the first pitch information 16b, the first control data item 16c, the second pitch information 17b, and the second control data item 17c;

- the third control data item 18e may be encoded in one single bit having a value which distinguishes the third frame 18" from the first and second frame 16", 17" ; and/or

- in the encoded audio signal information, for the first frame 16", one single bit may be reserved for the first control data item 16c and a fixed data field 16b may be reserved for the first pitch information; and/or

- in the encoded audio signal information, for the second frame 17", one single bit may be reserved for the second control data item 17c and a fixed data field 17b may be reserved for the second pitch information; and/or

- the first control data item 16c and the second control data item 17c may be

encoded in the same portion or data field in the encoded audio signal information; and/or

- the encoded audio signal information may comprise one first signalling bit

encoding the third control data item 18e; and/or in case of a value of the third control data item indicating the presence of the first pitch information and/or the second pitch information, a second signalling bit encoding the first control data item and the second control data item.

Fig. 6a shows a method 60 according to examples. The method may be operated, for example, using the apparatus 10 or 10'. The method may encode the frames 16", 17", 18" as explain above, for example.

The method 60 may comprise a step S60 of obtaining (at a particular time interval) harmonicity measurement(s) (e.g., 24a) from the audio signal 1 1 , e.g., using the signal analyzer 14 and, in particular, the harmonicity measurer 24. Harmonicity measurements (harmonicity information) may comprise or be based on, for example, at least one or a combination of correlation information (e.g., autocorrelation information), gain information (e.g., post filter gain information), periodicity information, predictability information, applied to the audio signal 1 1 (e.g., for a time interval). In examples, a first harmonicity

measurement 24a' may be obtained (e.g., at 6.4 KHz) and a second harmonicity measurement 24a" may be obtained (e.g., at 12.8 KHz). In different examples, the same harmonicity measurements may be used.

The method may comprise the verification of the fulfilment of the first criteria, e.g., using the block 21. For example, a comparison of harmonicity measurement(s) with a first threshold, may be performed. If at S61 the first criteria are not fulfilled (e.g., the harmonicity is below the first threshold, e.g., when the first measurement 24a' is below the first threshold), at S62 a third frame 18" may be encoded, the third frame 18" indicating a "0" value in the third control data item 18e (e.g., "Itpf_pitch_lag_present"), e.g., without reserving any bit for encoding values such as pitch information and additional harmonicity information. Therefore, the decoder will neither perform LTPF nor a PLC based on pitch information and harmonicity information provided by the encoder.

If at S61 it is determined that the first criteria are fulfilled (e.g., that harmonicity is greater than the first threshold and therefore is not at a lower level of harmonicity), at steps S63 and S65 it is checked if the second criteria are fulfilled. The second criteria may comprise, for example, a comparison of the harmonicity measurement, for the present frame, with at least one threshold.

For example, at step S63 the harmonicity (e.g., second harmonicity measurement 24a") is compared with a second threshold (in some examples, the second threshold being set so that it is associated to a harmonic content greater than the harmonic content associated to the first threshold, for example, under the assumption that the harmonicity measurement is between a 0 value, associated to a completely non-harmonic signal, and 1 value, associated to a perfectly harmonic signal).

If at S63 it is determined that the harmonicity is not greater than a second threshold (e.g., which in some cases may be associated to an intermediate level of harmonicity), at S64 a first frame 16, 16', 16" is encoded. The first frame (indicative of an intermediate harmonicity) may be encoded to comprise a third control data item 18e (e.g.,

"Itpf_pitch_lag_present") which may be "1 ", a first control data item 16b (e.g. "Itpf_active") which may be 'Ό", and the value of the first pitch information 16b, such as the pitch lag ("ltpf_pitch_lag"). Therefore, at the receipt of the first frame 16, 16 ! , 16", the decoder will use the first pitch information 16b for PLC, but will not use the first pitch information 16b for LTPF.

Notably, the comparison performed at S61 and at S62 may be based on different harmonicity measurements, which may, for example, be obtained at different sampling rates.

If at S63 it is determined that the harmonicity is greater than the second threshold (e.g., the second harmonicity measurement is over the second threshold), at step S65 it may be checked if the audio signal is a transient signal, e.g., if the temporal structure of the audio signal 11 has varied (or if another condition on the previous frame is fulfilled). For example, it is possible to check if also the previous frame fulfilled a condition of being over a second threshold. If also the condition on the previous frame holds (no transient), then the signal is considered stable and it is possible to trigger step S66. Otherwise, the method continues to step S64 to encode a first frame 16, 16', or 16" (see above).

At step S66 the second frame 17, 17', 17" may be encoded. The second frame 17" may comprise a third control data item 18e (e.g., "Itpf_pitch_lag_present") with value Ί" and a second control data item 17c (e.g. "Itpf_active") which may be "1". Accordingly, the pitch information 17b (such as the "pitchjag" and, optionally, also the additional harmonicity information 17d) may be encoded. The decoder will understand that both PLC with pitch information and LTPF with pitch information (and, optionally, also harmonicity information) may be used.

At S67, the encoded frame may be transmitted to a decoder (e.g., via a Bluetooth connection), stored on a memory, or used in another way.

In steps S63 and S64, the normalized correlation measurement nc (second measurement 24a") may be the normalized correlation measurement nc obtained at 12.8 KHz (see also above and below). In step S61 , the normalized correlation (first measurement 24a') may be the normalized correlation at 6.4 KHz (see also above and below).

Fig. 6b shows a method 60b which also may be used. Fig. 6b explicitly shows examples of second criteria 600 which may be used for determining the value of ltpf_active.

As may be see, steps S60, S61 , and S62 are as in the method 60 and are therefore not repeated.

At step S610, it may be checked if: - for the previous frame, it had been obtained ltpf_active=0 (indicated by

mem_ltpf _active=0); and

- for the previous frame, the normalized correlation measurement nc (24a") was greater than a third threshold (e.g., a value between 0.92 and 0.96, such as 0.94); and

- for the present frame, the normalized correlation measurement nc (24a") is greater than the third threshold (e.g., a value between 0.92 and 0.96, such as 0.94).

If the result is positive, the ltpf_active is set at 1 at S614 and the steps S66 (encoding the second frame 17, 17', 17") and S67 (transmitting or storing the encoded frame) are triggered.

If the condition set at step S610 is not verified, it may be checked, at step S61 1 ;

- for the previous frame, it had been obtained ltpf_active=1 (indicated by

memjtpf_active=1 );

- for the present frame, the normalized correlation measurement nc (24a") is greater than a fourth threshold (e.g., a value between 0.85 and 0.95, e.g., 0.9).

If the result is positive, the ltpf_active is set at 1 at S614 and the steps S66 (encoding the second frame 17, 17', 17") and S67 (transmitting or storing the encoded frame) are triggered.

If the condition set at step S61 1 is not verified, it may be checked, at step S612, if: - for the previous frame, it had been obtained ltpf_active=0 (indicated by

mem_ltpf_active=0);

- for the present frame, the distance between the present pitch and the previous pitch is less than a fifth threshold (e.g., a value between 1.8 and 2.2, such as 2); and - the difference between the normalized correlation measurement nc (24a") of the current frame and the normalized correlation measurement mem_nc of the previous frame is greater than a sixth threshold (e.g., a value between -0.15 and - 0.05, such as -0.1); and for the present frame, the normalized correlation measurement nc (24a") is greater than a seventh threshold (e.g., a value between 0.82 and 0.86, such as 0.84).

(In some examples of steps S610-S612, some of the conditions above may be avoided while some may be maintained.) If the result of the check at S612 is positive, the ltpf_active is set at 1 at S614 and the steps S66 (encoding the second frame 17, 17', 17") and S67 (transmitting or storing the encoded frame) are triggered.

Otherwise, if none of the checks at S610-S612 is verified, the ltpf_active is set at 0 for the present frame at S613 and step S64 is triggered, so as to encode a first frame 16, 16', 16".

In steps S610-S612, the normalized correlation measurement nc (second measurement 24a") may be the normalized correlation measurement obtained at 12.8 KHz (see above). In step S61 , the normalized correlation (first measurement 24a') may be the normalized correlation at 6.4 KHz (see above). As can be seen, several metrics, relating to the current frame and/or the previous frame, may be taken into account. The fulfilment of the second criteria may therefore be verified by checking if several measurements (e.g., associated to the present and/or previous frame) are, respectively, over or under several thresholds (e.g., at least some of the third to seventh thresholds of the steps S610-S612). Some examples on how to obtain parameters for LTPF at the encoder side are herewith provided.

An example of resampling technique is here discussed (other techniques may be used).

The input signal at sampling rate f s is resampled to a fixed sampling rate of 12.8kHz. The resampling is performed using an upsampling+low-pass-filtering+downsampling approach that can be formulated as follows

with ) is the input signal ) is the resampled signal at 12.8kHz, is the

upsampling factor and 4 is the impulse response of a FIR low-pass filter given by

An example of high-pass filter technique is here discussed (other techniques may be used).

The resampied signal may be high-pass filtered using a 2-order l!R filter whose transfer function may be given by

An example of pitch detection technique is here discussed (other techniques may be used).

The signal may be downsampled by a factor of 2 using

with h 2 = {0.123679641 1 180537, 0.2353512128364889, 0.2819382920909148, 0.2353512128364889, 0.123679641 1 180537}.

The autocorrelation of may be computed by

with are the minimum and maximum lags.

An autocorrelation may be weighted using

with w(k) is defined as follows

A first estimate of the pitch lag may be the lag that maximizes the weighted

autocorrelation

A second estimate of the pitch lag T 2 may be the lag that maximizes the non-weighted autocorrelation in the neighborhood of the pitch lag estimated in the previous frame

with is the final pitch

lag estimated in the previous frame.

The final estimate of the pitch lag in the current frame may then be given by

with normcorr(x, L, T) is the normalized correlation of the signal x of length L at lag T

The normalized correlation may be at least one of the harmonicity measurements obtained by the signal analyzer 14 and/or the harmonicity measurer 24. This is one of the harmonicity measurements that may be used, for example, for the comparison with the first threshold.

An example for obtaining an LTPF bitstream technique is here discussed (other techniques may be used).

The first bit of the LTPF bitstream signals the presence of the pitch lag parameter in the bitstream. It is obtained by

If ltpf_pitch_present is 0, no more bits are encoded, resulting in a LTPF bitstream of only one bit (see third frame 18").

If ltpf _pitch_present is 1 , two more parameters are encoded, one pitch lag parameter (e.g., encoded on 9 bits), and one bit to signal the activation of LTPF (see frames 16" and 17"). In that case, the LTPF bitstream (frame) may be composed by 1 1 bits.

The pitch lag parameter and the activation bit are obtained as described in the following sections.

These data may be encoded in the frames 12, 12', 12" according to the modalities discussed above.

An example for obtaining an LTPF pitch lag parameters is here discussed (other techniques may be used).

The integer part of the LTPF pitch lag parameter may be given by Finally, the pitch lag parameter index is given by

A normalized correlation may be first computed as follows

with

and h j is the impulse response of a FIR low-pass filter given by

with tab_ltpf_interp_xl2k8 chosen, for example, from the following values:

The LTPF activation bit may then be set according to

where memjtpf_active is the value of ltpf_active in the previous frame (it is 0 if pitch_present=0 in the previous frame), mem_nc is the value of nc in the previous frame (it is 0 if pitch_present=0 in the previous frame), pit=pitch_int+pitch_fr/4 and mem_pit is the value of pit in the previous frame (it is 0 if pitch_present=0 in the previous frame). 6. Decoder side

Fig. 7 shows an apparatus 70. The apparatus 70 may be a decoder. The apparatus 70 may obtain data such as the encoded audio signal information 12, 12', 12". The apparatus 70 may perform operations described above and/or below. The encoded audio signal information 12, 12', 12" may have been generated, for example, by an encoder such as the apparatus 10 or 10" or by implementing the method 60. In examples, the encoded audio signal information 12, 12', 12" may have been generated, for example, by an encoder which is different from the apparatus 10 or 10' or which does not implement the method 60. The apparatus 70 may generate filtered decoded audio signal information 76.

The apparatus 70 may comprise (o receive data from) a communication unit (e.g., using an antenna) for obtaining encoded audio signal information. A Bluetooth communication may be performed. The apparatus 70 may comprise (o receive data from) a storage unit (e.g., using a memory) for obtaining encoded audio signal information. The apparatus 70 may comprise equipment operating in TD and/or FD.

The apparatus 70 may comprise a bitstream reader 71 (or "bitstream analyzer", or "bitstream deformatter", or "bitstream parser") which may decode the encoded audio signal information 12, 12', 12". The bitstream reader 71 may comprise, for example, a state machine to interpret the data obtained in form of bitstream. The bitstream reader 71 may output a decoded representation 71 a of the audio signal 11.

The decoded representation 71 a may be subjected to one or more processing techniques downstream to the bitstream reader (which are here not shown for simplicity).

The apparatus 70 may comprise an LTPF 73 which may, in turn provide the filtered decoded audio signal information 73'.

The apparatus 70 may comprise a filter controller 72, which may control the LTPF 73.

In particular, the LTPF 73 may be controlled by additional harmonicity information (e.g., gain information), when provided by the bitstream reader 71 (in particular, when present in field 17d, "ltpf_gain", in the frame 17' or 17"). 0350

- 38 -

In addition or in alternative, the LTPF 73 may be controlled by pitch information (e.g., pitch lag). The pitch information may be present in fields 16b or 17b of frames 16, 16', 16", 17, 17', 17". However, as indicated by the selector 78, the pitch information is not always used for controlling the LTPF: when the control data item 16c ("ltpf_active") is "0", then the pitch information is not used for the LTPF (by virtue of the harmonicity being too low for the LTPF).

The apparatus 70 may comprise a concealment unit 75 for performing a PLC function to provide audio information 76. When present in the decoded frame, the pitch information may be used for PLC. An example of LTPF at the apparatus 70 is discussed in following passages.

Figs. 8a and 8b show examples of syntax for frames that may be used. The different fields are also indicated.

As shown in Fig. 8a, the bitstream reader 71 may search for a first value in a specific position (field) of the frame which is being encoded (under the hypothesis that the frame is one of the frames 16", 17" and 18" of Fig. 5). The specific position may be interpreted, for example, as the position associated to the third control item 18e in frame 18" (e.g., "Itpf_pitchjag_present").

If the value of "ltpf_pitch_lag_present" 18e is "0", the bitstream reader 71 understands that there is no other information for LTPF and PLC (e.g., no "ltpf_active", "ltpf_pitch_lag", "Itpf _gain").

If the value of "ltpf_pitchjag_present" 18e is Ί", the reader 71 may search for a field (e.g., a 1-bit field) containing the control data 16c or 17c (e.g., 'itpf_active"), indicative of harmonicity information (e.g., 14a, 22a). For example, if "ltpf_active" is "0", it is understood that the frame is a first frame 16", indicative of harmonicity which is not held valuable for LTPF but may be used for PLC. If the "ltpf_active" is "1", it is understood that the frame is a second frame 17", which may carry valuable information for both LTPF and PLC.

The reader 71 also searches for a field (e.g., a 9-bit field) containing pitch information 16b or 17b (e.g., "Itpf_pitch_lag"). This pitch information may be provided to the concealment unit 75 (for PLC). This pitch information may be provided to the filter controller 72/LTPF 73, but only if 1tpf_active" is "1" (e.g., higher harmonicity), as indicated in Fig. 7 by the selector 78. A similar operation is performed in the example of Fig. 8b, in which, additionally, the gain 17d may be optionally encoded.

7. An example of LTPF at the decoder side

The decoded signal after MDCT (Modified Discrete Cosine Transformation) synthesis, MDST (Modified Discrete Sine Transformation) synthesis, or a synthesis based on another transformation, may be postfiitered in the time-domain using a MR filter whose parameters may depend on LTPF bitstream data "pitchjndex" and "ltpf_active". To avoid discontinuity when the parameters change from one frame to the next, a transition mechanism may be applied on the first quarter of the current frame. In examples, an LTPF IIR filter can be implemented using

with x(n) is the filter input signal (i.e. the decoded signal after MDCT synthesis) and is tne filter output signal.

The integer part p int and the fractional part p fr of the LTPF pitch lag may be computed as follows. First the pitch lag at 12.8kHz is recovered using

The pitch lag may then be scaled to the output sampling rate f s and converted to integer and fractional parts using

where is the sampling rate.

The filter coefficients ) may be computed as follows

with

predetermined. Examples of are here provided (instead of "fs", the sampling rate is indicated):

With reference to the transition handling, five different cases are considered.

First case: ltpf_active = 0 and mem_ltpf_active = 0

Second case: ltpf_active = 1 and mem_ ltpf_active = 0

Third case:

8. Packet lost concealment

An examples of packet lost concealment (PLC) or error concealment is here provided.

8.1 General information

A corrupted frame does not provide a correct audible output and shall be discarded. For each decoded frame, its validity may be verified. For example, each frame may have a field carrying a cyclical redundancy code (CRC) which is verified by performing predetermined operations provided by a predetermined algorithm. The reader 71 (or another logic component, such as the concealment unit 75) may repeat the algorithm and verify whether the calculated result corresponds to the value on the CRC field. If a frame has not been properly decoded, it is assumed that some errors have affected it.

Therefore, if the verification provides a result of incorrect decoding, the frame is held non- properly decoded (invalid, corrupted).

When a frame is determined as non-properly decoded, a concealment strategy may be used to provide an audible output: otherwise, something like an annoying audible hole could be heard. Therefore, it is necessary to find some form of frame which "fills the gap" kept open by the non-properly decoded frame. The purpose of the frame loss

concealment procedure is to conceal the effect of any unavailable or corrupted frame for decoding.

A frame loss concealment procedure may comprise concealment methods for the various signal types. Best possible codec performance in error-prone situations with frame losses may be obtained through selecting the most suitable method. One of the packet loss concealment method may be, for example, TCX Time Domain Concealment

8.2 TCX time domain concealment

The TCX Time Domain Concealment method is a pitch-based PLC technique operating in the time domain. It is best suited for signals with a dominant harmonic structure. An example of the procedure is as follow: the synthesized signal of the last decoded frames is inverse filtered with the LP filter as described in Section 8.2.1 to obtain the periodic signal as described in Section 8.2.2. The random signal is generated by a random generator with approximately uniform distribution in Section 8.2.3. The two excitation signals are summed up to form the total excitation signal as described in Section 8.2.4, which is adaptively faded out with the attenuation factor described in Section 8.2.6 and finally filtered with the LP filter to obtain the synthesized concealed time signal. If LTPF was active in the last good frame, the LTPF is also applied on the synthesized concealed time signal as described in Section 8.3. To get a proper overlap with the first good frame after a lost frame, the time domain alias cancelation signal is generated in Section 8.2.5.

8.2.1 IPC parameter calculation The TCX Time Domain Concealment method is operating in the excitation domain. An autocorrelation function may be calculated on 80 equidistant frequency domain bands. Energy is pre-emphasized with the fixed pre-emphasis factor μ

The autocorrelation function is lag windowed using the following window

before it is transformed to time domain using an inverse evenly stacked DFT. Finally a Levinson Durbin operation may be used to obtain the LP filter, a c (k) , for the concealed frame. An example is provided below:

The LP filter is calculated only in the first lost frame after a good frame and remains in subsequently lost frames.

8.2.2 Construction of the periodic part of the excitation

The last decoded time samples are first pre-emphasized with the pre-

emphasis factor from Section 8.2.1 using the filter

to obtain the signal x where T c is the pitch lag value pitchjnt or pitchjnt + 1 if

pitch The values pitchjnt and pitch_fr are the pitch lag values transmitted in the bitstream. W

- 47 -

The pre-emphasized signal, x s further filtered with the calculated inverse LP filter to obtain the prior excitation s ignal ex p To construct the excitation signal, exc p (k), for the current lost frame, e p s repeatedly copied with T c as follows

where E corresponds to the last sample in exc p (k). If the stability factor Θ is lower than 1 , the first pitch cycle of exc p (k) is first low pass filtered with an 1 1 -tap linear phase FIR filter described in the table below

The gain of pitch is calculated as follows

Otherwise, a second gain of pitch, g p , is calculated as follows

and is reduced by one for further processing.

Finally p is bounded by

The formed periodic excitation, exc p (k), is attenuated sample-by-sample throughout the frame starting with one and ending with an attenuation factor, a, to obtain exc^(k). The gain of pitch is calculated only in the first lost frame after a good frame and is set to a for further consecutive frame losses. 8.2.3 ... Construction of the random part of the excitation

The random part of the excitation may be generated with a random generator with approximately uniform distribution as follows

where is initialized with 24607 for the very first frame concealed with this

method and extractQ extracts the 16 LSB of the value. For further frames,

is stored and used as

To shift the noise more to higher frequencies, the excitation signal is high pass filtered with an 1 1 -tap linear phase FIR filter described in the table below to get

To ensure that the noise may fade to full band noise with the fading speed dependently the attenuation factor a, the random part of the excitation, exc n (k), is composed via a linear interpolation between the full band, and the high pass filtered version,

where for the first lost frame after a good frame and

for the second and further consecutive frame losses, where is of the previous

concealed frame. For adjusting the noise level, the gain of noise, g„, is calculated as

If T c p j after Section 8.2.2, then g n = g„. Otherwise, a second gain of noise, g calculated as in the equation above, but with T Following, g

m

For further processing, s first normalized and then multiplied by ( to get

8

The formed random excitation, is attenuated uniformly with ¾ from the first

sample to sample five and following sample-by-sample throughout the frame starting with and ending with g · a to obtain S The gain of noise, is calculated only in the

first lost frame after a good frame and is set to for further consecutive frame losses.

8.2.4 Construction of the total excitation, synthesis and post-processing

The random excitation, is added to the periodic excitation, to form the

total excitation signal e The final synthesized signal for the concealed frame is obtained by filtering the total excitation with the LP filter from Section 8.2.1 and post- processed with the de-emphasis filter.

8.2.5 Time Domain alias cancelation

To get a proper overlap-add in the case the next frame is a good frame, the time domain alias cancelation par may be generated. For that, N - Z additional samples are

created the same as described above to obtain the signa . On that,

the time domain alias cancelation part is created by the following steps:

Zero filling the synthesized time domain buffer x(k)

Windowing x(k) with the MDCT window

Reshaping from 2N to N W

- 50 -

R

W

8.2.6 Handling of multiple frame losses

The constructed signal fades out to zero. The fade out speed is controlled by an attenuation factor, a, which is dependent on the previous attenuation factor, a_ l t the gain of pitch, g p , calculated on the last correctly received frame, the number of consecutive erased frames, nbLostCmpt, and the stability, Θ. The following procedure may be used to compute the attenuation factor, a

The factor Θ (stability of the last two adjacent scalefactor vectors

may be obtained, for example, as:

where sc/_ 2 (k) and scf. x {k) are the scalefactor vectors of the last two adjacent frames. The factor Θ is bounded by 0 < Θ≤ 1, with larger values of Θ corresponding to more stable signals. This limits energy and spectral envelope fluctuations. If there are no two adjacent scalefactor vectors present, the factor Θ is set to 0.8.

To prevent rapid high energy increase, the spectrum is low pass filtered with

8.3 Con ceal m enj operation relit edJoXTEF

If mem_ltpf_active=1 in the concealed frame, ltpf_active is set to 1 if the concealment method is MDCT frame repetition with sign scrambling or TCX time domain concealment. Therefore, the Long Term Postfilter is applied on the synthesized time domain signal as described in Section 5, but with

where gain_ltpf_past is the LTPF gain of the previous frame and a is the attenuation factor. The pitch values pitchjnt and pitch_fr which are used for the LTPF are reused from the last frame.

9. Decoder of Fig. 9

Fig. 9 shows a block schematic diagram of an audio decoder 300, according to an example (which may, for example, be an implementation of the apparatus 70).

The audio decoder 300 may be configured to receive an encoded audio signal information 310 (which may, for example, be the encoded audio signal information 12, 12', 12") and to provide, on the basis thereof, a decoded audio information 312).

The audio decoder 300 may comprise a bitstream analyzer 320 (which may also be designated as a "bitstream deformatter" or "bitstream parser"), which may correspond to the bitstream reader 71. The bitstream analyzer 320 may receive the encoded audio signal information 310 and provide, on the basis thereof, a frequency domain

representation 322 and control information 324.

The control information 324 may comprise pitch information 16b, 17b (e.g.,

"Itpf_pitch_lag"), and additional harmonicity information, such as additional harmonicity information or gain information (e.g., "Itpf_gain"), as well as control data items such as 16c, 17c, 18c associated to the harmonicity of the audio signal 11 at the decoder.

The control information 324 may also comprise data control items (e.g., 16c, 17c). A selector 325 (e.g., corresponding to the selector 78 of Fig. 7) shows that the pitch information is provided to the LTPF component 376 under the control of the control items (which in turn are controlled by the harmonicity information obtained at the encoder): if the harmonicity of the encoded audio signal information 310 is too low (e.g., under the second threshold discussed above), the LTPF component 376 does not receive the pitch information.

The frequency domain representation 322 may, for example, comprise encoded spectral values 326, encoded scale factors 328 and, optionally, an additional side information 330 which may, for example, control specific processing steps, like, for example, a noise filling, an intermediate processing or a post-processing. The audio decoder 300 may also comprise a spectral value decoding component 340 which may be configured to receive the encoded spectral values 326, and to provide, on the basis thereof, a set of decoded spectral values 342. The audio decoder 300 may also comprise a scale factor decoding component 350, which may be configured to receive the encoded scale factors 328 and to provide, on the basis thereof, a set of decoded scale factors 352.

Alternatively to the scale factor decoding, an LPC-to-scale factor conversion component 354 may be used, for example, in the case that the encoded audio information comprises encoded LPC information, rather than a scale factor information. However, in some coding modes (for example, in the TCX decoding mode of the USAC audio decoder or in the EVS audio decoder) a set of LPC coefficients may be used to derive a set of scale factors at the side of the audio decoder. This functionality may be reached by the LPC-to-scale factor conversion component 354. The audio decoder 300 may also comprise an optional processing block 366 for performing optional signal processing (such as, for example, noise-filling; and/or temporal noise shaping; TNS, and so on), which may be applied to the decoded spectral values 342. A processed version 366' of the decoded spectral values 342 may be output by the processing block 366.

The audio decoder 300 may also comprise a scaler 360, which may be configured to apply the set of scaled factors 352 to the set of spectral values 342 (or their processed versions 366'), to thereby obtain a set of scaled values 362. For example, a first frequency band comprising multiple decoded spectral values 342 (or their processed versions 366') may be scaled using a first scale factor, and a second frequency band comprising multiple decoded spectral values 342 may be scaled using a second scale factor. Accordingly, a set of scaled values 362 is obtained. The audio decoder 300 may also comprise a frequency-domain-to-time-domain transform 370, which may be configured to receive the scaled values 362, and to provide a time domain representation 372 associated with a set of scaled values 362. For example, the frequency-domain-to-time domain transform 370 may provide a time domain

representation 372, which is associated with a frame or sub-frame of the audio content. For example, the frequency-domain-to-time-domain transform may receive a set of MDCT (or MDST) coefficients (which can be considered as scaled decoded spectral values) and provide, on the basis thereof, a block of time domain samples, which may form the time domain representation 372.

The audio decoder 300 also comprises an LTPF component 376, which may correspond to the filter controller 72 and the LTPF 73. The LTPF component 376 may receive the time domain representation 372 and somewhat modify the time domain representation 372, to thereby obtain a post-processed version 378 of the time domain representation 372.

The audio decoder 300 may also comprise an error concealment component 380 which may, for example, correspond to the concealment unit 75 (to perform a PLC function). The error concealment component 380 may, for example, receive the time domain

representation 372 from the frequency-domain-to-time-domain transform 370 and which may, for example, provide an error concealment audio information 382 for one or more lost audio frames. In other words, if an audio frame is lost, such that, for example, no encoded spectral values 326 are available for said audio frame (or audio sub-frame), the error concealment component 380 may provide the error concealment audio information on the basis of the time domain representation 372 associated with one or more audio frames preceding the lost audio frame. The error concealment audio information may typically be a time domain representation of an audio content. Regarding the error concealment, it should be noted that the error concealment does not happen at the same time of the frame decoding. For example if a frame n is good then we do a normal decoding, and at the end we save some variable that will help if we have to conceal the next frame, then if n+1 is lost we call the concealment function giving the variable coming from the previous good frame. We will also update some variables to help for the next frame loss or on the recovery to the next good frame.

Therefore, the error concealment component 380 may be connected to a storage component 327 on which the values 16b, 17b, 17d are stored in real time for future use. They wili be used only if subsequent frames will be recognized as being impurely decoded. Otherwise, the values stored on the storage component 327 will be updated in real time with new values 16b, 17b, 17d.

In examples, the error concealment component 380 may perform MDCT (or MDST) frame resolution repetition with signal scrambling, and/or TCX time domain concealment, and/or phase ECU. In examples, it is possible to actively recognize the preferable technique on the fly and use it.

The audio decoder 300 may also comprise a signal combination component 390, which may be configured to receive the filtered (post-processed) time domain representation 378. The signal combination 390 may receive the error concealment audio information 382, which may also be a time domain representation of an error concealment audio signal provided for a lost audio frame. The signal combination 390 may, for example, combine time domain representations associated with subsequent audio frames. In the case that there are subsequent properly decoded audio frames, the signal combination 390 may combine (for example, overlap-and-add) time domain representations associated with these subsequent properly decoded audio frames. However, if an audio frame is lost, the signal combination 390 may combine (for example, overlap-and-add) the time domain representation associated with the properly decoded audio frame preceding the lost audio frame and the error concealment audio information associated with the lost audio frame, to thereby have a smooth transition between the properly received audio frame and the lost audio frame. Similarly, the signal combination 390 may be configured to combine (for example, overlap-and-add) the error concealment audio information associated with the lost audio frame and the time domain representation associated with another properly decoded audio frame following the lost audio frame (or another error concealment audio information associated with another lost audio frame in case that multiple consecutive audio frames are lost). W

- 55 -

Accordingly, the signal combination 390 may provide a decoded audio information 312, such that the time domain representation 372, or a post processed version 378 thereof, is provided for properly decoded audio frames, and such that the error concealment audio information 382 is provided for lost audio frames, wherein an overlap-and-add operation may be performed between the audio information (irrespective of whether it is provided by the frequency-domain-to-time-domain transform 370 or by the error concealment component 380) of subsequent audio frames. Since some codecs have some aliasing on the overlap and add part that need to be cancelled, optionally we can create some artificial aliasing on the half a frame that we have created to perform the overlap add. Notably, the concealment component 380 may receive, in input, pitch information and/or gain information (16b, 17b, 17d) even if the latter is not provided to the LTPF component: this is because the concealment component 380 may operate with harmonicity lower than the harmonicity at which the LTPF component 370 shall operate. As explained above, where the harmonicity is over the first threshold but under the second threshold, a concealment function may be active even if the LTPF function is deactivated or reduced.

Notably, other implementations may be chosen. In particular, components different from the components 340, 350, 354, 360, and 370 may be used.

Notably, in the examples in which there is provided that a third frame 18" may be used (e.g., without the fields 16b, 17b, 16c, 17c), when the third frame 18" is obtained, no information from the third frame 18" is used for the LTPF component 376 and for the error concealment component 380.

10. Method of Fig. 10

A method 100 is shown in Fig. 10. At step S101 , a frame (12, 12', 12") may be decoded by the reader (71 , 320). In examples, the frame may be received (e.g., via a Bluetooth connection) and/or obtained from a storage unit.

At step S102, the validity of the frame is checked (for example with CRC, parity, etc.). If the invalidity of the frame is acknowledged, concealment is performed (see below).

Otherwise, if the frame is held valid, at step S103 it is checked whether pitch information is encoded in the frame. For example, the value of the field 18e ("ltpf_pitchjag_present") in the frame 12" is checked. In examples, the pitch information is encoded only if the harmonicity has been acknowledged as being over the first threshold (e.g., by block 21 and/or at step S61 ). However, the decoder does not perform the comparison. If at S103 it is acknowledged that the pitch information is actually encoded (e.g.,

Itpf_pitch_lag_present=1 with the present convention), then the pitch information is decoded (e.g., from the field encoding the pitch information 16b or 17b, "ltpf_pitch_lag") and stored at step S104. Otherwise, the cycle ends and a new frame may be decoded at S101.

Subsequently, at step S105, it is checked whether the LTPF is enabled, i.e., if it is possible to use the pitch information for LTPF. This verification may be performed by checking the respective control item (e.g., 16c, 17c, "ltpf_active"). This may mean that the harmonicity is over the second threshold (e.g., as recognized by the block 22 and/or at step S63) and/or that the temporal evolution is not extremely complicated (the signal is enough flat in the time interval). However, the comparison(s) is(are) not carried out by the decoder.

If it is verified that the LTPF is active, then LTPF is performed at step S106. Otherwise, the LTPF is skipped. The cycle ends. A new frame may be decoded at S101. With reference to the concealment, the latter may be subdivided into steps. At step S107, it is verified whether the pitch information of the previous frame (or a pitch information of one of the previous frames) is stored in the memory (i.e., it is at disposal).

If it is verified that the searched pitch information is stored, then error concealment may be performed (e.g., by the component 75 or 380) at step S108. MDCT (or MDST) frame resolution repetition with signal scrambling, and/or TCX time domain concealment, and/or phase ECU may be performed.

Otherwise, if at S107 it is verified that no fresh pitch information is stored (as a

consequence that the previous frames were associated to extremely low harmonicity or extremely high variation of the signal) a different concealment technique, per se known and not implying the use of a pitch information provided by the encoder, may be used at step S109. Some of these techniques may be based on estimating the pitch information and/or other harmonicity information at the decoder. In some examples, no concealment technique may be performed in this case.

After having performed the concealment, the cycle ends and a new frame may be decoded at S101 .

1 1. Discussion on the solution The proposed solution may be seen as keeping only one pitch detector at the encoder- side and sending the pitch lag parameter whenever LTPF or PLC needs this information. One bit is used to signal whether the pitch information is present or not in the bitstream. One additional bit is used to signal whether LTPF is active or not. By the use of two signalling bits instead of one, the proposed solution is able to directly provide the pitch lag information to both modules without any additional complexity, even in the case where pitch based PLC is active but not LTPF.

Accordingly, a low-complexity combination of LTPF and pitch-based PLC may be obtained. 11.1 Encoder a. One pitch-lag per frame is estimated using a pitch-detection algorithm. This can be done in 3 steps to reduce complexity and improve accuracy. A first pitch-lag is coarsely estimated using an "open-loop pitch analysis" at a reduced sampling-rate (see e.g. [1] or [5] for examples). The integer part of the pitch-lag is then refined by maximizing a correlation function at a higher sampling-rate. The third step is to estimate the fractional part of the pitch- lag by e.g. maximizing an interpolated correlation function. b. A decision is made to encode or not the pitch-lag in the bitstream. A

measure of the harmonicity of the signal can be used such as e.g. the normalized correlation. The bit ltpf_pitch_lag_present is then set to 1 if the signal harmonicity is above a threshold and 0 otherwise. The pitch-lag ltpf_pltch_lag is encoded in the bitstream if ltpf_pitch_lag_present is 1. c. In the case ltpf_pitch_lag_present is 1 , a second decision is made to activate or not the LTPF tool in the current frame. This decision can also be based on the signal harmonicity such as e.g. the normalized correlation, but with a higher threshold and additionally a hysteresis mechanism in order to provide a stable decision. This decision sets the bit ltpf_active. d. (optional) in the case ltpf_active is 1 , a LTPF gain is estimated and

encoded in the bitstream. The LTPF gain can be estimated using a correlation-based function and quantized using uniform quantization.

11.2 Bitstream The bitstream syntax is shows in Figs. 8a and 8b, according to examples.

I I .3 Decoder

If the decoder correctly receives a non-corrupted frame: a. The LTPF data is decoded from the bitstream b. If itpf_pitch_lag_present is 0 or ltpf_active is 0, then the LTPF decoder is called with a LTPF gain of 0 (there is no pitch-lag in that case). c. If ltpf_pitch_lag_present is 1 and ltpf_active is 1 , then the LTPF decoder is called with the decoded pitch-lag and the decoded gain.

If the decoder receives a corrupted frame or if the frame is lost: a. A decision is made whether to use the pitch-based PLC for concealing the lost/corrupted frame. This decision is based on the LTPF data of the last good frame plus possibly other information. b. If ltpf_pitch_lag_present of the last good frame is 0, then pitch-based PLC is not used. Another PLC method is used in that case, such as e.g. frame repetition with sign scrambling (see [7]). c. If ltpf_pitchjag_present of the last good frame is 1 and possibly other conditions are met, then pitch-based PLC is used to conceal the

lost/corrupted frame. The PLC module uses the pitch-lag ltpf_pitch_lag decoded from the bitstream of the last good frame. 12. Further examples

Fig. 1 1 shows a system 110 which may implement the encoding apparatus 10 or 10' and/or perform the method 60. The system 110 may comprise a processor 1 11 and a non- transitory memory unit 112 storing instructions which, when executed by the processor

I I I , may cause the processor 1 11 to perform a pitch estimation 113 (e.g., to implement the pitch estimator 13), a signal analysis 114 (e.g., to implement the signal analyser 14 and/or the harmonicity measurer 24), and a bitstream forming 115 (e.g., to implement the bitstream former 15 and/or steps S62, S64, and/or S66). The system 110 may comprise an input unit 116, which may obtain an audio signal (e.g., the audio signal 11 ). The processor 11 1 may therefore perform processes to obtain an encoded representation (e.g., in the format of frames 12, 12', 12") of the audio signal. This encoded representation may be provided to external units using an output unit 1 17. The output unit 1 17 may comprise, for example, a communication unit to communicate to external devices (e.g., using wireless communication, such as Bluetooth) and/or external storage spaces. The processor 1 1 1 may save the encoded representation of the audio signal in a local storage space 1 18.

Fig. 12 shows a system 120 which may implement the decoding apparatus 70 or 300 and/or perform the method 100. The system 120 may comprise a processor 121 and a non-transitory memory unit 122 storing instructions which, when executed by the processor 121 , may cause the processor 121 to perform a bitstream reading 123 (e.g., to implement the pitch reader 71 and/or 320 and/or step S101 unit 75 or 380 and/or steps S107-S109), a filter control 124 (e.g., to implement the LTPF 73 or 376 and/or step S106), and a concealment 125 (e.g., to implement the). The system 120 may comprise an input unit 126, which may obtain a decoded representation of an audio signal (e.g., in the form of the frames 12, 12', 12"). The processor 121 may therefore perform processes to obtain a decoded representation of the audio signal. This decoded representation may be provided to external units using an output unit 127. The output unit 127 may comprise, for example, a communication unit to communicate to external devices (e.g., using wireless communication, such as Bluetooth) and/or external storage spaces. The processor 121 may save the decoded representation of the audio signal in a local storage space 128.

In examples, the systems 1 10 and 120 may be the same device.

Fig. 13 shows a method 1300 according to an example. At an encoder side, at step S130 the method may provide encoding an audio signal (e.g., according to any of the methods above or using at least some of the devices discuss above) and deriving harmonicity information and/or pitch information.

At an encoder side, at step S131 the method may provide determining (e.g., on the basis of harmonicity information such as harmonicity measurements) whether the pitch information is suitable for at least an LTPF and/or error concealment function to be operated at the decoder side. At an encoder side, at step S132 the method may provide transmitting from an encoder (e.g., wirelessly, e.g., using Bluetooth) and/or storing in a memory a bitstream including a digital representation of the audio signal and information associated to harmonicity. The step may also provide signalling to the decoder whether the pitch information is adapted for LTPF and/or error concealment. For example, the third control item 18e ("ltpf_pitchjag_present") may signal that pitch information (encoded in the bitstream) is adapted or non-adapted for at least error concealment according to the value encoded in the third control item 18e, For example, the first control item 16a (ltpf_active=0) may signal that pitch information (encoded in the bitstream as "ltpf_pitch_lag") is adapted for error concealment but is not adapted for LTPF (e.g., by virtue of its intermediate harmonicity). For example, the second control item 17a (ltpf_active=1 ) may signal that pitch information (encoded in the bitstream as "ltpf_pitch_lag") is adapted for both error concealment and LTPF (e.g., by virtue of its higher harmonicity). At a decoder side, the method may provide, at step S134, decoding the digital representation of the audio signal and using the pitch information LTPF and/or error concealment according to the signalling form the encoder.

Depending on certain implementation requirements, examples may be implemented in hardware. The implementation may be performed using a digital storage medium, for example a floppy disk, a Digital Versatile Disc (DVD), a Blu-Ray Disc, a Compact Disc (CD), a Read-only Memory (ROM), a Programmable Read-only Memory (PROM), an Erasable and Programmable Read-only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM) or a flash memory, having electronically readable control signals stored thereon, which cooperate (or are capable of cooperating) with a programmable computer system such that the respective method is performed. Therefore, the digital storage medium may be computer readable.

Generally, examples may be implemented as a computer program product with program instructions, the program instructions being operative for performing one of the methods when the computer program product runs on a computer. The program instructions may for example be stored on a machine readable medium.

Other examples comprise the computer program for performing one of the methods described herein, stored on a machine readable carrier. In other words, an example of method is, therefore, a computer program having a program instructions for performing one of the methods described herein, when the computer program runs on a computer. A further example of the methods is, therefore, a data carrier medium (or a digital storage medium, or a computer-readable medium) comprising, recorded thereon, the computer program for performing one of the methods described herein. The data carrier medium, the digital storage medium or the recorded medium are tangible and/or non-transitionary, rather than signals which are intangible and transitory.

A further example comprises a processing unit, for example a computer, or a

programmable logic device performing one of the methods described herein. A further example comprises a computer having installed thereon the computer program for performing one of the methods described herein.

A further example comprises an apparatus or a system transferring (for example, electronically or optically) a computer program for performing one of the methods described herein to a receiver. The receiver may, for example, be a computer, a mobile device, a memory device or the like. The apparatus or system may, for example, comprise a file server for transferring the computer program to the receiver.

In some examples, a programmable logic device (for example, a field programmable gate array) may be used to perform some or all of the functionalities of the methods described herein. In some examples, a field programmable gate array may cooperate with a microprocessor in order to perform one of the methods described herein. Generally, the methods may be performed by any appropriate hardware apparatus.

The above described examples are illustrative for the principles discussed above. It is understood that modifications and variations of the arrangements and the details described herein will be apparent, it is the intent, therefore, to be limited by the scope of the impending patent claims and not by the specific details presented by way of description and explanation of the examples herein.