Phase reconstruction in speech decoders

By using the weighted sum of linear components and basis functions in speech encoding and decoding, combined with the technology of omitting and synthesizing phase values, the problem of speech transmission quality in low bit rate scenarios is solved, and more efficient speech signal processing is achieved.

CN113196389BActive Publication Date: 2024-09-03MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN201980083619.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-17
Filing Date
2019-12-10
Publication Date
2024-09-03
Estimated Expiration
2039-12-10

AI Technical Summary

Technical Problem

In low bitrate scenarios, existing voice codecs are unable to effectively transmit voice signals when bandwidth is insufficient or there are transmission quality issues, resulting in poor quality.

Method used

By using the weighted sum of linear components and basis functions to represent and reconstruct phase values ​​during speech encoding and decoding, high-frequency phase values ​​are omitted and synthesized based on low-frequency phase values ​​during decoding, thereby improving the performance of bit rate distortion.

Benefits of technology

Significantly improves the performance of speech codecs in low bitrate scenarios, ensuring better quality and lower bitrates, adapting to different target bitrates and transmission conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113196389B_ABST
    Figure CN113196389B_ABST
Patent Text Reader

Abstract

Innovations in phase quantization during speech encoding and phase reconstruction during speech decoding are described. For example, to encode a set of phase values, a speech encoder omits higher frequency phase values ​​and / or represents at least some of the phase values ​​as weighted sums of basis functions. Or, as another example, to decode a set of phase values, a speech decoder reconstructs at least some of the phase values ​​using weighted sums of basis functions and / or reconstructs lower frequency phase values ​​and then uses at least some of the lower frequency phase values ​​to synthesize higher frequency phase values. In many cases, these innovations improve the performance of speech codecs in low bit rate scenarios, even when the encoded data is transmitted over a network that suffers from insufficient bandwidth or transmission quality issues.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] With the advent of digital wireless telephone networks, voice streaming over the Internet, and Internet telephony, digital processing of speech has become commonplace. Engineers use compression to process speech efficiently while still maintaining quality. One goal of speech compression is to represent the speech signal in a way that provides maximum signal quality for a given amount of bits. In other words, the goal is to represent the speech signal using the fewest bits for a given quality level. In some scenarios, other goals are used, such as resilience to transmission errors and limiting the overall delay due to encoding / transmission / decoding.

[0002] One type of conventional speech encoder / decoder ("codec") uses linear prediction ("LP") to achieve compression. The speech encoder finds and quantizes the LP coefficients for a prediction filter, which is used to predict a sample value as a linear combination of previous sample values. The residual signal (also called the "excitation" signal) indicates the portion of the original signal that was not accurately predicted by the filter. The speech encoder compresses the residual signal, typically using different compression techniques for voiced segments (characterized by vocal cord vibrations), unvoiced segments, and silent segments, because different kinds of speech have different characteristics. A corresponding speech decoder reconstructs the residual signal, recovers the LP coefficients for the synthesis filter, and processes the residual signal with the synthesis filter.

[0003] Given the importance of compression for representing speech in computer systems, speech compression has attracted a great deal of research and development activity. While previous speech codecs have provided good performance for many scenarios, they have some drawbacks. In particular, problems may arise when previous speech codecs are used in very low bit rate scenarios. In such cases, a wireless telephone network or other network may not have sufficient bandwidth (e.g., due to congestion or packet loss) or transmission quality issues (e.g., due to transmission noise or intermittent delays), which prevents the transmission of the encoded speech under quality constraints and time constraints suitable for real-time communications. Summary of the invention

[0004] In this disclosure, the detailed description presents innovations in speech encoding and speech decoding. Some innovations relate to phase quantization during speech encoding. Other innovations relate to phase reconstruction during speech decoding. In many cases, these innovations can improve the performance of speech codecs in low bit rate scenarios, even when the encoded data is transmitted over a network that suffers from insufficient bandwidth or transmission quality issues.

[0005] According to a first set of innovations described herein, a speech encoder receives speech input (e.g., in an input buffer), encodes the speech input to produce encoded data, and stores the encoded data (e.g., in an output buffer) for output as part of a bitstream. As part of the encoding, the speech encoder filters input values ​​based on the speech input according to linear prediction ("LP") coefficients to produce residual values. The speech encoder encodes the residual values. In particular, the speech encoder determines and encodes a set of phase values. The phase values ​​can be determined, for example, by applying a frequency transform to a subframe of a current frame, which produces a complex amplitude value for the subframe, and calculating the phase value (and corresponding amplitude value) based on the complex amplitude value. To improve performance, the speech encoder can perform various operations when encoding the set of phase values.

[0006] For example, when encoding a set of phase values, the speech encoder uses a weighted sum of a linear component and a basis function (e.g., a sine function) to represent at least some of the set of phase values. The speech encoder can use a delayed decision method or other method to determine a set of coefficients that weight the basis function. The count of the coefficients can vary, depending on the target bit rate and / or other criteria for the encoded data. When finding a suitable coefficient, the speech encoder can use a cost function or other cost function based on a linear phase measurement, so that the weighted sum of the basis function is similar to the represented phase value together with the linear component. The speech encoder can use an offset value and a slope value to parameterize the linear component combined with the weighted sum. Using the weighted sum of the linear component and the basis function, the speech encoder can accurately represent the phase value in a compact and flexible manner, which can improve the rate-distortion performance in a low bit rate scenario (i.e., provide better quality for a given bit rate, or equivalently provide a lower bit rate for a given quality level).

[0007] As another example, when encoding a set of phase values, a speech encoder may omit a set of any phase values ​​having a frequency higher than a cutoff frequency. The speech encoder may select a cutoff frequency based at least in part on a target bit rate for the encoded data, pitch period information, and / or other criteria. The omitted higher frequency phase values ​​may be synthesized during decoding based on lower frequency phase values, which are part of the encoded data. By omitting higher frequency phase values ​​(and synthesizing them based on lower frequency phase values ​​during decoding), the speech encoder may effectively represent a full range of phase values, which may improve rate distortion performance in low bit rate scenarios.

[0008] According to a second set of innovations described herein, a speech decoder receives encoded data (e.g., in an input buffer) as part of a bitstream, decodes the encoded data to reconstruct speech, and stores the reconstructed speech (e.g., in an output buffer) for output. As part of decoding, the speech decoder decodes residual values ​​and filters the residual values ​​based on LP coefficients. In particular, the speech decoder decodes a set of phase values ​​and reconstructs the residual values ​​based at least in part on the set of phase values. To improve performance, the speech decoder can perform various operations when decoding the set of phase values.

[0009] For example, when decoding a set of phase values, the speech decoder uses a weighted sum of a linear component and a basis function (e.g., a sine function) to reconstruct at least some of the set of phase values. The linear component can be parameterized by an offset value and a slope value. The speech decoder can decode a set of coefficients (which weights the basis function), an offset value, and a slope value, and then use the set of coefficients, the offset value, and the slope value as a part of the reconstructed phase value. The count of the coefficients weighted by the basis function can vary depending on the target bit rate and / or other standards for the encoded data. Using the weighted sum of the linear component and the basis function, the phase value can be accurately represented in a compact and flexible manner, which can improve the rate-distortion performance under low bit rate scenarios.

[0010] As another example, when decoding a set of phase values, the speech decoder reconstructs a first subset of the set of phase values ​​and then uses at least some of the first subset to synthesize a second subset of the set of phase values, wherein each phase value in the second subset has a frequency above a cutoff frequency. The speech decoder may determine the cutoff frequency based at least in part on a target bit rate for the encoded data, pitch period information, and / or other criteria. To synthesize the phase values ​​of the second subset, the speech decoder may identify a range of the first subset, determine (as a pattern) the difference between adjacent phase values ​​within the range of the first subset, repeat the pattern above the cutoff frequency, and then integrate the difference between adjacent phase values ​​to determine the second subset. By synthesizing omitted higher frequency phase values ​​based on lower frequency phase values ​​signaled in the bitstream, the speech decoder may effectively reconstruct the entire range of phase values, which may improve rate-distortion performance in low bitrate scenarios.

[0011] The innovations described herein include, but are not limited to, the innovations covered by the claims. These innovations may be implemented as part of a method, as part of a computer system configured to perform a method, or as part of a computer-readable medium storing computer executable instructions for causing one or more processors in a computer system to perform the method. Various innovations may be used in combination or alone. This summary of the invention is provided to introduce a selection of concepts that will be further described in the following detailed description in a simplified form. This summary of the invention is not intended to identify the 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. The foregoing and other objects, features, and advantages of the present invention will become more apparent from the following detailed description with reference to the accompanying drawings, and many examples are illustrated. Examples may also be used for other and different applications, and some details may be modified in various aspects without departing from the spirit and scope of the disclosed innovation. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The following drawings illustrate some features of the disclosed innovation.

[0013] Figure 1 is a diagram illustrating an example computer system in which some described examples may be implemented.

[0014] Figure 2a and Figure 2b is a diagram of an example network environment in which some described embodiments may be implemented.

[0015] Figure 3 is a diagram illustrating an example speech encoder system.

[0016] Figure 4 It shows Figure 3 FIG. 1 is a diagram of stages of encoding of residual values ​​in an example speech encoder system.

[0017] Figure 5 is a diagram illustrating an example delayed decision method for finding coefficients that represent a phase value as a weighted sum of basis functions.

[0018] Figure 6a-6d is a flow chart illustrating a speech coding technique including representing phase values ​​as a weighted sum of basis functions and / or omitting phase values ​​having frequencies above a cutoff frequency.

[0019] Figure 7 is a diagram illustrating an example speech decoder system.

[0020] Figure 8 It shows Figure 7 FIG. 1 is a diagram of the decoding stage of residual values ​​in an example speech decoder system.

[0021] Figure 9a-9c is a diagram illustrating an example method for synthesizing a phase value having a frequency above a cutoff frequency.

[0022] Figure 10a-Figure 10d is a flow chart illustrating a technique for speech decoding, including reconstructing a phase value represented as a weighted sum of basis functions and / or synthesizing a phase value having a frequency above a cutoff frequency. DETAILED DESCRIPTION

[0023] The detailed description presents innovations in speech encoding and speech decoding. Some innovations relate to phase quantization during speech encoding. Other innovations relate to phase reconstruction during speech decoding. In many cases, the innovations can improve the performance of speech codecs in low bit rate scenarios, even when the encoded data is transmitted over a network that suffers from insufficient bandwidth or transmission quality issues.

[0024] In the examples described herein, the same reference numerals in different figures represent the same components, modules or operations. More generally, various substitutions to the examples described herein are possible. For example, some methods described herein can be changed by changing the order of the described method actions, by splitting, repeating or omitting certain method actions, etc. Various aspects of the disclosed technology can be used in combination or separately. Some innovations described herein solve one or more problems mentioned in the background. Usually, a given technology / tool ​​cannot solve all these problems. It should be understood that other examples can be utilized and structural, logical, software, hardware and electrical changes can be made without departing from the scope of the present disclosure. Therefore, the following description should not be considered restrictive. On the contrary, the scope of the present invention is limited by the appended claims.

[0025] I. Example Computer System

[0026] Figure 1 A general example of a suitable computer system (100) is shown in which several of the described innovations may be implemented. The innovations described herein relate to speech encoding and / or speech decoding. Apart from use in speech encoding and / or speech decoding, the computer system (100) is not intended to imply any limitation on scope of use or functionality, as the innovations may be implemented in different computer systems, including special purpose computer systems adapted for speech encoding and / or speech decoding operations.

[0027] refer to Figure 1, the computer system (100) includes one or more processing cores (110...11x) of a central processing unit ("CPU") and local on-chip memory (118). The processing cores (110...11x) execute computer-executable instructions. The number of processing cores (110...11x) depends on the implementation and can be, for example, 4 or 8. The local memory (118) can be volatile memory (e.g., registers, cache, RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two, accessible by the corresponding processing cores (110...11x).

[0028] The local memory (118) may store software (180) implementing tools for one or more of the following innovations: for phase quantization in a speech encoder and / or for phase reconstruction in a speech decoder, for operations in the form of computer executable instructions for execution by the corresponding processing core (110 ... 11x). Figure 1 In the present invention, local memory (118) is an on-chip memory, such as one or more caches, for which access operations, transfer operations, etc. using processing cores (110...11x) are very fast.

[0029] The computer system (100) may include a processing core (not shown) of a graphics processing unit ("GPU") and local memory (not shown). Alternatively, the computer system (100) includes one or more processing cores (not shown) of a system on a chip ("SoC"), an application specific integrated circuit ("ASIC"), or other integrated circuit, and associated memory (not shown). The processing cores may execute computer executable instructions for one or more innovations of phase quantization in a speech encoder and / or phase reconstruction in a speech decoder.

[0030] More generally, the term "processor" may refer to any device that can process computer-executable instructions, and may include microprocessors, microcontrollers, programmable logic devices, digital signal processors, and / or other computing devices. The processor may be a CPU or other general purpose unit, however, it is also known to provide a dedicated processor using, for example, an ASIC or a field programmable gate array ("FPGA").

[0031] The term "control logic" may refer to a controller, or more generally to one or more processors, which are operable to process computer-executable instructions, determine results, and generate outputs. Depending on the implementation, the control logic may be implemented by software executable on a CPU, by software controlling dedicated hardware (e.g., a GPU or other graphics hardware), or by dedicated hardware (e.g., in an ASIC).

[0032] The computer system (100) includes a shared memory (120) accessible by the processing cores, which shared memory (120) may be volatile memory (e.g., RAM), non-volatile memory (e.g., ROM, EEPROM, flash memory, etc.), or some combination of the two. The memory (120) stores software (180) that implements tools for one or more of the following innovations: for phase quantization in a speech encoder and / or for phase reconstruction in a speech decoder, for operations performed in the form of computer executable instructions. Figure 1 In the embodiment, the shared memory (120) is an off-chip memory, for which access operations, transfer operations, etc. using the processing cores (110 . . . 11x) are very fast.

[0033] The computer system (100) includes one or more network adapters (140). As used herein, the term "network adapter" refers to any network interface card ("NIC"), network interface, network interface controller, or network interface device. The network adapter (140) is capable of communicating with another computing entity (e.g., a server, other computer system) over a network. The network can be a telephone network, a wide area network, a local area network, a storage area network, or other network. The network adapter (140) can support wired connections and / or wireless connections for use in a telephone network, a wide area network, a local area network, a storage area network, or other network. The network adapter (140) transmits data (e.g., computer executable instructions, voice / audio or video input or output, or other data) over a network connection in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in a manner that encodes information in the signal. By way of example and not limitation, a network connection can use electrical, optical, RF, or other carrier waves.

[0034] The computer system (100) also includes one or more input devices (150). The input device may be a touch input device such as a keyboard, a mouse, a pen or trackball, a scanning device, or another device that provides input to the computer system (100). For voice / audio input, the input devices (150) of the computer system (100) include one or more microphones. The computer system (100) may also include a video input, another audio input, a motion sensor / tracker input, and / or a game controller input.

[0035] The computer system (100) includes one or more output devices (160), such as a display. For voice / audio output, the output devices (160) of the computer system (100) include one or more speakers. The output devices (160) may also include a printer, a CD burner, a video output, another audio output, or another device that provides output from the computer system (100).

[0036] The storage device (170) may be removable or non-removable and includes magnetic media (e.g., disks, tapes, or cassettes), optical media, and / or any other media that can be used to store information and that can be accessed within the computer system (100). The storage device (170) stores instructions for software (180) that implements one or more innovative tools for phase quantization in a speech encoder and / or phase reconstruction in a speech decoder.

[0037] An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computer system (100). Typically, operating system software (not shown) provides an operating environment for other software executed in the computer system (100) and coordinates the activities of the components of the computer system (100).

[0038] Figure 1 The computer system (100) is a physical computer system. A virtual machine may include Figure 1 Components of the organization shown.

[0039] The term "application" or "program" may refer to software such as any user mode instructions that provide functionality. The software of an application (or program) may also include instructions for an operating system and / or device drivers. The software may be stored in an associated memory. The software may be, for example, firmware. While it is contemplated that such software may be executed using a properly programmed general-purpose computer or computing device, it is also contemplated that hard-wired circuits or custom hardware (e.g., ASICs) may be used in place of or in combination with software instructions. Thus, the examples are not limited to any particular combination of hardware and software.

[0040] The term "computer-readable medium" refers to any medium that participates in providing data (e.g., instructions) that can be read by a processor and accessed within a computing environment. Computer-readable media can take a variety of forms, including but not limited to non-volatile media and volatile media. Non-volatile media include, for example, optical or magnetic disks and other persistent memories. Volatile media include dynamic random access memory ("DRAM"). Common forms of computer-readable media include, for example, solid-state drives, flash drives, hard disks, any other magnetic media, CD-ROMs, digital versatile disks ("DVDs"), any other optical media, RAM, programmable read-only memory ("PROM"), erasable programmable read-only memory ("EPROM"), USB memory sticks, any other memory chips or cassettes, or any other medium that a computer can read from. The term "computer-readable memory" explicitly excludes instantaneous propagation signals, carrier waves and waveforms or other intangible or transient media, although they can still be read by a computer. The term "carrier wave" may refer to an electromagnetic wave modulated in amplitude or frequency to transmit a signal.

[0041] These innovations are described in the general context of computer executable instructions that can be executed in a computer system on a target real or virtual processor. Computer executable instructions may include instructions that can be executed on a processing core of a general-purpose processor to provide the functions described herein, instructions that can be executed to control a GPU or dedicated hardware to provide the functions described herein, instructions that can be executed on a processing core of a GPU to provide the functions described herein, and / or instructions that can be executed on a processing core of a dedicated processor to provide the functions described herein. In some implementations, computer executable instructions can be organized in program modules. Typically, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform specific tasks or implement specific abstract data types. In various embodiments, the functions of program modules can be combined or split between program modules as needed. Computer executable instructions for program modules can be executed in a local or distributed computer system.

[0042] Many examples are described in this disclosure and are presented for illustrative purposes only. The examples described are not nor are they intended to be restrictive in any sense. As will be apparent from this disclosure, the innovations currently disclosed are widely applicable to a variety of situations. Those of ordinary skill in the art will recognize that the disclosed innovations can be practiced through various modifications and changes, such as structural, logical, software, and electrical modifications. Although specific features of the disclosed innovations may be described with reference to one or more specific examples, it should be understood that such features are not limited to use in the one or more specific examples in which they are described, unless expressly stated otherwise. This disclosure is neither a literal description of all examples nor a list of features of the invention that must be present in all examples.

[0043] When an ordinal number (e.g., "first," "second," "third," etc.) is used as an adjective preceding a term, the use of the ordinal number (unless otherwise expressly stated) is used only to indicate a particular feature, for example, to distinguish the particular feature from another feature described by the same or similar terms. The mere use of the ordinal numbers "first," "second," "third," etc. does not indicate any physical order or position, any temporal order, or any ranking in importance, quality, or other aspects. Furthermore, the mere use of an ordinal number does not define a numerical limitation on the features identified by the ordinal number.

[0044] When introducing elements, the articles “a,” “an,” “the,” and “said” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements.

[0045] When describing a single device, component, module or structure, multiple devices, components, modules or structures (whether they collaborate or not) can be used to replace a single device, component, module or structure. The function described as being owned by a single device can be owned by multiple devices instead, whether they collaborate or not. Similarly, in the case where multiple devices, components, modules or structures are described herein, whether they collaborate or not, a single device, component, module or structure can be used to replace multiple devices, components, modules or structures instead. The function described as being owned by multiple devices can be owned by a single device instead. In general, a computer system or device can be local or distributed, and can include any combination of dedicated hardware and / or hardware with the software that realizes the function described herein.

[0046] In addition, the techniques and tools described herein are not limited to the specific examples described herein. Instead, each technique and tool can be used independently and separately from other techniques and tools described herein.

[0047] Devices, components, modules, or structures that communicate with each other need not communicate with each other continuously unless otherwise expressly specified. Instead, such devices, components, modules, or structures need only communicate with each other when necessary or needed, and may actually avoid exchanging data most of the time. For example, a device that communicates with another device via the Internet may not transmit data to the other device for several weeks. In addition, devices, components, modules, or structures that communicate with each other may communicate directly or indirectly through one or more intermediaries.

[0048] As used herein, the term "send" means any way of transmitting information from one device, component, module or structure to another device, component, module or structure. The term "receive" means any way of obtaining information from another device, component, module or structure at a device, component, module or structure. The device, component, module or structure can be part of the same computer system or different computer systems. Information can be passed by value (e.g., as a parameter of a message or function call) or by reference (e.g., in a buffer). Depending on the context, information can be communicated directly or communicated through one or more intermediate devices, components, modules or structures. As used herein, the term "connection" means an operable communication link between devices, components, modules or structures, which can be part of the same computer system or different computer systems. An operable communication link can be a wired or wireless network connection, which can be direct or transmitted through one or more intermediaries (e.g., network).

[0049] The description of an example with several features does not imply that all or even any such features are required. Rather, a variety of optional features are described to illustrate a variety of possible examples of the innovations described herein. Unless expressly stated otherwise, no feature is essential or required.

[0050] In addition, although process steps and phases can be described in order, such processes can be configured to work in different orders. The description of a specific sequence or order does not necessarily indicate that the steps / phases are required to be performed in that order. The steps or phases can be performed in any actual order. In addition, although described or implied as non-simultaneous, some steps or phases can be performed simultaneously. Describing a process as including multiple steps or phases does not mean that all or even any steps or phases are necessary or required. Various other examples can omit some or all of the steps or phases described. Unless otherwise expressly provided, no steps or phases are necessary or required. Similarly, although a product may be described as including multiple aspects, qualities or characteristics, this does not mean that all of these are necessary or required. Various other examples can omit some or all of aspects, qualities or characteristics.

[0051] Many of the techniques and tools described herein are described with reference to a speech codec. Alternatively, the techniques and tools described herein may be implemented in an audio codec, a video codec, a still image codec, or other media codecs for which the encoder and decoder use a combination of phase values ​​to represent the residual value.

[0052] An enumerated listing of items does not imply that any or all of the items are mutually exclusive, unless expressly specified otherwise. Likewise, an enumerated listing of items does not imply that any or all of the items are comprehensive in any category, unless expressly specified otherwise.

[0053] For presentation purposes, the detailed description uses terms such as "determine" and "select" to describe computer operations in a computer system. These terms represent operations performed by one or more processors or other components in a computer system and should not be confused with actions performed by humans. The actual computer operations corresponding to these terms vary depending on the implementation.

[0054] II. Sample Network Environment

[0055] Figure 2a and Figure 2b An example network environment (201, 202) including a speech encoder (220) and a speech decoder (270) is shown. The encoder (220) and the decoder (270) are connected via a network (250) using an appropriate communication protocol. The network (250) may include a telephone network, the Internet, or another computer network.

[0056] exist Figure 2aIn the illustrated network environment (201), each real-time communication ("RTC") tool (210) includes an encoder (220) and a decoder (270) for two-way communication. A given encoder (220) may produce output conforming to a speech codec format or an extension of a speech codec format, wherein a corresponding decoder (270) accepts encoded data from the encoder (220). The two-way communication may be part of an audio conference, a telephone call, or other two-party or multi-party communication scenario. Although Figure 2a The network environment (201) includes two real-time communication tools (210), but the network environment (201) may alternatively include three or more real-time communication tools (210) participating in multi-party communication.

[0057] The real-time communication tool (210) manages the encoding performed by the encoder (220). Figure 3 An example encoder system (300) is shown that may be included in a real-time communication tool (210). Alternatively, the real-time communication tool (210) uses another encoder system. The real-time communication tool (210) also manages decoding by a decoder (270). Figure 7 An example decoder system (700) is shown that may be included in the real-time communication tool (210). Alternatively, the real-time communication tool (210) uses another decoder system.

[0058] exist Figure 2b In the illustrated network environment (202), an encoding tool (212) includes an encoder (220) that encodes speech for transmission to a plurality of playback tools (214), which include decoders (270). One-way communication can be provided for surveillance systems, network monitoring systems, remote desktop conference presentations, game broadcasts, or other scenarios in which speech is encoded and sent from one location to one or more other locations for playback. Although Figure 2b The network environment (202) in FIG. 1 includes two playback tools (214), but the network environment (202) may include more or fewer playback tools (214). Typically, the playback tool (214) communicates with the encoding tool (212) to determine the encoded voice stream that the playback tool (214) is to receive. The playback tool (214) receives the stream, buffers the received encoded data for an appropriate period of time, and begins decoding and playback.

[0059] Figure 3 An example encoder system (300) is shown that may be included in an encoding tool (212). Alternatively, the encoding tool (212) uses another encoder system. The encoding tool (212) may also include server-side controller logic for managing connections with one or more playback tools (214). Figure 7An example decoder system (700) is shown, which may be included in the playback tool (214). Alternatively, the playback tool (214) uses another decoder system. The playback tool (214) may also include client-side controller logic for managing the connection with the encoding tool (212).

[0060] III. Example Speech Encoder System

[0061] Figure 3 An example speech encoder system (300) is shown in conjunction with which some of the described embodiments can be implemented. The encoder system (300) can be a general-purpose speech encoding tool capable of operating in any of a variety of modes, such as a low-latency mode for real-time communications, a transcoding mode, and a high-latency mode for producing media for playback from a file or stream, or the encoder system (300) can be a dedicated encoding tool suitable for one such mode. In some example implementations, the encoder system (300) can provide high-quality sound and audio over various types of connections, including connections over networks with insufficient bandwidth (e.g., low bitrates due to congestion or high packet loss) or transmission quality issues (e.g., due to transmission noise or high jitter). In particular, in some example implementations, the encoder system (300) operates in one of two low-latency modes, a low bitrate mode or a high bitrate mode. The low bitrate mode uses reference Figure 3 and Figure 4 Describes the components.

[0062] The encoder system (300) can be implemented as part of an operating system module, as part of an application library, or as part of a standalone application using GPU hardware or using dedicated hardware. In summary, the encoder system (300) is configured to receive a speech input (305), encode the speech input (305) to produce encoded data, and store the encoded data as part of a bitstream (395). The encoder system (300) includes various components that are implemented using one or more processors and are configured to encode the speech input (305) to produce encoded data.

[0063] The encoder system (300) is configured to receive speech input (305) from a source such as a microphone. In some example implementations, the encoder system (300) can accept ultra-wideband speech input (for input signals sampled at 32kHz) or wideband speech input (for input signals sampled at 16kHz). The encoder system (300) temporarily stores the speech input (305) in an input buffer that is implemented in a memory of the encoder system (300) and is configured to receive the speech input (305). From the input buffer, components of the encoder system (300) read sample values ​​of the speech input (305). The encoder system (300) uses variable length frames. Periodically, sample values ​​in a current batch (input frame) of the speech input (305) are added to the input buffer. Each batch (input frame) is, for example, 20 milliseconds in length. As a frame is encoded, sample values ​​for the frame are removed from the input buffer. Any unused sample values ​​are retained in the input buffer to be encoded as part of the next frame. Therefore, the encoder system (300) is configured to buffer any unused sample values ​​in the current batch (input frame) and pre-append these sample values ​​to the next batch (input frame) in the input buffer.Alternatively, the encoder system (300) may use frames of uniform length.

[0064] The filter bank (310) is configured to separate the speech input (305) into a plurality of frequency bands. The plurality of frequency bands provide input values ​​filtered by the prediction filters (360, 362) to generate residual values ​​in corresponding frequency bands. Figure 3 In the embodiment of the present invention, the filter bank (310) is configured to divide the speech input (305) into two equal frequency bands - a low frequency band (311) and a high frequency band (312). For example, if the speech input (305) is from an ultra-wideband input signal, the low frequency band (311) may include speech in the range of 0-8kHz, and the high frequency band (312) may include speech in the range of 8-16kHz. Alternatively, the filter bank (310) divides the speech input (305) into more frequency bands and / or unequal frequency bands. The filter bank (310) may use any of various types of infinite impulse response ("HR") or other filters, depending on the implementation.

[0065] The filter bank (310) can be selectively bypassed. Figure 3In the encoder system (300), if the speech input (305) is from a broadband input signal, the filter bank (310) can be bypassed. In this case, the subsequent processing of the high frequency band (312) by the high frequency band LPC analysis module (322), the high frequency band prediction filter (362), the framer (370), the residual encoder (380) etc. can be skipped, and the speech input (300) directly provides the input value filtered by the prediction filter (360).

[0066] Figure 3 The encoder system (300) includes two linear predictive coding ("LPC") analysis modules (320, 322) configured to determine LP coefficients for each frequency band (311, 312). In some example implementations, each of the LPC analysis modules (320, 322) uses a five millisecond look-ahead window to calculate whitening coefficients. Alternatively, the LPC analysis modules (320, 322) are configured to determine the LP coefficients in some other manner. If the filter bank (310) divides the speech input (305) into more frequency bands (or is omitted), the encoder system (300) may include more LPC analysis modules for each frequency band. If the filter bank (310) is bypassed (or omitted), the encoder system (300) may include a single LPC analysis module (360) for a single frequency band—the entirety of the speech input (305).

[0067] The LP coefficient quantization module (325) is configured to quantize the LP coefficients, producing quantized LP coefficients (327, 328) for each frequency band (or for all speech input (305) if the filter bank (310) is bypassed or omitted). Depending on the implementation, the LP coefficient quantization module (325) can use any combination of quantization operations (e.g., vector quantization, scalar quantization), prediction operations, and domain conversion operations (e.g., conversion to the line spectral frequency ("LSF") domain) to quantize the LP coefficients.

[0068] Figure 3 The encoder system (300) includes two prediction filters (360, 362), such as whitening filters A(z). The prediction filters (360, 362) are configured to filter input values ​​based on speech input according to quantized LP coefficients (327, 328). The filtering produces residual values ​​(367, 368). Figure 3In the embodiment of the present invention, the low-band prediction filter (360) is configured to filter input values ​​in the low-band (311) according to the quantized LP coefficients (327) for the low-band (311), or if the filter bank (310) is bypassed or omitted, filter the input values ​​directly from the speech input (305) according to the quantized LP coefficients (327), generating (low-band) residual values ​​(367). The high-band prediction filter (362) is configured to filter input values ​​in the high-band (312) according to the quantized LP coefficients (328) for the high-band (312), generating high-band residual values ​​(368). If the filter bank (310) is configured to divide the speech input (305) into more frequency bands, the encoder system (300) may include more prediction filters for the corresponding frequency bands. If the filter bank (310) is omitted, the encoder system (300) may include a single prediction filter for the entire range of the speech input (305).

[0069] The pitch analysis module (330) is configured to perform pitch analysis, thereby generating pitch period information (336). Figure 3 In the embodiment of the present invention, the pitch analysis module (330) is configured to process the low frequency band (311) of the speech input (305) in parallel with the LPC analysis. Alternatively, the pitch analysis module (330) can be configured to process other information, such as the speech input (305). In essence, the pitch analysis module (330) determines a sequence of pitch periods such that the correlation between adjacent pairs of periods is maximized. The pitch period information (336) can be, for example, a set of subframe lengths corresponding to the pitch periods, or some other type of information about the pitch periods in the input to the pitch analysis module (330). The pitch analysis module (330) can also be configured to generate a correlation value. The pitch quantization module (335) is configured to quantize the pitch period information (336).

[0070] The voicing decision module (340) is configured to perform voicing analysis, thereby generating voicing decision information (346). The residual values ​​(367, 368) are encoded using a model suitable for voiced speech content or a model suitable for unvoiced speech content. The voicing decision module (340) is configured to determine which model to use. Depending on the implementation, the voicing decision module (340) may use any of a variety of criteria to determine which model to use. Figure 3 In an encoder system (300) of the present invention, voiced decision information (346) indicates to a residual encoder (380) on a frame-by-frame basis whether a frame of residual values ​​(367, 368) should be encoded as voiced speech content or unvoiced speech content. Alternatively, the voiced decision module (340) generates the voiced decision information (346) according to other timings.

[0071] The framer (370) is configured to organize the residual values ​​(367, 368) into frames of variable length. In particular, the framer (370) is configured to set a framing strategy (voiced or unvoiced) based at least in part on the voiced decision information (346), then set a frame length for a current frame of the residual values ​​(367, 368), and set a subframe length for a subframe of the current frame based at least in part on the pitch period information (336) and the residual values ​​(367, 368). In the bitstream (395), some parameters are signaled per subframe, while other parameters are signaled per frame. In some example implementations, the framer (370) examines the residual values ​​(367, 368) for the current batch of speech input (305) (and any remaining portion from the previous batch) in the input buffer.

[0072] If the framing strategy is voiced, the framer (370) is configured to set the subframe length based at least in part on the pitch period information so that each subframe includes a set of residual values ​​for one pitch period (367, 368). This facilitates encoding in a pitch-synchronous manner. (Using pitch-synchronous subframes can facilitate packet loss concealment because such operations typically generate an integer number of pitch periods. Similarly, using pitch-synchronous subframes can facilitate time compression stretching operations because such operations typically remove an integer number of pitch periods.)

[0073] The framer (370) is also configured to set the frame length of the current frame to an integer count of subframes from 1 to w, where w depends on the implementation (e.g., corresponding to a minimum subframe length of two milliseconds or some other number of milliseconds). In some example implementations, the framer (370) is configured to set the subframe length to encode an integer count of pitch periods per frame, packing as many subframes as possible into the current frame while having a single pitch period per subframe. For example, if the pitch period is four milliseconds, then for a frame length of 20 milliseconds, the current frame includes five pitch periods of residual values ​​(367, 368). As another example, if the pitch period is six milliseconds, then for a frame length of 18 milliseconds, the current frame includes three pitch periods of residual values ​​(367, 368). In practice, the frame length is limited by the look-ahead window of the framer (370) (e.g., 20 milliseconds of residual values ​​for a new batch plus any remaining values ​​from a previous batch).

[0074] The subframe lengths are quantized. In some example implementations, for voiced frames, the subframe lengths are quantized to have an integer length for a signal sampled at 32 kHz, and the sum of the subframe lengths has an integer length for a signal sampled at 8 kHz. Thus, subframes have lengths that are multiples of 1 / 32 milliseconds, and frames have lengths that are multiples of 1 / 8 milliseconds. Alternatively, subframes and frames of voiced content may have other lengths.

[0075] If the framing strategy is unvoiced, the framer (370) is configured to set the frame length of a frame and the subframe length of a subframe of a frame according to different methods, which may be suitable for unvoiced content. For example, the frame length may have a uniform or dynamic size, and the subframe length may be equal or variable for the subframes.

[0076] In some example implementations, the average frame length is approximately 20 milliseconds, but the length of individual frames may vary. Using variable-sized frames may improve coding efficiency, simplify codec design, and facilitate independent coding of each frame, which may aid speech decoders in packet loss concealment and time-scale modification.

[0077] Any residual values ​​in a subframe not included in a frame are left for encoding in the next frame. Therefore, the framer (370) is configured to buffer any unused residual values ​​and pre-append them to the next frame of residual values. The framer (370) may receive new pitch period information (336) and voice decision information (346) and then make decisions regarding frame / subframe length and framing strategy for the next frame.

[0078] Alternatively, the framer (370) is configured to organize the residual values ​​(367, 368) into variable length frames using some other method.

[0079] The residual encoder (380) is configured to encode the residual values ​​(367, 368). Figure 4 The residual encoder (380) is shown in stages of encoding residual values ​​(367, 368), including stages of encoding in a path for voiced speech and stages of encoding in a path for unvoiced speech. The residual encoder (380) is configured to select one of the paths based on voiced decision information (346) provided to the residual encoder (380).

[0080] If the residual values ​​(377, 378) are for voiced speech, the residual encoder (380) includes separate processing paths for residual values ​​in different frequency bands. Figure 4 In the embodiment of the present invention, the low-band residual values ​​(377) and the high-band residual values ​​(378) are mostly encoded in separate processing paths. If the filter bank (310) is bypassed or omitted, the residual values ​​(377) for the entire range of the speech input (305) are encoded. In any case, for the low-band (or speech input (305) if the filter bank (310) is bypassed or omitted), the residual values ​​(377) are encoded in a pitch-synchronous manner because the frame has been divided into subframes, each of which contains one pitch period.

[0081] The frequency converter (410) is configured to apply a one-dimensional ("1D") frequency transform to one or more subframes of the residual values ​​(377) to generate complex amplitude values ​​for each subframe. In some example implementations, the 1D frequency transform is a variant of a Fourier transform (e.g., a discrete Fourier transform ("DFT"), a fast Fourier transform ("FFT")) with no overlap or alternatively with overlap. Alternatively, the 1D frequency transform is some other frequency transform that generates frequency domain values ​​based on the residual values ​​(377) of each subframe. In general, the complex amplitude value of the subframe includes, for each frequency within a frequency range, (1) a real value representing the cosine amplitude at that frequency, and (2) an imaginary value representing the sine amplitude at that frequency. Thus, each frequency bin contains a complex amplitude value for one harmonic. For a perfectly periodic signal, the complex amplitude values ​​remain unchanged across subframes in each bin. If the subframes are stretched or compressed versions of each other, the complex amplitude values ​​also remain unchanged. The lowest bin (at 0 Hz) can be ignored and set to zero in the corresponding residual decoder.

[0082] The frequency converter (410) is further configured to determine a set of amplitude values ​​(414) and one or more sets of phase values ​​(412) for each subframe based at least in part on the complex amplitude values ​​of each subframe. For a frequency, the amplitude value represents the amplitude of the cosine and sine combination at the frequency, and the phase value represents the relative proportion of the cosine and sine at the frequency. In the residual encoder (380), the amplitude value (414) and the phase value (412) are further encoded respectively.

[0083] The phase encoder (420) is configured to encode one or more sets of phase values ​​(412) to generate a quantization parameter (384) for the set of phase values ​​(412). The set of phase values ​​can be used for the low frequency band (311) or the entire range of the speech input (305). The phase encoder (420) can encode a set of phase values ​​(412) per subframe or a set of phase values ​​(412) for a frame. In this case, the complex amplitude values ​​of the subframes of the frame can be averaged or otherwise aggregated, and the set of phase values ​​(412) for the frame can be determined based on the aggregated complex amplitude values. Section IV explains the operation of the phase encoder (420) in detail. In particular, the phase encoder (420) can be configured to perform operations to omit any one of the set of phase values ​​(412) having a frequency higher than a cutoff frequency. The cutoff frequency can be selected based at least in part on a target bit rate for the encoded data, pitch period information (336) from the pitch analysis module (330), and / or other criteria. In addition, the phase encoder (420) can be configured to perform operations to represent at least some of the set of phase values ​​(412) using weighted sums of linear component combination basis functions. In this case, the phase encoder (420) can be configured to perform operations to determine a set of coefficients for weighting the basis functions using a delayed decision method, set a count of the coefficients for weighting the basis functions (based at least in part on a target bit rate for the encoded data), and / or determine a score for the candidate set of coefficients for weighting the basis functions using a cost function based at least in part on a linear phase measurement.

[0084] The amplitude encoder (430) is configured to encode the set of amplitude values ​​(414) of each subframe, thereby generating a quantization parameter (385) for the set of amplitude values ​​(414). Depending on the implementation, the amplitude encoder (430) can encode the set of amplitude values ​​(414) of each subframe using any of various combinations of quantization operations (e.g., vector quantization, scalar quantization), prediction operations, and domain conversion operations (e.g., conversion to the frequency domain).

[0085] The frequency converter (410) may also be configured to generate a correlation value (416) for the residual value (377). The correlation value (416) provides a measure of a general characteristic of the residual value (377). In general, the correlation value (416) measures the correlation of complex amplitude values ​​across subframes. In some example implementations, the correlation value (416) is a cross-correlation measured at three frequency bands (i.e., 0-1.2 kHz, 1.2-2.6 kHz, and 2.6-5 kHz). Alternatively, the correlation value (416) may be measured in more or fewer frequency bands.

[0086] The sparsity evaluator (440) is configured to generate a sparsity value (442) for the residual values ​​(377) that provides another measure of a general characteristic of the residual values ​​(377). In general, the sparsity value (442) quantifies the degree of diffusion of energy in the residual values ​​(377) in the time domain. In other words, the sparsity value (442) quantifies the proportion of energy distribution in the residual values ​​(377). If there are few non-zero residual values, the sparsity value is high. If there are many non-zero residual values, the sparsity value is low. In some example implementations, the sparsity value (442) is the ratio of the average absolute value of the residual values ​​(377) to the root mean square value. The sparsity value (442) can be calculated in the time domain for each subframe of the residual values ​​(377) and then averaged or otherwise aggregated for the subframes of the frame. Alternatively, the sparsity value (442) may be calculated in some other manner (eg, as a percentage of non-zero values).

[0087] The correlation / sparseness encoder (450) is configured to encode the sparsity value (442) and the correlation value (416), generating one or more quantization parameters (386) for the sparsity value (442) and the correlation value (416). In some example implementations, the correlation value (416) and the sparsity value (442) are jointly vector quantized per frame. The correlation value (416) and the sparsity value (442) can be used at the speech decoder when reconstructing high frequency information.

[0088] For high-band residual values ​​(377) for voiced speech, the encoder system (300) relies on decoder reconstruction via bandwidth extension, as described below. The high-band residual values ​​(378) are processed in a separate path in the residual encoder (380). The energy evaluator (460) is configured to measure energy levels for the high-band residual values ​​(378), for example, per frame or per subframe. The energy level encoder (470) is configured to quantize the high-band energy levels (462), producing quantized energy levels (387).

[0089] If the residual values ​​(377, 378) are for unvoiced speech, the residual encoder (380) includes one or more separate processing paths (not shown) for the residual values. Depending on the implementation, the unvoiced path in the residual encoder (380) can encode the residual values ​​(377, 378) for unvoiced speech using any of a variety of combinations of filtering operations, quantization operations (e.g., vector quantization, scalar quantization), and energy / noise estimation operations.

[0090] exist Figure 3 and Figure 4, the residual encoder (380) is shown as processing low-band residual values ​​(377) and high-band residual values ​​(378). Alternatively, the residual encoder (380) can process residual values ​​in more bands or a single band (e.g., if the filter bank (310) is bypassed or omitted).

[0091] Back to Figure 3 In an encoder system (300), one or more entropy encoders (390) are configured to entropy encode parameters (327, 328, 336, 346, 384-389) generated by other components of the encoder system (300). For example, the quantization parameters generated by other components of the encoder system (300) can be entropy encoded using a range encoder that uses a cumulative quality function that represents the probability of the value of the quantization parameter being encoded. The cumulative quality function can be trained using a database of speech signals with different background noise levels. Alternatively, the parameters (327, 328, 336, 346, 384-389) generated by other components of the encoder system (300) are entropy encoded in some other manner.

[0092] In conjunction with the entropy encoder, a multiplexer ("MUX") (391) multiplexes the entropy encoded parameters into a bitstream (395). An output buffer implemented in a memory is configured to store the encoded data for output as part of the bitstream (395). In some example implementations, each packet of encoded data of the bitstream (395) is independently encoded, which helps avoid error propagation (loss of one packet affects the quality of reconstructed speech and voiced speech of subsequent packets), but may contain encoded data for multiple frames (e.g., three frames or some other count of frames). When a single packet contains multiple frames, the entropy encoder (390) can use conditional coding to improve the coding efficiency of the second and subsequent frames in the packet.

[0093] The bit rate of the encoded data produced by the encoder system (300) depends on the speech input (305) and the target bit rate. In order to adjust the average bit rate of the encoded data to match the target bit rate, a rate controller (not shown) can compare the most recent average bit rate with the target bit rate and then select among a plurality of encoding profiles. The selected encoding profile can be indicated in the bitstream (395). The encoding profile can define the bits allocated to different parameters set by the encoder system (300). For example, the encoding profile can define a phase quantization cutoff frequency, a count of coefficients used to represent a set of phase values ​​as a weighted sum of basis functions (as part of a complex amplitude value), and / or another parameter.

[0094] Depending on the implementation and the type of compression desired, modules of the encoder system (300) may be added, omitted, separated into multiple modules, combined with other modules, and / or replaced with similar modules. In alternative embodiments, encoders with different modules and / or other configurations of modules perform one or more of the described techniques. Specific embodiments of encoders typically use variants or supplementary versions of the encoder system (300). The relationships shown between modules within the encoder system (300) represent the general flow of information in the encoder system (300); for simplicity, other relationships are not shown.

[0095] IV. Example of Phase Quantization in a Speech Coder

[0096] This section describes innovations in phase quantization during speech coding. In many cases, these innovations can improve the performance of speech codecs in low bit rate scenarios, even when the encoded data is transmitted over networks that suffer from insufficient bandwidth or transmission quality issues. The innovations described in this section fall into two important groups of innovations that can be used individually or in combination.

[0097] According to a first set of innovations, when a speech encoder encodes a set of phase values, the speech encoder quantizes and encodes only lower frequency phase values ​​below a cutoff frequency. Higher frequency phase values ​​(above the cutoff frequency) are synthesized at the speech decoder based on at least some of the lower frequency phase values. By omitting the higher frequency phase values ​​(and synthesizing them based on the lower frequency phase values ​​during decoding), the speech encoder can effectively represent a full range of phase values, which can improve rate distortion performance in low bit rate scenarios. The cutoff frequency can be predefined and unchanged. Alternatively, in order to provide flexibility in encoding speech at different target bit rates or encoding speech with different characteristics, the speech encoder can select the cutoff frequency based at least in part on the target bit rate for the encoded data, pitch period information, and / or other criteria.

[0098] According to the second set of innovations, when the speech encoder encodes a set of phase values, the speech encoder uses a weighted sum of a linear component combination basis function to represent at least some phase values. Using the weighted sum of linear components and basis functions, the speech encoder can accurately represent the phase value in a compact and flexible manner, which can improve the rate distortion performance in low bit rate scenarios. Although the speech encoder can be implemented as using any of a variety of cost functions when determining the coefficients for the weighted sum, the cost function based on linear phase measurement usually results in a weighted sum of basis functions that are very similar to the represented phase value. Although the speech encoder can be implemented as using any of a variety of methods when determining the coefficients for the weighted sum, the delayed decision method usually finds suitable coefficients in a computationally efficient manner. The count of the coefficients weighted by the basis function can be predefined and constant. Alternatively, in order to provide the flexibility of encoding speech at different target bit rates, the count of the coefficients can depend on the target bit rate.

[0099] A. Omit the higher frequency phase value and set the cutoff frequency

[0100] When encoding a set of phase values, the speech encoder can quantize and encode lower frequency phase values ​​below a cutoff frequency and omit higher frequency phase values ​​above the cutoff frequency. The omitted higher frequency phase values ​​can be synthesized in the speech decoder based on at least some of the lower frequency phase values.

[0101] The set of encoded phase values ​​may be a set of phase values ​​for a frame or a set of phase values ​​for a subframe of a frame. If the set of phase values ​​is for a frame, the set of phase values ​​may be calculated directly from the complex amplitude values ​​of the frame. Alternatively, the set of phase values ​​may be calculated by aggregating (e.g., averaging) the complex amplitude values ​​of the subframes of the frame and then calculating the phase value of the frame based on the aggregated complex amplitude values. For example, in order to quantize the set of phase values ​​for a frame, the speech encoder determines the complex amplitude values ​​of the subframes of the frame, averages the complex amplitude values ​​of the subframes, and then calculates the phase value of the frame based on the average complex amplitude value of the frame.

[0102] When omitting higher frequency phase values, the speech encoder discards phase values ​​above the cutoff frequency. After determining the phase values, the higher frequency phase values ​​can be discarded. Alternatively, the higher frequency phase values ​​can be discarded by discarding complex amplitude values ​​(e.g., average complex amplitude values) above the cutoff frequency and never determining the corresponding higher frequency phase values. Either way, phase values ​​above the cutoff frequency are discarded and therefore omitted from the encoded data in the bitstream.

[0103] Although the cutoff frequency can be predefined and constant, there are advantages to adaptively changing the cutoff frequency. For example, to provide flexibility in encoding speech at different target bit rates or encoding speech with different characteristics, the speech encoder can select the cutoff frequency based at least in part on the target bit rate for the encoded data and / or pitch period information (which can indicate an average pitch frequency).

[0104] Typically, information in a speech signal is transmitted in a fundamental frequency and some of its multiples (harmonics). The speech encoder can set a cutoff frequency to retain important information. For example, if a frame includes high-frequency speech content, the speech encoder will set a higher cutoff frequency to retain more phase values ​​for the frame. On the other hand, if the frame only includes low-frequency speech content, the speech encoder will set a lower cutoff frequency to save bits. In this way, in some example implementations, the cutoff frequency can fluctuate in a way that compensates for the information loss caused by averaging the complex amplitude values ​​of the subframes. If the frame includes high-frequency speech content, the pitch period is shorter and the complex amplitude values ​​of many subframes are averaged. The average value may not represent the value in a specific one of the subframes. Because information may have been lost due to averaging, the cutoff frequency is higher in order to retain the remaining information. On the other hand, if the frame includes low-frequency speech content, the pitch period is longer and the complex amplitude values ​​of fewer subframes are averaged. Because there is a tendency to lose less information due to averaging, the cutoff frequency can be lower while still having sufficient quality.

[0105] With respect to the target bit rate, if the target bit rate is lower, the cutoff frequency is lower. If the target bit rate is higher, the cutoff frequency is higher. In this way, the bits allocated to represent higher frequency phase values ​​can be varied directly in proportion to the available bit rate.

[0106] In some example implementations, the cutoff frequency falls within the range of 962 Hz (for low target bitrate and low average pitch frequency) to 4160 Hz (for high target bitrate and high average pitch frequency). Alternatively, the cutoff frequency may vary within some other range.

[0107] The speech encoder may set the cutoff frequency on a frame-by-frame basis. For example, the speech encoder may set the cutoff frequency for a frame because the average pitch frequency varies from frame to frame, even if the target bit rate (set, for example, in response to network conditions reported to the speech encoder by some component external to the speech encoder) does not change often. Alternatively, the cutoff frequency may change on some other basis.

[0108] The speech encoder may set the cutoff frequency using a lookup table that associates different cutoff frequencies with different target bit rates and average pitch frequencies. Alternatively, the speech encoder may set the cutoff frequency in some other manner based on rules, logic, etc. The cutoff frequency may similarly be derived at the speech decoder based on information the speech decoder has about the target bit rate and pitch period.

[0109] Depending on the implementation, the phase value exactly at the cutoff frequency may be treated as one of the higher frequency phase values ​​(omitted) or one of the lower frequency phase values ​​(quantized and encoded).

[0110] B. Use the weighted sum of basis functions to represent the phase value

[0111] When encoding a set of phase values, the speech encoder may represent the set of phase values ​​as a weighted sum of basis functions. For example, when the basis function is a sine function, the quantized set of phase values ​​P i is defined as:

[0112] Where 0≤I≤I-1

[0113] Where N is the count of the quantized coefficients (hereinafter referred to as “coefficients”) weighted by the basis functions, and K n is one of the coefficients, and I is a count of complex amplitude values ​​(and therefore frequency bins having phase values). In some example implementations, the basis functions are sine functions, but the basis functions may alternatively be cosine functions or some other type of basis functions. The set of phase values ​​may be lower frequency phase values ​​(after discarding higher frequency phase values, as described in the previous section), a full range of phase values ​​(if higher frequency phase values ​​are not discarded), or some other range of phase values. The set of phase values ​​encoded may be a set of phase values ​​for a frame or a set of phase values ​​for a subframe of a frame, as described in the previous section.

[0114] The final quantized set of phase values ​​P final_i The phase value P is used i The linear component can be defined as a×i+b, where a represents the slope value and b represents the offset value. For example, P final_i =P i +a×i+b. Alternatively, other and / or additional parameters may be used to define the linear component.

[0115] To encode a set of phase values, the speech encoder finds a set of coefficients K n , the set of coefficients K n leads to a weighted sum of basis functions similar to a set of phase values. In order to determine the set of coefficients K nTo limit the computational complexity, the speech encoder can limit the set of coefficients K n For example, the coefficient K n The value is an integer value with the following size restrictions.

[0116] If n=1, |K n |≤5

[0117] If n = 2, |K n |≤3

[0118] If n = 3, |K n |≤2

[0119] If n ≥ 4, |K n |≤1.

[0120] K n The value of is quantized to an integer value. Alternatively, the coefficient K can be constrained according to other constraints n The value of .

[0121] Although the coefficient K n The count N can be predefined and unchanged, but the coefficient K can be adaptively changed n To provide flexibility in encoding speech at different target bit rates, the speech encoder may select the coefficient K based at least in part on the target bit rate of the encoded data. n For example, depending on the target bit rate, the speech encoder can set the coefficient K n The count N of K is set to the fraction of the count I of complex amplitude values ​​(and therefore frequency bins with phase values). In some example implementations, the range of the fraction is from 0.29 to 0.51. Alternatively, the fraction may have some other range. If the target bit rate is high, the coefficient K n The count N is high (the coefficient K n more). If the target bit rate is lower, the coefficient K n The count N is low (the coefficient K n The speech encoder can use a lookup table to set the coefficient K n The lookup table associates different coefficient counts with different target bit rates. Alternatively, the speech encoder may set the coefficients K in some other way according to rules, logic, etc. n The count of N. The coefficient K n The count N of can similarly be derived at the speech decoder based on the information the speech decoder has about the target bit rate. n The count N of can also depend on the average pitch frequency. The speech encoder can set the coefficient K frame by frame. n The count N may, for example, vary with the average pitch frequency, or on some other basis.

[0122] In the evaluation coefficient K n When the option is selected, the speech encoder uses a cost function (fitness function). The cost function depends on the implementation. Using the cost function, the speech encoder determines the coefficients K that weight the basis functions. n The cost function can also take into account the values ​​of other parameters. For example, for one type of cost function, the speech encoder calculates the score of the candidate set by the coefficient K. n The candidate set of weighted basis functions is used to reconstruct a version of the set of phase values, and then the linear phase measure is calculated when the inverse of the reconstructed version of the set of phase values ​​is applied to the complex amplitude value. In other words, the coefficient K n The cost function is defined as the quantized phase signal P i The inverse of applied to the (original) averaged complex spectrum results in a spectrum with maximum linear phase. This linear phase measure is the peak amplitude value of the inverse Fourier transform. If the result is perfect linear phase, the quantized phase signal exactly matches the phase signal of the averaged complex spectrum. For example, when P final_i Defined as P i When a×i+b is maximizing the linear phase, it means that the degree to which the linear component a×i+b is maximized represents the residual of the phase value. Alternatively, the cost function may be defined in other ways.

[0123] In theory, the speech encoder can cross the parameter space coefficient K n In practice, for most cases, a full search is computationally too complex. To reduce computational complexity, the speech encoder can find the coefficient K n A delayed decision method (eg, a Viterbi algorithm) is used when weighting a set of basis functions to represent a set of phase values.

[0124] In general, for the delayed decision method, the speech encoder iteratively performs operations to find the coefficients K in multiple stages. n For a given stage, the speech encoder has a coefficient K n The speech encoder evaluates a plurality of candidate values ​​for a given coefficient associated with a given stage among the values ​​of . The speech encoder evaluates the candidate values ​​according to the cost function, evaluating each candidate value for the given coefficient in conjunction with each of the set of candidate solutions (if any) from the previous stage. The speech encoder retains a number of counts of the evaluation combinations as a set of candidate solutions from the given stage based at least in part on the scores according to the cost function. For example, for a given stage n, the speech encoder retains a number of candidate values ​​for the coefficient K through the given stage. n In this way, using the delayed decision method, the speech encoder tracks the coefficient K n The most promising sequence.

[0125] Figure 5 An example of a speech encoder (500) is shown that uses a delayed decision method to find coefficients to represent a set of phase values ​​as a weighted sum of basis functions. To determine the coefficients K n The speech encoder iterates on n=1…N. At each stage (for each value of n), the speech encoder tests K according to the cost function n For example, for a linear phase measurement cost function, the speech encoder calculates the coefficient K according to n The combination generates a new phase signal P i , and measure the resulting linear phase. Instead of the evaluation coefficient K n For all possible permutations of the values ​​of (i.e., for each possible value of stage 1 x each possible value of stage 2 x ... x each possible value of stage n), the speech encoder evaluates a subset of the possible permutations. Specifically, when linked to each retained combination from stage n-1, the speech encoder checks the coefficient K at stage n n The retained combinations from stage n-1 include the coefficients K0, K1, ..., K that passed stage n-1. n-1 The most promising combination. The count of the retained combinations depends on the implementation. For example, the count is two, three, five or other counts. The count of the retained combinations can be the same in each stage, or can be different in different stages.

[0126] exist Figure 5 In the example shown, for the first stage, the speech encoder evaluates each possible value of K1 from -j to j (2j+1 possible integer values), and retains the top three combinations (the best K1 values ​​in the first stage) based on the cost function. For the second stage, the speech encoder evaluates each possible value of K2 from -2 to 2 (five possible integer values) linked to each retained combination (the best K1 value is from the first stage), and retains the top three combinations (the best K1+K2 combination in the second stage) based on the cost function. For the third stage, the speech encoder evaluates each possible value of K3 from -1 to 1 (three possible integer values) linked to each retained combination (the best K1+K2 combination from the second stage), and retains the top three combinations (the best K1+K2+K3 combination in the third stage) based on the cost function. This process continues to n stages. In the final stage, the speech encoder evaluates each possible value of K3 linked to each retained combination (the best K1+K2+K3+…+K ... n-1 K from -1 to 1 (three possible integer values) n Each possible value of and retain the best combination according to the cost function (the best K1+K2+K3+…+K n-1 +K n). The delayed decision method makes it possible to find the optimal solution for the coefficient K. n The process for finding values ​​of is tractable even when N is 50, 60 or even higher.

[0127] In addition to finding the coefficient K n In addition to the set of , the speech encoder determines the parameters of the linear component. For example, the speech decoder determines the slope value a and the offset value b. The offset value b represents the linear phase (offset) of the start of the weighted sum of the basis functions, so that the result P final_i The slope value a represents the total slope of the linear component and is applied as a multiplier or scaling factor so that the result P final_i Closer to the original phase signal. The speech encoder can unify the quantization offset value and the slope value. Alternatively, the speech encoder can jointly quantize the offset value and the slope value, or encode the offset value and the slope value in some other way. Alternatively, the speech encoder can determine other and / or additional parameters for the weighted sum of the linear component or the basis function.

[0128] Finally, the speech encoder quantizes the coefficients K n The speech decoder can use the coefficient K n A set of, offset values, slope values, and / or other values ​​are used to generate an approximation of a set of phase values.

[0129] C. Example Techniques for Phase Quantization in Speech Coding

[0130] Figure 6a A general technique for speech coding is shown (601), which may include, for example, Figure 6b , Figure 6c or Figure 6d Additional operations shown. Figure 6b A general technique for speech coding is shown (602) which includes omitting phase values ​​having frequencies above a cutoff frequency. Figure 6c A general technique for speech coding is shown (603), including representing phase values ​​using a weighted sum of linear components and basis functions. Figure 6d A more specific example technique (604) for speech coding is shown, including omitting higher frequency phase values ​​(which are above the cutoff frequency) and representing lower frequency phase values ​​(which are below the cutoff frequency) as a weighted sum of basis functions. Techniques (601-604) may be referred to in reference Figure 3 and Figure 4 The described speech encoder may be performed by or by another speech encoder.

[0131] refer to Figure 6a, the speech encoder receives (610) speech input. For example, an input buffer implemented in a memory of a computer system is configured to receive and store the speech input.

[0132] The speech encoder encodes the speech input (620) to produce encoded data. As part of encoding (620), the speech encoder filters input values ​​based on the speech input according to the LP coefficients. For example, the input values ​​can be frequency bands of the speech input generated by the filter bank. Alternatively, the input values ​​can be speech input received by the speech encoder. In any case, filtering produces residual values, which the speech encoder encodes. Figure 6b-6d An example of operations that may be performed as part of the encoding (620) stage for residual values ​​is shown.

[0133] The speech encoder stores (640) the encoded data for output as part of a bitstream. For example, an output buffer implemented in a memory of a computer system stores the encoded data for output.

[0134] refer to Figure 6b , the speech encoder determines (621) a set of phase values ​​for the residual value. The set of phase values ​​may be for a subframe of the residual value or for a frame of the residual value. For example, to determine the set of phase values ​​for a frame, the speech encoder applies a frequency transform to one or more subframes of the current frame, which frequency transform produces complex amplitude values ​​for each subframe. The frequency transform may be a variant of a Fourier transform (e.g., DFT, FFT) or some other frequency transform that produces complex amplitude values. The speech encoder then averages or otherwise aggregates the complex amplitude values ​​for each subframe. Alternatively, the speech encoder may aggregate the complex amplitude values ​​for the subframes in some other manner. Finally, the speech encoder calculates the set of phase values ​​based at least in part on the aggregated complex amplitude values. Alternatively, the speech encoder determines the set of phase values ​​in some other manner, for example, by applying a frequency transform to the entire frame without dividing the current frame into subframes and calculating the set of phase values ​​based on the complex amplitude values ​​of the frame.

[0135] The speech encoder encodes (635) the set of phase values. In doing so, the speech encoder ignores any set of phase values ​​having frequencies above a cutoff frequency. The speech encoder may select the cutoff frequency based at least in part on a target bit rate for the encoded data, pitch period information, and / or other criteria. Phase values ​​at frequencies above the cutoff frequency are discarded. Phase values ​​at frequencies below the cutoff frequency are encoded, e.g., as referenced Figure 6c Depending on the implementation, the phase value exactly at the cutoff frequency may be treated as one of the higher frequency phase values ​​(omitted) or one of the lower frequency phase values ​​(quantized and encoded).

[0136] refer to Figure 6c The speech encoder determines (621) a set of phase values ​​for the residual value. The set of phase values ​​may be for a subframe of residual values ​​or a frame of residual values. For example, the speech encoder determines the set of phase values, such as reference Figure 6b As described.

[0137] The speech encoder encodes (636) the set of phase values. In doing so, the speech encoder represents at least some of the set of phase values ​​using a weighted sum of linear components and basis functions. For example, the basis functions are sine functions. Alternatively, the basis functions are cosine functions or some other type of basis functions. The phase values ​​represented as weighted sums of basis functions can be lower frequency phase values ​​(if higher frequency phase values ​​are discarded), a full range of phase values, or some other range of phase values.

[0138] In order to encode the phase value, the speech encoder can determine the set of coefficients weighted to the basis function, and also determine the offset value and slope value of the parameterized linear component. Then, the speech encoder can entropy encode the set of coefficients, the offset value and the slope value. Alternatively, the speech encoder can encode the set of phase values ​​using the set of coefficients weighted to the basis function and some other combinations of parameters defining the linear component (e.g., no offset value, or no slope value, or using other parameters). Alternatively, the set of coefficients weighted to the basis function is combined with the linear component, and the speech encoder can still use other parameters to represent the set of phase values.

[0139] To determine the set of coefficients that weight the basis functions, the speech encoder can use a delayed decision method (as described above) or another method (e.g., a full search of the parameter space of the set of coefficients). When determining the set of coefficients that weight the basis functions, the speech encoder can use a cost function based on linear phase measurements (as described above) or another cost function. The speech encoder can set the count of coefficients that weight the basis functions based at least in part on a target bit rate for the encoded data (as described above) and / or other criteria.

[0140] exist Figure 6d In the example technique (604), when encoding a set of phase values ​​for a residual value, the speech encoder omits higher frequency phase values ​​having frequencies above a cutoff frequency and represents lower frequency phase values ​​as a weighted sum of basis functions.

[0141] The speech encoder applies (622) a frequency transform to one or more subframes of the frame, which produces complex amplitude values ​​for each subframe. The frequency transform can be a variant of a Fourier transform (e.g., DFT, FFT) or some other frequency transform that produces complex amplitude values. The speech encoder then averages the complex amplitude values ​​of the subframes of the frame. Next, the speech encoder calculates (624) a set of phase values ​​for the frame based at least in part on the averaged complex amplitude values.

[0142] The speech encoder selects (628) a cutoff frequency based at least in part on a target bit rate for the encoded data and / or pitch period information. The speech encoder then discards (629) any set of phase values ​​having frequencies above the cutoff frequency. Thus, phase values ​​at frequencies above the cutoff frequency are discarded, but phase values ​​at frequencies below the cutoff frequency are further encoded. Depending on the implementation, a phase value exactly at the cutoff frequency may be treated as one of the higher frequency phase values ​​(discarded) or one of the lower frequency phase values ​​(quantized and encoded).

[0143] To encode lower frequency phase values ​​(i.e., phase values ​​below the cutoff frequency), the speech encoder represents the lower frequency phase values ​​using a weighted sum of a linear component and a basis function. Based at least in part on a target bit rate for the encoded data, the speech encoder sets (630) a count of coefficients weighted for the basis function. The speech encoder uses (631) a delayed decision method to determine a set of coefficients weighted for the basis function. The speech encoder also determines (632) an offset value and a slope value that parameterize the linear component. The speech encoder then encodes (633) the set of coefficients, the offset value, and the slope value.

[0144] The speech encoder can repeat frame by frame Figure 6d The speech encoder may repeat the process on a frame-by-frame or other basis. Figure 6a-6c Any of the techniques (601-603) shown in .

[0145] V. Example Speech Decoder System

[0146] Figure 7An example speech decoder system (700) is shown in conjunction with which some of the described embodiments may be implemented. The decoder system (700) may be a general purpose speech decoding tool capable of operating in any of a variety of modes, such as a low latency mode for real-time communications, a transcoding mode, and a high latency mode for playing back media from a file or stream, or the decoder system (700) may be a dedicated decoding tool adapted for one such mode. In some example implementations, the decoder system (700) may playback high-quality speech and audio over various types of connections, including connections over networks with insufficient bandwidth (e.g., low bitrates due to congestion or high packet loss rates) or transmission quality issues (e.g., due to transmission noise or high jitter). In particular, in some example implementations, the decoder system (700) operates in one of two low latency modes, a low bitrate mode or a high bitrate mode. The low bitrate mode uses reference Figure 7 and Figure 8 Describes the components.

[0147] The decoder system (700) can be implemented as part of an operating system module, as part of an application library, or as part of a standalone application using GPU hardware or using dedicated hardware. In summary, the decoder system (700) is configured to receive encoded data as part of a bitstream (705), decode the encoded data to reconstruct speech, and store the reconstructed speech (775) for output. The decoder system (700) includes various components that are implemented using one or more processors and are configured to decode the encoded data to reconstruct speech.

[0148] The decoder system (700) temporarily stores the encoded data in an input buffer implemented in a memory of the decoder system (700) and configured to receive the encoded data as part of a bitstream (705). From time to time, the encoded data is read from an output buffer by a demultiplexer ("DEMUX") (711) and one or more entropy decoders (710). The decoder system (700) temporarily stores reconstructed speech (775) in an output buffer implemented in a memory of the decoder system (300) and configured to store the reconstructed speech (775) for output. Periodically, sample values ​​in an output frame of the reconstructed speech (775) are read from the output buffer. In some example implementations, for each packet of encoded data that arrives as part of the bitstream (705), the decoder system (700) decodes and buffers subframe parameters (e.g., performs an entropy decoding operation to recover parameter values) as soon as the packet arrives. When an output frame is requested from the decoder system (700), the decoder system (700) decodes one subframe at a time until sufficient output sample values ​​for reconstructed speech (775) are generated and stored in an output buffer to satisfy the request. This timing of the decoding operation has several advantages. By decoding subframe parameters as packets arrive, the processor load for the decoding operation is reduced when an output frame is requested. This can reduce the risk of output buffer underflow (data cannot be played back in time due to processing constraints) and allow for tighter scheduling of operations. On the other hand, decoding subframes "on demand" in response to requests increases the likelihood that the received packets contain encoded data for those subframes. Alternatively, the decoding operations of the decoder system (700) can follow different timings.

[0149] exist Figure 7 In the embodiment of the present invention, the decoder system (700) uses variable length frames. Alternatively, the decoder system (700) can use uniform length frames.

[0150] In some example implementations, the decoder system (700) can reconstruct ultra-wideband speech (from an input signal sampled at 32kHz) or wideband speech (from an input signal sampled at 16kHz). In the decoder system (700), if the reconstructed speech (775) is for a wideband signal, processing for the high frequency band by the residual decoder (720), high frequency band synthesis filter (752), etc. can be skipped, and the filter bank (760) can be bypassed.

[0151] In a decoder system (700), a DEMUX (711) is configured to read encoded data from a bitstream (705) and parse parameters from the encoded data. In conjunction with the DEMUX (711), one or more entropy decoders (710) are configured to entropy decode the parsed parameters to produce quantization parameters (712, 714-719, 737, 738) used by other components of the decoder system (700). For example, the parameters decoded by the entropy decoder (710) may be entropy decoded using a range decoder that uses a cumulative quality function that represents the probability of the value of the decoded parameter. Alternatively, the quantization parameters (712, 714-719, 737, 738) decoded by the entropy decoder (710) are entropy decoded in some other manner.

[0152] The residual decoder (720) is configured to decode the residual values ​​(727, 728) on a subframe-by-subframe basis or alternatively on a frame-by-frame basis or some other basis. In particular, the residual decoder (720) is configured to decode a set of phase values ​​and reconstruct the residual values ​​(727, 728) based at least in part on the set of phase values. Figure 8 The stages of decoding of residual values ​​(727, 728) in the residual decoder (720) are shown.

[0153] In some places, the residual decoder (720) includes separate processing paths for residual values ​​in different frequency bands. Figure 8 In the embodiment of the present invention, at least after reconstructing or generating parameters for each frequency band, the low-band residual value (727) and the high-band residual value (728) are decoded in a separate path. In some example implementations, for ultra-wideband speech, the residual decoder (720) produces the low-band residual value (727) and the high-band residual value (728). However, for wideband speech, the residual decoder (720) produces the residual value (727) for one frequency band. Alternatively (for example, if the filter bank (760) combines more than two frequency bands), the residual decoder (720) can decode the residual values ​​for more frequency bands.

[0154] In the decoder system (700), residual values ​​(727, 728) are reconstructed using a model suitable for voiced content or a model suitable for unvoiced content. The residual decoder (720) includes a stage of decoding in a path for voiced speech and a stage of decoding in a path for unvoiced speech (not shown). The residual decoder (720) is configured to select one of the paths based on voiced decision information (712) provided to the residual decoder (720).

[0155] If the residual value (727, 728) is for voiced speech, the complex amplitude value is reconstructed using the amplitude decoder (810), phase decoder (820) and restoration / smoothing module (840). The complex amplitude value is then transformed by the inverse frequency transformer (850) to produce a time domain residual value that is processed by the noise addition module (855).

[0156] The amplitude decoder (810) is configured to reconstruct a set of amplitude values ​​(812) for one or more subframes of a frame using a quantization parameter (715) for the set of amplitude values ​​(812). Depending on the implementation, and the inverse operation typically performed during encoding (with some loss due to quantization), the amplitude decoder (810) can decode the set of amplitude values ​​(715) for each subframe using any of a variety of combinations of inverse quantization operations (e.g., inverse vector quantization, inverse scalar quantization), prediction operations, and domain conversion operations (e.g., conversion from the frequency domain).

[0157] The phase decoder (820) is configured to decode one or more sets of phase values ​​(822) using a quantization parameter (716) for a set of phase values ​​(822). The set of phase values ​​can be for a low frequency band or for an entire range of reconstructed speech (755). The phase decoder (820) can decode a set of phase values ​​(822) for each subframe or a set of phase values ​​(822) for a frame. In this case, the set of phase values ​​(822) for a frame can represent phase values ​​determined based on an average or otherwise aggregated complex amplitude value for the subframes of the frame (as described in Section III), and the decoded phase values ​​(822) for each subframe of the frame can be repeated. Section VI explains the operation of the phase decoder (820) in detail. In particular, the phase decoder (820) can be configured to perform operations to reconstruct at least some of the set of phase values ​​(e.g., lower frequency phase values, phase values ​​for an entire range, or phase values ​​for some other range) using weightings of linear components and basis functions. In this case, the count of coefficients weighted by the basis function can be based at least in part on a target bit rate for the encoded data. In addition, the phase decoder (820) can be configured to perform operations to synthesize a second subset of the set of phase values ​​(e.g., higher frequency phase values) using at least some of the first subset of the set of phase values ​​(e.g., lower frequency phase values), wherein each phase value of the second subset has a frequency higher than a cutoff frequency. The cutoff frequency can be determined at least in part based on the target bit rate for the encoded data, the pitch period information (722), and / or other criteria. Depending on the cutoff frequency, the higher frequency phase values ​​can span the high frequency band, or the higher frequency phase values ​​can span a portion of the low frequency band and the high frequency band.

[0158] The recovery and smoothing module (840) is configured to reconstruct complex amplitude values ​​based at least in part on the set of amplitude values ​​(812) and the set of phase values ​​(814). For example, by taking the complex exponential and multiplying by the harmonic amplitude value (812), the set of the phase value (814) of the frame is converted to the complex domain to create the complex amplitude value for the low frequency band. The complex amplitude value for the low frequency band can be repeated as the complex amplitude value for the high frequency band. Then, using the high frequency band energy level (714) that is dequantized, the high frequency band complex amplitude value can be scaled so that they are closer to the energy of the high frequency band. Alternatively, the recovery and smoothing module (840) can generate complex amplitude values ​​for more frequency bands (for example, if the filter bank (760) combines more than two frequency bands) or a single frequency band (for example, if the filter bank (760) is bypassed or omitted).

[0159] The restoration and smoothing module (840) is also configured to adaptively smooth the complex amplitude values ​​based at least in part on the pitch period information (722) and / or differences in amplitude values ​​across boundaries. For example, the complex amplitude values ​​are smoothed across subframe boundaries (including subframe boundaries that are also frame boundaries).

[0160] For smoothing across subframe boundaries, the amount of smoothing may depend on the pitch frequency in adjacent subframes. Pitch period information (722) may be signaled per frame and indicate, for example, the subframe length or other frequency information for a subframe. The recovery and smoothing module (840) may be configured to use the pitch period information (722) to control the amount of smoothing. In some implementations, if there is a large variation in pitch frequency between subframes, the complex amplitude values ​​will not be smoothed much because there is real signal variation. On the other hand, if the pitch frequency variation between subframes is not large, the complex amplitude values ​​will be smoother because there is no real signal variation. This smoothing tends to make the complex amplitude values ​​more periodic, thereby reducing noisy speech.

[0161] For smoothing across subframe boundaries, the amount of smoothing may also depend on the amplitude values ​​on either side of the boundary between subframes. In some example implementations, if there is a large change in amplitude values ​​across the boundary between subframes, the complex amplitude values ​​may not be smoothed much because there is real signal variation. On the other hand, if there is not much change in amplitude values ​​across the subframe boundary, the complex amplitude values ​​may be smoothed more because there is no real signal variation. Additionally, in some example implementations, the complex amplitude values ​​may be smoothed more at lower frequencies and less at higher frequencies.

[0162] Alternatively, smoothing of the complex amplitude values ​​may be omitted.

[0163] The inverse frequency converter (850) is configured to apply an inverse frequency transform to the complex amplitude values. This will produce low-band residual values ​​(857) and high-band residual values ​​(858). In some example implementations, the inverse 1D frequency transform is a variant of the inverse Fourier transform (e.g., inverse DFT, inverse FFT) without overlap or alternatively with overlap. Alternatively, the inverse 1D frequency transform is some other inverse frequency transform that produces time domain residual values ​​based on the complex amplitude values. The inverse frequency converter (850) can produce residual values ​​for more frequency bands (e.g., if the filter bank (760) combines more than two frequency bands) or a single frequency band (e.g., if the filter bank (760) is bypassed or omitted).

[0164] The correlation / sparseness decoder (830) is configured to decode the correlation value (837) and the sparsity value (838) using one or more quantization parameters (717) for the correlation value (837) and the sparsity value (838). In some example implementations, the correlation value (837) and the sparsity value (838) are recovered using a vector quantization index that jointly represents the correlation value (837) and the sparsity (838). Examples of correlation values ​​and sparsity values ​​are described in Section III. Alternatively, the correlation value (837) and the sparsity value (838) may be recovered by other means.

[0165] The noise adding module (855) is configured to selectively add noise to the residual values ​​(857, 858) based at least in part on the correlation value (837) and the sparsity value (838). In many cases, the noise addition can reduce the metallic sound in the reconstructed speech (775).

[0166] In general, the correlation value (837) may be used to control how much noise, if any, is added to the residual values ​​(857, 858). In some example implementations, if the correlation value (837) is high (the signal is harmonic), less noise is added to the residual values ​​(857, 858). In this case, the model used to encode / decode voiced content tends to work well. On the other hand, if the correlation value (837) is low (the signal is not harmonic), more noise is added to the residual values ​​(857, 858). In this case, the model used to encode / decode voiced content does not work well (e.g., because the signal is not periodic, so averaging is not appropriate).

[0167] In general, the sparsity value (838) can be used to control where the noise is added (e.g., how the added noise is distributed around the pitch pulse). Typically, noise is added where it improves the perceived quality. For example, noise is added at strong non-zero pitch pulses. For example, if the energy of the residual values ​​(857, 858) is sparse (indicated by a high sparsity value), noise is added around the strong non-zero pitch pulse instead of the remaining residual values ​​(857, 858). On the other hand, if the energy of the residual values ​​(857, 858) is not sparse (indicated by a low sparsity value), the noise is more evenly distributed among the residual values ​​(857, 858). In addition, in general, more noise can be added at higher frequencies than at lower frequencies. For example, increasing amounts of noise are added at higher frequencies.

[0168] exist Figure 8 , the noise adding module (855) adds noise to the residual values ​​for two frequency bands. Alternatively, the noise adding module (855) can add noise to the residual values ​​for more frequency bands (e.g., if the filter bank (760) combines more than two frequency bands) or for a single frequency band (e.g., if the filter bank (760) is bypassed or omitted).

[0169] If the residual values ​​(727, 728) are for unvoiced speech, the residual decoder (720) includes one or more separate processing paths (not shown) for the residual values. Depending on the implementation, and the inverse operations typically performed during encoding (with some loss due to quantization), the unvoiced speech path in the residual decoder (720) can decode the residual values ​​(727, 728) for unvoiced speech using any of a variety of combinations of inverse quantization operations (e.g., inverse vector quantization, inverse scalar quantization), energy / noise substitution operations, and filtering operations.

[0170] exist Figure 7 and Figure 8 , the residual encoder (720) is shown as processing low-band residual values ​​(727) and high-band residual values ​​(728). Alternatively, the residual encoder (380) can process residual values ​​in more bands or a single band (e.g., if the filter bank (760) is bypassed or omitted).

[0171] return Figure 7 In the decoder system (700), the LPC recovery module (740) is configured to reconstruct the LP coefficients for each frequency band (or all reconstructed speech if there are no multiple frequency bands). Depending on the implementation, and the inverse operation usually performed during encoding (with some loss due to quantization), the LPC recovery module (740) can reconstruct the LP coefficients using any of various combinations of inverse quantization operations (e.g., inverse vector quantization, inverse scalar quantization), prediction operations, and domain conversion operations (e.g., conversion from the LSF domain).

[0172] Figure 7 The decoder system (700) includes two synthesis filters (360, 362), such as filter A -1 (z). The synthesis filters (750, 752) are configured to filter the residual values ​​(727, 728) according to the reconstructed LP coefficients. The filtering converts the low-band residual values ​​(727) and the high-band residual values ​​(728) to the speech domain, producing reconstructed speech for the low-band (757) and reconstructed speech for the high-band (758). Figure 7 In the embodiment of the present invention, the low-band synthesis filter (750) is configured to filter the low-band residual values ​​(727) according to the recovered low-band LP coefficients, which are for the entire range of reconstructed speech (775) if the filter bank (760) is bypassed. The high-band synthesis filter (752) is configured to filter the high-band residual values ​​(728) according to the recovered high-band LP coefficients. If the filter bank (760) is configured to combine more frequency bands into the reconstructed speech (775), the decoder system (700) may include more synthesis filters for each frequency band. If the filter bank (760) is omitted, the decoder system (700) may include a single synthesis filter for the entire range of reconstructed speech (775).

[0173] The filter bank (760) is configured to combine a plurality of frequency bands (757, 758) generated by filtering the residual values ​​(727, 728) in the corresponding frequency bands by the synthesis filters (750, 752) to produce reconstructed speech (765). Figure 7 In the embodiment of the present invention, the filter bank (760) is configured to combine two equal frequency bands - a low frequency band (757) and a high frequency band (758). For example, if the reconstructed speech (775) is used for an ultra-wideband signal, the low frequency band (757) may include speech in the range of 0-8kHz, and the high frequency band (758) may include speech in the range of 8-16kHz. Alternatively, the filter bank (760) combines more frequency bands and / or unequal frequency bands to synthesize the reconstructed speech (775). Depending on the implementation, the filter bank (760) may use any of various types of IIR or other filters.

[0174] The post-processing filter (770) is configured to selectively filter the reconstructed speech (765) to produce the reconstructed speech (775) for output. Alternatively, the post-processing filter (770) can be omitted and the reconstructed speech (765) can be output from the filter bank (760). Alternatively, if the filter bank (760) is also omitted, the output from the synthesis filter (750) provides the reconstructed speech for output.

[0175] Depending on the implementation and the type of compression desired, modules of the decoder system (700) may be added, omitted, split into multiple modules, combined with other modules, and / or replaced with similar modules. In alternative embodiments, decoders having different modules and / or other configurations of modules perform one or more of the described techniques. Specific embodiments of decoders typically use variants or supplementary versions of the decoder system (700). The relationships shown between modules within the decoder system (700) indicate the general flow of information in the decoder system (700); for simplicity, other relationships are not shown.

[0176] VI. Example of Phase Reconstruction in a Speech Decoder

[0177] This section describes innovations in phase reconstruction during speech decoding. In many cases, these innovations can improve the performance of speech codecs in low bitrate scenarios, even when the encoded data is transmitted over a network that suffers from insufficient bandwidth or transmission quality issues. The innovations described in this section fall into two main groups of innovations that can be used individually or in combination.

[0178] According to the first group of innovations, when the speech decoder decodes a set of phase values, the speech decoder uses a weighted sum of linear components and basis functions to reconstruct at least some of the set of phase values. Using the weighted sum of linear components and basis functions, the phase value can be represented in a compact and flexible manner, which can improve the rate distortion performance under low bit rate scenarios. The speech decoder can decode a set of coefficients weighted to the basis functions, and then use the set of coefficients when reconstructing the phase value. The speech decoder can also decode and use offset values, slope values ​​and / or other parameters that define the linear components. The count of the coefficients weighted to the basis functions can be predefined and constant. Alternatively, in order to provide the flexibility of encoding / decoding speech at different target bit rates, the count of the coefficients can depend on the target bit rate.

[0179] According to the second group of innovations, when the speech decoder decodes a set of phase values, the speech decoder reconstructs lower frequency phase values ​​(which are below the cutoff frequency) and then uses at least some of the lower frequency phase values ​​to synthesize higher frequency phase values ​​(which are above the cutoff frequency). By synthesizing higher frequency phase values ​​based on the reconstructed lower frequency phase values, the speech decoder can efficiently reconstruct a full range of phase values, which can improve rate distortion performance in low bit rate scenarios. The cutoff frequency can be predefined and unchanged. Alternatively, in order to provide flexibility in encoding / decoding speech at different target bit rates or encoding / decoding speech with different characteristics, the speech decoder can determine the cutoff frequency based at least in part on the target bit rate for the encoded data, pitch period information, and / or other criteria.

[0180] A. Use the weighted sum of basis functions to reconstruct the phase value

[0181] When decoding a set of phase values, the speech decoder can reconstruct the set of phase values ​​using the weighted sum of the basis functions. For example, when the basis function is a sine function, the quantized set of phase values ​​P i is defined as:

[0182] Where 0≤I≤I-1

[0183] Where N is the count of the quantized coefficients (hereinafter referred to as “coefficients”) weighted by the basis functions, and K n is one of the coefficients, and I is the count of complex amplitude values ​​(and therefore the frequency bins that have phase values). In some example implementations, the basis functions are sine functions, but the basis functions may alternatively be cosine functions or some other type of basis functions. The set of phase values ​​reconstructed from the quantized values ​​may be lower frequency phase values ​​(as described in the previous section, if higher frequency phase values ​​are discarded), a full range of phase values ​​(if higher frequency phase values ​​are not discarded), or some other range of phase values. The set of phase values ​​encoded may be a set of phase values ​​for a frame or a set of phase values ​​for a subframe of a frame.

[0184] The final quantized set of phase values ​​P final_i is the quantized set P of phase values i (weighted sum of basis functions) and a linear component. The linear component can be defined as a×i+b, where a represents the slope value and b represents the offset value. For example, P final_i =P i +a×i+b. Alternatively, other and / or additional parameters may be used to define the linear component.

[0185] To reconstruct the set of phase values, the speech decoder performs the quantized coefficients K n The set is entropy decoded. Coefficient K n The basis functions and are weighted. In some example implementations, K n The values ​​of are quantized to integer values. For example, the coefficient K n The value is an integer value with the following size restrictions.

[0186] If n=1, |K n |≤5

[0187] If n = 2, |K n |≤3

[0188] If n = 3, |K n |≤2

[0189] If n ≥ 4, |K n |≤1.

[0190] Alternatively, the coefficient K can be limited according to other constraints n The value of .

[0191] Although the coefficient K n The count N can be predefined and unchanged, but the coefficient K can be adaptively changed n To provide flexibility in encoding / decoding speech at different target bit rates, the speech decoder may determine the coefficient K based at least in part on the target bit rate for the encoded data. n For example, depending on the target bit rate, the speech decoder can set the coefficient K n The count N of complex amplitude values ​​is determined as a fraction of the count I of complex amplitude values ​​(and thus the count of frequency bins with phase values). In some example implementations, the range of the fraction is from 0.29 to 0.51. Alternatively, the fraction may have some other range. If the target bit rate is high, the coefficient K n The count N is high (i.e., the coefficient K n more). If the target bit rate is lower, the coefficient K n The count N is low (i.e., the coefficient K n less).

[0192] The speech decoder can determine the coefficient K using a lookup table that associates different coefficient counts with different target bit rates. n Alternatively, the speech decoder may determine the coefficient K in some other way according to rules, logic, etc. n The count N, as long as the coefficient K n The count N of is similarly set in the corresponding speech encoder. n The count N may also depend on the average pitch frequency and / or other criteria. The speech decoder may determine the coefficient K frame by frame. n The count N may, for example, vary with the average pitch frequency, or on some other basis.

[0193] In addition to the reconstruction coefficient K n In addition to the set of basis functions, the speech decoder also decodes parameters for the linear component. For example, the speech decoder decodes the offset value b and the slope value a used to reconstruct the linear component. The offset value b represents the linear phase (offset) of the start of the weighted sum of the basis functions, so that the result P final_i The slope value a represents the overall slope and is used as a multiplier or scaling factor for the linear component, so that the result P final_i Closer to the original phase signal. After entropy decoding the offset value, slope value and / or other value, the speech decoder inverse quantizes the value. Alternatively, the speech decoder can decode other and / or additional parameters for the weighted sum of the linear component or basis function.

[0194] In some example implementations, a residual decoder in a speech decoder determines a count of coefficients for weighting a basis function based at least in part on a target bit rate for the encoded data. The residual decoder decodes the set of coefficients, the offset value, and the slope value. The residual decoder then uses the set of coefficients, the offset value, and the slope value to reconstruct an approximation of the phase value. The residual decoder applies the coefficients K n To obtain a weighted sum of basis functions, for example, add multiplication by the coefficient K n The residual decoder then applies the slope value and the offset value to reconstruct the linear component, for example, multiplying the frequency by the slope value and adding the offset value. Finally, the residual decoder combines the linear component with the weighted sum of the basis functions.

[0195] B. Synthesize high frequency phase value

[0196] When decoding a set of phase values, using at least some of the lower frequency phase values, the speech decoder can reconstruct lower frequency phase values ​​below the cutoff frequency and synthesize higher frequency phase values ​​above the cutoff frequency. The set of decoded phase values ​​can be a set of phase values ​​for a frame, or a set of phase values ​​for a subframe of a frame. The lower frequency phase values ​​can be reconstructed using a weighted sum of basis functions (as described in the previous section) or otherwise reconstructed. The synthesized higher frequency phase values ​​can partially or completely replace the higher frequency phase values ​​discarded during encoding. Alternatively, the synthesized higher frequency phase values ​​can extend the frequency of the discarded phase values ​​to a higher frequency.

[0197] Although the cut-off frequency can be predefined and unchanged, it is advantageous to adaptively change the cut-off frequency. For example, in order to provide the flexibility of encoding / decoding speech with different target bit rates or encoding / decoding speech with different characteristics, the speech decoder can determine the cut-off frequency based on the target bit rate and / or pitch period information of the encoded data at least in part, which can indicate the average pitch frequency. For example, if the frame includes high-frequency speech content, a higher cut-off frequency is used. On the other hand, if the frame only includes low-frequency speech content, a lower cut-off frequency is used. For the target bit rate, if the target bit rate is lower, the cut-off frequency is lower. If the target bit rate is higher, the cut-off frequency is higher. In some example implementations, the cut-off frequency falls within the range of 962Hz (for low target bit rate and low average pitch frequency) to 4160Hz (for high target bit rate and high average pitch frequency). Alternatively, the cut-off frequency can change within some other range and / or depend on other standards.

[0198] The speech decoder can determine the cut-off frequency frame by frame. For example, the speech decoder can determine the cut-off frequency for the frame, because the average pitch frequency changes frame by frame, even if the target bit rate changes less frequently. Alternatively, the cut-off frequency can change on some other basis and / or depend on other standards. The speech decoder can use a look-up table that associates different cut-off frequencies with different target bit rates and average pitch frequencies to determine the cut-off frequency. Or, the speech decoder can determine the cut-off frequency in other ways according to rules, logic, etc., as long as the cut-off frequency is similarly set on the corresponding speech encoder.

[0199] Depending on the implementation, the phase value exactly at the cutoff frequency may be considered as one of the higher frequency phase values ​​(synthesized) or as one of the lower frequency phase values ​​(reconstructed from the quantization parameter in the bitstream).

[0200] The higher frequency phase values ​​may be synthesized in a variety of ways, depending on the implementation. Figure 9a-9c Features (901-903) of an example method for synthesizing higher frequency phase values ​​having a frequency higher than a cutoff frequency are shown. Figure 9a-9c In the simplified example of , the lower frequency phase values ​​include 12 phase values: 5 6 6 5 7 8 9 10 11 10 12 13.

[0201] To synthesize higher frequency phase values, the speech decoder identifies a range of lower frequency phase values. In some example implementations, the speech decoder identifies the upper half of the frequency range of the reconstructed lower frequency phase values, possibly adding or removing phase values ​​to obtain even-numbered harmonics. Figure 9a In the simplified example of , the upper half of the lower frequency phase values ​​includes six phase values: 9 10 11 10 12 13. Alternatively, the speech decoder may recognize some other range of lower frequency phase values ​​that has been reconstructed.

[0202] The speech decoder repeats phase values ​​based on lower frequency phase values ​​within the identified range, starting at the cutoff frequency and continuing through the last phase value in the set of phase values. The lower frequency phase values ​​within the identified range may be repeated one or more times. If the repetition of the lower frequency phase values ​​within the identified range is not completely aligned with the end of the phase spectrum, the lower frequency phase values ​​within the identified range may be partially repeated. Figure 9b In , lower frequency phase values ​​within the identified range are repeated to generate higher frequency phase values ​​until the last phase value. Simply repeating lower frequency phase values ​​within the identified range results in a sudden transition in the phase spectrum, however, such a transition is not found in the original phase spectrum in typical cases. Figure 9bIn the example, the repetition of six phase values: 9 10 11 10 12 13 results in two sudden drops in phase value from 13 to 9: 5 6 6 5 7 8 9 10 11 10 12 13 9 10 11 10 12 13 9 10 11 10 12 13.

[0203] To address this issue, the speech decoder may determine (as a pattern) the differences between adjacent phase values ​​within an identified range of lower frequency phase values. That is, for each phase value within the identified range of lower frequency phase values, the speech decoder may determine the difference relative to the previous phase value (in order of frequency). The speech decoder may then repeat the phase value differences, starting at the cutoff frequency and continuing through the last phase value in the set of phase values. The phase value differences may be repeated one or more times. If the repetition of the phase value differences is not completely aligned with the end of the phase spectrum, the phase value differences may be partially repeated. After repeating the phase value differences, the speech decoder may integrate the phase value differences between adjacent phase values ​​to generate a higher frequency phase value. That is, for each higher frequency phase value, starting at the cutoff frequency, the speech decoder may add the corresponding phase value difference to the previous phase value (in order of frequency). Fig.9c , for example, for the six phase values ​​in the identified range (9 10 11 10 12 13), the phase value differences are +1 +1 +1 -1 +2 +1. The phase value differences are repeated twice, from the cutoff frequency to the end of the phase spectrum: 5 6 6 5 7 8 9 10 11 10 1213 +1 +1 +1 -1 +2 +1 +1 +1 +1 -1 +2 +1. The phase value differences are then integrated to generate higher frequency phase values: 5 6 6 5 7 8 9 10 11 10 12 13 14 15 16 15 17 18 19 20 21 20 22 23.

[0204] Like this, speech decoder can reconstruct the phase value for the reconstructed speech of whole scope.For example, if the speech of reconstruction is the ultra-wideband speech that is divided into low-frequency band and high-frequency band, then speech decoder can use the phase value of synthesizing part low-frequency band (higher than cut-off frequency) and whole high-frequency bands with the reconstruction phase value below the cut-off frequency in the low-frequency band.Alternatively, speech decoder can use the reconstruction phase value below the cut-off frequency in the low-frequency band, only synthesize the phase value of part low-frequency band (higher than cut-off frequency).

[0205] Alternatively, in some other way, the speech decoder may use at least some of the reconstructed lower frequency phase values ​​to synthesize higher frequency phase values.

[0206] C. Example Techniques for Phase Reconstruction in Speech Decoding

[0207] Fig.10a A general technique for speech decoding is shown (1001), which may include, for example, Fig.10b , Fig.10c or Fig.10d Additional operations shown. Fig.10b A general technique for speech decoding is shown (1002), including reconstructing a phase value represented using a weighted sum of linear components and basis functions. Fig.10c A general technique for speech decoding is shown (1003), including synthesizing phase values ​​having frequencies above a cutoff frequency. Fig.10d A more specific example technique (1004) for speech decoding is shown, including reconstructing lower frequency phase values ​​(which are below a cutoff frequency) represented using a weighted sum of linear components and basis functions, and synthesizing higher frequency phase values ​​(which are above the cutoff frequency). Techniques (1001-1004) can be referred to in reference Figure 7 and Figure 8 The described speech decoder may be performed by another speech decoder.

[0208] refer to Fig.10a The speech decoder receives (1010) the encoded data as part of a bitstream. For example, an input buffer implemented in a memory of a computer system is configured to receive and store the encoded data as part of a bitstream.

[0209] The speech decoder decodes (1020) the encoded data to reconstruct the speech. As part of decoding (1020), the speech decoder decodes the residual values ​​and filters the residual values ​​according to the linear prediction coefficients. For example, the residual values ​​can be the frequency bands of the reconstructed speech that are later combined by the filter bank. Alternatively, the residual values ​​can be used for reconstructed speech that is not in multiple frequency bands. In any case, filtering will produce reconstructed speech that can be further processed. Figure 10b-Figure 10d An example of operations that may be performed as part of the decoding (1020) stage is shown.

[0210] The speech decoder stores (1040) the reconstructed speech for output. For example, an output buffer implemented in a memory of a computer system is configured to store the reconstructed speech for output.

[0211] refer to Fig.10b, the speech decoder decodes (1021) a set of phase values ​​for the residual values. The set of phase values ​​can be for a subframe of residual values ​​or a frame of residual values. When decoding (1021) the set of phase values, the speech decoder reconstructs at least some of the set of phase values ​​using a weighted sum of a linear component and a basis function. For example, the basis function is a sine function. Alternatively, the basis function is a cosine function or some other basis function. The phase value represented as a weighted sum of basis functions can be a lower frequency phase value (if the higher frequency phase value has been discarded), a whole range of phase values, or some other range of phase values.

[0212] In order to decode the set of phase values, the speech decoder can decode the set of coefficients weighted to the basis function, and decode the offset value and slope value of the parameterized linear component, and then use the set of coefficients, the offset value and the slope value as the reconstruction part of at least some of the set of phase values. Alternatively, the speech decoder can use the set of coefficients weighted to the basis function and some other combinations of parameters defining the linear component (e.g., no offset value or no slope value, or using one or more other parameters) to decode the set of phase values. Or, in combination with the set of coefficients weighted to the basis function and the linear component, the speech decoder can still use other parameters to reconstruct at least some of the set of phase values. The speech decoder can determine the count of the coefficients weighted to the basis function based at least in part on the target bit rate (as described above) and / or other criteria for the encoded data.

[0213] The speech decoder reconstructs (1035) residual values ​​based at least in part on the set of phase values. For example, if the set of phase values ​​is for a frame, the speech decoder repeats the set of phase values ​​for one or more subframes of the frame. Then, based at least in part on the repeated set of phase values ​​for each subframe, the speech decoder reconstructs the complex amplitude values ​​for each subframe. Finally, the speech decoder applies an inverse frequency transform to the complex amplitude values ​​for each subframe. The inverse frequency transform can be a variant of an inverse Fourier transform (e.g., inverse DFT, inverse FFT), or some other inverse frequency transform that reconstructs the residual values ​​based on the complex amplitude values. Alternatively, the speech decoder reconstructs the residual values ​​in some other way, for example, by reconstructing the phase values ​​for the entire frame that have not yet been divided into subframes, and applying the inverse frequency transform to the complex amplitude values ​​for the entire frame.

[0214] refer to Fig.10c, the speech decoder decodes (1025) a set of phase values. The set of phase values ​​can be for a subframe of residual values ​​or a frame of residual values. When decoding (1025) the set of phase values, the speech decoder reconstructs a first subset of the set of phase values ​​(e.g., lower frequency phase values) and uses at least some of the first subset of phase values ​​to synthesize a second subset of the set of phase values ​​(e.g., higher frequency phase values). Each phase value in the second subset of phase values ​​has a frequency above a cutoff frequency. The speech decoder can determine the cutoff frequency based at least in part on a target bit rate for the encoded data, pitch period information, and / or other criteria. Depending on the implementation, the phase value that is exactly at the cutoff frequency can be considered as one of the higher frequency phase values ​​(synthesized) or one of the lower frequency phase values ​​(reconstructed based on a quantization parameter in the bitstream).

[0215] When using at least some of the first subset of phase values ​​to synthesize the second subset of phase values, the speech decoder can determine a pattern within the range of the first subset and then repeat the pattern above the cutoff frequency. For example, the speech decoder can identify a range and then determine adjacent phase values ​​within the range as the pattern. In this case, adjacent phase values ​​within the range are repeated after the cutoff frequency to generate the second subset. Or, as another example, the speech decoder can identify a range and then determine the difference between adjacent phase values ​​within the range as the pattern. In this case, the speech decoder can repeat the difference of phase values ​​above the cutoff frequency and then integrate the difference between adjacent phase values ​​after the cutoff frequency to determine the second subset.

[0216] The speech decoder reconstructs (1035) the residual value based at least in part on the set of phase values. For example, the speech decoder reconstructs the residual value, as described in reference Fig.10b described.

[0217] exist Fig.10d In the example technique (1004), when decoding a set of phase values ​​for residual values, the speech decoder reconstructs lower frequency phase values ​​(which are below the cutoff frequency) represented as a weighted sum of basis functions, and synthesizes higher frequency phase values ​​(which are above the cutoff frequency).

[0218] The speech decoder decodes (1022) the set of coefficients, the offset value and the slope value. The speech decoder reconstructs (1023) a lower frequency phase value using a weighted sum of the linear component and the basis function, which is weighted according to the set of coefficients and then adjusted according to the linear component (based on the slope value and the offset).

[0219] To synthesize the higher frequency phase value, the speech decoder determines (1024) a cutoff frequency based on the target bit rate and / or pitch period information. The speech decoder determines (1026) a pattern of phase value differences within a range of lower frequency phase values. The speech decoder repeats (1027) the pattern above the cutoff frequency and then integrates (1028) the phase value differences between adjacent phase values ​​to determine the higher frequency phase value. Depending on the implementation, the phase value exactly at the cutoff frequency can be considered as one of the higher frequency phase values ​​(synthesized) or one of the lower frequency phase values ​​(reconstructed according to the quantization parameter in the bitstream).

[0220] To reconstruct the residual values, the speech decoder (1029) repeats a set of phase values ​​for a subframe of a frame. Then, based at least in part on the repeated set of phase values, the speech decoder reconstructs (1030) complex amplitude values ​​for the subframes. Finally, the speech decoder applies (1031) an inverse frequency transform to the complex amplitude values ​​for each subframe, producing a residual value.

[0221] In view of the many possible embodiments to which the principles of the disclosed invention may be applied, it should be appreciated that the illustrated embodiments are merely preferred examples of the invention and should not be considered to limit the scope of the invention. Instead, the scope of the invention is defined by the appended claims. Therefore, we claim all that falls within the scope and spirit of these claims as our invention.

Claims

1. A method for performing the operation of a speech decoder, comprising: receiving the encoded data as part of a bit stream; Decoding the encoded data to reconstruct speech, comprising: Decode the residual value, including: decoding a set of phase values, including reconstructing at least some of the set of phase values ​​using a weighted sum of a linear component and a basis function; and reconstructing the residual value based at least in part on the set of phase values; and filtering the residual values ​​according to linear prediction coefficients; and The reconstructed speech is stored for output.

2. The method according to claim 1, wherein: Reconstructing the residual value includes: Repeating a set of phase values ​​for one or more subframes of a current frame; reconstructing a complex amplitude value for each subframe based at least in part on the repeated set of phase values ​​for each subframe; An inverse frequency transform is applied to the complex amplitude values ​​for the respective subframes.

3. The method according to claim 1, wherein: The reconstructed phase values ​​are a first subset of the set of phase values, and wherein decoding the set of phase values ​​further comprises synthesizing a second subset of the set of phase values ​​using at least some of the phase values ​​in the first subset, each phase value in the second subset having a frequency above a cutoff frequency.

4. The method according to claim 1, wherein: The basis functions are sinusoidal functions.

5. The method according to claim 1, wherein: Decoding the set of phase values ​​further comprises: decoding a set of coefficients that weight the basis functions; decoding an offset value and a slope value that parameterize the linear component; and The set of coefficients, the offset value, and the slope value are used as part of reconstructing at least some of the set of phase values.

6. The method according to claim 1, wherein: Decoding the set of phase values ​​further includes determining a count of coefficients weighting the basis function based at least in part on a target bit rate for the encoded data.

7. The method according to claim 1, wherein: Reconstructing the residual value includes: reconstructing complex amplitude values ​​for one or more subframes based at least in part on the set of phase values; adaptively smoothing complex amplitude values ​​for respective subframes based at least in part on one or more of pitch period information and differences in amplitude values ​​across frame boundaries and subframe boundaries; applying an inverse frequency transform to the smoothed complex amplitude values ​​for said respective subframes; and Noise is selectively added to the residual value based at least in part on the correlation value and the sparsity value.

8. One or more computer readable media having stored thereon computer executable instructions for causing, when programmed, one or more processors to perform operations of a speech decoder, said operations comprising the method according to any of the preceding claims.

9. A computer system comprising: an input buffer implemented in a memory of the computer system and configured to receive the encoded data as part of a bitstream; A speech decoder implemented using one or more processors of the computer system, configured to decode the encoded data to reconstruct speech, the speech decoder comprising: A residual decoder configured to decode a residual value, wherein the residual decoder is configured to: decoding a set of phase values, including performing an operation to reconstruct a first subset of the set of phase values ​​using a weighted sum of linear components and a basis function; and reconstructing the residual value based at least in part on the set of phase values; and one or more synthesis filters configured to filter the residual values ​​according to linear prediction coefficients; and An output buffer configured to store the reconstructed speech for output.

10. The computer system according to claim 9, wherein: To decode the set of phase values, the residual decoder is further configured to determine the cutoff frequency based at least in part on a target bit rate and / or pitch period information for the encoded data.

11. The computer system according to claim 9, wherein: To decode the set of phase values, the residual decoder is further configured to perform operations for: determining a count of coefficients for weighting the basis function based at least in part on a target bit rate for the encoded data; a set of decoding coefficients; decoding an offset value and a slope value that parameterize the linear component; as well as The first subset is reconstructed using the set of coefficients, the offset value, and the slope value.

Citation Information

Patent Citations

  • 1.2kb / s low-rate speech encoding and decoding method based on mixed excitation linear prediction MELP

    CN105118513A

  • Selective phase compensation in high band coding

    CN105765655A

  • Closed-loop multimode mixed-domain linear prediction (MDLP) speech coder

    CN1437747A

  • Method and apparatus for encoding speech excitation waveforms through analysis of derivative discontinues

    US5794186A