OA17868A - Coding and decoding of spectral peak positions. - Google Patents

Coding and decoding of spectral peak positions. Download PDF

Info

Publication number
OA17868A
OA17868A OA1201600143 OA17868A OA 17868 A OA17868 A OA 17868A OA 1201600143 OA1201600143 OA 1201600143 OA 17868 A OA17868 A OA 17868A
Authority
OA
OAPI
Prior art keywords
spectral peak
audio signal
peak position
signal segment
coding
Prior art date
Application number
OA1201600143
Inventor
Volodya Grancharov
Sigurdur Sverrisson
Original Assignee
Telefonaktiebolaget Lm Ericsson (Publ)
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Telefonaktiebolaget Lm Ericsson (Publ) filed Critical Telefonaktiebolaget Lm Ericsson (Publ)
Publication of OA17868A publication Critical patent/OA17868A/en

Links

Abstract

A coder and decoder, and methods therein, are provided for coding and decoding of spectral peak positions in audio coding. According to a first aspect, an audio signal segment coding method is provided for coding of spectral peak positions. The method comprises determining which one out of two lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions of an audio signal segment; and selecting the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions of the audio signal segment. A first one of the two lossless spectral peak position coding schemes is suitable for periodic or semi-periodic spectral peak position distributions; and a second one of two lossless spectral peak position coding schemes is suitable for sparse spectral peak position distributions.

Description

CODING AND DECODING OF SPECTRAL PEAK POSITIONS
TECHNICAL FIELD
The proposed technology generally relates to audio signal segment coding /decoding and in particular to coding/decoding of spectral peak positions.
BACKGROUND
Many audio coding techniques exploit characteristics of human hearing. For example, a weak tone near a strong tone may not need to be coded, since the human auditory system is less sensitive for such weak tones. ln traditional, so-called perceptual audio coding, quantization of different frequency data is based on models of human hearing. For example, perceptually important frequency data are allocated more bits and thus finer quantization and vice versa.
One type of audio coding is so-called transform coding. ln transform coding, a block of input audio samples is transformed, e.g., via the Modified Discrète Cosine Transform, processed, and quantized. The quantization of the transformed coefficients is performed based on the perceptual importance. One audio parameter that needs to be encoded is the positions of spectral peaks. An example of spectral peak positions for an audio segment, in the transform domain, is shown in figure 1a. The spectral peak positions are typically encoded by use of a lossless coding scheme, such as Huffman coding. However, prior art solutions consume many bits on encoding of spectral peaks.
SUMMARY
It would be désirable to encode spectral peak positions in a more efficient way than in prior art solutions.
According to a first aspect, an audio signal segment coding method is provided for coding of spectral peak positions. The method comprises determining which one out of two lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions of an audio signal segment; and selecting the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions of the audio signal segment. A first one of the two lossless spectral peak position coding schemes is suitable for periodic or semi-periodic spectral peak position distributions; and a second one of two lossless spectral peak position coding schemes is suitable for sparse spectral peak position distributions. This is also valid for ail aspects described below.
According to a second aspect, an audio signal segment coder is provided, for coding of spectral peak positions. The coder is configured to détermine which one out of two lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions of an audio signal segment; and further to select the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions ofthe audio signal segment
According to a third aspect, a user terminal is provided, which comprises an audio signal segment coder according to the second aspect.
According to a fourth aspect, an audio signal segment decoding method is provided for decoding of spectral peak positions. The method comprises receiving coded spectral peak positions of an audio signal segment; and also receiving an indicator of a lossless coding scheme, out of two lossless coding schemes, that was selected to code the spectral peak positions. The method further comprises decoding the spectral peak positions in correspondence with the indicated coding scheme;
According to a fifth aspect, an audio signal segment décoder is provided for decoding of spectral peak positions. The décoder is configured to receive coded spectral peak positions of an audio signal segment; and further to receive an indicator of a lossless coding scheme, out of two lossless coding schemes, that was selected to code the spectral peak positions. The décoder is further configured to décodé the spectral peak positions in correspondence with the indicated coding scheme.
According to a sixth aspect, a mobile terminal is provided, which comprises an audio signal segment décoder according to the fifth aspect.
BRIEF DESCRIPTION OF DRAWINGS
The embodiments, together with further objects and advantages thereof, may best be understood by making reference to the following description taken together with the accompanying drawings, in which:
Figures 1a and 1b are examples of spectral peak position distributions.
Figures 2-4 are flow charts illustrating exemplifying embodiments ofthe coding method ofthe proposed technology.
Figures 5-9 are block diagrams illustrating exemplifying embodiments ofthe proposed coder.
Figure 10 is a block diagram illustrating an embodiment of a proposed user terminal.
Figure 11 is a flow chart illustrating an embodiment ofthe decoding method ofthe proposed technology.
Figures 12-15 are block diagrams illustrating exemplifying embodiments ofthe proposed décoder.
Figure 16 is a block diagram illustrating an embodiment of a proposed user terminal.
DETAILED DESCRIPTION
Throughout the drawings, the same reference désignations may be used for similar or corresponding éléments.
The proposed technology deals with lossless coding of spectral peak positions, as extracted from a short segment, for example 10-40 ms, of an audio signal. The proposed technology also deals with decoding of spectral peak positions that hâve been coded in accordance with this technology.
It is realized by the inventors that conventional methods for encoding spectral peak positions fail to address the fact that peak positions in audio signais may hâve very abrupt changes in distribution, which makes it inefficient to code the peak positions with a single coding scheme. In certain cases the spectrum can be semi-periodic, which makes a differential, or delta coding scheme very efficient. In other cases the spectral peaks can be clustered, leaving large sparse régions.
A main concept ofthe proposed technology is to use dedicated coding schemes for different peak position distributions, and switch between the coding schemes in a closed loop manner. Each ofthe different coding schemes should be suitable for a spécifie peak position distribution. By suitable is meant e.g. that the coding scheme is especially efficient for a certain type of spectral peak distribution. When it herein is stated that a coding scheme A is suitable for a peak distribution C and a coding scheme B is suitable for a peak distribution D, it may be assumed that A generally is more efficient than B for peak distribution C, while B generally is more efficient than A for peak distribution D.
Assume we hâve a set of N spectral peak positions ->Pn}> which has to be compressed and transmitted in a lossless way. The number of peaks as well as their distribution varies with time. Examples of two different sets of spectral peak positions are illustrated in figures 1a and 1b.
Figure 1a illustrâtes a spectral peak distribution that is close to periodic. This case is efficiently handled by, for example, delta coding described below.
Figure 1 b illustrâtes a spectral peak distribution that is sparse and has a large distance between two neighboring peaks. This case is difficult to handle with delta coding due to the large delta between the peaks.
It has been found by the inventors that large variations in the number of peaks and their distribution may, with advantage, be handled by coding with alternative compression or coding schemes. Herein, it is focuses on two exemplifying coding schemes, which may be denoted delta coding and sparse coding, and which are described below. The delta coding could altematively be denoted periodic coding. However, it is also feasible to use more than two coding schemes suitable for different spectral peak position distributions.
Delta Coding
This coding scheme is suitable for peak distributions like the one illustrated in figure 1a, which may be characterized as periodic or semi-periodic or close to periodic. The concept of delta coding is to form différences, which herein are denoted d or Δ, between consecutive spectral peak positions Pj or {Pi,P2,P3> ->Pn} 'n and audio signal segment as:
δ\ — P\— Pq d22-Ρχ
F =Ρν ~Ρν-ι (1)
The différences, also denoted deltas, are then encoded using a suitable coding method. A preferred coding method for the différences is Huffman coding. Assume that we hâve M deltas of different size. These are mapped to variable length codewords, e.g.
{d (1),/7(2), d(3),..., <7(Àf)) —> {0,10,11,.. .,111110} (2)
Here, d(l) is the différence or step size dj that appears most often and is therefore mapped to the shortest codeword “0”, while d(M) is very rare and is therefore mapped to the longest codeword “111110”. In this example the longest codeword requires 6 bits, but both longer and shorter longest codewords are also feasible. By mapping the most frequent delta to the shortest codeword and rare deltas to the longest codewords, the number of bits used for encoding the deltas will be minimized. This coding method is efficient as long as there are not too many different step sizes that appear too frequently. Stated differently: the more different step sizes, the longer codewords, and when step sizes mapped to long codewords appear often, the efficiency ofthe coding method decreases.
The Huffman codewords are transmitted to the décoder, and corresponding deltas are then extracted by the décoder. By knowing dj and Pj_lt the décoder can reconstruct Pj by itération.
In addition to the deltas, the décoder needs to knowthe initial position Po. Due to imposed constraints on the minimum distance between peaks, Po is considered as a spécial case. For example, there may be a restriction that two neighboring peaks hâve to be separated by at least 2 empty positions. Since there are no deltas shorter than 3 in this case, no Huffman codewords are needed for such deltas during the rest of the segment or frame. However, the very first peak in an audio signal segment PQ can appear in the beginning ofthe scale (spectrum) with an offsetfrom zéro that is smaller than 3. To avoid this problem without having to add a number of Huffman codewords for these possible initial deltas smaller than 3, an offset determined from -3 is used instead of an offset determined from 0. Thus, when Po is located e.g. in position 1, the codeword for Δ= 4 is used. The resuit of such a simple operation is that it is possible to limit the numberof used Huffman codewords. This will minimize the length ofthe used Huffman codewords, since in general, less Huffman codewords gives shorter Huffman codewords.
Sparse Coding
This coding scheme is suitable for peak distributions like the one illustrated in figure 1b, which may be characterized as sparse. Sparse is considered to imply that there may be large distances between consecutive peaks and that the peaks are not necessarily periodic. Assuming an example below of a spectral peak position vector, where ones “1” indicate presence of a peak and zero’s “0” indicate absence of a peak:
{01000000000000000100}
In delta coding this would imply = 2 and P2 = 18},). The exemplifying peak position vector above should illustrate spectral peaks being very far apart in relation to other peak différences, even though the distance 16 may not be considered very far apart in a more authentic example vector.
The first step of this sparse coding scheme is to form equal size groups of, for example, 5 bits, as:
{01000, 00000, 00000, 00100}
Then each group is checked for non-zero éléments, for example by OR-ing the éléments within each group. The resuit is stored in a second bit vector, which is 5 time shorter. This bit vector is illustrated in bold below in order to be more easily distinguished:
{01000, 00000, 00000, 00100}-> {1001} (5)
In this exemplifying embodiment, the bitstream that should be transmitted to the décoder would look like:
{1001, 01000, 00100}
The décoder reads the signaling layer “1001” from the bitstream. These 4 bits indicate that what will follow in the bitstream is a description of the 1 st and 4th group, while the 2nd and 3rd group hâve to be filled-in with zero’s.
Because ofthe above mentioned constraints in the minimum allowed distance between two consecutive peaks, the scheme above may be modified to achieve further, still lossless, compression gain. Since there are only 8 possible levels for each 5-dim vector, 10 due to the constraint that peaks should be separated by at least two positions, these vectors can be indexed with only 3 bits, see Table 1 below. In this embodiment the bitstream looks as:
{1001, 001, 010} and instead of 5 bits, as in the example further above, only 3 bits are required for identifying each non-zero bit group.
Table 1: Indexing of 5-dim vectors. The 3-bit index is extracted from the bitstream and the corresponding 5-dim vector, denoted group above and in the table, is reconstructed.
group index
10000 000
01000 001
00100 010
00010 011
00001 100
10010 101
10001 110
01001 111
Table 1.
An alternative lossless sparse spectral peak position coding scheme can be based on logical operation of OR-ing bits as described in [1].
The coding schemes described above each hâve problems for certain peak position distributions:
• A problem with the sparse coding scheme is that it can actually increase the amount of data if the input is not sparse enough.
• A problem with the delta coding scheme is that it is very inefficient for outliers,
e.g., very large delta steps, when the majority ofthe distances are small.
However, the two coding schemes described above can be seen as complementing each other, and it has been realized by the inventors that a very efficient coding system can be formed by combining their strengths. An example of a closed loop decision logic is outlined below:
Use sparse coding
ELSE
Use delta coding (g) where
Ld is the total number of bits consumed by the delta coding scheme,
Ls is the total number of bits consumed by the sparse coding scheme.
The decision logic (8) requires that both coding schemes can actually be performed. In some cases, when the largest distance dmax between two consecutive peaks is greater than the largest distance T that is possible to delta code, based on the pre-stored Huffman table, the total number of bits Ld consumed by the delta coding scheme cannot be explicitly calculated. In order to cover such cases the decision logic (8) may be slightly modified into:
IF{«„>7)OR(4>£,)}
Use sparse coding
ELSE
Use delta coding
The first part ofthe OR-clause in decision logic (9) may be considered as a shortcut, since the delta coding does not hâve to be explicitly performed if distance dmax > T . Expressed differently: when the criterion dmax > T is fulfilled for an audio signal segment or frame, the delta coding should not be performed, and it may be decided to use the sparse coding without comparing the resuit from both coding methods. That is, in this case Ld may be considered to be larger than Ls by default, and only the sparse coding needs to be performed.
Figures 2 and 3 are flow charts illustrating the method ofthe proposed technology according to at least one embodiment. The method is intended to be performed by an audio coder, which may also be denoted audio encoder, opérable to encode audio signal segments. In this embodiment, the decision logic (9) is implemented, and the exemplifying number of lossless coding schemes is two. The method comprises determining 201 which one out of two lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions of an audio signal segment; and selecting 202 the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions ofthe audio signal segment. This embodiment could also be described, in more detail, with reference to figure 3. In an action 301, it is determined whether or not dmax, alternative^ denoted Amax, is larger than T; (dmax > T). The condition could, obviously, alternatively be formulated e.g. as dmax > T’. When dmax is larger than T, the sparse coding is selected 304, and the spectral peak positions may be coded using the sparse coding scheme.
This enables making a decision regarding which coding scheme to use before encoding the spectral peak positions when dmax > T. The delta coding can be configured for efficiently coding deltas which are smaller than T, while not necessarily handling deltas larger than T. In other words, the size ofthe Huffman table may be optimized together with the sparse peak position coding scheme, such thatthe efficiency ofthe sparse coding scheme for deltas above certain size is exploited by that such deltas are not represented in the Huffman table. This optimization results in an overall short codeword size in the Huffman table, which is very bénéficiai for the coding efficiency. The sparse coding scheme is the coding scheme requiring the least number of bits for dmax > T.
When dmax is not larger than T, i.e. when the condition 301 is not fulfilled; the spectral peak positions are encoded 302 using both coding schemes. That is, the spectral peak positions are encoded using delta coding and sparse coding, respectively, rendering two different results. Each ofthe coding schemes requires a certain number of bits, cf. Ld and Ls above, to encode the current set of spectral peak positions. This number of bits may be observed and the numbers may be compared to détermine which coding scheme that was most efficient for the current peak distribution. Based on the respective number of bits required for the different methods, it may be determined which of the coding schemes that required the least number of bits to encode the current set of spectral peak positions, and the coding scheme which required the least number of bits may be selected 303. The determining, i.e. the comparing of required number of bits in this case, could be regarded as incorporated in the action 303 or in the action 302. The selected coding scheme, either selected in action 304 or in action 303, may then be indicated 306 to the décoder in association with the encoded spectral peaks positions. That is, in association with the transmission ofthe version ofthe coded spectral peak positions that was encoded by use ofthe selected coding scheme. The version encoded with the other, not selected, coding scheme is not to be used and may be discarded.
The delta coding, which could also be denoted a first one ofthe two lossless spectral peak position coding schemes, is suitable for encoding of periodic or semi-periodic spectral peak position distributions; and the sparse coding, which could also be denoted a second one ofthe two lossless spectral peak position coding schemes, is suitable for sparse spectral peak position distributions. The delta coding preferably comprises delta coding of peak positions and Huffman coding ofthe delta codes, as described above. This could alternatively be referred to as delta-Huffman coding.
The sparse spectral peak position coding scheme may, as described above, comprise dividing a bit vector representing the spectral peak positions into consecutive equal size bit groups (see expression (4)); OR-ing the bits in each bit group to form a group bit vector (see expression (5)); compressing non-zero bit groups by exploiting constraints in the minimum allowed distance between two consecutive peaks (see expression (6) and table 1); and further forming a compressed bit vector by concatenating the group bit vector and the compressed non-zero bit groups (see expression (7)). The term “OR-ing” is here also considered to embrace variants where the bits in a group are checked for ones “1s” in some other way, rendering the same resuit as OR-ing. For example, the bits ofthe group could be checked one by one, and if a “1” is detected, the group is determined to be a non-zero bit group.
Figure 4 is a flow chart illustrating the method ofthe proposed technology according to an embodiment implementing at least the decision logic (8) described above. Step 401 codes spectral peak positions of an audio signal segment in accordance with at least two lossless spectral peak position coding schemes suitable for different spectral peak position distributions. Step 402 selects the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions of the audio signal segment. The actions 401 and 402 could be identical to actions 302 and 303 in figure 3.
The steps, functions, procedures, modules, units and/or blocks described herein may be implemented in hardware using any conventional technology, such as discrète circuit or integrated circuit technology, including both general-purpose electronic circuitry and application-specific circuitry.
Particular examples include one or more suitably configured digital signal processors and other known electronic circuits, e.g. discrète logic gates interconnected to perform a specialized function, or Application Spécifie Integrated Circuits (ASICs).
Altematively, at least some ofthe steps, functions, procedures, modules, units and/or blocks described above may be implemented in software such as a computer program for execution by suitable processing circuitry including one or more processing units.
The flow diagram or diagrams presented herein may be regarded as a computer flow diagram or diagrams, when performed by one or more processors. A corresponding apparatus may be defined as a group of function modules, where each step performed by the processor corresponds to a function module. In this case, the function modules are implemented as a computer program running on the processor.
Examples of processing circuitry includes, but is not limited to, one or more microprocessors, one or more Digital Signal Processors, DSPs, one or more Central Processing Units, CPUs, video accélération hardware, and/or any suitable programmable logic circuitry such as one or more Field Programmable Gâte Arrays, FPGAs, or one or more Programmable Logic Controllers, PLCs.
It should also be understood that it may be possible to re-use the general processing capabilities of any conventional device or unit in which the proposed technology is implemented. It may also be possible to re-use existing software, e.g. by reprogramming ofthe existing software or by adding new software components.
Embodiments described herein also relate to an encoder opérable to encode audio signais. The coder is configured to perform at least one embodiment ofthe method performed by a coder described above. The coder is associated with the same technical features, objects and advantages as the method described above and illustrated e.g. in figure 3. The coder will be described in brief in order to avoid unnecessary répétition
Below, an exemplifying coder 500, configured to enable the performance of an above described method for coding of spectral peak positions will be described with reference to figure 5. The coder may be comprised in a user terminal or be comprised in a network node, such as a gateway. The coder 500 may be assumed to be configured with functionality to perform the two Iossless spectral peak position coding schemes, described above.
Figure 5 is a block diagram illustrating an embodiment of a proposed coder 10. This embodiment includes processing means in form of a processor 22 and a memory 24. The memory comprises instructions, e.g. in form of a computer program which when executed by the processing means causes the coder 10 to détermine which one out of two lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions of an audio signal segment. Preferably, the coder 10 is configured to apply decision logic (9) as described above. This may be performed as determining whether a parameter dmax exceeds a threshold, and if not, comparing, after coding the spectral peak positions with both coding schemes, a number of bits required by the two coding schemes for encoding the spectral peak positions. The execution ofthe instructionsfurther causes the coder 10 to selectthe spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions ofthe audio signal segment. The coder 10 is configured with the two coding schemes, which may also be part ofthe instructions stored in the memory 24, or alternatively be stored or implemented in some other part of the coder (not shown). As before, a first one ofthe two lossless spectral peak position coding schemes is suitable for periodic or semi-periodic spectral peak position distributions; and a second one ofthe two lossless spectral peak position coding schemes is suitable for sparse spectral peak position distributions. This could also be described as that the coder 10 is operative to encode spectral peaks in two different coding modes;
The instructions may be stored as a computer program product 20 on a computer readable medium (tangible non-transitory medium) and may be transferred to the memory 24, as indicated bythe dashed arrow on the left side ofthe figure. The audio signal segment is forwarded to the processor 22 over an input unit IN, and the coded spectral peak positions are forwarded to a décoder over an output unit OUT. The selected coding scheme may be explicitly signaled to décoder, as indicated by the dashed arrow in figure 5, or as an alternative, it may be detected at the décoder by trial decoding ofthe received bit stream in the possible decoding modes and selecting the one that was successful. The first alternative is less complex, but requires more bandwidth. The second alternative requires less bandwidth, but is more complex. Similar alternatives apply to the other embodiments described below.
An alternative embodiment of the coder 10 is shown in figure 6. Figure 6 illustrâtes a coder 10, opérable to encode audio signais. The coder 10 comprises a determining unit 603 configured to détermine which one out of two lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions of an audio signal segment. The coder 10 further comprises a selecting unit 604, configured to select the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions of the audio signal segment.
Figure 7 is a block diagram illustrating an exemplifying embodiment of a proposed coder
10. The coder 10 is configured to perform a method for coding of spectral peak positions implementing at least decision logic (8) as described above. An audio signal segment is forwarded to a signal analysis unit 16, which analyzes the segment for coding purposes. One of the extracted features from this analysis is a set of spectral peak positions. This analysis may be performed by use of a suitable prior art method.
These spectral peak positions are forwarded to a spectral peak position coder 12 configured to code the spectral peak positions of the audio signal segment in accordance with at least two lossless spectral peak position coding schemes suitable for different spectral peak position distributions. The total number of bits of each coding scheme, i.e. the number of bits required by the respective method for encoding the spectral peak positions, are forwarded to a coding scheme selector 14 configured to select the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions of the audio signal segment. The selected coded spectral peak positions are forwarded to an output unit 18 and forwarded to a décoder.
Figure 8 is a block diagram illustrating another embodiment of the proposed coder 10. A set of spectral peak positions is forwarded to the coder 10, which includes a spectral peak position coding module 12 for coding spectral the peak positions of the audio signal segment in accordance with at least two lossless spectral peak position coding schemes suitable for different spectral peak position distributions. The coder 10 also includes a coding scheme selecting module 14 for selecting the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions of the audio signal segment. The selected coded spectral peak positions are forwarded to a décoder. The selected coding scheme may also be indicated to the décoder, as noted above.
When the coder 10 is configured to support decision logic (9) described above, the coding scheme selecting module 14 should be further configured to détermine which one out ofthe at leasttwo lossless spectral peak position coding schemes that requires the least number of bits to code the spectral peak positions also depending on a criterion related to the maximum distance between two consecutive peak positions. That is, the coding scheme selecting module 14 should be configured to détermine, before encoding ofthe spectral peak positions, whether the maximum distance dmax exceeds a predetermined threshold or not, and take action in accordance with the resuit, cf. figure
3.
Figure 9 is a block diagram illustrating another embodiment ofthe proposed coder 10. This embodiment is based on a processor 22, for example a microprocessor, which executes a computer program 30 for coding spectral peak positions of an audio signal segment. The computer program is stored in memory 24. The processor 22 communicates with the memory over a system bus. The incoming audio signal segments are received by an input/output (I/O) controller 26 controlling an I/O bus, to which the processor 22 and the memory 24 are connected. The coded spectral peak positions obtained from the software 30 are outputted from the memory 24 by the I/O controller 26 over the I/O bus. The computer program 30 includes a code unit 32 for coding spectral peak positions of an audio signal segment in accordance with two lossless spectral peak position coding schemes suitable for different spectral peak position distributions, and a code unit 34 for determining and selecting the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions ofthe audio signal segment.
The computer program residing in memory may be organized as appropriate function modules configured to perform, when executed bythe processor, at least part ofthe steps and/or tasks described above. An example of such function modules is illustrated in figure 8. The software or computer program may be realized as a computer program product, which is normally carried or stored on a computer-readable medium (tangible non-transitory medium). The computer-readable medium may include one or more removable or non-removable memory devices including, but not limited to a Read-Only Memory, ROM, a Random Access Memory, RAM, a Compact Disc, CD, a Digital Versatile Disc, DVD, a Universal Serial Bus, USB, memory, a Hard Disk Drive, HDD storage device, a flash memory, or any other conventional memory device. The computer program may thus be loaded into the operating memory of a computer or équivalent processing device for execution by the processing circuitry thereof.
For example, the computer program includes instructions exécutable by the processing circuitry, whereby the processing circuitry is able or operative to execute the steps, functions, procedure and/or blocks described herein. The computer or processing circuitry does not hâve to be dedicated to only execute the steps, functions, procedure and/or blocks described herein, but may also execute other tasks.
The proposed technology also includes a user terminal including an audio signal segment coder as described above. The user terminal may be a wired or wireless device.
As used herein, the term “wireless device” may refer to a User Equipment, UE, a mobile phone, a cellular phone, a Personal Digital Assistant, PDA, equipped with radio communication capabilities, a smart phone, a laptop or Personal Computer, PC, equipped with an internai or external mobile broadband modem, a tablet PC with radio communication capabilities, a portable electronic radio communication device, a sensor device equipped with radio communication capabilities or the like. In particular, the term “UE” should be interpreted as a non-limiting term comprising any device equipped with radio circuitry for wireless communication according to any relevant communication standard.
As used herein, the term “wired device” may refer to at least some of the above devices, with or without radio communication capability, for example a PC, when configured for wired connection to a network.
Figure 10 is a block diagram illustrating an embodiment of a proposed user terminal 50. The example illustrâtes a UE. An audio signal from a microphone is forwarded to an analog/digital converter A/D, and the digital signal is processed by a coder 10 in accordance with the proposed technology. ln particular the coder 10 codes the spectral peak positions of audio signal segments as described above (typically the coder may perform other task, such as frequency transformation ofthe audio signal segments and coding of other parameters describing the segment, but these tasks are not described since they are well known in the art and do not form an essential part of the proposed technology). The coded spectral peak positions (and other parameters) are forwarded to a radio unit 40 for transmission to a décoder. Optionally the selected coding scheme may also be forwarded to the décoder, as noted above.
Embodiments described herein also relate to an audio signal segment decoding method for decoding of spectral peak positions. The method is a corresponding method to the previously described coding method.
Figure 11 is a flow chart illustrating an embodiment ofthe decoding method ofthe proposed technology. In action 1101 coded spectral peak positions of an audio signal segment are received. In action 1102 an indicator of a coding scheme that was selected to code the spectral peak positions is received. In action 1103, the spectral peak positions are decoded in a decoding mode that corresponds to the indicated coding scheme. This may also be expressed as that the spectral peak positions are decoded in accordance with the indicated coding scheme, i.e. by use of a decoding scheme corresponding to the indicated coding scheme. The indicated coding scheme is one out of two lossless spectral peak coding schemes, where, as before, a first one of the two lossless spectral peak position coding schemes is suitable for periodic or semi-periodic spectral peak position distributions; and a second one ofthe two lossless spectral peak position coding schemes is suitable for sparse spectral peak position distributions.
When a coding scheme suitable for sparse spectral peak position distributions is indicated, the coded spectral peak positions may be received in form of a group bit vector and compressed non-zero bit groups indicated by the group bit vector. This corresponds to the sparse coding scheme as described earlier. The respective positions in the group bit vector may then represent consecutive equal size groups of bits.
Further, an equal size group which comprises a spectral peak should be separable from an equal size group which does not comprise a spectral peak. An equal size group which comprises a spectral peak could also be denoted a non-zero bit group, and is indicated differently in the group bit vector than an equal size group not comprising a spectral peak. For example, a non-zero bit group could be indicated by “1” and a group not comprising a spectral peak could be indicated by “0” in the group bit vector, as in expressions (5)-(7) above.
The non-zero bit groups, if any indicated in the group bit vector, could then be decompressed based on constraints in the minimum allowed distance between two consecutive peaks. That is, the non-zero bit groups, which may be concatenated to the group bit vector in compressed form, may be decompressed by being demapped by use e.g. of a table, such as table 1 described above. Due to the constraints or restrictions regarding the minimum allowed distance between peaks, not ail sequences are possible for the non-zero bit groups, and thus each possible sequence may be mapped to a shorter sequence, i.e. be compressed, as previously described.
The “zero-bit” groups, i.e. the groups not comprising any spectral peaks, if any indicated in the group bit vector, could be decompressed by generating a sequence of zeroes. Such a sequence of zeroes should be ofthe same size as a decompressed non-zero bit group, since the groups should be of equal size. There will typically be zero-bit groups indicated in the group bit vector, given that the sparse coding scheme or mode is applied for sparse spectral peak distributions.
When the indicated spectral peak position coding scheme is a coding scheme suitable for periodic or semi-periodic spectral peak position distributions, the decoding ofthe received spectral peak positions may comprise Huffman decoding and delta decoding, corresponding to the previously described encoding. The size of the Huffman table used for the Huffman decoding may be optimized together with the second spectral peak position coding scheme as previously described.
In alternative embodiments, where the encoder does not indicate the selected coding scheme to the décoder, the decoding method ofthe proposed technology could comprise so-called trial decoding ofthe spectral peak positions in two spectral peak position decoding modes suitable for different spectral peak position distributions. The decoding scheme or mode resulting in a successfully decoded set of spectral peak positions is assumed to correspond to the selected coding scheme.
Embodiments described herein also relate to a décoder opérable to décodé audio signais. The décoder is configured to perform at least one embodiment ofthe audio signal segment decoding method for decoding of spectral peak positions described above. The décoder is associated with the same technical features, objects and advantages as the corresponding coder and methods for coding and decoding of spectral peak positions described above. The décoder will be described in brief in order to avoid unnecessary répétition.
Figure 12 is a block diagram illustrating an embodiment of a proposed audio signal segment décoder 110. An input unit 116 receives coded spectral peak positions and a coding scheme indicator. The décoder 110 includes a spectral peak position décoder 112 configured to décodé the spectral peak positions in a decoding mode that corresponds to the indicated one out of two spectral peak position coding modes suitable for different spectral peak position distributions. An output unit 118 outputs the decoded spectral peak positions. To décodé in a certain “decoding mode” could alternatively be expressed as to use a decoding scheme which corresponds to a certain indicated coding scheme in order to décodé the received coded spectral peak positions.
In one embodiment the spectral peak position décoder 112 is configured to receive coded spectral peak positions of an audio signal segment; to receive an indicator of a coding scheme that was selected to code the spectral peak positions; and to décodé the spectral peak positions in a decoding mode that corresponds to the indicated coding scheme. The latter could alternatively be expressed e.g. as decoding the spectral peak positions based on the indicated coding scheme, or as decoding the spectral peak positions in accordance with the indicated coding scheme. Figure 13 is a block diagram illustrating another embodiment ofthe proposed audio signal segment décoder 110. Coded spectral peak positions and a coding scheme indicator are forwarded to a spectral peak position decoding module 112, which outputs the decoded spectral peak positions.
In one embodiment the décoder 110 of figure 13 includes a spectral peak position decoding module 112 for decoding received coded spectral peak positions of an audio signal segment into spectral peak positions in a decoding mode that corresponds to a received indicator of a coding scheme that was selected to code the spectral peak positions.
In another embodiment the décoder 110 of figure 13 includes a spectral peak position decoding module 112 for trial decoding received coded spectral peak positions of an audio signal segment into spectral peak positions in at least two spectral peak position decoding modes suitable for different spectral peak position distributions, and outputting a set of successfully decoded spectral peak positions.
Figure 14 is a block diagram illustrating an embodiment of the proposed décoder. This embodiment includes a processor 22 and a memory 24, where the memory contains instructions exécutable by the processor. The execution of the instructions makes the décoder 110 operative to décodé the spectral peak positions in a decoding mode that corresponds to one of at least two spectral peak position coding modes suitable for different spectral peak position distributions. The instructions may be stored as a computer program product 120 on a computer readable medium and be transferred to the memory 24, as indicated by the dashed arrow on the right side of the figure. The coded spectral peak positions and the coding scheme are forwarded to the processor 22 over an input unit IN, and the decoded spectral peak positions are outputted over an output unit OUT.
In one embodiment the execution of the instructions by the processor renders the décoder of figure 14 operative to receive coded spectral peak positions of an audio signal segment; to receive an indicator of a coding scheme that was selected to code the spectral peak positions; and to décodé the spectral peak positions in a decoding mode that corresponds to the indicated coding scheme.
Figure 14 is a block diagram illustrating another embodiment of the proposed décoder 110. This embodiment is based on a processor 22, for example a microprocessor, which executes a computer program 130 for decoding spectral peak positions of an audio signal segment. The computer program is stored in memory 24. The processor 22 communicates with the memory over a system bus. The incoming coded spectral peak positions and a coding scheme indicator are received by an input/output (I/O) controller 26 controlling an I/O bus, to which the processor 22 and the memory 24 are connected. The (decoded) spectral peak positions obtained from the software 130 are outputted from the memory 24 by the I/O controller 26 over the I/O bus. The computer program 130 includes a code unit 132 for receiving coded spectral peak positions of an audio signal segment, a code unit 134 for receiving an indicator of a coding scheme that was selected to code the spectral peak positions, and a code unit 136 for decoding the spectral peak positions in a decoding mode that corresponds to the indicated coding scheme. The latter could also be expressed as: for decoding the spectral peak positions in correspondence with the indicated coding scheme.
The computer program residing in memory may be organized as appropriate function modules configured to perform, when executed bythe processor, at least part ofthe steps and/or tasks described above. An example of such function modules is illustrated in figure 15.
Figure 16 is a block diagram illustrating an embodiment of a proposed user terminal. The example illustrâtes a UE. A radio signal from an antenna is forwarded to a radio unit 160, and the digital signal from the radio unit is processed by a décoder 110 in accordance with the proposed technology. In particular the décoder 110 décodés the coded spectral peak positions of audio signal segments as described above (typically the coder may perform other task, such as decoding of other parameters describing the segment, but these tasks are not described since they are well known in the art and do notform an essential part ofthe proposed technology). The decoded spectral peak positions (and other parameters) are forwarded to a signal reconstruction unit 142 connected to a loudspeaker. The selected coding scheme may also be received atthe décoder, as noted above.
The embodiments described above are merely given as examples, and it should be understood that the proposed technology is not limited thereto. It will be understood by those skilled in the art that various modifications, combinations and changes may be made to the embodiments without departing from the présent scope. In particular, different part solutions in the different embodiments can be combined in other configurations, where technically possible.
ABBREVIATIONS
ASIC
CPU DSP
Application Spécifie Integrated Circuit
Central Processing Units
Digital Signal Processor
FPGA Field Programmable Gâte Array
PLC Programmable Logic Controller
REFERENCES
[1] D. Salomon, G. Motta, “Handbook of Data Compression”, Fifth Edition,
5 2010, p. 1111.

Claims (22)

1. An audio signal segment coding method for coding of spectral peak positions, the method comprising:
-determining which one out of two lossless spectral peak position coding schemes to use for encoding the spectral peak positions of an audio signal segment, wherein a first lossless spectral peak position coding scheme is suitable for periodic or semi-periodic spectral peak position distributions, and a second lossless spectral peak position coding scheme is suitable for sparse spectral peak position distributions; and wherein the determining is based on a maximum distance dmax between two spectral peaks in the audio signal segment and on comparing the number of bits required for the respective scheme after coding ofthe audio signal segment using the two schemes;
- selecting the second spectral peak position coding scheme when the maximum distance dmax between two spectral peaks in the audio signal segment exceeds a threshold T; and
- selecting the spectral peak position coding scheme that requires the least number of bits to code the spectral peak positions ofthe audio signal segment when the maximum distance dmaxdoes not exceed the threshold T.
2. The method of claim 1, wherein the first lossless spectral peak position coding scheme comprises:
-delta coding of peak positions; -Huffman coding of delta codes.
3. The method of claim 2, wherein deltas larger than the threshold T are not represented in the Huffman table.
4. The method of any of claims 1-3, wherein the second lossless spectral peak position coding scheme comprises the steps of:
-dividing a bit vector representing the spectral peak positions into consecutive equal size bit groups;
-OR-ing the bits in each bit group to form a group bit vector;
-compressing non-zero bit groups by exploiting constraints in the minimum allowed distance between two consecutive peaks;
-forming a compressed bit vector by concatenating the group bit vector and the compressed non-zero bit groups.
5. An audio signal segment coder for coding of spectral peak positions, the coder being configured to:
-détermine which one out of two lossless spectral peak position coding schemes to use for encoding the spectral peak positions of an audio signal segment, wherein a first lossless spectral peak position coding scheme is suitable for periodic or semi-periodic spectral peak position distributions, and a second lossless spectral peak position coding scheme is suitable for sparse spectral peak position distributions; and wherein the determining is based on a maximum distance dmax between two spectral peaks in the audio signal segment and on comparing the number of bits required for the respective scheme after coding ofthe audio signal segment using the two schemes;
- select the second spectral peak position coding scheme when the maximum distance dmax between two spectral peaks in the audio signal segment exceeds a threshold T; and
- select the spectral peak position coding scheme that requires the least numberof bits to code the spectral peak positions ofthe audio signal segment when the maximum distance dmaxdoes not exceed the threshold T.
6. The audio signal segment coder according to claim 5, being configured with a first lossless spectral peak position coding scheme which comprises:
-delta coding of peak positions;
-Huffman coding of delta codes.
7. The audio signal segment coder according to claim 6, wherein deltas larger than the threshold T are not represented in the Huffman table.
8. The audio signal segment coder according to any of claims 5-7, being configured with a second lossless spectral peak position coding scheme comprising:
-dividing a bit vector representing the spectral peak positions into consecutive equal size bit groups;
-OR-ing the bits in each bit group to form a group bit vector;
-compressing non-zero bit groups by exploiting constraints in the minimum allowed distance between two consecutive peaks;
-forming a compressed bit vector by concatenating the group bit vector and the compressed non-zero bit groups.
9. A user terminal including an audio signal segment coder in accordance with any of claims 5-8.
10. An audio signal segment decoding method for decoding of spectral peak positions, the method comprising:
-receiving coded spectral peak positions of an audio signal segment, wherein the spectral peak positions were coded according to the method of any of claims 1-4;
-receiving an indicator of a lossless coding scheme, out of two lossless coding schemes, that was selected to code the spectral peak positions; and
-decoding the spectral peak positions in correspondence with the indicated coding scheme;
wherein a first one ofthe two lossless spectral peak position coding schemes is suitable for periodic or semi-periodic spectral peak position distributions; and a second one ofthe two lossless spectral peak position coding schemes is suitable for sparse spectral peak position distributions.
11. The method according to claim 10, wherein the coded spectral peak positions are received in form of a group bit vector and compressed non-zero bit groups indicated by the group bit vector when the indicated spectral peak position coding scheme is a coding scheme suitable for sparse spectral peak position distributions.
12. The method according to claim 11, wherein respective positions in the group bit vector represents consecutive equal size groups, and where an equal size group comprising a spectral peak, i.e. a non-zero bit group, is indicated differently in the group bit vector than an equal size group not comprising a spectral peak.
13. The method according to claim 11 or 12, further comprising
-decompressing any non-zero bit groups based on constraints in the minimum allowed distance between two consecutive peaks, and -decompressing any group not comprising a spectral peak by generating a sequence of zeroes.
14. The method according to any of claims 10-13, wherein the decoding of peak positions comprises Huffman decoding and delta decoding when the indicated spectral peak position coding scheme is a coding scheme suitable for periodic or semi-periodic spectral peak position distributions.
15. The method according to claim 14, wherein deltas larger than the threshold T are not represented in the Huffman table.
16. An audio signal segment décoder for decoding of spectral peak positions, the décoder being configured to:
-receive coded spectral peak positions of an audio signal segment, wherein the spectral peak positions were coded using the audio signal segment coder in accordance with any of claims 5-8;
-receive an indicator of a lossless coding scheme, out of two lossless coding schemes, that was selected to code the spectral peak positions; and to
-décodé the spectral peak positions in correspondence with the indicated coding scheme;
wherein a first one ofthe two lossless spectral peak position coding schemes is suitable for periodic or semi-periodic spectral peak position distributions; and a second one ofthe two lossless spectral peak position coding schemes is suitable for sparse spectral peak position distributions.
17. The audio signal segment décoder according to claim 16, being configured to receive the coded spectral peak positions in form of a group bit vector and compressed non-zero bit groups indicated by the group bit vector, when the indicated spectral peak position coding scheme is a coding scheme suitable for sparse spectral peak position distributions.
18. The audio signal segment décoder according to claim 17 wherein respective positions in the group bit vector represents consecutive equal size groups, and where an equal size group comprising a spectral peak, i.e. a non-zero bit group, is indicated differently in the group bit vector than an equal size group not comprising a spectral peak.
19. The audio signal segment décoder according to claim 17 or 18, being configured to
-decompress any non-zero bit groups based on constraints in the minimum allowed distance between two consecutive peaks, and to
-decompress any group not comprising a spectral peak by generating a sequence of zeroes.
20. The audio signal segment décoder according to any of claims 16-19, being configured to décodé peak positions by Huffman decoding and delta decoding when the indicated spectral peak position coding scheme is a coding scheme suitable for periodic or semi-periodic spectral peak position distributions.
21. The audio signal segment décoder according to claim 20, wherein deltas larger than the threshold T are not represented in the Huffman table.
22. A user terminal including an audio signal segment décoder in accordance with any of claims 16-21.
OA1201600143 2013-10-18 2014-10-10 Coding and decoding of spectral peak positions. OA17868A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US61/892,652 2013-10-18

Publications (1)

Publication Number Publication Date
OA17868A true OA17868A (en) 2018-02-16

Family

ID=

Similar Documents

Publication Publication Date Title
AU2019201596B2 (en) Coding and decoding of spectral peak positions
KR101638300B1 (en) Method and apparatus for providing complexity balanced entropy coding
OA17868A (en) Coding and decoding of spectral peak positions.
OA18807A (en) Coding and decoding of spectral peak positions.