Adaptive and fixed mappings for compression and decompression of audio data
By using fixed and adaptive mapping technology to divide the dynamic range in audio signals, the cost and fidelity problems of audio signal compression and decompression in the prior art are solved, and higher fidelity and high efficiency in the lower signal range are achieved storage and decompression.
Patent Information
- Application Number
- CN202080036087.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-04-08
AI Technical Summary
Existing audio signal compression and decompression technologies have performance bottlenecks in storage and decompression costs, and there is a serious loss of fidelity within the low dynamic range of the signal, resulting in poor signal quality after decompression.
Using fixed and adaptive mapping schemes, the dynamic range of the audio signal is divided into lower and higher ranges, and the fixed and adaptive mappings are used to encode and decode, respectively, to ensure sample value fidelity in the lower range, and Adaptively adjust the mapping method according to the signal characteristics.
While reducing storage space and decompression costs, maintaining higher fidelity over the lower dynamic range of the signal, suitable for storage-constrained devices such as gaming consoles and microcontrollers, providing high-quality audio output.
Smart Images

Figure CN113826159B_ABST
Abstract
Description
Technical Field
[0001] Aspects of the present disclosure relate to audio signals, and more particularly to compressing and decompressing audio data. Background Art
[0002] Many devices use a specific set of tones, sounds, or music to communicate operational status to the user. For example, many gaming systems emit different sounds to indicate that the device is powering on, powering off, ejecting a disk, or not having a disk at all. Compression algorithms are used to make storage of the associated audio data more efficient, but the required decompression is often expensive from a cost and resource perspective. Using uncompressed audio data overcomes these limitations, but is storage inefficient.
[0003] The trade-off is reduced fidelity of the audio signal. The tones are first sampled in a 24-bit format and then converted to a 16-bit format. Approximately 65,000 different values can be represented by 16 bits (binary), but at the expense of storage. By reducing the depth of the tones to 8 bits, the storage cost is almost halved, but much of the fidelity of the signal is lost, since only 128 different values can be represented by 8 bits. The data can be expanded back to 16 bits, but once the fidelity has been lost, it cannot be recovered.
[0004] However, such compression and expansion of audio data has been adopted in various applications to make them more storage or bandwidth efficient, even at the expense of fidelity. For example, many telephone systems reduce the fidelity of the signal carrying voice communications in order to save bandwidth. This has the effect of making the sound of a telephone call less faithful to the sound of a face-to-face conversation.
[0005] Most of the dynamic range of an audio signal is concentrated within a few samples of its sinusoidal waveform. This means that the loss of fidelity that occurs when an audio signal is compressed is concentrated on the lower (or softer) part of the dynamic range. Expanding the data to a greater depth may help put the data in a format suitable for further processing, but it does not return it to its original fidelity. The result is a poor quality audible signal that lacks too much of its original dynamic range - especially the lower part of the range.
[0006] Overview
[0007] Disclosed herein are techniques for enhancing the compression and decompression of audio data, thereby allowing greater fidelity to be maintained in the lower range of the signal than would otherwise be possible while mitigating the performance and cost impact of decompression.
[0008] In one implementation, the sample values of the audio signal have a dynamic range. The division of the dynamic range into at least one lower range and one upper range is identified based on a fixed mapping of some sample values to a subset of quantitative values in a set of quantitative values (quanta) having a depth less than the depth of the sample values. Then, an adaptive mapping of the remaining portion of the sample values to the remaining subset of quantitative values in the set of quantitative values is also identified based on at least the size of the higher range. The fixed mapping is used to encode the lower range of sample values, while the adaptive mapping is used to encode the higher range of sample values.
[0009] In another implementation, the memory has a file stored thereon including a first encoded value and a second encoded value. The first encoded value includes a lower portion of the sampled values encoded by a fixed mapping of a lower portion of the sampled values to a subset of quantitative values in a set of quantitative values within a lower range of the dynamic range of the signal. The set of quantitative values has a depth less than the depth of the sampled values. The second encoded value includes a higher portion of the sampled values encoded by an adaptive mapping of a higher portion of the sampled values to a remaining subset of quantitative values in a set of quantitative values within a higher range of the dynamic range of the signal.
[0010] The file also includes a key for mapping the set of quantitative values to a corresponding set of decoded values having a depth greater than the depth of the set of quantitative values. One or more processors operably coupled to the memory read the file, map the first encoded value and the second encoded value to the decoded value using the key, and output the decoded value.
[0011] This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the technical disclosure. It should be understood that this summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Many aspects of the present disclosure may be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, but emphasis is placed on clearly illustrating the principles of the present disclosure. Moreover, throughout the several views, the same reference numerals in the drawings represent corresponding parts. Although several embodiments are described in conjunction with these drawings, the present disclosure is not limited to the embodiments disclosed herein. On the contrary, it is intended to cover all alternatives, modifications and equivalents.
[0014] Figure 1 The operating environment and related scenarios in an implementation of audio data compression are explained.
[0015] Figure 2 The encoding process in an implementation is explained.
[0016] Figure 3The operating environment and related scenarios in an implementation of decompression or expansion are explained.
[0017] Figure 4 The decoding process in one implementation is explained.
[0018] Figure 5 An example of audio data encoding in an implementation is illustrated.
[0019] Figure 6 An example of audio data decoding in an implementation is illustrated.
[0020] Figure 7 An example of audio data encoding in an implementation is illustrated.
[0021] Figure 8 An example of audio data decoding in an implementation is illustrated.
[0022] Fig.9A and 9B Examples of fixed mapping and adaptive mapping are explained.
[0023] Fig.10 Computing devices suitable for implementing the various operating environments, architectures, processes, scenarios, and sequences discussed below with respect to the figures are illustrated.
[0024] Detailed Description
[0025] This paper discloses a technology for compressing audio data using fixed and adaptive mapping schemes to save storage space and maintain fidelity to a greater extent than previous solutions. The fixed mapping discussed below ensures that the sample values in the lower part of the signal dynamic range are retained when audio data is converted down from one depth to another depth. Adaptive mapping is adapted to the coverage that can be obtained by fixed mapping from one tone or sound to another tone or sound. The encoded values generated by the fixed and adaptive mapping can be written to the audio file together with the key for decoding these values.
[0026] The file (reduced in size relative to its original counterpart) can be deployed in the context of storage-constrained environments, such as microcontrollers driving audible sounds for game consoles, home and entertainment appliances, and even some greeting cards. The on-board process of up-converting the encoded values to a larger depth suitable for broadcast is a straightforward mapping of these values compared to resource-starved decompression schemes. And as mentioned, the decoding can be performed by an inexpensive microcontroller that can operate before the main processing unit on the device is ready. Thus, the solution(s) disclosed herein are particularly suitable for devices that generate relatively short-lived tones or groups of tones representing various states such as power on, power off, etc.
[0027] Now referring to the accompanying drawings, Figure 1 An operating environment 100 in one implementation is illustrated. The operating environment 100 includes a computer 110 and a media device 120. The computer 110 represents any computing device capable of processing audio data based on fixed and dynamic mappings and generating files having encoded audio data stored therein. Examples include, but are not limited to, laptop and desktop computers, server computers, and other such computing devices having an architecture suitable for compressing audio data, wherein Fig.10 The computer architecture 1001 in FIG. 1 is representative.
[0028] Media device 120 represents any device capable of playing out audible sounds based on encoded audio data stored in a file generated by computer 110. Examples of media device 120 include, but are not limited to, all types of computers, phones, game consoles, digital appliances, entertainment devices, and any other device that employs a microcontroller to drive the output of tones, sounds, music, etc. In fact, even a very simple device, such as a greeting card with audio features, is an example of a media device 120.
[0029] In operation, a recording device (not shown) records an audio signal 101 and samples the signal to produce a file 105 having sample values stored therein. The sample values have a depth of "x", such as 16 bits (although the signal may have been originally sampled at a higher depth, such as 24 bits, and converted down to 16 bits). File 105 represents any file having raw audio data stored according to any of a variety of formats, such as a pulse code modulation (PCM) format, a waveform audio file (WAV) format, and an audio interchange file format (AIFF). The sample values may represent voltage, amperes, power, or any other unit of measure. In some scenarios, the sample values may represent decibels.
[0030] Computer 110 uses file 105 as input and generates file 115 as output. File 115 represents any file having a coded value with a depth less than the sample value in file 105 stored therein. File 115 also includes a key 116 for decoding the coded value on media device 120 and broadcasting the audible sound represented in the audio data. Examples of key 116 include mapping the coded value (or coded quantitative value) to a table of decoded values. In some scenarios, key 116 can be a one-dimensional list, wherein the order of the decoded values implicitly identifies the quantized value corresponding to it without explicitly expressing the corresponding relationship (further saving space). The decoded value can represent voltage, ampere, power or other units of measure. In some scenarios, the decoded value can be given in decibels, in which case conversion calculations can be performed.
[0031] Figure 2The encoding process 200 implemented by hardware, firmware, and / or software on the computer 110 to compress audio data is illustrated. The encoding process 200 may be implemented using program instructions in the context of any module, component, or other such hardware, firmware, or software element of the computer 110. The program instructions direct the computer 110 to perform the encoding process 200 (see also the accompanying drawings). Figure 2 Follow the steps described in .
[0032] First, the encoding process 200 identifies the dynamic range of sample values of the audio signal (step 201). The sample values may correspond to a unit of measure such as voltage, ampere, or power, in which case a conversion calculation to decibels may be performed to obtain the dynamic range in decibels. The dynamic range of an audio signal is a representation of the loudness of the recorded sound. For example, the dynamic range of a signal may be given as a ratio of the loudest sound to the softest sound expressed in decibels (dB), and is sometimes expressed as the difference (in dB) between the maximum sample value and the softest sample value (which is usually zero). The maximum sample value may occur at the peak of a sinusoidal waveform of the signal. Identifying the dynamic range may therefore involve identifying the maximum sample value and the minimum sample value and determining the difference between them.
[0033] Next, the encoding process 200 identifies the division of the dynamic range into a lower range and an upper range (step 203). The division of the dynamic range is determined based on a fixed mapping of the lower portion of the sampled values to a subset of quantitative values in a set of quantitative values having a depth less than the depth of the sampled values. In other words, the encoding process determines how much dynamic range is covered by the fixed mapping. The point in the dynamic range where the fixed mapping stops is where the dynamic range can be divided. The division of the dynamic range can be calculated in decibels, but it can also be calculated in units of measure for audio data. In such scenarios, a conversion calculation from decibels to units of measure can be performed (and vice versa when necessary).
[0034] Fixed mapping can occur based on any ratio or correspondence between sampled values and quantitative values. For example, fixed mapping can map sampled values to quantitative values on a 1:1 basis, a 2:1 basis, a 3:1 basis, or a larger basis. The mapping ratio can also vary on a per-quantity value basis and can be determined empirically, algorithmically, and / or using a machine learning model. In such scenarios, the dividing line that divides the dynamic range is not known a priori, but is identified once the range of the fixed mapping has been determined.
[0035] In other scenarios, the number of quantitative values and their relative spacing may be known a priori, in which case the size of the lower range will also be known. For example, k quantitative values may be assigned to the lower range at n-dB spacings. Thus, the size of the lower range will be k times n decibels, and the boundary between the lower range and the upper range will be set to that value. In a variant, the spacing of the quantitative values assigned to the lower range may be varied algorithmically, empirically, or via machine learning, but the general principle will remain unchanged, i.e., the size of the lower range may be calculated a priori.
[0036] In both cases, the size of the higher range will depend on the maximum value in the sampled values and the size of the lower range. In simple terms, the size of the higher range will be calculated based on the difference between the maximum value in the sample and the maximum value in the samples in the lower range covered by the fixed mapping.
[0037] The encoding process 200 then proceeds to identify an adaptive mapping of the higher range of the dynamic range to the remaining quantitative values in the set of quantitative values (step 205). How many quantitative values remain may vary depending on how many quantitative values are used by the fixed mapping and how many total quantitative values are available for each given encoding scheme. For example, an 8-bit scheme allows a total of 128 quantitative values. Assuming 22 quantitative values are assigned to the fixed mapping process, 106 quantitative values will be left for adaptive mapping. If 20 quantitative values are assigned to the fixed mapping process, 108 quantitative values will be left for adaptive mapping, and so on.
[0038] In addition to determining how many quantitative values to allocate to the adaptive mapping, the encoding process 200 can also determine how to space the quantitative values in the audio signal domain. For example, the quantitative values can be evenly spaced so that each value is spaced the same distance (in dB) from the next value. In another example, the quantitative values can be spaced by progressively increasing distances, random distances, or other means. This spacing can be determined algorithmically, empirically, or using a machine learning model.
[0039] Having identified the fixed and adaptive mapping modes to be applied, the encoding process 200 encodes the lower portion of the sampled values based on the fixed mapping (step 207) and encodes the upper portion of the sampled values based on the adaptive mapping (step 209). The fixed mapping includes, for a given value in the lower portion of the sampled values, identifying the corresponding value in the set of quantitative values (in the case of a 1:1 mapping) or the closest value in the set of quantitative values (in the case of a many-to-one mapping) and writing the identified value to the audio file. The adaptive mapping includes, for a given value in the upper portion of the sampled values, identifying the closest value in the set of quantitative values and writing the identified value to the same file. The file can then be installed on the device to be decoded and played out at runtime to, for example, indicate the operating status of the device.
[0040] Return to reference Figure 1 , encoding scenario 150 provides a highly simplified example implementation of encoding process 200. With respect to encoding scenario 150, encoding process 200 examines sample values in file 105 to identify the dynamic range of audio signal 101. The dynamic range 152 in this example ranges from sample value s-v1 to sample value s-v9. Therefore, the size of the dynamic range is s-v9 minus s-v1 (or s-v9–0). Encoding process 200 divides dynamic range 152 into lower range 155 and upper range 156 based on a fixed mapping 153 of the lower portion of the dynamic range to a subset of quantitative values. Here, sample values s-v1 to s-v3 are mapped on a 1:1 basis to encoded quantitative values e-q1 to encoded quantitative values e-q3, but as discussed above, other spacings are possible.
[0041] Also in this example, for exemplary purposes, it is assumed that there are six possible coded quantitative values e-q1 to e-q6. Accordingly, three coded quantitative values remain after the first three quantitative values are assigned to the lower range 155. Adaptive mapping 154 maps the remaining sample values in the upper range 156 to adaptive quantitative values 158 represented by the three remaining quantitative values. In this example, adaptive mapping 154 occurs on a 2:1 basis (two sample values per quantized value), but as discussed above, various mapping patterns may be used.
[0042] When the sampled values 151 are read from the file 105, the sampled values are mapped to fixed quantitative values 157 and adaptive quantitative values 158 according to the fixed mapping 153 and the adaptive mapping 154, respectively. The resulting encoded values 159 are written to the file 115 together with the key 116 describing the mapping. In this example, the sampled values 151 include, in order: s-v1, s-v3, s-v6, s-v7, and s-v9. The sampled values 151 are mapped to the encoded values 159, which include, in order: e-q1, e-q3, e-q5, e-q5, e-q6. It can be appreciated that the encoded values 159 require less storage because they have a depth that is less than the depth of the sampled values 151. However, as can be seen from the repeated value e-q5 for both s-v6 and s-v7, some fidelity has been lost.
[0043] Figure 3An operating environment 300 in another implementation is illustrated. The operating environment 300 includes one or more processors (represented by processor 301) coupled to a memory 303. The operating environment 300 also includes an audio subsystem 319 capable of broadcasting an audible signal. Processor 301 represents any processor capable of decompressing an audio file, such as a microcontroller. Memory 303 represents any type of microcontroller memory capable of storing an audio file, such as SRAM, FLASH, and EEPROM memory. Processor 301, memory 303, and audio subsystem 319 can be implemented in a variety of devices, such as computers, game consoles, home appliances, robotic appliances, greeting cards with audio features, and the like.
[0044] In operation, an audio file 305 is stored in a portion of the memory 303 that is capable of retaining data in a powered-off state. The audio file 305 includes encoded values having a depth less than "x". It can be assumed that these values are encoded by an encoding process that is the same as or similar to the encoding process 200. Thus, some of the encoded values are generated by a fixed mapping process, while other encoded values are generated by an adaptive mapping process.
[0045] The audio file 305 also includes a key 306 for converting the encoded value to a decoded value having a depth that is at least greater than the depth of the encoded value. For example, the new depth may be equal to or greater than x, but may also be less than x while still being greater than the depth of the encoded value. Examples of the key 306 include a table that maps the encoded value (or encoded quantitative value) to the decoded value. In some scenarios, the key 306 may be a one-dimensional list in which the order of the decoded values implicitly identifies their corresponding quantized values without having to explicitly express the correspondence.
[0046] Figure 4 The decoding process 400 is illustrated as being implemented in the context of hardware, firmware, and / or software on the processor 301 using program instructions. The program instructions, when executed by the processor 301, direct the processor 301 and / or a media device in which the processor 301 is deployed, such as for the decoding process 400 (see also Figure 4 Follow the steps described in the instructions.
[0047] First, processor 301 reads the file size of audio file 305 into a portion of memory 303 that can be read and written by processor 301 (step 401). Processor 301 also writes a lookup table or list represented by key 306 into that portion of memory 303 (which may sometimes be referred to as scratch-pad memory).
[0048] For each encoded value in the audio file 305, the processor 301 proceeds to find its corresponding decoded value with a greater depth using the key 306 (step 403). This can be achieved, for example, by finding the encoded value in a lookup table and finding its corresponding decoded value from there. In another example, this can be achieved by finding the corresponding decoded value at the position represented by the encoded value in the list.
[0049] Optionally, processor 301 may average the decoded value with one or more previously decoded values and / or one or more later decoded values (step 405). The current, previous, or later decoded values may be weighted differently relative to each other in the averaging to further increase the fidelity of the output decoded value.
[0050] Finally, processor 301 writes the decoded values to audio file 315 (step 407), which may be the same as or different from audio file 305. Audio subsystem 319 drives the speakers with output signals 317 generated from the decoded values in audio file 315.
[0051] Figure 4 A decoding scenario 350 in a highly simplified example of a decoding process 400 is also illustrated. In operation, the decoding process 400 identifies encoded quantitative values 355 and their corresponding decoded values 357 from the content of the audio file 305. The encoded quantitative values 355 include all quantitative values used to encode the sample values. The encoded quantitative values 355 are shown in the decoding scenario 350, but it can be appreciated that in some scenarios they may not be present in the key 306, as discussed above, but still be implicitly or logically known to the decoding process 400. The encoded quantitative values 355 in this scenario are represented by e-q1 to e-q9. The decoded values are represented by d-v1 to d-v9.
[0052] When the encoded values 351 are read from the audio file 305, these values are converted to their corresponding decoded values according to the mapping 353, which have a depth greater than the depth of the encoded values. In this example, the encoded values 351 include, in order: e-v1, e-v3, e-v5, e-v5, and e-v6. The mapping 353 produces decoded values 359, which include, in order: d-v6, d-v5, d-v5, d-v3, and d-v1. As mentioned, the decoded values can be further enhanced using different degrees of weighting and interpolation to further improve their fidelity to the original signal. The decoded values 359 are written to the audio file 315 for the audio subsystem 319 to play out.
[0053] Figure 5Illustrated is another operational scenario 500 in an example of the encoding process 200 as applied to an audio signal 501. It can be appreciated that the lower half is a reflection of the upper half and that the same or similar principles apply in terms of the bottom portion of the encoded signal.
[0054] Audio signal 501 represents an analog audio signal that can be digitally sampled and stored in an audio file such as a PCM file, a WAV file, etc. Audio signal 501 has a sinusoidal waveform with a peak value of 67 dB in the time domain. In operation, an encoding device using encoding process 200 identifies the dynamic range of audio signal 501 from the sample values in the audio file. In this example, for the upper half of the waveform, the dynamic range 512 extends upward from 0 dB to 67 dB.
[0055] For exemplary purposes, it is assumed that the sampled values are in a 16-bit binary format capable of representing approximately 32,000 different values in the upper half of the signal. The dynamic range 512 includes one instance of each value sampled from the audio signal 501. For example, the bottom of the range includes the following values: 0 dB, 6 dB, and 17 dB. The top of the range includes: 57 dB, 61 dB, 62 dB, 64 dB, 65 dB, and 67 dB. It can be appreciated that these values are given in decimal notation, but represent 16-bit binary numbers.
[0056] The encoding device using the encoding process 200 proceeds to divide the dynamic range 512 into a lower range 515 and an upper range 516. This can be achieved by first determining how much of the dynamic range 512 is covered by the fixed mapping 513. Here, the fixed mapping 513 maps values in the lower portion of the dynamic range 512 to fixed quantitative values 517, which are so referred to because they are used in the fixed mapping. The points in the dynamic range 512 where the fixed mapping 513 stops are where the dynamic range 512 can be divided.
[0057] Fixed mapping 513 can occur based on any ratio or correspondence (such as 1:1, 2:1, 3:1, etc.) of sampled values to quantitative values. The mapping ratio can also vary on a per-quantity value basis and can be determined empirically, algorithmically, and / or using a machine learning model. In such scenarios, the dividing line that divides the dynamic range is identified once the range of the fixed mapping has been determined. Alternatively, the number of quantitative values and their relative spacing may be known in advance, in which case the size of the lower range will also be known.
[0058] In both cases, the size of the upper range 516 will depend on the maximum value in the sampled values and the size of the lower range 515. In other words, the size of the upper range will be calculated based on the difference between the maximum value in the sample and the maximum value in the samples in the lower range covered by the fixed mapping.
[0059] In this example scenario, a 1:1 mapping is used to map sample values to coded quantitative values: 0 dB is mapped to 0; 6 dB is mapped to 1; and 17 dB is mapped to 2. Fixed mapping 513 exhausts its quantitative value at 17 dB. Accordingly, dynamic range 512 is split into a lower range and an upper range at 17 dB. It can be appreciated that fixed quantitative value 517 and adaptive quantitative value 518 are given in decimal notation but represent 8-bit binary values. As such, the bit depth (8) of the coded value is half the depth (16) of the sample value.
[0060] The encoding device continues to identify an adaptive mapping 514 of the remaining quantitative values represented by the adaptive quantitative values 518 (which are so referred to because they are used for adaptive mapping). How many quantitative values are left may vary depending on how many quantitative values are used for the fixed mapping and how many total quantitative values are available for each given encoding scheme. It is assumed here that an 8-bit scheme is used that allows a total of 128 quantitative values. Since 3 values are used to encode the lower range 515, 125 values are left to encode the upper range 516. If the mode requires the use of 22 values to encode the lower range 515, 106 quantitative values will be left to be allocated to the adaptive mapping.
[0061] In addition to determining how many quantitative values to assign to the adaptive mapping 514, the encoding process 200 can also determine how to space the quantitative values in the audio signal domain. For example, the quantitative values can be evenly spaced so that each value is spaced the same distance (in dB) from the next value. In another example, the quantitative values can be spaced by progressively increasing distances, random distances, or other means. This spacing can be determined algorithmically, empirically, or using a machine learning model.
[0062] In the case of the fixed and adaptive mapping modes to be applied, the encoding process 200 encodes the lower range 515 to a fixed quantitative value 517 and the upper range 516 to an adaptive quantitative value 518 via a fixed mapping 513. The fixed mapping includes, for a given value in the lower part of the sampled value, identifying the corresponding value in the quantitative value set (in the case of a 1:1 mapping) or the closest value in the quantitative value set (in the case of a many-to-one mapping) and writing the identified value to the audio file. The adaptive mapping includes, for a given value in the higher part of the sampled value, identifying the closest value in the quantitative value set and writing the identified value to the same file. The file can then be installed on the device to be decoded and broadcasted at runtime to indicate the operating state of the device, for example. In this example scenario, the fixed and adaptive mapping of the sampled value 511 in 16-bit format to the quantitative value in 8-bit format results in the encoded value 519. That is: 0dB is mapped to 0; 6dB is mapped to 1; 61dB is mapped to 126; 62dB is mapped to 126; 17dB is mapped to 2; 64dB is mapped to 127; and 67dB is mapped to 127.
[0063] Figure 6 An operational scenario 600 is illustrated for illustrating an implementation of the decoding process 400. In operation, the encoding process has generated a set of encoded values in an audio file. These values are read from the file and represented by encoded values 601. In addition, the decoding process (e.g., implemented on a microcontroller) encodes a set of quantitative values 605 from data in the file or implicitly identifies, and a mapping 603 of the quantitative values to decoded values 607. The decoding process maps the incoming encoded values directly to the decoded values based on the mapping 603.
[0064] For example, the set of encoded quantitative values includes 8-bit values represented in decimal notation, ranging from 0 to 127. Decoded value 607 includes 128 16-bit values represented in decimal notation. Mapping 603 maps each of the encoded quantitative values to a different decoded value 607. The result is a set of decoded values represented by decoded value 609. More specifically, encoded value 601 produces decoded value 609 as follows: 0 maps to 0 dB; 1 maps to 6 dB; 126 maps to 62 dB; 126 maps to 62 dB; 127 maps to 67 dB; and 127 again maps to 67 dB.
[0065] Figure 7 An operational scenario 700 in another example of the encoding process 200 as applied to an audio signal 701 is illustrated. It can be appreciated that the lower half is a reflection of the upper half and that the same or similar principles apply in terms of the bottom of the encoded signal. It can also be appreciated that the audio signal 701 differs in its maximum value from the upper half. Figure 5501 in (70dB vs. 67dB). This difference may have the effect of changing the dividing point at which the lower range is separated from the upper range. In other words, the same fixed mapping pattern when applied to two different signals results in a different adaptive mapping for each signal.
[0066] The audio signal 701 in the operating scenario 700 represents an analog audio signal, which can be digitally sampled and stored in an audio file such as a PCM file, a WAV file, etc. The audio signal 701 has a sinusoidal waveform with a peak value of 70 dB in the time domain. In operation, the encoding device using the encoding process 200 identifies the dynamic range of the audio signal 701 from the sampled values in the audio file. In this example, for the upper half of the waveform, the dynamic range 712 is extended from 0 dB upward to 70 dB.
[0067] For exemplary purposes it is assumed that the sampled values are in 16-bit binary format. Dynamic range 712 includes one instance of each value sampled from audio signal 701. For example, the bottom of the range includes the following values: 0 dB, 6 dB, and 15 dB. The top of the range includes: 57 dB, 61 dB, 62 dB, 64 dB, 65 dB, and 67 dB. It can be appreciated that these values are given in decimal notation even though they represent 16-bit binary numbers. It is also noted that the values in the lower portion of the range differ from those in the lower portion of dynamic range 512 by at least one value. This is because audio signal 701 is different from audio signal 501 (assuming the same sampling rate).
[0068] The encoding process 200 continues by dividing the dynamic range 712 into a lower range 715 and an upper range 716. This can be achieved by first determining how much of the dynamic range 712 is covered by the fixed mapping 713. Here, the fixed mapping 713 maps values in the lower portion of the dynamic range 712 to fixed quantitative values 717. The point in the dynamic range 712 where the fixed mapping stops is where the dynamic range can be divided.
[0069] Fixed mapping 713 can be based on any ratio or correspondence of sampled values to quantitative values (such as 1:1, 2:1, 3:1, etc.). The mapping ratio can also vary on a per-quantity value basis and can be determined empirically, algorithmically, and / or using a machine learning model. In such scenarios, the dividing line that divides the dynamic range is identified once the range of the fixed mapping has been determined. Alternatively, the number of quantitative values and their relative spacing may be known in advance, in which case the size of the lower range will also be known.
[0070] In both cases, the size of the upper range 716 will depend on the maximum value in the sampled values and the size of the lower range 715. In other words, the size of the upper range will be calculated based on the difference between the maximum value in the sample and the maximum value in the samples in the lower range covered by the fixed mapping.
[0071] In this example scenario, a 1:1 mapping is used to map sample values to coded quantitative values: 0 dB is mapped to 0; 6 dB is mapped to 1; and 15 dB is mapped to 2. The fixed mapping thus exhausts its quantitative value at 15 dB, while Figure 5 The fixed mapping in is completed at 17 dB. Accordingly, the dynamic range 712 is split into a lower range and an upper range at 15 dB. It can be appreciated that the fixed quantitative value 717 and the adaptive quantitative value 718 are given in decimal notation but represent 8-bit binary values. Thus, the bit depth (8) of the encoded value is half the bit depth (16) of the sampled value.
[0072] The coding device continues to identify the adaptive mapping 714 of the remaining quantitative values of the upper range 716 of sampled values to the adaptive quantitative value 718. How many quantitative values are left can depend on how many quantitative values are used by the fixed mapping and how many total quantitative values are available for each given coding scheme. It is assumed here that an 8-bit scheme is used to allow a total of 128 quantitative values. Since 3 values are used to encode the lower range 715, 125 values are left to encode the higher range 716.
[0073] In addition to determining how many quantitative values are to be assigned to the adaptive mapping 714, the encoding process 200 can also determine how to space the quantitative values in the audio signal domain. For example, the quantitative values can be evenly spaced so that each value is spaced the same distance (in dB) from the next value. In another example, the quantitative values can be spaced by progressively increasing distances, random distances, or other means. This spacing can be determined algorithmically, empirically, or using a machine learning model.
[0074] In the case of the fixed and adaptive mapping modes to be applied, the encoding process 200 utilizes the fixed mapping 713 to encode the lower range 715 to the fixed quantitative value 717 and uses the adaptive mapping 714 and the adaptive quantitative value 718 to encode the upper range 716. The fixed mapping 713 includes, for a given value in the lower part of the sampled value, identifying the corresponding value in the quantitative value set (in the case of 1:1 mapping) or the closest value in the quantitative value set (in the case of many-to-one mapping) and writing the identified value to the audio file. The adaptive mapping includes, for a given value in the higher part of the sampled value, identifying the closest value in the quantitative value set and writing the identified value to the same file. The file can then be installed on the device to be decoded and broadcasted at runtime to indicate the operating state of the device, for example. In this example scenario, the fixed and adaptive mapping of the sampled value 711 in 16-bit format to the quantitative value in 8-bit format results in the encoded value 719. That is: 0dB is mapped to 0; 6dB is mapped to 1; 61dB is mapped to 125; 62dB is mapped to 126; 15dB is mapped to 2; 64dB is mapped to 126; and 70dB is mapped to 127.
[0075] Figure 8 An operational scenario 800 is illustrated for illustrating an implementation of the decoding process 400. In operation, the encoding process has generated a set of encoded values in an audio file. These values are read from the file and represented by encoded values 801. In addition, the decoding process (e.g., implemented on a microcontroller) encodes a set of quantitative values 805 from data in the file or implicitly identifies, and a mapping 803 of the quantitative values to decoded values 807. The decoding process maps the incoming encoded values directly to the decoded values based on the mapping 803.
[0076] For example, the set of encoded quantitative values includes 8-bit values represented in decimal notation, ranging from 0 to 127. Decoded value 807 includes 128 16-bit values represented in decimal notation. Mapping 803 maps each of the encoded quantitative values to a different decoded value 807. The result is a set of decoded values represented by decoded value 809. More specifically, encoded value 801 produces decoded value 809 as follows: 0 maps to 0 dB; 1 maps to 6 dB; 125 maps to 61 dB; 126 maps to 64 dB; 2 maps to 15 dB; 126 maps to 64 dB; and 127 maps again to 70 dB.
[0077] Fig.9A and 9BTwo related scenarios are explained to better understand fixed mapping and adaptive mapping. In these scenarios, fixed mapping is achieved by mapping the lowest n sample values to the first n quantitative values. For both scenario 900A and scenario 900B, it is assumed that 128 8-bit quantitative values are possible and n=28. Therefore, the lowest 28 values in the sample value set are mapped to the lower 28 quantitative values. The remaining 100 quantitative values are allocated to the adaptive mapping process.
[0078] The adaptive mapping process in both scenarios distributes the remaining quantitative values evenly in the logarithmic domain across the upper range of sampled values. Fig.9A The dynamic range is extended by a total of 70 dB, and the fixed quantitative values cover 20 dB of this range, leaving 50 dB of range to be covered by the adaptive quantitative values. The uniform spacing of the adaptive quantitative values in the logarithmic domain results in a .5 dB extension for each of the remaining quantitative values.
[0079] As a comparison, Fig. 9B The dynamic range in is also extended to 70 dB, but the fixed dot values cover only 10 dB of range, leaving 60 dB for the adaptive dot values. The uniform spacing of the adaptive dot values results in a .6 dB extension for each of the 100 remaining dot values.
[0080] exist Fig.9A , scene 900A includes an audio signal 901 having a static or fixed range extending from 0 dB to 20 dB. Its adaptive range extends from 20 dB to 70 dB. The fixed range is determined on a 1:1 basis by mapping the first twenty-eight (28) quantitative values to the lowest 28 sample values. For exemplary purposes, it is assumed that this mapping covers sample values up to 20 dB.
[0081] Since the first 28 quantitative values are assigned to the lowest 28 sampled values on a fixed basis, there are 100 quantitative values left to be assigned to the adaptive mapping. In this example, a uniform distribution of one hundred quantitative values is assumed, which means that the remaining 50dB range can be mapped to these one hundred quantitative values in increments of .5dB. Then, as the sampled values flow through the mapping (s), they are either mapped based on a 1:1 mapping for a lower range of values, or mapped via a uniformly spaced mapping for a higher range.
[0082] As an example, sample values 911 flow through either a fixed mapping or an adaptive mapping. Values (913) of 20 dB or less are mapped according to the fixed mapping, while values (912) greater than 20 dB are mapped according to the adaptive mapping. The fixed mapping maps a specific value 915 to a specific fixed quantitative value 917. The adaptive mapping maps a .5 dB range of values 916 to a specific quantitative value 918, which may be referred to as an adaptive quantitative value.
[0083] The sampled values in the fixed range are mapped by finding their corresponding values in value 915 and then identifying the corresponding quantitative values in fixed quantitative value 917. The sampled values in the higher range are mapped by finding a set of values or value ranges that the sampled values fall into and then finding the quantitative values corresponding to the set of values or value ranges. Here, each group is marked based on the highest member of the group, but any nomenclature can be used. For example, the value 69.1dB belongs to the group marked as 69.5dB, and so does the value 69.2, while the value 67.3 belongs to the group marked as 67.5. Accordingly, these three values are mapped to 126, 126 and 122 respectively, as explained by encoded value 922. The value from the lower range is mapped to value 921 (0, 27 and 1). The combined result is a digital sequence represented by encoded value 923.
[0084] The sampled values have a 16-bit binary format, while the encoded values 923 have an 8-bit format. A 1:1 mapping is used in the opposite direction to decode the 8-bit encoded values into 16-bit decoded values. Here, the decoded values 917 are 0, 67.5, 20.0, 69.5, 69.5, and 1.6, all in decibels.
[0085] Fig. 9B It illustrates how differences in signal characteristics or even sample value characteristics can change the way audio data is encoded. In scenario 900B, audio signal 902 has a static or fixed range that extends from 0 dB to 10 dB (as opposed to 20 dB in scenario 900A). Its adaptive range therefore extends from 10 dB to 70 dB. The fixed range is determined on a 1:1 basis by mapping the first twenty-eight (28) quantitative values to the lowest 28 sample values. For exemplary purposes, it is assumed that this mapping covers sample values up to 10 dB.
[0086] Since the first 28 quantitative values are assigned to the lowest 28 sampled values on a fixed basis, there are 100 quantitative values left to be assigned to the adaptive mapping. In this example, a uniform distribution of one hundred quantitative values is assumed, which means that the remaining 60dB range can be mapped to these one hundred quantitative values in increments of .6dB. Then, as the sampled values flow through the mapping (s), they are either mapped based on a 1:1 mapping for a lower range of values, or mapped via a uniformly spaced mapping for a higher range.
[0087] As an example, sample values 911 flow through either a fixed mapping or an adaptive mapping. Values (913) of 10 dB or less are mapped according to the fixed mapping, while values (912) greater than 10 dB are mapped according to the adaptive mapping. The fixed mapping maps a specific value 915 to a specific fixed quantitative value 917. The adaptive mapping maps a .6 dB range of values 916 to a specific quantitative value 918, which may be referred to as an adaptive quantitative value.
[0088] The sampled values in the fixed range are mapped by finding their corresponding values in value 915 and then identifying the corresponding quantitative values in fixed quantitative value 917. The sampled values in the higher range are mapped by finding a set of values or value ranges into which the sampled values fall and then finding the quantitative values corresponding to the set of values or value ranges. Here, each group is labeled based on the highest member of the group, but any nomenclature can be used. For example, the value 69.1dB belongs to the group labeled as 69.4dB, as does the value 69.2, and the value 67.3 belongs to the group labeled as 67.6. Accordingly, these three values are mapped to 126, 126 and 123 respectively, as illustrated by encoded value 922. The values from the lower range are mapped to encoded value 921 (0 and 1). The combined result is encoded value 923.
[0089] The sampled values have a 16-bit binary format, while the encoded values 923 have an 8-bit format. A 1:1 mapping is used in the opposite direction to decode the 8-bit encoded values into 16-bit decoded values. Here, the decoded values 925 are 0, 67.6, 20.2, 69.4, 69.4, and 1.6, all in decibels.
[0090] Although Figure 1-9B The values in are given in decibels, but it will be appreciated that the same or similar concepts would apply if the values were given in voltage, amperes, power, or any other unit of measure. Conversions between units of measure and decibels can be calculated, for example, to convert uniform spacing of adaptive quantitative values to the unit of measure in which the audio data is encoded. Sample values in the audio data can be converted from units of measure to decibels (and the encoded data can be converted from decibels to units of measure), or fixed and adaptive mappings can be expressed in units of measure.
[0091] For example, an audio file containing sampled values representing voltages can be encoded using fixed and adaptive quantitative values also expressed in voltages. Assuming a total of x quantitative values, n fixed quantitative values, and k=xn adaptive quantitative values, the lowest n sampled voltage values are mapped to the lowest n quantitative values. The remaining k sampled voltage values are mapped to the remaining k quantitative values. However, the values of the remaining quantitative values must first be converted from decibels to voltages.
[0092] To do this, the logarithm of the ratio of the two voltage values (q1, q2) is given as equal to the desired expansion in decibels (s). The factor 20 can also be multiplied by the logarithmic value. The denominator in the ratio is the known quantitative value (q1), and the numerator is the unknown quantitative value (q2), which is the next quantitative value in the increasing series of adaptive quantitative values. The unknown quantitative value of each step can be solved as follows:
[0093] a.20*log(q2 / q1)=s dB;
[0094] b.20*inv log(q2 / q1)=10^s
[0095] c.20*(q2 / q1)=10^s
[0096] d.20*q2=(10^s)*q1
[0097] e.q2=[(10^s)*q1] / 20
[0098] Various technical effects can be appreciated from the foregoing disclosure of enhanced compression (or "squanching") of audio data, such as a reduction in the size of an audio file due to converting audio data from one depth to a smaller depth. The resulting audio file can thus be deployed in storage-constrained environments where storage space is at a premium. Additionally, decoding values in an audio file requires fewer processing cycles and / or less power than typical decompression algorithms, making the strategies disclosed herein suitable for processing-constrained environments, applications, and scenarios.
[0099] In some implementations, the adaptive quantitative values are evenly spaced relative to each other in the logarithmic (dB) domain. This technique has the following technical effect: the quantitative values are preserved in the ranges most sensitive to human hearing, thereby allowing these ranges to be encoded with higher fidelity than other ranges.
[0100] Fig.10 Computer architecture 1001 is illustrated, which represents any system or collection of systems in which the various processes, programs, services, and scenarios disclosed herein can be implemented. Examples of computing devices that can employ computer architecture 1001 include, but are not limited to, server computers, cloud computing platforms, and data center equipment, as well as any other type of physical or virtual server machines, containers, and any variants or combinations thereof. Other examples include desktop computers, laptop computers, desktop computers, Internet of Things (IoT) devices, wearable devices, and any other physical or virtual combinations or variants thereof.
[0101] The computer architecture 1001 may be implemented as a single device, system or apparatus, or may be implemented as multiple devices, systems or apparatuses in a distributed manner. The computer architecture 1001 includes, but is not limited to, a processing system 1008, a storage system 1003, software 1005, a communication interface system 1007, and a user interface system 1009 (optional). The processing system 1008 may be operably coupled to the storage system 1003, the communication interface system 1007, and the user interface system 1009.
[0102] Processing system 1008 loads and executes software 1005 from storage system 1003. Software 1005 includes and implements encoding processes 1006, which are representative of the encoding processes discussed with reference to the previous figures. When executed by processing system 1008 to enhance the user experience regarding viewing changes in documents, software 1005 directs processing system 1008 to operate as described herein at least for the various processes, operating scenarios, and sequences discussed in the foregoing implementations. Computer architecture 1001 may optionally include additional devices, features, or functionality that are not discussed for the sake of simplicity.
[0103] Still reference Fig.10 , the processing system 1008 may include a microprocessor and other circuitry that retrieves and executes the software 1005 from the storage system 1003. The processing system 1008 may be implemented in a single processing device, but may also be distributed across multiple processing devices or subsystems that cooperate in executing program instructions. Examples of the processing system 1008 include a general-purpose central processing unit, a graphics processing unit, a special-purpose processor, and a logic device, as well as any other type of processing device, combination, or variation thereof.
[0104] The storage system 1003 may include any computer-readable storage medium that can be read by the processing system 1008 and can store the software 1005. The storage system 1003 may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Examples of storage media include random access memory, read-only memory, magnetic disks, optical disks, flash memory, virtual and non-virtual memory, magnetic cassettes, magnetic tape, disk storage or other magnetic storage devices, or any other type of storage medium. In any case, a computer-readable storage medium is not a propagated signal.
[0105] In addition to computer-readable storage media, in some implementations, the storage system 1003 may also include computer-readable communication media through which at least some of the software 1005 can communicate internally and externally. The storage system 1003 may be implemented as a single storage device, but may also be implemented across multiple storage devices or subsystems that are co-located or distributed relative to each other. The storage system 1003 may include additional elements, such as a controller, that can communicate with the processing system 1008 or possibly other systems.
[0106] The software 1005 (including the encoding process 1006) may be implemented with program instructions and, when executed by the processing system 1008, together with other functions, direct the processing system 1008 to operate as described with reference to the various operating scenarios, sequences, and processes explained herein. For example, the software 1005 may include program instructions for implementing the encoding process as described herein.
[0107] Specifically, program instructions may include collaboration or otherwise interact to perform various components or modules of various processes and operation scenarios as described herein. Various components or modules may be embodied in compiled or interpreted instructions, or embodied in some other variants or combinations of instructions. Various components or modules may be executed in a synchronous or asynchronous manner, serially or in parallel, in a single-threaded environment or a multi-threaded environment, or according to any other suitable execution paradigm, variant or combination thereof. Software 1005 may include additional processes, programs or components, such as operating system software, virtualization software or other application software. Software 1005 may also include firmware or some other form of machine-readable processing instructions that may be executed by processing system 1008.
[0108] Generally speaking, the software 1005, when loaded into the processing system 1008 and executed, can transform a suitable device, system or device as a whole from a general-purpose computing system to a special-purpose computing system customized to provide enhanced processing of audio data. In fact, the encoding software 1005 on the storage system 1003 can transform the physical structure of the storage system 1003. In different implementations of this specification, the specific transformation of the physical structure can depend on various factors. Examples of such factors may include, but are not limited to, the technology of the storage medium used to implement the storage system 1003 and whether the computer storage medium is characterized as primary storage or secondary storage, as well as other factors.
[0109] For example, if the computer-readable storage medium is implemented as a semiconductor-based memory, then when encoding program instructions therein, the software 1005 can transform the physical state of the semiconductor memory, such as by transforming the state of transistors, capacitors, or other discrete circuit elements that make up the semiconductor memory. A similar transformation can occur with respect to magnetic or optical media. Other transformations of the physical medium are also possible without departing from the scope of this specification, and the examples provided above are only for the convenience of this discussion.
[0110] The communication interface system 1007 may include communication connections and devices that allow communication with other computing systems (not shown) through a communication network (not shown). Examples of connections and devices that together allow inter-system communication include network interface cards, antennas, power amplifiers, RF circuit systems, transceivers, and other communication circuit systems. The connections and devices can communicate through a communication medium to exchange communications with other computing systems or system networks, such as metal, glass, air, or any other suitable communication medium. The above-mentioned media, connections, and devices are well known and need not be discussed in detail here.
[0111] Communications between computer architecture 1001 and other computing systems (not shown) may occur over a communications network or networks and according to various communications protocols, combinations of protocols, or variations thereof. Examples include an intranet, the Internet, a local area network, a wide area network, a wireless network, a wired network, a virtual network, a software-defined network, a data center bus and backplane, or any other type of network, combination of networks, or variations thereof. The communications networks and protocols mentioned above are well known and need not be discussed in detail herein.
[0112] As will be appreciated by those skilled in the art, aspects of the present invention may be embodied as systems, methods or computer program products. Accordingly, aspects of the present invention may take the form of complete hardware embodiments, complete software embodiments (including firmware, resident software, microcode, etc.), or embodiments combining software and hardware aspects, which may generally be referred to herein as "circuits," "modules," or "systems." In addition, aspects of the present invention may take the form of a computer program product contained in one or more computer-readable media having a computer-readable program code contained thereon.
[0113] The included description and drawings depict specific embodiments for teaching those skilled in the art how to make and use the best mode. For the purpose of teaching creative principles, some traditional aspects have been simplified or omitted. Those skilled in the art will appreciate that variations from these embodiments also fall within the scope of the present disclosure. Those skilled in the art will also appreciate that the various features described above can be combined in various ways to form multiple embodiments. As a result, the present invention is not limited to the specific embodiments described above, but is limited only by the claims and their equivalents.
Claims
1. A method for compressing sample values of audio data having a dynamic range, the method comprising: identifying a fixed mapping of a lower range of sample values of the audio data to a subset of quantitative values in a set of quantitative values having a depth less than a depth of the sample values, wherein the subset of quantitative values comprises a fixed number of quantitative values, and wherein the fixed mapping comprises a one-to-one mapping of the fixed number of quantitative values to the same number of sample values; Identifying an upper range of sample values of the audio data remaining after the fixed mapping of the lower range of sample values, comprising: identifying a maximum value in a lower range of said sampled values that maps to said subset of quantitative values; and dividing the dynamic range into the lower range and the upper range at the identified maximum value; identifying an adaptive mapping of the upper range of sampled values to a remaining subset of quantitative values in the set of quantitative values, wherein the remaining subset of quantitative values comprises a remaining number of quantitative values, and wherein the adaptive mapping comprises a many-to-one mapping of remaining sampled values to the remaining number of quantitative values; and encoding the lower range of sample values based on the fixed mapping; and The upper range of sample values is encoded based on the adaptive mapping.
2. The method of claim 1, wherein: The size of the upper range includes a size of the upper range determined based on a maximum value in the lower range of the sampled values minus a maximum value in the sampled values.
3. The method of claim 1, wherein: Encoding the lower range based on the fixed mapping includes, for each value in the lower range of sampled values, converting the value to a corresponding quantitative value in the subset of quantitative values and writing the corresponding quantitative value to a file.
4. The method of claim 3, wherein: Encoding the upper range based on the adaptive mapping includes, for each value in the upper range of sampled values, converting the value to a closest quantitative value in the subset of quantitative values and writing the closest quantitative value to the file.
5. The method of claim 4, wherein: The file includes a key for mapping the set of quantitative values to a corresponding set of decoded values having a depth greater than a depth of the set of quantitative values.
6. The method of claim 5, wherein: The quantization value set has a depth comprising 8 bits, the corresponding decoded value set has a depth comprising 16 bits, and the sample value has a depth comprising 16 bits.
7. A computing device, comprising: one or more computer-readable storage media; one or more processors operatively coupled to the one or more computer-readable storage media; as well as program instructions stored on the one or more computer-readable storage media, which when executed by the one or more processors direct the computing device to at least: identifying a dynamic range from sample values of an audio signal; Identifying a division of the dynamic range into at least one lower range and one upper range based at least on a fixed mapping of a lower portion of the sampled values to a subset of quantitative values in a set of quantitative values having a depth less than a depth of the sampled values, comprising: identifying a maximum value among a lower portion of said sample values that map to said subset of quantitative values; and dividing the dynamic range into the lower range and the upper range at the identified maximum value; identifying an adaptive mapping of an upper portion of the sampled values to a remaining subset of quantitative values in the set of quantitative values based at least on the size of the upper range; encoding a lower portion of the sample values based on the fixed mapping; and encoding a higher portion of the sample values based on the adaptive mapping; wherein the subset of quantitative values comprises a fixed number of quantitative values, and wherein the fixed mapping comprises a one-to-one mapping of the fixed number of quantitative values to a same number of sampled values; Wherein the remaining quantitative value subset comprises a remaining number of quantitative values, and wherein the adaptive mapping comprises a many-to-one mapping of remaining sample values to the remaining number of quantitative values.
8. The computing device of claim 7, wherein: The size of the upper range includes a size of the upper range determined based on a maximum value among the sampled values minus a maximum value among the lower portion of the sampled values.
9. The computing device of claim 7, wherein: To encode the lower range based on the fixed mapping, the program instructions direct the computing device to: for each value in the lower portion of the sampled values, convert the value to a corresponding quantitative value in the subset of quantitative values and write the corresponding quantitative value to a file.
10. The computing device of claim 9, wherein: To encode the upper range based on the adaptive mapping, the program instructions direct the computing device to: for each value in the upper portion of the sampled values, convert the value to a closest quantitative value in the subset of quantitative values and write the closest quantitative value to the file.
11. The computing device of claim 10, wherein: The file includes a key for mapping the set of quantitative values to a corresponding set of decoded values having a depth greater than a depth of the set of quantitative values, wherein the depth of the set of quantitative values includes 8 bits, the depth of the corresponding set of decoded values includes 16 bits, and the depth of the sampled values includes 16 bits.
12. A computing device comprising: A memory having files stored therein, wherein the files include: a first encoded value comprising a first portion of sampled values, the first portion of sampled values being encoded within a lower range of a dynamic range of a signal by a fixed mapping of the first portion of sampled values to a subset of quantitative values in a set of quantitative values having a depth less than a depth of the sampled values, wherein the subset of quantitative values comprises a fixed number of quantitative values, and wherein the fixed mapping comprises a one-to-one mapping of the fixed number of quantitative values to the same number of sampled values; a second encoded value comprising a second portion of the sampled values, the second portion of the sampled values being encoded within a higher range of the dynamic range of the signal by adaptive mapping of the second portion of the sampled values to a remaining subset of quantitative values in the set of quantitative values, wherein the remaining subset of quantitative values comprises a remaining number of quantitative values, and wherein the adaptive mapping comprises a many-to-one mapping of remaining sample values to said remaining number of quantitative values; and a key for mapping the quantitative set of values to a corresponding decoded set of values having a depth greater than a depth of the quantitative set of values; wherein the size of the upper range depends on the maximum value among the sampled values and the size of the lower range; and One or more processors operatively coupled to the memory and configured to read the file, map the first encoded value and the second encoded value to decoded values using the key, and output the decoded values.
13. The computing device of claim 12, wherein: The signal comprises an audio signal, and wherein the computing device further comprises an audio subsystem operatively coupled to the one or more processors and configured to generate an output audio signal based on the decoded values and to drive an audible sound with the output audio signal.
14. The computing device of claim 13, wherein: The first encoded value has a depth comprising 8 bits, the second encoded value has a depth comprising 8 bits, the sample value has a depth comprising 16 bits, the decoded value has a depth comprising 16 bits, and the set of quantitative values has a depth comprising 8 bits.
15. A computer-readable storage medium having instructions, which, when executed, cause a machine to perform the method of any one of claims 1 to 6.
16. A computer system comprising means for executing the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Encoder and decoder with improved quantizer using reserved quantizer level for small amplitude signals
US5402124A
