Voice signal encoding and decoding method, device, and codec system
Abstract
A voice signal encoding and decoding method, device, and codec system are provided. The coding method includes: encoding an input voice signal to obtain a broadband code stream, where the broadband code stream includes a core layer bit stream and an extension enhancement layer bit stream ( 101 ); compressing the core layer bit stream to obtain a compressed code stream ( 102 ); and packing the compressed code stream and the extension enhancement layer bit stream to obtain a packed code stream ( 103 ). The core layer bit stream compressed, and the compressed code stream and the extension enhancement layer bit stream are packed, thereby reducing transmission bandwidth occupied by the input voice signal. Since the broadband voice encoding is performed on the input voice signal, a broadband voice code stream is transmitted by using narrowband transmission bandwidth, thereby improving the cost performance of voice signal transmission.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A voice signal encoding method, comprising:
encoding an input voice signal to obtain a broadband code stream, wherein the broadband code stream comprises a core layer bit stream and an extension enhancement layer bit stream; compressing the core layer bit stream to obtain a compressed code stream; and packing the compressed code stream and the extension enhancement layer bit stream to obtain a packed code stream.
2 . The method according to claim 1 , wherein the compressing the core layer bit stream to obtain the compressed code stream comprises:
combining core layer bit streams in at least two data frames to obtain a data packet corresponding to a combined core layer bit stream; determining frame length information during lossless compression performed on the data packet; and performing the lossless compression on the data packet according to the frame length information, to obtain the compressed code stream.
3 . The method according to claim 2 , wherein the determining the frame length information during the lossless compression performed on the data packet comprises:
determining the frame length information during the lossless compression performed on the data packet, according to a compression characteristic corresponding to each frame length during the lossless compression and a packet length of the data packet.
4 . The method according to claim 2 , wherein
if a packet length of a data packet to be processed is less than or equal to a longest frame length during the lossless compression, the determining the frame length information during the lossless compression performed on the data packet is: if the packet length of the data packet is equal to an available frame length during the lossless compression, determining frame length information during lossless compression performed on the data packet; if the packet length of the data packet is not equal to an available frame length during the lossless compression, determining that a frame length processed currently is a longest available frame length less than the packet length of the data packet to be processed; if a packet length of a data packet to be processed is greater than a longest frame length during the lossless compression, the determining the frame length information during the lossless compression performed on the data packet is: determining that a frame length processed currently is the longest frame length during the lossless compression; or determining that a frame length processed currently is a second longest frame length corresponding to the longest frame length during the lossless compression.
5 . The method according to claim 2 , wherein the determining the frame length information during the lossless compression performed on the data packet comprises:
determining a frame length of a first frame during the lossless compression; if a packet length of the data packet is an integral multiple of the frame length of the first frame, determining that a frame length of remaining frames during the lossless compression is the frame length of the first frame; when a packet length of the data packet is not an integral multiple of the frame length of the first frame, if the packet length of the data packet to be processed is greater than or equal to the frame length of the first frame, determining that a frame length processed currently is equal to the frame length of the first frame; if the packet length of the data packet to be processed is less than the frame length of the first frame, determining that a frame length processed currently is a longest available frame length less than the packet length of the data packet to be processed.
6 . A voice signal encoding device, comprising:
a first processing module, configured to encode an input voice signal to obtain a broadband code stream, wherein the broadband code stream comprises a core layer bit stream and an extension enhancement layer bit stream; a second processing module, configured to compress the core layer bit stream to obtain a compressed code stream; and a third processing module, configured to pack the compressed code stream and the extension enhancement layer bit stream to obtain a packed code stream.
7 . The device according to claim 6 , wherein the second processing module comprises:
a first recombination unit, configured to combine core layer bit streams in at least two data frames to obtain a combined core layer bit stream; a first determination unit, configured to determine frame length information during lossless compression performed on a data packet; and a compression unit, configured to perform the lossless compression on the data packet according to the frame length information, to obtain the compressed code stream.
8 . The device according to claim 7 , wherein when the first determination unit determines the frame length information during the lossless compression performed on the data packet comprises:
when a packet length of the data packet to be processed is less than or equal to a longest frame length during the lossless compression, if the packet length of the data packet to be processed is equal to an available frame length during the lossless compression, the first determination unit is configured to determine that a frame length during the lossless compression is the packet length of the data packet; if the packet length of the data packet to be processed is not equal to an available frame length during the lossless compression, the first determination unit is configured to determine that a frame length processed currently is a longest available frame length less than the packet length of the data packet to be processed; if a packet length of the data packet to be processed is greater than a longest frame length during the lossless compression, the first determination unit is configured to determine that a frame length processed currently is the longest frame length during the lossless compression; or determine that a frame length processed currently is a second longest frame length corresponding to the longest frame length during the lossless compression.
9 . The device according to claim 6 , wherein the second processing module comprises:
a second determination unit, configured to determine frame length information of a first frame during lossless compression; wherein if a packet length of the data packet is an integral multiple of a frame length of the first frame, the second determination unit is configured to determine that a frame length of remaining frames during the lossless compression is the frame length of the first frame; when a packet length of the data packet to be processed is not an integral multiple of a frame length of the first frame, if the packet length of the data packet to be processed is greater than or equal to the frame length of the first frame, the second determination unit is configured to determine that a frame length processed currently is equal to the frame length of the first frame; if the packet length of the data packet to be processed is less than the frame length of the first frame, the second determination unit is configured to determine that a frame length processed currently is a longest available frame length less than the packet length of the data packet to be processed.
10 . The device according to claim 7 , wherein the second processing module comprises a third determination unit, and the third determination unit is configured to determine the frame length information during the lossless compression performed on the data packet, according to a type of a voice transmission network or a type of the input voice signal.
11 . The device according to any one of claim 7 , wherein the third processing module comprises:
a second recombination unit, configured to recombine the compressed code stream and the extension enhancement layer bit stream to form a recombined code stream; and an addition unit, configured to add header information comprising side information into the recombined code stream, to obtain the packed code stream.
12 . A voice signal decoding method, comprising:
acquiring header information in a packed code stream; unpacking the packed code stream according to the header information, to obtain an extension enhancement layer bit stream and a compressed core layer bit stream; decompressing the compressed core layer bit stream to obtain a decompressed code stream; and performing decoding reestablishment on the extension enhancement layer bit stream and the decompressed code stream, to obtain a broadband reestablished voice signal.
13 . The method according to claim 12 , wherein the unpacking the packed code stream according to the header information to obtain the extension enhancement layer bit stream and the compressed core layer bit stream comprises:
acquiring side information comprised in the header information; and unpacking the packed code stream according to the side information, to obtain the extension enhancement layer bit stream and the compressed core layer bit stream.
14 . The method according to claim 12 , wherein the decompressing the compressed core layer bit stream to obtain the decompressed code stream comprises:
acquiring frame length information during lossless decompression; and performing the lossless decompression on the core layer bit stream according to the frame length information, to obtain the decompressed code stream.
15 . A voice signal decoding device, comprising:
an acquisition module, configured to acquire header information in a packed code stream; an unpacking module, configured to unpack the packed code stream according to the header information, to obtain an extension enhancement layer bit stream and a compressed core layer bit stream; a decompression module, configured to decompress the compressed core layer bit stream to obtain a decompressed code stream; and a reestablishment module, configured to perform decoding reestablishment on the extension enhancement layer bit stream and the decompressed code stream, to obtain a broadband reestablished voice signal.
16 . The device according to claim 15 , wherein the unpacking module comprises:
a first acquisition unit, configured to acquire side information comprised in the header information; and an unpacking unit, configured to unpack the packed code stream according to the side information, to obtain the extension enhancement layer bit stream and the compressed core layer bit stream.
17 . The device according to claim 15 , wherein the decompression module comprises:
a second acquisition unit, configured to acquire frame length information of a first frame during lossless decompression; and a decompression unit, configured to perform the lossless decompression on the core layer bit stream according to the frame length information, to obtain the decompressed code stream.Join the waitlist — get patent alerts
Track US2014006016A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.