EP2485029B1 - Audio signal switching method and device - Google Patents
Audio signal switching method and device Download PDFInfo
- Publication number
- EP2485029B1 EP2485029B1 EP11774406.0A EP11774406A EP2485029B1 EP 2485029 B1 EP2485029 B1 EP 2485029B1 EP 11774406 A EP11774406 A EP 11774406A EP 2485029 B1 EP2485029 B1 EP 2485029B1
- Authority
- EP
- European Patent Office
- Prior art keywords
- frequency band
- speech
- weight
- signal
- band signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005236 sound signal Effects 0.000 title claims description 387
- 238000000034 method Methods 0.000 title claims description 46
- 230000002194 synthesizing effect Effects 0.000 claims description 18
- 230000003247 decreasing effect Effects 0.000 claims description 7
- 230000000875 corresponding effect Effects 0.000 description 46
- 230000002238 attenuated effect Effects 0.000 description 15
- 230000002596 correlated effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000003044 adaptive effect Effects 0.000 description 3
- 238000001914 filtration Methods 0.000 description 2
- 230000003313 weakening effect Effects 0.000 description 2
- OVOUKWFJRHALDD-UHFFFAOYSA-N 2-[2-(2-acetyloxyethoxy)ethoxy]ethyl acetate Chemical compound CC(=O)OCCOCCOCCOC(C)=O OVOUKWFJRHALDD-UHFFFAOYSA-N 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/16—Vocoder architecture
- G10L19/18—Vocoders using multiple modes
- G10L19/24—Variable rate codecs, e.g. for generating different qualities using a scalable representation such as hierarchical encoding or layered encoding
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/08—Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters
- G10L19/12—Determination or coding of the excitation function; Determination or coding of the long-term prediction parameters the excitation function being a code excitation, e.g. in code excited linear prediction [CELP] vocoders
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L21/00—Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
- G10L21/02—Speech enhancement, e.g. noise reduction or echo cancellation
- G10L21/038—Speech enhancement, e.g. noise reduction or echo cancellation using band spreading techniques
Definitions
- the present invention relates to communication technologies, and in particular, to a method and an apparatus for switching speech or audio signals.
- the network may intercept the bit stream of the speech or audio signals transmitted from an encoder to the network with different bit rates, so that the decoder may decode the speech or audio signals with different bandwidths from the intercepted bit stream.
- the bidirectional switching from/to a narrow frequency band speech or audio signal to/from a wide frequency band speech or audio signal may occur during the process of transmitting speech or audio signals.
- the narrow frequency band signal is switched to a wide frequency band signal with only a low frequency band component through up-sampling and low-pass filtering; the wide frequency band speech or audio signal includes both a low frequency band signal component and a high frequency band signal component.
- the inventor discovers at least the following problems in the prior art: Because high frequency band signal information is available in wide frequency band speech or audio signals but is absent in narrow frequency band speech or audio signals, when speech or audio signals with different bandwidths are switched, a energy jump may occur in the speech or audio signals resulting in uncomfortable feeling in listening, and thus reducing the quality of audio signals received by a user.
- N speech frames after the switch may be reconstructed with a TDBWE or TDAC decoding algorithm.
- M may be any value less than N.
- the higher-band signal components of N speech frames are shaped in time-domain to form a processed higher-band signal component s HB ts n , which incorporating with the decoded lower-band signal component s LB post n are performed a synthesis filtering to reconstructed a time-varying fadeout signal.
- G.729-based embedded variable bit-rate coder An 8-32 kbit/s scalable wideband coder bitstream interoperable with G.729; G.729.1 (05/06) discloses a fade-in of the higher-band signal after a narrow band to a wide band switch, while the transition from wide band to narrow band is instantaneous.
- Embodiments of the present invention provide a method and an apparatus for switching speech or audio signals to smoothly switch speech or audio signals between different bandwidths, thereby improving the quality of audio signals received by a user.
- a method for switching the bandwidth of speech or audio signals includes:
- An apparatus for switching speech or audio signals includes:
- the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal; the processed first high frequency band signal and the first low frequency band signal are synthesized into a wide frequency band signal.
- these speech or audio signals can be smoothly switched, thus reducing the ill impact of the energy jump on the subjective audio quality of the speech or audio signals and improving the quality of speech or audio signals received by the user.
- FIG. 1 is a flowchart of the first embodiment of a method for switching speech or audio signals. As shown in FIG. 1 , by using the method for switching speech or audio signals, when a switching of a speech or audio occurs, each frame after a switching frame is processed according to the following steps:
- Step 102 Synthesize the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- the previous M frame of speech or audio signals refer to M frame of speech or audio signals before the current frame.
- the L frame of speech or audio signals before the switching refer to L frame of speech or audio signals before the switching frame When a switching of a speech or audio occurs. If the current speech frame is a wide frequency band signal but the previous speech frame is a narrow frequency band signal or if the current speech frame is a narrow frequency band signal but the previous speech frame is a wide frequency band signal, the speech or audio signal is switched and the current speech frame is the switching frame.
- the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal.
- the high frequency band signal of these speech or audio signals can be smoothly switched.
- the processed first high frequency band signal and the first low frequency band signal are synthesized into a wide frequency band signal; the wide frequency band signal is transmitted to a user terminal, so that the user enjoys a high quality speech or audio signal.
- FIG. 2 is a flowchart of the second embodiment of the method for switching speech or audio signals. As shown in FIG. 2 , the method includes the following steps:
- the first frequency band speech or audio signal in this embodiment may be a wide frequency band speech or audio signal or a narrow frequency band speech or audio signal.
- the operation may be executed according to the following two cases: 1. If the first frequency band speech or audio signal is a wide frequency band speech or audio signal, the low frequency band signal and high frequency band signal of the wide frequency band speech or audio signals are synthesized into a wide frequency band signal. 2. If the first frequency band speech or audio signal is a narrow frequency band speech or audio signal, the low frequency band signal and the high frequency band signal of the narrow frequency band speech or audio signal are synthesized into a wide frequency band signal. In this case, although the signal is a wide frequency band signal, the high frequency band is null.
- Step 201 When the speech or audio signal is switched, weight the first high frequency band signal of the current frame of speech or audio signal and the second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal.
- M is greater than or equal to 1.
- the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal.
- the wide frequency band speech or audio signal is switched to the narrow frequency band speech or audio signal, because the high frequency band signal information corresponding to the narrow frequency band speech or audio signal is null, the component of the high frequency band signal corresponding to the narrow frequency band speech or audio signal needs to be restored to enable the wide frequency band speech or audio signal to be smoothly switched to the narrow frequency band speech or audio signal.
- the narrow frequency band speech or audio signal is switched to the wide frequency band speech or audio signal
- the high frequency band signal of the wide frequency band speech or audio signal is not null
- the energy of the high frequency band signals of consecutive multiple-frame wide frequency band speech or audio signals after the switching must be weakened to enable the narrow frequency band speech or audio signal to be smoothly switched to the wide frequency band speech or audio signal, so that the high frequency band signal of the wide frequency band speech or audio signal is gradually switched to a real high frequency band signal.
- the first high frequency band signal and the second high frequency band signal of the previous M frame of speech or audio signals may be directly weighted. The weighted result is the processed first high frequency band signal.
- Step 202 Synthesize the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal of the current frame; then, in step 202, the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal are synthesized into a wide frequency band signal, so that the speech or audio signals received by the user are always wide frequency band speech or audio signals. In this way, speech or audio signals with different bandwidths are smoothly switched, which helps improve the quality of audio signals received by the user.
- the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal.
- the high frequency band signal of these speech or audio signals can be smoothly switched.
- the processed first high frequency band signal and the first low frequency band signal are synthesized into a wide frequency band signal; the wide frequency band signal is transmitted to a user terminal, so that the user enjoys a high quality speech or audio signal.
- speech or audio signals with different bandwidths can be switched smoothly, thus reducing the impact of the sudden energy change on the subjective audio quality of the speech or audio signals and improving the quality of audio signals received by the user.
- the first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal are synthesized into a wide frequency band signal, so that the user can obtain high quality audio signal.
- step 201 when a switching from wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs, step 201 includes the following steps:
- the speech or audio signal may be divided into fine structure information and envelope information, so that the speech or audio signal can be restored according to the fine structure information and envelope information.
- the high frequency band signal needed by the current narrow frequency band speech or audio signal needs to be restored so as to implement smooth switching between speech or audio signals.
- the predicted fine structure information and envelope information corresponding to the first high frequency band signal of the narrow frequency band speech or audio signal are predicted.
- the first low frequency band signal of the current frame of speech or audio signal may be classified in step 301, and then the predicted fine structure information and envelope information corresponding to the first high frequency band signal are predicted according to the signal type of the first low frequency band signal.
- the narrow frequency band speech or audio signal of the current frame may be a harmonic signal, or a non-harmonic signal or a transient signal.
- the fine structure information and envelope information corresponding to the type of the narrow frequency band speech or audio signal can be obtained, so that the fine structure information and envelope information corresponding to the high frequency band signal can be predicted more accurately.
- the method for switching speech or audio signals in this embodiment does not limit the signal type of the narrow frequency band speech or audio signal.
- Step 302 Weight the predicted envelope information and the previous M frame envelope information corresponding to the second high frequency band signal of the previous M frame of speech or audio signals to obtain first envelope information corresponding to the first high frequency band signal.
- the first envelope information corresponding to the first high frequency band signal may be generated according to the predicted envelope information and the previous M frame envelope information corresponding to the second high frequency band signal of the previous M frame of speech or audio signals.
- the process of generating the first envelope information corresponding to the first high frequency band signal in step 302 may be implemented by using the following two modes:
- the first low frequency band signal of the current frame of speech or audio signal is compared with the low frequency band signal of the previous N frame of speech or audio signals to obtain a correlation coefficient between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous N frame of speech or audio signals.
- the correlation between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous N frame of speech or audio signals may be determined by judging the difference between a frequency band of the first low frequency band signal of the current frame of speech or audio signal and the same frequency band of the low frequency band signal of the previous N frame of speech or audio signals in terms of the energy size or the information type, so that the desired correlation coefficient can be calculated.
- the previous N frame of speech or audio signals may be narrow frequency band speech or audio signals, wide frequency band speech or audio signals, or hybrid signals of narrow frequency band speech or audio signals and wide frequency band speech or audio signals.
- Step 402 Judge whether the correlation coefficient is within a given first threshold range.
- the correlation coefficient is calculated in step 401, whether the correlation coefficient is within the given threshold range is judged.
- the purpose of calculating the correlation coefficient is to judge whether the current frame of speech or audio signal is gradually switched from the previous N frame of speech or audio signals or suddenly switched from the previous N frame of speech or audio signals. That is, the purpose is to judge whether their characteristics are the same and then determine the weight of the high frequency band signal of the previous frame in the process of predicting the high frequency band signal of the current speech or audio signal. For example, if the first low frequency band signal of the current frame of speech or audio signal has the same energy as the low frequency band signal of the current speech or audio signal.
- the first low frequency band signal of the current frame of speech or audio signal has the same energy as the low frequency band signal of the previous frame of speech or audio signal and their signal types are the same, it indicates that the previous frame of speech or audio signal is highly correlated with the current frame of speech or audio signal.
- the high frequency band envelope information or transitional envelope information corresponding to the previous frame of speech or audio signal occupies a larger weight; otherwise, if there is a huge difference between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous frame of speech or audio signal in terms of energy and their signal types are different, it indicates that the previous speech or audio signal is lowly correlated with the current frame of speech or audio signal. Therefore, to accurately restore the first envelope information corresponding to the current frame of speech or audio signal, the high frequency band envelope information or transitional envelope information corresponding to the previous frame of speech or audio signal occupies a smaller weight.
- Step 403 If the correlation coefficient is not within the given first threshold range, weight according to a set first weight 1 and a set first weight 2 to calculate the first envelope information.
- the first weight 1 refers to the weight value of the previous frame envelope information corresponding to the high frequency band signal of the previous frame of speech or audio signal
- the first weight 2 refers to the weight value of the envelope information.
- the correlation coefficient is determined to be not within the given first threshold range in step 402, it indicates that the current frame of speech or audio signal is slightly correlated with the previous N frame of speech or audio signals. Therefore, the previous M frame envelope information or transitional envelope information corresponding to the first frequency band speech or audio signal of the previous M frames or the high frequency band envelope information corresponding to the previous frame of speech or audio signal has a slight impact on the first envelope information.
- the previous M frame envelope information or transitional envelope information corresponding to the first frequency band speech or audio signal of the previous M frames or the high frequency band envelope information corresponding to the previous frame of speech or audio signal occupies a smaller weight.
- the first envelope information of the current frame may be calculated according to the set first weight 1 and the first weight 2.
- the first weight 1 refers to the weight value of the envelope information corresponding to the high frequency band signal of the previous frame of speech or audio signal.
- the previous frame of speech or audio signal may be a wide frequency band speech or audio signal or a processed narrow frequency band speech or audio signal.
- the previous frame of speech or audio signal is the wide frequency band speech or audio signal
- the first weight 2 refers to the weight value of the predicted envelope information.
- the product of the predicted envelope information and the first weight 2 is added to the product of the previous frame envelope information and the first weight 1, and the weighted sum is the first envelope information of the current frame.
- subsequently transmitted speech or audio signals are processed according to this method and weight.
- the first envelope information corresponding to the speech or audio signal is restored until a speech or audio signal is switched again.
- Step 404 If the correlation coefficient is within the given first threshold range, weight according to a set second weight 1 and a set second weight 2 to calculate the transitional envelope information.
- the second weight 1 refers to the weight value of the envelope information before the switching, and the second weight 2 refers to the weight value of the previous M frame envelope information, where M is greater than or equal to 1.
- the current frame of speech or audio signal has characteristics similar to those of the previous consecutive N frame of speech or audio signals, and the first envelope information corresponding to the current frame of speech or audio signal is greatly affected by the envelope information of the previous consecutive N frame of speech or audio signals.
- the transitional envelope information corresponding to the current frame of speech or audio signal needs to be calculated according to the previous M frame envelope information and the envelope information before the switching.
- the first envelope information of the current frame of speech or audio signal is restored, the previous M frame envelope information and the previous L frame envelope information before the switching should occupy a larger weight. Then, the first envelope information is calculated according to the transitional envelope information.
- the second weight 1 refers to the weight value of the envelope information before the switching
- the second weight 2 refers to the weight value of the previous M frame envelope information.
- the product of the envelope information before the switching and the second weight 1 is added to the product of the previous M frame envelope information and the second weight 2, and the weighted value is the transitional envelope information.
- Step 405 Decrease the second weight 1 as per the first weight step, and increase the second weight 2 as per the first weight step.
- Step 406 Judge whether a set third weight 1 is greater than the first weight 1.
- the third weight 1 refers to the weight value of the transitional envelope information.
- the impact of the transitional envelope information on the first envelope information of the current frame may be determined by comparing the third weight 1 with the second weight 1.
- the transitional envelope information is calculated according to the previous M frame envelope information and the envelope information before the switching. Therefore, the third weight 1 actually represents the degree of the impact that the first envelope information suffers from the envelope information before the switching.
- Step 407 If the third weight 1 is not greater than the first weight 1, weight according to the set first weight 1 and the first weight 2 to calculate the first envelope information.
- the third weight 1 when the third weight 1 is determined to be smaller than or equal to the first weight 1 in step 406, it indicates that the current frame of speech or audio signal is a little far from the L frame of speech or audio signals before the switching and that the first envelope information is mainly affected by the previous M frame envelope information. Therefore, the first envelope information of the current frame may be calculated according to the set first weight 1 and the first weight 2.
- Step 408 If the third weight 1 is greater than the first weight 1, weight according to the set third weight 1 and the third weight 2 to calculate the first envelope information.
- the third weight 1 refers to the weight value of the transitional envelope information
- the third weight 2 refers to the weight value of the predicted envelope information.
- the third weight 1 is determined to be greater than the first weight 1 in step 406, it indicates that the current frame of speech or audio signal is closer to the L frame of speech or audio signals before the switching and that the first envelope information is greatly affected by the envelope information before the switching. Therefore, the first envelope information of the current frame needs to be calculated according to the transitional envelope information.
- the third weight 1 refers to the weight value of the transitional envelope information
- the third weight 2 refers to the weight value of the predicted envelope information.
- the product of the transitional envelope information and the third weight 1 is added to the product of the predicted envelope information and the third weight 2, and the weighted value is the first envelope information.
- Step 409 Decrease the third weight 1 as per the second weight step, and increase the third weight 2 as per the second weight step until the third weight 1 is equal to 0.
- the purpose of modifying the third weight 1 and the third weight 2 in step 409 is the same as that of modifying the second weight 1 and the second weight 2 in step 405, that is, the purpose is to perform adaptive adjustment on the third weight 1 and the third weight 2 to calculate the first envelope information more accurately when the impact of the L frame of speech or audio signals before the switching on the subsequently transmitted speech or audio signals is decreased gradually. Because the impact of the L frame of speech or audio signals before the switching on the subsequent speech or audio signals is decreased gradually, the value of the third weight 1 turns smaller gradually, while the value of the third weight 2 turns larger gradually, thus weakening the impact of the envelope information before the switching on the first envelope information.
- the sum of the first weight 1 and the first weight 2 is equal to 1; the sum of the second weight 1 and the second weight 2 is equal to 1; the sum of the third weight 1 and the third weight 2 is equal to 1; the initial value of the third weight 1 is greater than the initial value of the first weight 1; and the first weight 1 and the first weight 2 are fixed constants.
- the weight 1 and the weight 2 in this embodiment actually represent the percentages of the envelope information before the switching and the previous M frame envelope information in the first envelope information of the current frame. If the current frame of speech or audio signal is close to the L frame of speech or audio signals before the switching and their correlation is high, the percentage of the envelope information before the switching is high, while the percentage of the previous M frame envelope information is low.
- the current frame of speech or audio signal is a little far from the L frame of speech or audio signals before the switching, it indicates that the speech or audio signal is stably transmitted on the network; or if the current frame of speech or audio signal is slightly correlated with the L frame of speech or audio signals before the switching, it indicates that the characteristics of the current frame of speech or audio signal are already changed. Therefore, if the current frame of speech or audio signal is slightly affected by the L frame of speech or audio signals before the switching, the percentage of the envelope information before the switching is low.
- step 404 may be executed after step 405. That is, the second weight 1 and the second weight 2 may be modified firstly, and then the transitional envelope information is calculated according to the second weight 1 and the second weight 2.
- step 408 may be executed after step 409. That is, the third weight 1 and the third weight 2 may be modified firstly, and then the first envelope information is calculated according to the third weight 1 and the third weight 2.
- the relationship between a frequency band of the first low frequency band signal of the current frame of speech or audio signal and the same frequency band of the low frequency band signal of the previous frame of speech or audio signal is calculated.
- "corr" may be used to indicate the correlation coefficient. This correlation coefficient is obtained according to the energy relationship between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous frame of speech or audio signal. If the energy difference is small, the "corr" is large; otherwise, the "corr” is small. For the specific process, see the calculation about the correlation of the previous N frame of speech or audio signals in step 401.
- Step 502 Judge whether the correlation coefficient is within a given second threshold range.
- the second threshold range may be represented by c1 to c2 in this embodiment.
- Step 503 If the correlation coefficient is not within the given second threshold range, weight according to the set first weight 1 and the first weight 2 to calculate the first envelope information.
- the first weight 1 refers to the weight value of the previous frame envelope information corresponding to the high frequency band signal of the previous frame of speech or audio signal
- the first weight 2 refers to the weight value of the predicted envelope information.
- the first weight 1 and the second weight 2 are fixed constants.
- the first envelope information corresponding to the current frame of speech or audio signal is slightly affected by the envelope information of the previous frame of speech or audio signal before the switching. Therefore, the first envelope information of the current frame is calculated according to the set first weight 1 and the first weight 2. The product of the predicted envelope information and the first weight 2 is added to the product of the previous frame envelope information and the first weight 1, and the weighted sum is the first envelope information of the current frame.
- subsequently transmitted narrowband speech or audio signals are processed according to this method and weight. The first envelope information corresponding to the narrowband speech or audio signal is restored until the speech or audio signals with different bandwidths are switched again.
- the first weight 1 in this embodiment may be represented by a1; the first weight 2 may be represented by b1; the previous frame envelope information may be represented by pre_fenv; the predicted envelope information may be represented by fenv; and the first envelope information may be represented by cur_fenv.
- Step 504 If the correlation coefficient is within the second threshold range, judge whether the set second weight 1 is greater than the first weight 1.
- the second weight 1 refers to the weight value of the envelope information before the switching that corresponds to the high frequency band signal of the previous frame of speech or audio signal before the switching.
- the degree of the impact of the envelope information before the switching and the previous frame envelope information on the first envelope information of the current frame may be obtained by comparing the second weight 1 with the first weight 1.
- Step 505 If the second weight 1 is not greater than the first weight 1, weight according to the set first weight 1 and the first weight 2 to calculate the first envelope information.
- Step 506 If the second weight 1 is greater than the first weight 1, weight according to the second weight 1 and the set second weight 2 to calculate the first envelope information.
- the second weight 2 refers to the weight value of the predicted envelope information.
- the second weight 1 may be represented by a2, and the second weight 2 may be represented by b2.
- the first envelope information of the current frame may be calculated according to the set second weight 1 and the second weight 2.
- the product of the predicted envelope information and the second weight 2 is added to the product of the envelope information before the switching and the second weight 1, and the weighted sum is the first envelope information of the current frame.
- the envelope information before the switching may be represented by con_fenv.
- Step 507 Decrease the second weight 1 as per the second weight step, and increase the second weight 2 as per the second weight step.
- the impact of a speech or audio signal before the switching on the subsequent frame of speech or audio signal is gradually decreased.
- adaptive adjustment needs to be performed on the second weight 1 and the second weight 2.
- the impact of the speech or audio signal before the switching on the subsequent frame of speech or audio signal is gradually decreased, while the impact of the previous frame of speech or audio signal close to the current frame of speech or audio signal turns larger gradually. Therefore, the value of the second weight 1 turns smaller gradually, while the value of the second weight 2 turns larger gradually. In this way, the impact of the envelope information before the switching on the first envelope information is weakened, while the impact of the predicted envelope information on the first envelope information is enhanced.
- the sum of the first weight 1 and the first weight 2 is equal to 1; the sum of the second weight 1 and the second weight 2 is equal to 1; the initial value of the second weight 1 is greater than the initial value of the first weight 1.
- Step 303 Generate a processed first high frequency band signal according to the first envelope information and the predicted fine structure information.
- the processed first high frequency band signal may be generated according to the first envelope information and predicted fine structure information, so that the second high frequency band signal can be smoothly switched to the processed first high frequency band signal.
- the processed first high frequency band signal of the current frame is obtained according to the predicted fine structure information and the first envelope information.
- the second high frequency band signal of the wide frequency band speech or audio signal before the switching can be smoothly switched to the processed first high frequency band signal corresponding to the narrow frequency band speech or audio signal, thus improving the quality of audio signals received by the user.
- step 202 shown in FIG. 6 includes the following steps:
- the first high frequency band signal of the narrowband speech or audio signal is null.
- the energy of the processed first high frequency band signal is attenuated by frames until the attenuation coefficient reaches a given threshold after the number of frames of the wide frequency band signal extended from the narrow frequency band speech or audio signal reaches a given number of frames.
- the interval between the current frame of speech or audio signal and the speech or audio signal of a frame before the switching may be obtained according to the current frame of speech or audio signal and the speech or audio signal of the frame before the switching.
- the number of frames of the narrow frequency band speech or audio signal may be recorded by using a counter, where the number of frames may be a predetermined value greater than or equal to 0.
- Step 602 If the processed first high frequency band signal does not need to be attenuated, synthesize the processed first high frequency band signal and the first low frequency band signal into a wide frequency band signal.
- the processed first high frequency band signal and the first low frequency band signal are directly synthesized into a wide frequency band signal.
- Step 603 If the processed first high frequency band signal needs to be attenuated, judge whether the attenuation factor corresponding to the processed first high frequency band signal is greater than the threshold.
- the initial value of the attenuation factor is 1, and the threshold is greater than or equal to 0 and smaller than 1. If it is determined that the processed first high frequency band signal needs to be attenuated in step 601, whether the attenuation factor corresponding to the processed first high frequency band signal is greater than a given threshold is judged in step 603.
- Step 604 If the attenuation factor is not greater than the given threshold, multiply the processed first high frequency band signal by the threshold, and synthesize the product and the first low frequency band signal into the wide frequency band signal.
- the attenuation factor is determined to be not greater than the given threshold in step 603, it indicates that the energy of the processed first high frequency band signal is already attenuated to a certain degree and that the processed first high frequency band signal may not cause negative impacts. In this case, this attenuation ratio may be kept. Then, the processed first high frequency band signal is multiplied by the threshold, and then the product and the first low frequency band signal are synthesized into a wide frequency band signal.
- Step 605 If the attenuation factor is greater than the given threshold, multiply the processed first high frequency band signal by the attenuation factor, and synthesize the product and the first low frequency band signal into the wide frequency band signal.
- the processed first high frequency band signal may cause poor listening at the attenuation factor and needs to be further attenuated until it reaches the given threshold. Then, the processed first high frequency band signal is multiplied by the attenuation factor, and then the product and the first low frequency band signal are synthesized into a wide frequency band signal.
- Step 606 Modify the attenuation factor to decrease the attenuation factor.
- the impact of the speech or audio signals before the switching on subsequent narrowband speech or audio signals gradually turns smaller, and the attenuation factor also turns smaller gradually.
- an embodiment of obtaining the processed first high frequency band signal through step 201 includes the following steps, as shown in FIG. 7 :
- the energy of the high frequency band signal of the wide frequency band speech or audio signal needs to be attenuated to ensure that the narrow frequency band speech or audio signal can be smoothly switched to the wide frequency band speech or audio signal.
- the product of the second high frequency band signal and the fourth weight 1 is added to the product of the first high frequency band signal and the fourth weight 2; the weighted value is the processed first high frequency band signal.
- Step 702 Decrease the fourth weight 1 as per the third weight step, and increase the fourth weight 2 as per the third weight step until the fourth weight 1 is equal to 0. The sum of the fourth weight 1 and the fourth weight 2 is equal to 1.
- the fourth weight 1 gradually turns smaller, while the fourth weight 2 gradually turns larger until the fourth weight 1 is equal to 0 and the fourth weight 2 is equal to 1. That is, the transmitted speech or audio signals are always wide frequency band speech or audio signals.
- step 201 may further include the following steps:
- a fixed parameter may be set to replace the high frequency band signal of the narrow frequency band speech or audio signal, where the fixed parameter is a constant greater than or equal to 0 and smaller than the energy of the first high frequency band signal.
- the product of the fixed parameter and the fifth weight 1 is added to the product of the first high frequency band signal and the fifth weight 2; the weighted value is the processed first high frequency band signal.
- Step 802 Decrease the fifth weight 1 as per the fourth weight step, and increase the fifth weight 2 as per the fourth weight step until the fifth weight 1 is equal to 0. The sum of the fifth weight 1 and the fifth weight 2 is equal to 1.
- the transmitted speech or audio signals are always real wide frequency band speech or audio signals.
- the high frequency band signal of the wide frequency band speech or audio signal is attenuated to obtain a processed high frequency band signal.
- the high frequency band signal corresponding to the narrow frequency band speech or audio signal before the switching can be smoothly switched to the processed high frequency band signal corresponding to the wide frequency band speech or audio signal, thus helping to improve the quality of audio signals received by the user.
- the envelope information may also be replaced by other parameters that can represent the high frequency band signal, for example, a linear predictive coding (LPC) parameter or an amplitude parameter.
- LPC linear predictive coding
- the program may be stored in a computer readable storage medium.
- the storage medium may be a read only memory (ROM), a random access memory (RAM), a magnetic disk, or a compact disk-read only memory (CD-ROM).
- FIG. 9 shows a structure of the first embodiment of an apparatus for switching speech or audio signals.
- the apparatus for switching speech or audio signals includes a processing module 91 and a first synthesizing module 92.
- the processing module 91 is adapted to weight the first high frequency band signal of the current frame of speech or audio signal and the second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal When a switching of a speech or audio occurs.
- M is greater than or equal to 1.
- the first synthesizing module 92 is adapted to synthesize the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- the processing module processes the first high frequency band signal of the current frame of speech or audio signal according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal can be smoothly switched to the processed first high frequency band signal.
- the first synthesizing module synthesizes the processed first high frequency band signal and the first low frequency band signal into a wide frequency band signal; the wide frequency band signal is transmitted to a user terminal, so that the user enjoys a high quality speech or audio signal.
- FIG. 10 shows a structure of the second embodiment of the apparatus for switching speech or audio signals.
- the apparatus for switching speech or audio signals in this embodiment is based on the first embodiment, and further includes a second synthesizing module 103.
- the second synthesizing module 103 is adapted to synthesize the first high frequency band signal and the first low frequency band signal into the wide frequency band signal when a switching of the speech or audio signal does not occur.
- the second synthesizing module is set to synthesize the first low frequency band signal and the first high frequency band signal of the first frequency band speech or audio signals of the current frame into a wide frequency band signal when a switching between speech or audio signals with different bandwidths occurs. In this way, the quality of speech or audio signals received by the user is improved.
- the processing module 101 includes the following modules, as shown in FIG. 10 and FIG. 11 :
- the apparatus for switching speech or audio signals in this embodiment may include a classifying module 1010 adapted to classify the first low frequency band signal of the current frame of speech or audio signal.
- the predicting module 1011 is further adapted to predict the fine structure information and envelope information corresponding to the first low frequency band signal of the current frame of speech or audio signal.
- the predicting module predicts the fine structure information and envelope information corresponding to the first high frequency band signal, so that the processed first high frequency band signal can be accurately generated by the first generating module and the second generating module. In this way, the first high frequency band signal can be smoothly switched to the processed first high frequency band signal, thus improving the quality of speech or audio signals received by the user.
- the classifying module classifies the first low frequency band signal of the current frame of speech or audio signal; the predicting module obtains the predicted fine structure information and predicted envelope information according to the signal type. In this way, the predicted fine structure information and predicted envelope information are more accurate, thus improving the quality of speech or audio signals received by the user.
- the first synthesizing module 102 includes the following modules, as shown in FIG. 10 and FIG. 12 :
- the initial value of the attenuation factor is 1, and the threshold is greater than or equal to 0 and smaller than 1.
- the processed first high frequency band signal is attenuated, so that the wide frequency band signal obtained by processing the current frame of speech or audio signal is more accurate, thus improving the quality of audio signals received by the user.
- the processing module 101 in this embodiment includes the following modules, as shown in FIG. 10 and FIG. 13a :
- the processing module 101 in this embodiment may further include the following modules, as shown in FIG. 10 and FIG. 13b :
- the apparatus for switching speech or audio signals in this embodiment, in the process of switching a speech or audio signal from a narrow frequency band speech or audio signal to a wide frequency band speech or audio signal, the high frequency band signal of the wide frequency band speech or audio signal is attenuated to obtain a processed high frequency band signal.
- the high frequency band signal corresponding to the narrow frequency band speech or audio signal before the switching can be smoothly switched to the processed high frequency band signal corresponding to the wide frequency band speech or audio signal, thus helping to improve the quality of audio signals received by the user.
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Quality & Reliability (AREA)
- Telephone Function (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Circuits Of Receivers In General (AREA)
Description
- This application claims priority to Chinese Patent, titled as "METHOD AND APPARATUS FOR SWITCHING SPEECH OR AUDIO SIGNALS", Application No.
201010163406.3, filed on Apr. 28, 2010 - The present invention relates to communication technologies, and in particular, to a method and an apparatus for switching speech or audio signals.
- Currently, during the process of transmitting speech or audio signals on a network, because the network conditions may vary, the network may intercept the bit stream of the speech or audio signals transmitted from an encoder to the network with different bit rates, so that the decoder may decode the speech or audio signals with different bandwidths from the intercepted bit stream.
- In the prior art, because the speech or audio signals transmitted on the network have different bandwidths, the bidirectional switching from/to a narrow frequency band speech or audio signal to/from a wide frequency band speech or audio signal may occur during the process of transmitting speech or audio signals. In embodiments of the present invention, the narrow frequency band signal is switched to a wide frequency band signal with only a low frequency band component through up-sampling and low-pass filtering; the wide frequency band speech or audio signal includes both a low frequency band signal component and a high frequency band signal component.
- During the implementation of the present invention, the inventor discovers at least the following problems in the prior art: Because high frequency band signal information is available in wide frequency band speech or audio signals but is absent in narrow frequency band speech or audio signals, when speech or audio signals with different bandwidths are switched, a energy jump may occur in the speech or audio signals resulting in uncomfortable feeling in listening, and thus reducing the quality of audio signals received by a user.
- Document
WO2009/056027 discloses a method to estimate the higher-band coding parameters of N speech frames after the switch by using the higher-band coding parameters of M buffered speech frames before the switch according to the equation (1). - The higher-band signal components of N speech frames after the switch may be reconstructed with a TDBWE or TDAC decoding algorithm. According to the requirements in practical applications, M may be any value less than N.
-
- The publication "G.729-based embedded variable bit-rate coder: An 8-32 kbit/s scalable wideband coder bitstream interoperable with G.729; G.729.1 (05/06)" discloses a fade-in of the higher-band signal after a narrow band to a wide band switch, while the transition from wide band to narrow band is instantaneous.
- Embodiments of the present invention provide a method and an apparatus for switching speech or audio signals to smoothly switch speech or audio signals between different bandwidths, thereby improving the quality of audio signals received by a user.
- A method for switching the bandwidth of speech or audio signals includes:
- when a switching from a wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs, weighting a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of the previous frame of speech or audio signal to obtain a processed first high frequency band signal; and
- synthesizing the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- An apparatus for switching speech or audio signals includes:
- a processing module, configured to: when a switching from a wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs, weight a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of the previous frame of speech or audio signal to obtain a processed first high frequency band signal; and
- a first synthesizing module, configured to: synthesize the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- By using the method and apparatus for switching the bandwidth speech or audio signals in embodiments of the present invention, the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal; the processed first high frequency band signal and the first low frequency band signal are synthesized into a wide frequency band signal. In this way, during the process of switching between speech or audio signals with different bandwidths, these speech or audio signals can be smoothly switched, thus reducing the ill impact of the energy jump on the subjective audio quality of the speech or audio signals and improving the quality of speech or audio signals received by the user.
- To make the technical solution of the present invention clearer, the accompanying drawings for illustrating the embodiments of the present invention are outlined below. Apparently, the accompanying drawings are exemplary only, and those skilled in the art can derive other drawings from such accompanying drawings without creative efforts.
-
FIG. 1 is a flowchart of a first embodiment of a method for switching speech or audio signals; -
FIG. 2 is a flowchart of a second embodiment of the method for switching speech or audio signals; -
FIG.2 is a flowchart of an embodiment ofstep 201 shown inFIG. 2 ; -
FIG.4 is a flowchart of an embodiment ofstep 302 shown inFIG. 3 ; -
FIG.5 is a second flowchart of another embodiment ofstep 302 shown inFIG. 3 ; -
FIG.6 is a flowchart of an embodiment ofstep 202 shown inFIG. 2 ; -
FIG.7 is a second flowchart of another embodiment ofstep 201 shown inFIG. 2 ; -
FIG.7 is a third flowchart of another embodiment ofstep 201 shown inFIG. 2 ; -
FIG. 9 shows a structure of a first embodiment of an apparatus for switching speech or audio signals; -
FIG. 10 shows a structure of a second embodiment of the apparatus for switching speech or audio signals; -
FIG. 11 is a first schematic diagram illustrating a structure of a processing module in the second embodiment of the apparatus for switching speech or audio signals; -
FIG. 12 is a schematic diagram illustrating a structure of a first module in the second embodiment of the apparatus for switching speech or audio signals; -
FIG. 13a is a second schematic diagram illustrating a structure of the processing module in the second embodiment of the apparatus for switching speech or audio signals; and -
FIG. 13b is a third schematic diagram illustrating a structure of the processing module in the second embodiment of the apparatus for switching speech or audio signals. - To facilitate the understanding of the object, technical solution, and merit of the present invention, the following describes the present invention in detail with reference to embodiments and accompanying drawings. Apparently, the embodiments are exemplary only and the present invention is not limited to such embodiments. Persons having ordinary skill in the related art can derive other embodiments from the embodiments given herein without making remarkable creative effort, and all such embodiments are covered in the scope of the present invention.
-
FIG. 1 is a flowchart of the first embodiment of a method for switching speech or audio signals. As shown inFIG. 1 , by using the method for switching speech or audio signals, when a switching of a speech or audio occurs, each frame after a switching frame is processed according to the following steps: - Step 101: When a switching of a speech or audio occurs, weight the first high frequency band signal of the current frame of speech or audio signal and the second high frequency band signal of the previous M frame, M=1, or M frames, M>1, of speech or audio signals of speech or audio signals to obtain a processed first high frequency band signal, where M is greater than or equal to 1.
- Step 102: Synthesize the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- In this embodiment, the previous M frame of speech or audio signals refer to M frame of speech or audio signals before the current frame. The L frame of speech or audio signals before the switching refer to L frame of speech or audio signals before the switching frame When a switching of a speech or audio occurs. If the current speech frame is a wide frequency band signal but the previous speech frame is a narrow frequency band signal or if the current speech frame is a narrow frequency band signal but the previous speech frame is a wide frequency band signal, the speech or audio signal is switched and the current speech frame is the switching frame.
- By using the method for switching speech or audio signals in this embodiment, the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal. In this way, during the process of switching between speech or audio signals with different bandwidths, the high frequency band signal of these speech or audio signals can be smoothly switched. Finally, the processed first high frequency band signal and the first low frequency band signal are synthesized into a wide frequency band signal; the wide frequency band signal is transmitted to a user terminal, so that the user enjoys a high quality speech or audio signal. By using the method for switching speech or audio signals in this embodiment, speech or audio signals with different bandwidths can be switched smoothly, thus reducing the impact of the sudden energy change on the subjective audio quality of the speech or audio signals and improving the quality of speech or audio signals received by the user.
-
FIG. 2 is a flowchart of the second embodiment of the method for switching speech or audio signals. As shown inFIG. 2 , the method includes the following steps: - Step 200: When a switching of the speech or audio signal does not occur, synthesize the first high frequency band signal of the current frame of speech or audio signal and the first low frequency band signal into a wide frequency band signal.
- Specifically, the first frequency band speech or audio signal in this embodiment may be a wide frequency band speech or audio signal or a narrow frequency band speech or audio signal. When the first frequency band speech or audio signal is not switched during the transmission of the speech or audio signal, the operation may be executed according to the following two cases: 1. If the first frequency band speech or audio signal is a wide frequency band speech or audio signal, the low frequency band signal and high frequency band signal of the wide frequency band speech or audio signals are synthesized into a wide frequency band signal. 2. If the first frequency band speech or audio signal is a narrow frequency band speech or audio signal, the low frequency band signal and the high frequency band signal of the narrow frequency band speech or audio signal are synthesized into a wide frequency band signal. In this case, although the signal is a wide frequency band signal, the high frequency band is null.
- Step 201: When the speech or audio signal is switched, weight the first high frequency band signal of the current frame of speech or audio signal and the second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal. M is greater than or equal to 1.
- Specifically, when the switching between speech or audio signals with different bandwidths occurs, the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal. For example, when the wide frequency band speech or audio signal is switched to the narrow frequency band speech or audio signal, because the high frequency band signal information corresponding to the narrow frequency band speech or audio signal is null, the component of the high frequency band signal corresponding to the narrow frequency band speech or audio signal needs to be restored to enable the wide frequency band speech or audio signal to be smoothly switched to the narrow frequency band speech or audio signal. However, when the narrow frequency band speech or audio signal is switched to the wide frequency band speech or audio signal, because the high frequency band signal of the wide frequency band speech or audio signal is not null, the energy of the high frequency band signals of consecutive multiple-frame wide frequency band speech or audio signals after the switching must be weakened to enable the narrow frequency band speech or audio signal to be smoothly switched to the wide frequency band speech or audio signal, so that the high frequency band signal of the wide frequency band speech or audio signal is gradually switched to a real high frequency band signal. By processing the current frame of speech or audio signal in
step 201, high frequency band signals in speech or audio signals with different bandwidths can be smoothly switched, which avoids uncomfortable listening of the user due to the sudden energy change in the process of switching between the wide frequency band speech or audio signal and the narrow frequency band speech or audio signal, enabling the user to receive high quality audio signals. To simplify the process of obtaining the processed first high frequency band signal, the first high frequency band signal and the second high frequency band signal of the previous M frame of speech or audio signals may be directly weighted. The weighted result is the processed first high frequency band signal. - Step 202: Synthesize the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- Specifically, after the current frame of speech or audio signal is processed in
step 201, the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal of the current frame; then, instep 202, the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal are synthesized into a wide frequency band signal, so that the speech or audio signals received by the user are always wide frequency band speech or audio signals. In this way, speech or audio signals with different bandwidths are smoothly switched, which helps improve the quality of audio signals received by the user. - By using the method for switching speech or audio signals in this embodiment, the first high frequency band signal of the current frame of speech or audio signal is processed according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal of the previous M frame of speech or audio signals can be smoothly switched to the processed first high frequency band signal. In this way, during the process of switching between speech or audio signals with different bandwidths, the high frequency band signal of these speech or audio signals can be smoothly switched. Finally, the processed first high frequency band signal and the first low frequency band signal are synthesized into a wide frequency band signal; the wide frequency band signal is transmitted to a user terminal, so that the user enjoys a high quality speech or audio signal. By using the method for switching speech or audio signals in this embodiment, speech or audio signals with different bandwidths can be switched smoothly, thus reducing the impact of the sudden energy change on the subjective audio quality of the speech or audio signals and improving the quality of audio signals received by the user. In addition, when speech or audio signals with different bandwidths are not switched, the first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal are synthesized into a wide frequency band signal, so that the user can obtain high quality audio signal.
- According to the preceding technical solution, optionally, as shown in
FIG. 3 , when a switching from wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs,step 201 includes the following steps: - Step 301: Predict fine structure information and envelope information corresponding to the first high frequency band signal.
- Specifically, the speech or audio signal may be divided into fine structure information and envelope information, so that the speech or audio signal can be restored according to the fine structure information and envelope information. In the process of switching from a wide frequency band speech or audio signal to a narrow frequency band speech or audio signal, because only a low frequency band signal is available in the narrow frequency band speech or audio signal and the high frequency band signal is null, to enable the wide frequency band speech or audio signal to be smoothly switched to the narrow frequency band speech or audio signal, the high frequency band signal needed by the current narrow frequency band speech or audio signal needs to be restored so as to implement smooth switching between speech or audio signals. In
step 301, the predicted fine structure information and envelope information corresponding to the first high frequency band signal of the narrow frequency band speech or audio signal are predicted. - To predict the fine structure information and envelope information corresponding to the current frame of speech or audio signal more accurately, the first low frequency band signal of the current frame of speech or audio signal may be classified in
step 301, and then the predicted fine structure information and envelope information corresponding to the first high frequency band signal are predicted according to the signal type of the first low frequency band signal. For example, the narrow frequency band speech or audio signal of the current frame may be a harmonic signal, or a non-harmonic signal or a transient signal. In this case, the fine structure information and envelope information corresponding to the type of the narrow frequency band speech or audio signal can be obtained, so that the fine structure information and envelope information corresponding to the high frequency band signal can be predicted more accurately. The method for switching speech or audio signals in this embodiment does not limit the signal type of the narrow frequency band speech or audio signal. - Step 302: Weight the predicted envelope information and the previous M frame envelope information corresponding to the second high frequency band signal of the previous M frame of speech or audio signals to obtain first envelope information corresponding to the first high frequency band signal.
- Specifically, after the predicted fine structure information and envelope information corresponding to the first high frequency band signal of the current frame are predicted in
step 301, the first envelope information corresponding to the first high frequency band signal may be generated according to the predicted envelope information and the previous M frame envelope information corresponding to the second high frequency band signal of the previous M frame of speech or audio signals. - Specifically, the process of generating the first envelope information corresponding to the first high frequency band signal in
step 302 may be implemented by using the following two modes: - 1. As shown in
FIG. 4 , an embodiment of obtaining the first envelope information throughstep 302 may include the following steps:- Step 401: Calculate a correlation coefficient between the first low frequency band signal and the low frequency band signal of the previous N frame, M=1, or N frames, N>1, of speech or audio signals according to the first low frequency band signal and the low frequency band signal of the previous N frame of speech or audio signals, where N is greater than or equal to 1.
- Specifically, the first low frequency band signal of the current frame of speech or audio signal is compared with the low frequency band signal of the previous N frame of speech or audio signals to obtain a correlation coefficient between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous N frame of speech or audio signals. For example, the correlation between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous N frame of speech or audio signals may be determined by judging the difference between a frequency band of the first low frequency band signal of the current frame of speech or audio signal and the same frequency band of the low frequency band signal of the previous N frame of speech or audio signals in terms of the energy size or the information type, so that the desired correlation coefficient can be calculated. The previous N frame of speech or audio signals may be narrow frequency band speech or audio signals, wide frequency band speech or audio signals, or hybrid signals of narrow frequency band speech or audio signals and wide frequency band speech or audio signals.
- Step 402: Judge whether the correlation coefficient is within a given first threshold range.
- Specifically, after the correlation coefficient is calculated in
step 401, whether the correlation coefficient is within the given threshold range is judged. The purpose of calculating the correlation coefficient is to judge whether the current frame of speech or audio signal is gradually switched from the previous N frame of speech or audio signals or suddenly switched from the previous N frame of speech or audio signals. That is, the purpose is to judge whether their characteristics are the same and then determine the weight of the high frequency band signal of the previous frame in the process of predicting the high frequency band signal of the current speech or audio signal. For example, if the first low frequency band signal of the current frame of speech or audio signal has the same energy as the low frequency band signal of the current speech or audio signal. For example, if the first low frequency band signal of the current frame of speech or audio signal has the same energy as the low frequency band signal of the previous frame of speech or audio signal and their signal types are the same, it indicates that the previous frame of speech or audio signal is highly correlated with the current frame of speech or audio signal. Therefore, to accurately restore the first envelope information corresponding to the current frame of speech or audio signal, the high frequency band envelope information or transitional envelope information corresponding to the previous frame of speech or audio signal occupies a larger weight; otherwise, if there is a huge difference between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous frame of speech or audio signal in terms of energy and their signal types are different, it indicates that the previous speech or audio signal is lowly correlated with the current frame of speech or audio signal. Therefore, to accurately restore the first envelope information corresponding to the current frame of speech or audio signal, the high frequency band envelope information or transitional envelope information corresponding to the previous frame of speech or audio signal occupies a smaller weight. - Step 403: If the correlation coefficient is not within the given first threshold range, weight according to a set
first weight 1 and a setfirst weight 2 to calculate the first envelope information. Thefirst weight 1 refers to the weight value of the previous frame envelope information corresponding to the high frequency band signal of the previous frame of speech or audio signal, and thefirst weight 2 refers to the weight value of the envelope information. - Specifically, if the correlation coefficient is determined to be not within the given first threshold range in
step 402, it indicates that the current frame of speech or audio signal is slightly correlated with the previous N frame of speech or audio signals. Therefore, the previous M frame envelope information or transitional envelope information corresponding to the first frequency band speech or audio signal of the previous M frames or the high frequency band envelope information corresponding to the previous frame of speech or audio signal has a slight impact on the first envelope information. When the first envelope information corresponding to the current frame of speech or audio signal is restored, the previous M frame envelope information or transitional envelope information corresponding to the first frequency band speech or audio signal of the previous M frames or the high frequency band envelope information corresponding to the previous frame of speech or audio signal occupies a smaller weight. Therefore, the first envelope information of the current frame may be calculated according to the setfirst weight 1 and thefirst weight 2. Thefirst weight 1 refers to the weight value of the envelope information corresponding to the high frequency band signal of the previous frame of speech or audio signal. The previous frame of speech or audio signal may be a wide frequency band speech or audio signal or a processed narrow frequency band speech or audio signal. In the case of first switching, the previous frame of speech or audio signal is the wide frequency band speech or audio signal, while thefirst weight 2 refers to the weight value of the predicted envelope information. The product of the predicted envelope information and thefirst weight 2 is added to the product of the previous frame envelope information and thefirst weight 1, and the weighted sum is the first envelope information of the current frame. In addition, subsequently transmitted speech or audio signals are processed according to this method and weight. The first envelope information corresponding to the speech or audio signal is restored until a speech or audio signal is switched again. - Step 404: If the correlation coefficient is within the given first threshold range, weight according to a set
second weight 1 and a setsecond weight 2 to calculate the transitional envelope information. Thesecond weight 1 refers to the weight value of the envelope information before the switching, and thesecond weight 2 refers to the weight value of the previous M frame envelope information, where M is greater than or equal to 1. - Specifically, if the correlation coefficient is determined to be within the given threshold range in
step 402, the current frame of speech or audio signal has characteristics similar to those of the previous consecutive N frame of speech or audio signals, and the first envelope information corresponding to the current frame of speech or audio signal is greatly affected by the envelope information of the previous consecutive N frame of speech or audio signals. In view of the authenticity of the previous M frame envelopes, the transitional envelope information corresponding to the current frame of speech or audio signal needs to be calculated according to the previous M frame envelope information and the envelope information before the switching. When the first envelope information of the current frame of speech or audio signal is restored, the previous M frame envelope information and the previous L frame envelope information before the switching should occupy a larger weight. Then, the first envelope information is calculated according to the transitional envelope information. Thesecond weight 1 refers to the weight value of the envelope information before the switching, and thesecond weight 2 refers to the weight value of the previous M frame envelope information. In this case, the product of the envelope information before the switching and thesecond weight 1 is added to the product of the previous M frame envelope information and thesecond weight 2, and the weighted value is the transitional envelope information. - Step 405: Decrease the
second weight 1 as per the first weight step, and increase thesecond weight 2 as per the first weight step. - Specifically, as the speech or audio signals are transmitted, the impact of the wide frequency band speech or audio signals before the switching on the subsequent narrow frequency band speech or audio signals is gradually decreased. To calculate the first envelope information more accurately, adaptive adjustment needs to be performed on the
second weight 1 and thesecond weight 2. Because the impact of the L frame wide frequency band speech or audio signals before the switching on the subsequent speech or audio signals is decreased gradually, the value of thesecond weight 1 turns smaller gradually, while the value of thesecond weight 2 turns larger gradually, thus weakening the impact of the envelope information before the switching on the first envelope information. Instep 405, thesecond weight 1 and thesecond weight 2 may be modified according to the following formulas: Newsecond weight 1 = Old second weight 1 - First weight step; Newsecond weight 2 = Oldsecond weight 2 + First weight step, where the first weight step is a set value. - Step 406: Judge whether a set
third weight 1 is greater than thefirst weight 1. - Specifically, the
third weight 1 refers to the weight value of the transitional envelope information. The impact of the transitional envelope information on the first envelope information of the current frame may be determined by comparing thethird weight 1 with thesecond weight 1. The transitional envelope information is calculated according to the previous M frame envelope information and the envelope information before the switching. Therefore, thethird weight 1 actually represents the degree of the impact that the first envelope information suffers from the envelope information before the switching. - Step 407: If the
third weight 1 is not greater than thefirst weight 1, weight according to the setfirst weight 1 and thefirst weight 2 to calculate the first envelope information. - Specifically, when the
third weight 1 is determined to be smaller than or equal to thefirst weight 1 instep 406, it indicates that the current frame of speech or audio signal is a little far from the L frame of speech or audio signals before the switching and that the first envelope information is mainly affected by the previous M frame envelope information. Therefore, the first envelope information of the current frame may be calculated according to the setfirst weight 1 and thefirst weight 2. - Step 408: If the
third weight 1 is greater than thefirst weight 1, weight according to the setthird weight 1 and thethird weight 2 to calculate the first envelope information. Thethird weight 1 refers to the weight value of the transitional envelope information, and thethird weight 2 refers to the weight value of the predicted envelope information. - Specifically, if the
third weight 1 is determined to be greater than thefirst weight 1 instep 406, it indicates that the current frame of speech or audio signal is closer to the L frame of speech or audio signals before the switching and that the first envelope information is greatly affected by the envelope information before the switching. Therefore, the first envelope information of the current frame needs to be calculated according to the transitional envelope information. Thethird weight 1 refers to the weight value of the transitional envelope information, and thethird weight 2 refers to the weight value of the predicted envelope information. In this case, the product of the transitional envelope information and thethird weight 1 is added to the product of the predicted envelope information and thethird weight 2, and the weighted value is the first envelope information. - Step 409: Decrease the
third weight 1 as per the second weight step, and increase thethird weight 2 as per the second weight step until thethird weight 1 is equal to 0. - Specifically, the purpose of modifying the
third weight 1 and thethird weight 2 instep 409 is the same as that of modifying thesecond weight 1 and thesecond weight 2 instep 405, that is, the purpose is to perform adaptive adjustment on thethird weight 1 and thethird weight 2 to calculate the first envelope information more accurately when the impact of the L frame of speech or audio signals before the switching on the subsequently transmitted speech or audio signals is decreased gradually. Because the impact of the L frame of speech or audio signals before the switching on the subsequent speech or audio signals is decreased gradually, the value of thethird weight 1 turns smaller gradually, while the value of thethird weight 2 turns larger gradually, thus weakening the impact of the envelope information before the switching on the first envelope information. Instep 409, thethird weight 1 and thethird weight 2 may be modified according to the following formulas: Newthird weight 1 = Old third weight 1 - Second weight step; Newthird weight 2 = Oldthird weight 2 + Second weight step, where the second weight step is a set value. - The sum of the
first weight 1 and thefirst weight 2 is equal to 1; the sum of thesecond weight 1 and thesecond weight 2 is equal to 1; the sum of thethird weight 1 and thethird weight 2 is equal to 1; the initial value of thethird weight 1 is greater than the initial value of thefirst weight 1; and thefirst weight 1 and thefirst weight 2 are fixed constants. Specifically, theweight 1 and theweight 2 in this embodiment actually represent the percentages of the envelope information before the switching and the previous M frame envelope information in the first envelope information of the current frame. If the current frame of speech or audio signal is close to the L frame of speech or audio signals before the switching and their correlation is high, the percentage of the envelope information before the switching is high, while the percentage of the previous M frame envelope information is low. If the current frame of speech or audio signal is a little far from the L frame of speech or audio signals before the switching, it indicates that the speech or audio signal is stably transmitted on the network; or if the current frame of speech or audio signal is slightly correlated with the L frame of speech or audio signals before the switching, it indicates that the characteristics of the current frame of speech or audio signal are already changed. Therefore, if the current frame of speech or audio signal is slightly affected by the L frame of speech or audio signals before the switching, the percentage of the envelope information before the switching is low. - In addition,
step 404 may be executed afterstep 405. That is, thesecond weight 1 and thesecond weight 2 may be modified firstly, and then the transitional envelope information is calculated according to thesecond weight 1 and thesecond weight 2. Similarly, step 408 may be executed afterstep 409. That is, thethird weight 1 and thethird weight 2 may be modified firstly, and then the first envelope information is calculated according to thethird weight 1 and thethird weight 2. - 2. As shown in
FIG. 5 , another embodiment of obtaining the first envelope information throughstep 302 may further include the following steps:- Step 501: Calculate a correlation coefficient between the first low frequency band signal and the low frequency band signal of the previous frame of speech or audio signal according to the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous frame of speech or audio signal.
- Specifically, to obtain more accurate first envelope information, the relationship between a frequency band of the first low frequency band signal of the current frame of speech or audio signal and the same frequency band of the low frequency band signal of the previous frame of speech or audio signal is calculated. In this embodiment, "corr" may be used to indicate the correlation coefficient. This correlation coefficient is obtained according to the energy relationship between the first low frequency band signal of the current frame of speech or audio signal and the low frequency band signal of the previous frame of speech or audio signal. If the energy difference is small, the "corr" is large; otherwise, the "corr" is small. For the specific process, see the calculation about the correlation of the previous N frame of speech or audio signals in
step 401. - Step 502: Judge whether the correlation coefficient is within a given second threshold range.
- Specifically, after the value of the "corr" is calculated in
step 501, whether the calculated "corr" value is within the given second threshold is judged. For example, the second threshold range may be represented by c1 to c2 in this embodiment. - Step 503: If the correlation coefficient is not within the given second threshold range, weight according to the set
first weight 1 and thefirst weight 2 to calculate the first envelope information. Thefirst weight 1 refers to the weight value of the previous frame envelope information corresponding to the high frequency band signal of the previous frame of speech or audio signal, and thefirst weight 2 refers to the weight value of the predicted envelope information. Thefirst weight 1 and thesecond weight 2 are fixed constants. - Specifically, when the "corr" value is determined to be smaller than c1 or greater than c2, it is determined that the first envelope information corresponding to the current frame of speech or audio signal is slightly affected by the envelope information of the previous frame of speech or audio signal before the switching. Therefore, the first envelope information of the current frame is calculated according to the set
first weight 1 and thefirst weight 2. The product of the predicted envelope information and thefirst weight 2 is added to the product of the previous frame envelope information and thefirst weight 1, and the weighted sum is the first envelope information of the current frame. In addition, subsequently transmitted narrowband speech or audio signals are processed according to this method and weight. The first envelope information corresponding to the narrowband speech or audio signal is restored until the speech or audio signals with different bandwidths are switched again. For example, thefirst weight 1 in this embodiment may be represented by a1; thefirst weight 2 may be represented by b1; the previous frame envelope information may be represented by pre_fenv; the predicted envelope information may be represented by fenv; and the first envelope information may be represented by cur_fenv. In this case, step 503 may be represented by the following formula: cur_fenv = pre_fenv x a1 + fenv x b1. - Step 504: If the correlation coefficient is within the second threshold range, judge whether the set
second weight 1 is greater than thefirst weight 1. Thesecond weight 1 refers to the weight value of the envelope information before the switching that corresponds to the high frequency band signal of the previous frame of speech or audio signal before the switching. - Specifically, if c1 < corr < c2, the degree of the impact of the envelope information before the switching and the previous frame envelope information on the first envelope information of the current frame may be obtained by comparing the
second weight 1 with thefirst weight 1. - Step 505: If the
second weight 1 is not greater than thefirst weight 1, weight according to the setfirst weight 1 and thefirst weight 2 to calculate the first envelope information. - Specifically, when the
second weight 1 is determined to be smaller than thefirst weight 1 instep 504, it indicates that the current frame of speech or audio signal is a little far from the previous frame of speech or audio signal before the switching and that the first envelope information is slightly affected by the previous frame envelope information before the switching. Therefore, the first envelope information of the current frame may be calculated according to the setfirst weight 1 and thefirst weight 2. In this case, step 505 may be represented by the following formula: cur_fenv = pre_fenv x a1 + fenv x b1. - Step 506: If the
second weight 1 is greater than thefirst weight 1, weight according to thesecond weight 1 and the setsecond weight 2 to calculate the first envelope information. Thesecond weight 2 refers to the weight value of the predicted envelope information. For example, thesecond weight 1 may be represented by a2, and thesecond weight 2 may be represented by b2. - Specifically, when the
second weight 1 is determined to be greater than thefirst weight 1 instep 504, it indicates that the current frame of speech or audio signal is closer to the first frequency band speech or audio signal of the previous frame before the switching and that the first envelope information is greatly affected by the envelope information before the switching that corresponds to the previous frame of speech or audio signal before the switching. Therefore, the first envelope information of the current frame may be calculated according to the setsecond weight 1 and thesecond weight 2. In this case, the product of the predicted envelope information and thesecond weight 2 is added to the product of the envelope information before the switching and thesecond weight 1, and the weighted sum is the first envelope information of the current frame. The envelope information before the switching may be represented by con_fenv. In this case, step 506 may be represented by the following formula: cur_fenv = con_fenv x a2 + fenv x b2. - Step 507: Decrease the
second weight 1 as per the second weight step, and increase thesecond weight 2 as per the second weight step. - Specifically, as the speech or audio signals are transmitted, the impact of a speech or audio signal before the switching on the subsequent frame of speech or audio signal is gradually decreased. To calculate the first envelope information more accurately, adaptive adjustment needs to be performed on the
second weight 1 and thesecond weight 2. The impact of the speech or audio signal before the switching on the subsequent frame of speech or audio signal is gradually decreased, while the impact of the previous frame of speech or audio signal close to the current frame of speech or audio signal turns larger gradually. Therefore, the value of thesecond weight 1 turns smaller gradually, while the value of thesecond weight 2 turns larger gradually. In this way, the impact of the envelope information before the switching on the first envelope information is weakened, while the impact of the predicted envelope information on the first envelope information is enhanced. Instep 507, thesecond weight 1 and thesecond weight 2 may be modified according to the following formulas: Newsecond weight 1 = Old second weight 1 - First weight step; Newsecond weight 2 = Oldsecond weight 2 + First weight step, where the first weight step is a set value. - The sum of the
first weight 1 and thefirst weight 2 is equal to 1; the sum of thesecond weight 1 and thesecond weight 2 is equal to 1; the initial value of thesecond weight 1 is greater than the initial value of thefirst weight 1. - Step 303: Generate a processed first high frequency band signal according to the first envelope information and the predicted fine structure information.
- Specifically, after the first envelope information of the current frame is obtained in
step 302, the processed first high frequency band signal may be generated according to the first envelope information and predicted fine structure information, so that the second high frequency band signal can be smoothly switched to the processed first high frequency band signal. - By using the method for switching speech or audio signals in this embodiment, in the process of switching a speech or audio signal from a wide frequency band speech or audio signal to a narrow frequency band speech or audio signal, the processed first high frequency band signal of the current frame is obtained according to the predicted fine structure information and the first envelope information. In this way, the second high frequency band signal of the wide frequency band speech or audio signal before the switching can be smoothly switched to the processed first high frequency band signal corresponding to the narrow frequency band speech or audio signal, thus improving the quality of audio signals received by the user.
- Based on the preceding technical solution, step 202 shown in
FIG. 6 includes the following steps: - Step 601: Judge whether the processed first high frequency band signal needs to be attenuated according to the current frame of speech or audio signal and the previous frame of speech or audio signal before the switching.
- Specifically, the first high frequency band signal of the narrowband speech or audio signal is null. In the process of switching the wide frequency band speech or audio signal to the narrow frequency band speech or audio signal, to prevent the negative impact of the processed first high frequency band signal corresponding to the restored narrow frequency band speech or audio signal, the energy of the processed first high frequency band signal is attenuated by frames until the attenuation coefficient reaches a given threshold after the number of frames of the wide frequency band signal extended from the narrow frequency band speech or audio signal reaches a given number of frames. The interval between the current frame of speech or audio signal and the speech or audio signal of a frame before the switching may be obtained according to the current frame of speech or audio signal and the speech or audio signal of the frame before the switching. For example, the number of frames of the narrow frequency band speech or audio signal may be recorded by using a counter, where the number of frames may be a predetermined value greater than or equal to 0.
- Step 602: If the processed first high frequency band signal does not need to be attenuated, synthesize the processed first high frequency band signal and the first low frequency band signal into a wide frequency band signal.
- Specifically, if it is determined that the processed first high frequency band signal does not need to be attenuated in
step 601, the processed first high frequency band signal and the first low frequency band signal are directly synthesized into a wide frequency band signal. - Step 603: If the processed first high frequency band signal needs to be attenuated, judge whether the attenuation factor corresponding to the processed first high frequency band signal is greater than the threshold.
- Specifically, the initial value of the attenuation factor is 1, and the threshold is greater than or equal to 0 and smaller than 1. If it is determined that the processed first high frequency band signal needs to be attenuated in
step 601, whether the attenuation factor corresponding to the processed first high frequency band signal is greater than a given threshold is judged instep 603. - Step 604: If the attenuation factor is not greater than the given threshold, multiply the processed first high frequency band signal by the threshold, and synthesize the product and the first low frequency band signal into the wide frequency band signal.
- Specifically, if the attenuation factor is determined to be not greater than the given threshold in
step 603, it indicates that the energy of the processed first high frequency band signal is already attenuated to a certain degree and that the processed first high frequency band signal may not cause negative impacts. In this case, this attenuation ratio may be kept. Then, the processed first high frequency band signal is multiplied by the threshold, and then the product and the first low frequency band signal are synthesized into a wide frequency band signal. - Step 605: If the attenuation factor is greater than the given threshold, multiply the processed first high frequency band signal by the attenuation factor, and synthesize the product and the first low frequency band signal into the wide frequency band signal.
- Specifically, if the attenuation factor is greater than the given threshold in
step 603, it indicates that the processed first high frequency band signal may cause poor listening at the attenuation factor and needs to be further attenuated until it reaches the given threshold. Then, the processed first high frequency band signal is multiplied by the attenuation factor, and then the product and the first low frequency band signal are synthesized into a wide frequency band signal. - Step 606: Modify the attenuation factor to decrease the attenuation factor.
- Specifically, as the speech or audio signals are transmitted, the impact of the speech or audio signals before the switching on subsequent narrowband speech or audio signals gradually turns smaller, and the attenuation factor also turns smaller gradually.
- Optionally, based on the preceding technical solution, when a switching from a narrow frequency band speech or audio signal a wide frequency band speech or audio signal occurs, an embodiment of obtaining the processed first high frequency band signal through
step 201 includes the following steps, as shown inFIG. 7 : - Step 701: Weight according to the set
fourth weight 1 and thefourth weight 2 to calculate a processed first high frequency band signal. Thefourth weight 1 refers to the weight value of the second high frequency band signal, and thefourth weight 2 refers to the weight value of the first high frequency band signal of the current frame of speech or audio signal. - Specifically, in the process of switching the narrow frequency band speech or audio signal to the wide frequency band speech or audio signal, because the high frequency band signal of the wide frequency band speech or audio signal is not null but the high frequency band signal corresponding to the narrow frequency band speech or audio signal is null, the energy of the high frequency band signal of the wide frequency band speech or audio signal needs to be attenuated to ensure that the narrow frequency band speech or audio signal can be smoothly switched to the wide frequency band speech or audio signal. The product of the second high frequency band signal and the
fourth weight 1 is added to the product of the first high frequency band signal and thefourth weight 2; the weighted value is the processed first high frequency band signal. - Step 702: Decrease the
fourth weight 1 as per the third weight step, and increase thefourth weight 2 as per the third weight step until thefourth weight 1 is equal to 0. The sum of thefourth weight 1 and thefourth weight 2 is equal to 1. - Specifically, as the speech or audio signals are transmitted, the impact of the narrow frequency band speech or audio signals before the switching on subsequent wide frequency band speech or audio signals gradually turns smaller. Therefore, the
fourth weight 1 gradually turns smaller, while thefourth weight 2 gradually turns larger until thefourth weight 1 is equal to 0 and thefourth weight 2 is equal to 1. That is, the transmitted speech or audio signals are always wide frequency band speech or audio signals. - Similarly, as shown in
FIG. 8 , another embodiment of obtaining the processed first high frequency band signal throughstep 201 may further include the following steps: - Step 801: Weight according to the set
fifth weight 1 and thefifth weight 2 to calculate a processed first high frequency band signal. Thefifth weight 1 is the weight value of a set fixed parameter, and thefifth weight 2 is the weight value of the first high frequency band signal of the current frame of speech or audio signal. - Specifically, because the first high frequency band signal of the narrow frequency band speech or audio signal is null, a fixed parameter may be set to replace the high frequency band signal of the narrow frequency band speech or audio signal, where the fixed parameter is a constant greater than or equal to 0 and smaller than the energy of the first high frequency band signal. The product of the fixed parameter and the
fifth weight 1 is added to the product of the first high frequency band signal and thefifth weight 2; the weighted value is the processed first high frequency band signal. - Step 802: Decrease the
fifth weight 1 as per the fourth weight step, and increase thefifth weight 2 as per the fourth weight step until thefifth weight 1 is equal to 0. The sum of thefifth weight 1 and thefifth weight 2 is equal to 1. - Specifically, as the speech or audio signals are transmitted, the impact of the narrow frequency band speech or audio signals before the switching on subsequent wide frequency band speech or audio signals gradually turns smaller. Therefore, the
fifth weight 1 gradually turns smaller, while thefifth weight 2 gradually turns larger until thefifth weight 1 is equal to 0 and thefifth weight 2 is equal to 1. That is, the transmitted speech or audio signals are always real wide frequency band speech or audio signals. - By using the method for switching speech or audio signals in this embodiment, in the process of switching a speech or audio signal from a narrow frequency band speech or audio signal to a wide frequency band speech or audio signal, the high frequency band signal of the wide frequency band speech or audio signal is attenuated to obtain a processed high frequency band signal. In this way, the high frequency band signal corresponding to the narrow frequency band speech or audio signal before the switching can be smoothly switched to the processed high frequency band signal corresponding to the wide frequency band speech or audio signal, thus helping to improve the quality of audio signals received by the user.
- In this embodiment, the envelope information may also be replaced by other parameters that can represent the high frequency band signal, for example, a linear predictive coding (LPC) parameter or an amplitude parameter.
- Those skilled in the art may understand that all or a part of the steps of the method according to the embodiments of the present invention may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. When the program runs, the steps of the method according to the embodiments of the present invention are performed. The storage medium may be a read only memory (ROM), a random access memory (RAM), a magnetic disk, or a compact disk-read only memory (CD-ROM).
-
FIG. 9 shows a structure of the first embodiment of an apparatus for switching speech or audio signals. As shown inFIG. 9 , the apparatus for switching speech or audio signals includes aprocessing module 91 and afirst synthesizing module 92. - The
processing module 91 is adapted to weight the first high frequency band signal of the current frame of speech or audio signal and the second high frequency band signal of the previous M frame of speech or audio signals to obtain a processed first high frequency band signal When a switching of a speech or audio occurs. M is greater than or equal to 1. - The
first synthesizing module 92 is adapted to synthesize the processed first high frequency band signal and the first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal. - In the apparatus for switching speech or audio signals in this embodiment, the processing module processes the first high frequency band signal of the current frame of speech or audio signal according to the second high frequency band signal of the previous M frame of speech or audio signals, so that the second high frequency band signal can be smoothly switched to the processed first high frequency band signal. In this way, during the process of switching between speech or audio signals with different bandwidths, the high frequency band signal of these speech or audio signals can be smoothly switched. Finally, the first synthesizing module synthesizes the processed first high frequency band signal and the first low frequency band signal into a wide frequency band signal; the wide frequency band signal is transmitted to a user terminal, so that the user enjoys a high quality speech or audio signal. By using the method for switching speech or audio signals in this embodiment, speech or audio signals with different bandwidths can be switched smoothly, thus reducing the impact of the sudden energy change on the subjective audio quality of the speech or audio signals and improving the quality of audio signals received by the user.
-
FIG. 10 shows a structure of the second embodiment of the apparatus for switching speech or audio signals. As shown inFIG. 10 , the apparatus for switching speech or audio signals in this embodiment is based on the first embodiment, and further includes asecond synthesizing module 103. - The
second synthesizing module 103 is adapted to synthesize the first high frequency band signal and the first low frequency band signal into the wide frequency band signal when a switching of the speech or audio signal does not occur. - In the apparatus for switching speech or audio signal in this embodiment, the second synthesizing module is set to synthesize the first low frequency band signal and the first high frequency band signal of the first frequency band speech or audio signals of the current frame into a wide frequency band signal when a switching between speech or audio signals with different bandwidths occurs. In this way, the quality of speech or audio signals received by the user is improved.
- According to the preceding technical solution, optionally, when a switching from wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs, the
processing module 101 includes the following modules, as shown inFIG. 10 and FIG. 11 : - a
predicting module 1011, adapted to predict fine structure information and envelope information corresponding to the first high frequency band signal; - a
first generating module 1012, adapted to weight the predicted envelope information and the previous M frame envelope information corresponding to the second high frequency band signal of the previous M frame of speech or audio signals to obtain first envelope information corresponding to the first high frequency band signal; and - a
second generating module 1013, adapted to generate a processed first high frequency band signal according to the first envelope information and the predicted fine structure information. - Further, the apparatus for switching speech or audio signals in this embodiment may include a classifying
module 1010 adapted to classify the first low frequency band signal of the current frame of speech or audio signal. Thepredicting module 1011 is further adapted to predict the fine structure information and envelope information corresponding to the first low frequency band signal of the current frame of speech or audio signal. - In the apparatus for switching speech or audio signals in this embodiment, the predicting module predicts the fine structure information and envelope information corresponding to the first high frequency band signal, so that the processed first high frequency band signal can be accurately generated by the first generating module and the second generating module. In this way, the first high frequency band signal can be smoothly switched to the processed first high frequency band signal, thus improving the quality of speech or audio signals received by the user. In addition, the classifying module classifies the first low frequency band signal of the current frame of speech or audio signal; the predicting module obtains the predicted fine structure information and predicted envelope information according to the signal type. In this way, the predicted fine structure information and predicted envelope information are more accurate, thus improving the quality of speech or audio signals received by the user.
- Based on the preceding technical solution, optionally, the
first synthesizing module 102 includes the following modules, as shown inFIG. 10 andFIG. 12 : - a first judging module 1021, adapted to judge whether the processed first high frequency band signal needs to be attenuated according to the current frame of speech or audio signal and the previous frame of speech or audio signal before the switching;
- a
third synthesizing module 1022, adapted to synthesize the processed first high frequency band signal and the first low frequency band signal into a wide frequency band signal when the first judging module 1021 determines that the processed first high frequency band signal does not need to be attenuated; - a
second judging module 1023, adapted to judge whether the attenuation factor corresponding to the processed first high frequency band signal is greater than the given threshold when the first judging module 1021 determines that the processed first high frequency band signal needs to be attenuated; - a
fourth synthesizing module 1024, adapted to: if thesecond judging module 1023 determines that the attenuation factor is not greater than the given threshold, multiply the processed first high frequency band signal by the threshold, and synthesize the product and the first low frequency band signal into a wide frequency band signal; - a
fifth synthesizing module 1025, adapted to: if thesecond judging module 1023 determines that the attenuation factor is greater than the given threshold, multiply the processed first high frequency band signal by the attenuation factor, and synthesize the product and the first low frequency band signal into a wide frequency band signal; and - a first modifying
module 1026, adapted to modify the attenuation factor to decrease the attenuation factor. - The initial value of the attenuation factor is 1, and the threshold is greater than or equal to 0 and smaller than 1.
- By using the apparatus for switching speech or audio signals, the processed first high frequency band signal is attenuated, so that the wide frequency band signal obtained by processing the current frame of speech or audio signal is more accurate, thus improving the quality of audio signals received by the user.
- According to the preceding technical solution, optionally, when a switching from a narrow frequency band speech or audio signal a wide frequency band speech or audio signal occurs, the
processing module 101 in this embodiment includes the following modules, as shown inFIG. 10 andFIG. 13a : - a
first calculating module 1011a, adapted to weight according to a setfourth weight 1 and afourth weight 2 to calculate the processed first high frequency band signal, where thefourth weight 1 refers to the weight value of the second high frequency band signal and thefourth weight 2 refers to the weight value of the first high frequency band signal; and - a second modifying
module 1012a, adapted to: decrease thefourth weight 1 as per the third weight step, and increase thefourth weight 2 as per the third weight step until thefourth weight 1 is equal to 0, where the sum of thefourth weight 1 and thefourth weight 2 is equal to 1. - Similarly, when a switching from a narrow frequency band speech or audio signal a wide frequency band speech or audio signal occurs, the
processing module 101 in this embodiment may further include the following modules, as shown inFIG. 10 andFIG. 13b : - a
second calculating module 1011b, adapted to weight according to a setfifth weight 1 and afifth weight 2 to calculate the processed first high frequency band signal, where thefifth weight 1 refers to the weight value of a set fixed parameter, and thefifth weight 2 refers to the weight value of the first high frequency band signal; and - a third modifying
module 1012b, adapted to: decrease thefifth weight 1 as per the fourth weight step, and increase thefifth weight 2 as per the fourth weight step until thefifth weight 1 is equal to 0, where the sum of thefifth weight 1 and thefifth weight 2 is equal to 1, where the fixed parameter is a fixed constant greater than or equal to 0 and smaller than the energy value of the first high frequency band signal. - By using the apparatus for switching speech or audio signals in this embodiment, in the process of switching a speech or audio signal from a narrow frequency band speech or audio signal to a wide frequency band speech or audio signal, the high frequency band signal of the wide frequency band speech or audio signal is attenuated to obtain a processed high frequency band signal. In this way, the high frequency band signal corresponding to the narrow frequency band speech or audio signal before the switching can be smoothly switched to the processed high frequency band signal corresponding to the wide frequency band speech or audio signal, thus helping to improve the quality of audio signals received by the user.
Claims (6)
- A method for switching the bandwidth of speech or audio signals, characterized by comprising:when a switching from a wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs, weighting (101) a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of previous frame of speech or audio signal to obtain a processed first high frequency band signal; andsynthesizing (102) the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- The method of claim 1, further comprising:when a switching of bandwidth of the speech or audio signal does not occur, synthesizing the first high frequency band signal and the first low frequency band signal into the wide frequency band signal.
- A method for switching the bandwidth of speech or audio signals, characterized by comprising:when a switching of bandwidth of speech or audio signal occurs, weighting (101) a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of previous frame of speech or audio signal to obtain a processed first high frequency band signal; andsynthesizing (102) the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal,wherein a switching from a narrow frequency band speech or audio signal to a wide frequency band speech or audio signal occurs, the step of weighting the first high frequency band signal of the current frame of speech or audio signal and the second high frequency band signal of the previous frame of speech or audio signals to obtain the processed first high frequency band signal comprises:weighting (701) according to a set fourth weight 1 and a set fourth weight 2 to calculate the processed first high frequency band signal, wherein the fourth weight 1 refers to a weight value of the second high frequency band signal and the fourth weight 2 refers to a weight value of the first high frequency band signal; anddecreasing (702) the fourth weight 1 as per a third weight step, and increasing the fourth weight 2 as per the third weight step until the fourth weight 1 is equal to 0, wherein a sum of the fourth weight 1 and the fourth weight 2 is equal to 1.
- An apparatus for switching bandwidth of speech or audio signals, characterized by comprising:a processing module (91; 101) adapted to: when a switching from a wide frequency band speech or audio signal to a narrow frequency band speech or audio signal occurs, weight a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of previous frame of speech or audio signal to obtain a processed first high frequency band signal; anda first synthesizing module (92; 102), adapted to synthesize the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal.
- The apparatus of claim 4 further comprising:a second synthesizing module (103), adapted to synthesize the first high frequency band signal and the first low frequency band signal into the wide frequency band signal when a switching of bandwidth of the speech or audio signal does not occur.
- An apparatus for switching bandwidth of speech or audio signals, characterized by comprising:a processing module (91; 101) adapted to: when a switching of bandwidth of speech or audio occurs, weight a first high frequency band signal of a current frame of speech or audio signal and a second high frequency band signal of previous frame of speech or audio signal to obtain a processed first high frequency band signal; anda first synthesizing module (92; 102), adapted to synthesize the processed first high frequency band signal and a first low frequency band signal of the current frame of speech or audio signal into a wide frequency band signal,wherein, when a switching from a narrow frequency band speech or audio signal to a wide frequency band speech or audio signal occurs, the processing module (91; 101) comprises:a first calculating module (1011a) adapted to weight according to a set fourth weight 1 and a set fourth weight 2 to calculate the processed first high frequency band signal, wherein the fourth weight 1 refers to a weight value of the second high frequency band signal and the fourth weight 2 refers to a weight value of the first high frequency band signal; anda second modifying module (1012a) adapted to: decrease the fourth weight 1 as per a third weight step, and increase the fourth weight 2 as per the third weight step until the fourth weight 1 is equal to 0, wherein a sum of the fourth weight 1 and the fourth weight 2 is equal to 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP17151713.9A EP3249648B1 (en) | 2010-04-28 | 2011-04-28 | Method and apparatus for switching speech or audio signals |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010101634063A CN101964189B (en) | 2010-04-28 | 2010-04-28 | Audio signal switching method and device |
PCT/CN2011/073479 WO2011134415A1 (en) | 2010-04-28 | 2011-04-28 | Audio signal switching method and device |
Related Child Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP17151713.9A Division EP3249648B1 (en) | 2010-04-28 | 2011-04-28 | Method and apparatus for switching speech or audio signals |
EP17151713.9A Division-Into EP3249648B1 (en) | 2010-04-28 | 2011-04-28 | Method and apparatus for switching speech or audio signals |
Publications (3)
Publication Number | Publication Date |
---|---|
EP2485029A1 EP2485029A1 (en) | 2012-08-08 |
EP2485029A4 EP2485029A4 (en) | 2013-01-02 |
EP2485029B1 true EP2485029B1 (en) | 2017-06-14 |
Family
ID=43517042
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP11774406.0A Active EP2485029B1 (en) | 2010-04-28 | 2011-04-28 | Audio signal switching method and device |
EP17151713.9A Active EP3249648B1 (en) | 2010-04-28 | 2011-04-28 | Method and apparatus for switching speech or audio signals |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP17151713.9A Active EP3249648B1 (en) | 2010-04-28 | 2011-04-28 | Method and apparatus for switching speech or audio signals |
Country Status (8)
Country | Link |
---|---|
EP (2) | EP2485029B1 (en) |
JP (3) | JP5667202B2 (en) |
KR (1) | KR101377547B1 (en) |
CN (1) | CN101964189B (en) |
AU (1) | AU2011247719B2 (en) |
BR (1) | BR112012013306B8 (en) |
ES (2) | ES2718947T3 (en) |
WO (1) | WO2011134415A1 (en) |
Families Citing this family (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101110800B1 (en) * | 2003-05-28 | 2012-07-06 | 도꾸리쯔교세이호진 상교기쥬쯔 소고겡뀨죠 | Process for producing hydroxyl group-containing compound |
US11431312B2 (en) | 2004-08-10 | 2022-08-30 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US8284955B2 (en) | 2006-02-07 | 2012-10-09 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US10158337B2 (en) | 2004-08-10 | 2018-12-18 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US10848118B2 (en) | 2004-08-10 | 2020-11-24 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US10848867B2 (en) | 2006-02-07 | 2020-11-24 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US10701505B2 (en) | 2006-02-07 | 2020-06-30 | Bongiovi Acoustics Llc. | System, method, and apparatus for generating and digitally processing a head related audio transfer function |
US8000968B1 (en) | 2011-04-26 | 2011-08-16 | Huawei Technologies Co., Ltd. | Method and apparatus for switching speech or audio signals |
CN101964189B (en) * | 2010-04-28 | 2012-08-08 | 华为技术有限公司 | Audio signal switching method and device |
CN105761724B (en) * | 2012-03-01 | 2021-02-09 | 华为技术有限公司 | Voice frequency signal processing method and device |
CN105469805B (en) * | 2012-03-01 | 2018-01-12 | 华为技术有限公司 | A kind of voice frequency signal treating method and apparatus |
CN103516440B (en) | 2012-06-29 | 2015-07-08 | 华为技术有限公司 | Audio signal processing method and encoding device |
CN103971693B (en) | 2013-01-29 | 2017-02-22 | 华为技术有限公司 | Forecasting method for high-frequency band signal, encoding device and decoding device |
US9883318B2 (en) | 2013-06-12 | 2018-01-30 | Bongiovi Acoustics Llc | System and method for stereo field enhancement in two-channel audio systems |
US9397629B2 (en) * | 2013-10-22 | 2016-07-19 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US9906858B2 (en) | 2013-10-22 | 2018-02-27 | Bongiovi Acoustics Llc | System and method for digital signal processing |
US20150170655A1 (en) * | 2013-12-15 | 2015-06-18 | Qualcomm Incorporated | Systems and methods of blind bandwidth extension |
CN103714822B (en) * | 2013-12-27 | 2017-01-11 | 广州华多网络科技有限公司 | Sub-band coding and decoding method and device based on SILK coder decoder |
KR101864122B1 (en) | 2014-02-20 | 2018-06-05 | 삼성전자주식회사 | Electronic apparatus and controlling method thereof |
US10820883B2 (en) | 2014-04-16 | 2020-11-03 | Bongiovi Acoustics Llc | Noise reduction assembly for auscultation of a body |
US10639000B2 (en) | 2014-04-16 | 2020-05-05 | Bongiovi Acoustics Llc | Device for wide-band auscultation |
EP2980794A1 (en) | 2014-07-28 | 2016-02-03 | Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. | Audio encoder and decoder using a frequency domain processor and a time domain processor |
MY191093A (en) | 2016-02-17 | 2022-05-30 | Fraunhofer Ges Forschung | Post-processor, pre-processor, audio encoder, audio decoder and related methods for enhancing transient processing |
US11211043B2 (en) | 2018-04-11 | 2021-12-28 | Bongiovi Acoustics Llc | Audio enhanced hearing protection system |
CN110556116B (en) | 2018-05-31 | 2021-10-22 | 华为技术有限公司 | Method and apparatus for calculating downmix signal and residual signal |
US10959035B2 (en) | 2018-08-02 | 2021-03-23 | Bongiovi Acoustics Llc | System, method, and apparatus for generating and digitally processing a head related audio transfer function |
CN112002333B (en) * | 2019-05-07 | 2023-07-18 | 海能达通信股份有限公司 | Voice synchronization method and device and communication terminal |
CN117373465B (en) * | 2023-12-08 | 2024-04-09 | 富迪科技(南京)有限公司 | Voice frequency signal switching system |
Family Cites Families (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4330689A (en) * | 1980-01-28 | 1982-05-18 | The United States Of America As Represented By The Secretary Of The Navy | Multirate digital voice communication processor |
US4769833A (en) * | 1986-03-31 | 1988-09-06 | American Telephone And Telegraph Company | Wideband switching system |
US5019910A (en) * | 1987-01-29 | 1991-05-28 | Norsat International Inc. | Apparatus for adapting computer for satellite communications |
FI115329B (en) * | 2000-05-08 | 2005-04-15 | Nokia Corp | Method and arrangement for switching the source signal bandwidth in a communication connection equipped for many bandwidths |
US7113522B2 (en) * | 2001-01-24 | 2006-09-26 | Qualcomm, Incorporated | Enhanced conversion of wideband signals to narrowband signals |
KR100940531B1 (en) * | 2003-07-16 | 2010-02-10 | 삼성전자주식회사 | Wide-band speech compression and decompression apparatus and method thereof |
JP2005080079A (en) * | 2003-09-02 | 2005-03-24 | Sony Corp | Sound reproduction device and its method |
FI119533B (en) * | 2004-04-15 | 2008-12-15 | Nokia Corp | Coding of audio signals |
JPWO2005106848A1 (en) * | 2004-04-30 | 2007-12-13 | 松下電器産業株式会社 | Scalable decoding apparatus and enhancement layer erasure concealment method |
JP4558734B2 (en) * | 2004-07-28 | 2010-10-06 | パナソニック株式会社 | Signal decoding device |
US7895035B2 (en) * | 2004-09-06 | 2011-02-22 | Panasonic Corporation | Scalable decoding apparatus and method for concealing lost spectral parameters |
EP1814106B1 (en) * | 2005-01-14 | 2009-09-16 | Panasonic Corporation | Audio switching device and audio switching method |
US8249861B2 (en) * | 2005-04-20 | 2012-08-21 | Qnx Software Systems Limited | High frequency compression integration |
CN101213590B (en) * | 2005-06-29 | 2011-09-21 | 松下电器产业株式会社 | Scalable decoder and disappeared data interpolating method |
US8194865B2 (en) * | 2007-02-22 | 2012-06-05 | Personics Holdings Inc. | Method and device for sound detection and audio control |
CN101425292B (en) * | 2007-11-02 | 2013-01-02 | 华为技术有限公司 | Decoding method and device for audio signal |
CN100585699C (en) * | 2007-11-02 | 2010-01-27 | 华为技术有限公司 | A kind of method and apparatus of audio decoder |
JP5547081B2 (en) * | 2007-11-02 | 2014-07-09 | 華為技術有限公司 | Speech decoding method and apparatus |
CN101964189B (en) * | 2010-04-28 | 2012-08-08 | 华为技术有限公司 | Audio signal switching method and device |
-
2010
- 2010-04-28 CN CN2010101634063A patent/CN101964189B/en active Active
-
2011
- 2011-04-28 ES ES17151713T patent/ES2718947T3/en active Active
- 2011-04-28 AU AU2011247719A patent/AU2011247719B2/en active Active
- 2011-04-28 EP EP11774406.0A patent/EP2485029B1/en active Active
- 2011-04-28 BR BR112012013306A patent/BR112012013306B8/en active IP Right Grant
- 2011-04-28 ES ES11774406.0T patent/ES2635212T3/en active Active
- 2011-04-28 EP EP17151713.9A patent/EP3249648B1/en active Active
- 2011-04-28 KR KR1020127012328A patent/KR101377547B1/en active IP Right Grant
- 2011-04-28 JP JP2012541316A patent/JP5667202B2/en active Active
- 2011-04-28 WO PCT/CN2011/073479 patent/WO2011134415A1/en active Application Filing
-
2014
- 2014-12-11 JP JP2014250689A patent/JP6027081B2/en active Active
-
2016
- 2016-10-13 JP JP2016201593A patent/JP6410777B2/en active Active
Non-Patent Citations (1)
Title |
---|
"G.729-based embedded variable bit-rate coder: An 8-32 kbit/s scalable wideband coder bitstream interoperable with G.729; G.729.1 (05/06)", ITU-T STANDARD, INTERNATIONAL TELECOMMUNICATION UNION, GENEVA ; CH, no. G.729.1 (05/06), 29 May 2006 (2006-05-29), pages 1 - 100, XP017466254 * |
Also Published As
Publication number | Publication date |
---|---|
EP3249648B1 (en) | 2019-01-09 |
JP2017033015A (en) | 2017-02-09 |
JP2015045888A (en) | 2015-03-12 |
BR112012013306A2 (en) | 2016-03-01 |
KR20120074303A (en) | 2012-07-05 |
EP2485029A1 (en) | 2012-08-08 |
EP2485029A4 (en) | 2013-01-02 |
JP5667202B2 (en) | 2015-02-12 |
KR101377547B1 (en) | 2014-03-25 |
AU2011247719A1 (en) | 2012-06-07 |
JP6410777B2 (en) | 2018-10-24 |
WO2011134415A1 (en) | 2011-11-03 |
ES2635212T3 (en) | 2017-10-02 |
EP3249648A1 (en) | 2017-11-29 |
AU2011247719B2 (en) | 2013-07-11 |
BR112012013306B1 (en) | 2020-11-10 |
JP6027081B2 (en) | 2016-11-16 |
ES2718947T3 (en) | 2019-07-05 |
JP2013512468A (en) | 2013-04-11 |
CN101964189B (en) | 2012-08-08 |
CN101964189A (en) | 2011-02-02 |
BR112012013306B8 (en) | 2021-02-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2485029B1 (en) | Audio signal switching method and device | |
US10559313B2 (en) | Speech/audio signal processing method and apparatus | |
US10546594B2 (en) | Signal processing apparatus and signal processing method, encoder and encoding method, decoder and decoding method, and program | |
US8214218B2 (en) | Method and apparatus for switching speech or audio signals | |
EP1775717B1 (en) | Speech decoding apparatus and compensation frame generation method | |
EP2471063B1 (en) | Signal processing apparatus and method, and program | |
EP1953736A1 (en) | Stereo encoding device, and stereo signal predicting method | |
TW201140563A (en) | Determining an upperband signal from a narrowband signal | |
US20140114670A1 (en) | Adaptive Audio Signal Coding | |
WO2012169133A1 (en) | Voice coding device, voice decoding device, voice coding method and voice decoding method | |
EP3007171B1 (en) | Signal processing device and signal processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
17P | Request for examination filed |
Effective date: 20120503 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
A4 | Supplementary search report drawn up and despatched |
Effective date: 20121204 |
|
RIC1 | Information provided on ipc code assigned before grant |
Ipc: G01L 19/00 20060101AFI20121128BHEP Ipc: G01L 19/12 20060101ALI20121128BHEP Ipc: G01L 19/04 20060101ALI20121128BHEP |
|
DAX | Request for extension of the european patent (deleted) | ||
17Q | First examination report despatched |
Effective date: 20130805 |
|
REG | Reference to a national code |
Ref country code: DE Ref legal event code: R079 Ref document number: 602011038742 Country of ref document: DE Free format text: PREVIOUS MAIN CLASS: G01L0019000000 Ipc: G10L0019240000 |
|
GRAP | Despatch of communication of intention to grant a patent |
Free format text: ORIGINAL CODE: EPIDOSNIGR1 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: GRANT OF PATENT IS INTENDED |
|
RIC1 | Information provided on ipc code assigned before grant |
Ipc: G10L 19/24 20130101AFI20161018BHEP Ipc: G10L 21/038 20130101ALI20161018BHEP |
|
INTG | Intention to grant announced |
Effective date: 20161108 |
|
GRAS | Grant fee paid |
Free format text: ORIGINAL CODE: EPIDOSNIGR3 |
|
GRAA | (expected) grant |
Free format text: ORIGINAL CODE: 0009210 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE PATENT HAS BEEN GRANTED |
|
AK | Designated contracting states |
Kind code of ref document: B1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
REG | Reference to a national code |
Ref country code: GB Ref legal event code: FG4D |
|
REG | Reference to a national code |
Ref country code: CH Ref legal event code: EP Ref country code: AT Ref legal event code: REF Ref document number: 901665 Country of ref document: AT Kind code of ref document: T Effective date: 20170615 |
|
REG | Reference to a national code |
Ref country code: IE Ref legal event code: FG4D |
|
REG | Reference to a national code |
Ref country code: DE Ref legal event code: R096 Ref document number: 602011038742 Country of ref document: DE |
|
REG | Reference to a national code |
Ref country code: NL Ref legal event code: FP |
|
REG | Reference to a national code |
Ref country code: SE Ref legal event code: TRGR |
|
REG | Reference to a national code |
Ref country code: ES Ref legal event code: FG2A Ref document number: 2635212 Country of ref document: ES Kind code of ref document: T3 Effective date: 20171002 |
|
REG | Reference to a national code |
Ref country code: LT Ref legal event code: MG4D |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LT Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: HR Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: FI Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: NO Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170914 Ref country code: GR Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170915 |
|
REG | Reference to a national code |
Ref country code: AT Ref legal event code: MK05 Ref document number: 901665 Country of ref document: AT Kind code of ref document: T Effective date: 20170614 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LV Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: RS Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: BG Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170914 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: CZ Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: AT Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: EE Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: RO Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: SK Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: SM Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: IS Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20171014 Ref country code: PL Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
REG | Reference to a national code |
Ref country code: FR Ref legal event code: PLFP Year of fee payment: 8 Ref country code: DE Ref legal event code: R097 Ref document number: 602011038742 Country of ref document: DE |
|
PLBE | No opposition filed within time limit |
Free format text: ORIGINAL CODE: 0009261 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: NO OPPOSITION FILED WITHIN TIME LIMIT |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: DK Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
26N | No opposition filed |
Effective date: 20180315 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: SI Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: MC Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
REG | Reference to a national code |
Ref country code: CH Ref legal event code: PL |
|
REG | Reference to a national code |
Ref country code: BE Ref legal event code: MM Effective date: 20180430 |
|
REG | Reference to a national code |
Ref country code: IE Ref legal event code: MM4A |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LU Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20180428 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: LI Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20180430 Ref country code: CH Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20180430 Ref country code: BE Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20180430 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: IE Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20180428 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: MT Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20180428 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: TR Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: PT Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 Ref country code: HU Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT; INVALID AB INITIO Effective date: 20110428 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: MK Free format text: LAPSE BECAUSE OF NON-PAYMENT OF DUE FEES Effective date: 20170614 Ref country code: CY Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
PG25 | Lapsed in a contracting state [announced via postgrant information from national office to epo] |
Ref country code: AL Free format text: LAPSE BECAUSE OF FAILURE TO SUBMIT A TRANSLATION OF THE DESCRIPTION OR TO PAY THE FEE WITHIN THE PRESCRIBED TIME-LIMIT Effective date: 20170614 |
|
P01 | Opt-out of the competence of the unified patent court (upc) registered |
Effective date: 20230524 |
|
P01 | Opt-out of the competence of the unified patent court (upc) registered |
Effective date: 20230529 |
|
P03 | Opt-out of the competence of the unified patent court (upc) deleted | ||
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: NL Payment date: 20240315 Year of fee payment: 14 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: GB Payment date: 20240307 Year of fee payment: 14 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: SE Payment date: 20240312 Year of fee payment: 14 Ref country code: IT Payment date: 20240313 Year of fee payment: 14 Ref country code: FR Payment date: 20240308 Year of fee payment: 14 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: DE Payment date: 20240306 Year of fee payment: 14 |
|
PGFP | Annual fee paid to national office [announced via postgrant information from national office to epo] |
Ref country code: ES Payment date: 20240508 Year of fee payment: 14 |