Thus, the prior art does need to further provide the necessity of better improvements.
Disclosure of Invention
In view of the above-mentioned drawbacks of the prior art, a primary object of the present invention is to provide an audio compression apparatus, an audio compression system and an audio compression method, which can transmit the residual signal through the available bandwidth, so that the audio signal can be completely transmitted to the audio decompression apparatus, thereby achieving the purpose of reducing distortion of an audio signal.
The main technical means adopted to achieve the above purpose is to make the aforementioned audio compression device, which comprises:
a first signal transceiver;
a first processor connected with the first signal transceiver and obtaining an audio signal and an available bandwidth;
the first processor performs an audio compression encoding on the audio signal to obtain a sample audio signal, performs a comparison procedure on the audio signal and the sample audio signal to generate a residual signal, and transmits the residual signal according to the available bandwidth.
Preferably, the first processor includes:
the coding module is connected with the first signal transceiver; and
the encoding module performs the audio compression encoding on the residual signal to obtain a plurality of residual headers and a residual encoded signal.
Preferably, the first processor further comprises:
the first processing module is connected with the coding module; and
the first processing module obtains a transmission bandwidth according to a wireless communication signal link, obtains an occupied bandwidth used by the sample audio signal, and executes a bandwidth phase difference operation according to the transmission bandwidth and the occupied bandwidth to generate the available bandwidth.
Preferably, the encoding module includes:
a linear predictive coding module coupled to the first signal transceiver;
a linear predictive decoding module connected to the linear predictive encoding module and the first processing module; and
wherein the linear predictive coding module performs a lossless audio coding on the audio signal to obtain a sample residual coded signal, and the linear predictive decoding module performs a lossless audio decoding on the sample residual coded signal to obtain the sample audio signal.
Preferably, the first processing module performs a phase difference operation according to the audio signal and the sample audio signal to generate the residual signal.
Through the above construction, the first processor can transmit the residual signal through the available bandwidth, so that the residual signal is not lost, and the purpose of reducing the distortion of the audio signal is achieved.
Another main technical means adopted to achieve the above object is to make the aforementioned audio compression system include:
an audio compression device as described above;
an audio decompression device in wireless communication with the audio compression device and receiving a plurality of residual encoded frames from the audio compression device;
when the audio decompression device receives the residual error coding frames, the residual error coding frames are subjected to audio compression and decoding to generate a residual error signal, and a signal superposition operation is performed according to the residual error signal to generate an audio signal.
Preferably, the audio decompressing device includes:
a second signal transceiver communicatively linked to the first signal transceiver and receiving the plurality of residual encoded frames; and
and a second processor, coupled to the second signal transceiver, for moving the plurality of residual encoded frames from the available bandwidth to a source time point based on the plurality of headers of the plurality of residual encoded frames.
Preferably, the second processor includes:
a storage module connected to the second signal transceiver and storing the plurality of residual encoded frames;
a decoding module, coupled to the storage module, for performing the audio compression decoding on the plurality of residual encoded frames to generate the residual signal;
the second processing module is connected with the decoding module;
the output module is connected with the second processing module to output the residual signal; and
when a playing time of the output module moves to the original time point, the second processing module will require the decoding module to execute the audio compression decoding on the residual code frames to generate the residual signal, and move the residual signal to the original time point according to the headers and the original time point.
Through the above structure, the audio compression device transmits the plurality of residual coding frames to the audio decompression device through the available bandwidth, and the audio decompression device further decodes the residual coding signals and performs the signal superposition operation to generate the audio signals, so that the residual signals are not lost and can be restored to the audio signals, thereby achieving the purpose of reducing the distortion of the audio signals.
Another main technical means adopted to achieve the above object is to make the above audio compression method mainly implemented in an audio compression device, the method comprising the following steps:
receiving an audio signal;
performing an audio compression encoding on the audio signal to obtain a sample audio signal;
performing a comparison procedure on the audio signal and the sample audio signal to generate a residual signal;
obtaining an available bandwidth;
and transmitting the residual signal according to the available bandwidth.
Preferably, the step of performing the method to "transmitting the residual signal according to the available bandwidth" includes the following sub-steps:
performing the audio compression encoding on the residual signal to obtain a plurality of residual headers and a residual encoded signal; and
the plurality of residual headers and the residual encoded signal are shifted to the available bandwidth.
Preferably, the step of moving the plurality of residual headers and the residual encoded signal to the available bandwidth is performed in the method, comprising the sub-steps of:
performing a signal modulation on the plurality of residual headers and the residual encoded signal to generate a plurality of residual encoded frames; and
and moving the plurality of residual coding frames to the available bandwidth in sequence according to the plurality of residual coding frames and the available bandwidth.
Preferably, the method further comprises the step of performing an audio compression encoding on the audio signal to obtain a sample audio signal, comprising the sub-steps of:
performing a lossless audio coding on the audio signal to obtain a sample residual coded signal; and
a lossless audio decoding is performed on the sample residual encoded signal to obtain the sample audio signal.
Preferably, the method is performed to the step of performing a lossless audio coding on the audio signal to obtain a sample residual coding signal, comprising the sub-steps of:
performing linear predictive coding on the audio signal to obtain a plurality of linear predictive sample residual coding coefficients corresponding to the sample residual coding signal; and
and setting a plurality of sample residual headers according to the plurality of linear prediction sample residual coding coefficients.
Preferably, the method is performed to "get an available bandwidth" step, which includes the following sub-steps:
obtaining a transmission bandwidth according to a wireless communication signal link;
obtaining an occupied bandwidth for use by a plurality of sample residual encoded frames; and
and performing a bandwidth phase difference operation according to the transmission bandwidth and the occupied bandwidth to generate the available bandwidth.
Preferably, the method is performed to "obtain an occupied bandwidth for use by a plurality of sample residual encoded frames", comprising the sub-steps of:
a sampling procedure is performed on the sample residual encoded signal with a sampling rate information to obtain the occupied bandwidth.
Preferably, after the step of performing the method to "set a plurality of sample residual headers according to the plurality of linear prediction sample residual coding coefficients", the method includes the steps of:
performing the signal modulation on the sample residual encoded signal to generate the plurality of sample residual encoded frames; and
the plurality of sample residual coding frames and the plurality of residual coding frames are transmitted.
Preferably, the method further comprises the steps of performing a comparison procedure on the audio signal and the sample audio signal to generate a residual signal, and the method comprises the following sub-steps:
and performing a phase difference operation on the audio signal and the sample audio signal to generate the residual signal.
Through the method, the residual signal can be transmitted through the available bandwidth, so that the residual signal is not lost, and the purpose of reducing the distortion of the audio signal is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute an undue limitation to the application. In the drawings:
fig. 1 is a device diagram of an embodiment of an audio compression device of the present invention.
Fig. 2 is a further device schematic diagram of an embodiment of the audio compression device of the present invention.
Fig. 3 is another device schematic diagram of an embodiment of an audio compression device of the present invention.
Fig. 4A is a schematic diagram of an audio compressed signal of the present invention.
Fig. 4B is a schematic diagram of an audio compression signal according to the present invention transmitting a residual signal according to an available bandwidth.
Fig. 5 is a schematic diagram of an audio compression system of the present invention.
Fig. 6 is a schematic diagram of an audio decompression apparatus of the present invention.
Fig. 7 is a flow chart of an embodiment of an audio compression method of the present invention.
Fig. 8 is a flow chart of yet another embodiment of an audio compression method of the present invention.
Fig. 9 is a flowchart of still another embodiment of the audio compression method of the present invention.
Fig. 10 is a flowchart of another embodiment of an audio compression method of the present invention.
Fig. 11 is a flowchart of yet another embodiment of an audio compression method of the present invention.
Fig. 12 is a flowchart of still another embodiment of the audio compression method of the present invention.
Fig. 13 is a flow chart of another embodiment of an audio compression method of the present invention.
Fig. 14 is a flow chart of a further embodiment of the audio compression method of the present invention.
Fig. 15 is a flowchart of still another embodiment of the audio compression method of the present invention.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
In an embodiment of the present invention, as shown in fig. 1, the present invention provides an audio compression device 10, where the audio compression device 10 includes a first signal transceiver 11 and a first processor 12, and the first signal transceiver 11 is electrically connected to the first processor 12. In the present embodiment, the audio compression device 10 may be a desktop host, a notebook computer, a mobile device or an audio player.
Specifically, the first processor 12 obtains an audio signal and an available bandwidth, performs an audio compression encoding on the audio signal to obtain a sample audio signal, performs a comparison procedure on the audio signal and the sample audio signal to generate a residual signal, and transmits the residual signal via the first signal transceiver 11 according to the available bandwidth.
In this embodiment, as shown in fig. 2, the first processor 12 includes an encoding module 120 and a first processing module 121, the encoding module 120 is connected to the first signal transceiver 11 and the first processing module 121, and the encoding module 120 is configured to encode the audio signal S o Performing the audio compression encoding to obtain the sample audio signal S sample Then, the sample audio signal S sample To the first processing module 121, the first processing module 121 transmitting the audio signal S 0 The sample audio signal S sample Executing the comparison procedure to generate the residual signal S d Then, the first processing module 121 obtains the transmission bandwidth according to a wireless communication signal link, obtains an occupied bandwidth used by the sample audio signal, and performs a bandwidth phase difference operation according to the transmission bandwidth and the occupied bandwidth to generate the available bandwidth, and simultaneously, applies the residual signal S d The audio compression encoding is performed by the encoding module 120 to obtain a plurality of residual headers and a residual encoded signal.
In this embodiment, as shown in fig. 3, the encoding module 120 includes a linear prediction encoding module 1201 and a linear prediction decoding module 1202, where the linear prediction encoding module 1201 is connected to the first signal transceiver 11, and the linear prediction decoding module 1202 is connected to the linear prediction encoding module 1201 and the first processing module 121. When the linear predictive coding module 1201 receives the audio signal S o Will be to the audio signal S o Performing lossless audio coding to obtain a sample residual coding signal S 1 Then, the sample residual is encoded into a signal S 1 To the linear predictive decoding module 1202, the linear predictive decoding module 1202 encoding the sample residual signal S 1 Performing lossless audio decoding to obtain the sample audio signal S sample 。
In this embodiment, the first processing module 121 processes the audio signal S according to the audio signal S o The sample audio signal S sample Executing the comparison program, wherein the comparison program is to compare the audio signal S o The sample audio signal S sample Performing a phase difference operation to generate the residual signal S d The residual signal is the audio signal S o The sample audio signal S sample Signal differences between (a) and (b).
In detail, the linear predictive coding module 1201 encodes the audio signal S o Linear predictive audio coding (Linear Predictive Coding, LPC) to generate a plurality of linear predictive sample residual coding coefficients and a sample residual coding signal S 1 The first processing module 121 sets a plurality of sample residual headers (headers) according to the plurality of linear prediction sample residual coding coefficients, and then the linear prediction decoding module 1202 codes the sample residual coding signal S 1 Performing a linear predictive audio decoding to correspond to generating the sample audio signal S sample 。
Then, the sample audio signal S sample To the first processing module 121, the first processing module 121 transmitting the audio signal S o The sample audio signal S sample Performing the phase difference operation to generate the residual signal S d The residual signal S d To the encoding module 120 to perform the audio compression encoding to correspondingly generate the plurality of residual headers and the residual encoded signal, and then the first processing module 121 performs the audio compression encoding on the plurality of sample residual headers, the sample residual encoded signal, the plurality of residual headers and the residualThe encoded signal performs a signal Modulation (Modulation) to generate a plurality of sample residual header frames, a plurality of sample residual code frames, a plurality of residual header frames, and a plurality of residual code frames, respectively, and then, the first processing module 121 sequentially moves the plurality of residual header frames and the plurality of residual code frames from an original point to the available bandwidth according to the plurality of residual header frames, the plurality of residual code frames, and the available bandwidth, and the first signal transceiver 11 transmits the plurality of residual header frames and the plurality of residual code frames through the available bandwidth.
In the above embodiment, as further illustrated in fig. 4A and 4B, the available bandwidth acquisition is a transmission bandwidth BW defined by a wireless communication signal link for signal transmission by the audio compression device 10 tra Next, an occupied bandwidth (i.e., label S, C) is obtained for the plurality of sample residual header frames and the plurality of sample residual code frames (i.e., label S) to be used at the transmission bandwidth 1 、C 2 、C 3 、C 4 At) then, according to said transmission bandwidth BW tra And said occupied bandwidth performs a phase difference operation to generate said available bandwidth BW usa . In this embodiment, the plurality of residual header frames H 1 、H 2 Is 3 Bytes (Bytes), the multiple residuals encode frame C 1 、C 2 、C 3 、C 4 Is 8 bytes.
In addition, as shown in fig. 5, the audio compression system of another embodiment of the present invention includes the above-mentioned audio compression device 10 and an audio decompression device 20, where the audio decompression device 20 is linked with the audio compression device 10 via a wireless communication signal link. In this embodiment, the wireless communication signal link may be a plurality of bluetooth signals, a plurality of Wi-Fi signals.
Then, the audio decompression device 20 receives a plurality of residual encoded frames from the audio compression device 10 and performs an audio compression decoding on the plurality of residual encoded frames to generate the audio compression deviceResidual signal and performing a signal superposition operation according to the residual signal to generate the audio signal S o
In this embodiment, the audio decompression device 20 includes a second signal transceiver 21 and a second processor 22, the second signal transceiver 21 is linked with the first signal transceiver 11 by a wireless signal, and the second processor 22 is connected with the second signal transceiver 21. The second signal transceiver 21 then receives the plurality of residual encoded frames from the first signal transceiver 11, and the second processor 22 then moves the plurality of residual encoded frames from the available bandwidth to the original time point t based on the plurality of headers of the plurality of residual encoded frames 0 。
In this embodiment, as shown in fig. 6, the second processor 22 includes a storage module 220, a decoding module 221, a second processing module 222, and an output module 223, where the storage module 220 is connected to the second signal transceiver 21 and the decoding module 221, and the second processing module 222 is connected to the decoding module 221 and the output module 223. When the second signal transceiver 21 receives the plurality of residual code frames, the plurality of residual code frames are stored in the storage module 220, and when a playing time of the output module 223 is moved to the original time t 0 In this case, the second processing module 222 will require the decoding module 221 to perform the audio compression decoding on the plurality of residual encoded frames to generate the residual signal, and according to the plurality of headers and the original time t 0 The residual signal S d Move to the original time t 0 To output the audio signal S o . In this embodiment, the wireless signal may be a bluetooth signal or a plurality of wireless network signals. In this embodiment, the audio decompression device 20 may be a wireless signal earphone (e.g., a Bluetooth earphone or a wireless network signal earphone).
Therefore, in the transmission bandwidth defined by the wireless communication signal link, when the sample audio signal frame is transmitted through the transmission bandwidth, the occupied part of the transmission bandwidth is occupied, the available bandwidth is obtained by deducting the occupied bandwidth used by the sample audio signal frame through the transmission bandwidth, and the plurality of residual error coding signal frames are transmitted through the available bandwidth, so that the plurality of residual error coding signal frames cannot be discarded due to insufficient transmission bandwidth, and therefore, the distortion of the audio signal can be reduced.
In addition, regarding an embodiment of the audio compression method of the present invention, as shown in fig. 7, the audio compression method is performed by an audio compression device 10 and includes the steps of:
receiving an audio signal (S70);
performing an audio compression encoding on the audio signal to obtain a sample audio signal (S71);
performing a comparison procedure on the audio signal and the sample audio signal to generate a residual signal (S72);
obtaining an available bandwidth (S73);
the residual signal is transmitted according to the available bandwidth (S74).
A further embodiment of the audio compression method of the present invention, as shown in fig. 8, is characterized in that, in the step of performing the aforementioned method to "transmitting the residual signal according to the available bandwidth (S74)", it comprises the following sub-steps:
performing the audio compression encoding on the residual signal to obtain a plurality of residual headers and a residual encoded signal (S740);
the plurality of residual headers and the residual encoded signal are shifted to the available bandwidth (S741).
A further embodiment of the audio compression method according to the present invention, as shown in fig. 9, is characterized in that, in the step of performing the above-mentioned method to "move the plurality of residual headers and the residual encoded signal to the available bandwidth (S741), the method comprises the following sub-steps:
performing a signal modulation on the plurality of residual headers and the residual encoded signal to generate a plurality of residual encoded frames (S7410);
the plurality of residual coding frames are sequentially shifted to the available bandwidth according to the plurality of residual coding frames and the available bandwidth (S7411).
Another embodiment of the audio compression method of the present invention, as shown in fig. 10, is characterized in that, in the steps of performing the foregoing method to "performing the audio compression encoding on the audio signal to obtain the sample audio signal (S71), the method includes the following sub-steps:
performing a lossless audio coding on the audio signal to obtain a sample residual coding signal (S710);
a lossless audio decoding is performed on the sample residual encoded signal to obtain the sample audio signal (S711).
A further embodiment of the audio compression method according to the present invention, as shown in fig. 11, is characterized in that, in the step of performing the foregoing method to "performing the lossless audio coding on the audio signal to obtain the sample residual coding signal (S710), the method comprises the following sub-steps:
performing a linear prediction encoding on the audio signal to obtain a plurality of linear prediction sample residual encoding coefficients corresponding to the sample residual encoded signal (S7101);
a plurality of sample residual headers are set based on the plurality of linear prediction sample residual coding coefficients (S7102).