Signal classification method and device, and audio encoding method and device using the same

By correcting the initial classification results of audio signals based on multi-frame feature parameters, the problem of delay and sound quality degradation caused by encoding mode switching is solved, and a more stable encoding mode and higher-quality audio signal recovery are achieved.

CN110992965BActive Publication Date: 2024-09-03SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911345336.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2014-07-28
Filing Date
2015-02-24
Publication Date
2024-09-03
Estimated Expiration
2035-11-05

AI Technical Summary

Technical Problem

The existing technology has the problem of frequent switching of coding modes in audio signal classification, resulting in delay and degradation of restored sound quality, and it fails to effectively correct errors in the initial classification results.

Method used

By determining whether there is an error in the classification result of the current frame based on multi-frame feature parameters, and responding to the correction of the classification result, signal classification methods and equipment are used to suit the audio signal characteristics, reducing coding mode switching and improving the stability of the coding mode.

Benefits of technology

It effectively prevents frequent switching of encoding modes, improves the quality of restored sound, and ensures that the characteristics of the audio signal are determined while reducing delays.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110992965B_ABST
    Figure CN110992965B_ABST
Patent Text Reader

Abstract

Disclosed are a signal classification method and device, and an audio encoding method and device using the same. The present invention relates to audio encoding, and more specifically, to a signal classification method and device capable of reducing the delay caused by coding mode switching while improving the quality of reconstructed sound, and an audio encoding method and device using the signal classification method and device. The signal classification method may include the following operations: classifying a current frame as one of a speech signal and a music signal; determining whether a result of classifying the current frame contains an error based on feature parameters obtained from a plurality of frames; and correcting the result of classifying the current frame based on the determined result. By correcting the initial classification result of the audio signal based on the correction parameter, the present invention can determine the optimal coding mode for the features of the audio signal and can prevent frequent coding mode switching between frames.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application filed with the State Intellectual Property Office of China on February 24, 2015, with application number 201580021378.2 and invention name “Signal classification method and device and audio encoding method and device using the same”. Technical Field

[0002] One or more exemplary embodiments relate to audio coding, and more particularly, to a signal classification method and apparatus capable of improving the quality of restored sound and reducing delay caused by coding mode switching, and an audio coding method and apparatus employing the signal classification method and apparatus. Background Art

[0003] As is known to all, music signals are effectively encoded in the frequency domain and speech signals are effectively encoded in the time domain. Therefore, various techniques have been proposed for classifying whether an audio signal mixed with a music signal and a speech signal corresponds to a music signal or a speech signal and determining a coding mode in response to the classification result.

[0004] However, frequent switching of encoding modes causes delays and degradation in quality of restored sound, and a technique for correcting initial classification results has not been proposed, so when there is an error in initial signal classification, degradation in quality of restored sound occurs. Summary of the invention

[0005] Technical issues

[0006] One or more exemplary embodiments include a signal classification method and apparatus capable of improving restored sound quality by determining an encoding mode so as to be suitable for characteristics of an audio signal, and an audio encoding method and apparatus employing the signal classification method and apparatus.

[0007] One or more exemplary embodiments include a signal classification method and apparatus capable of reducing a delay due to coding mode switching while determining a coding mode so as to be suitable for characteristics of an audio signal, and an audio coding method and apparatus employing the signal classification method and apparatus.

[0008] Technical Solution

[0009] According to one or more exemplary embodiments, a signal classification method includes: classifying a current frame as one of a speech signal and a music signal; determining whether there is an error in the classification result of the current frame based on feature parameters obtained from multiple frames; and correcting the classification result of the current frame in response to the determined result.

[0010] According to one or more exemplary embodiments, a signal classification device includes at least one processor, wherein the at least one processor is configured to: classify a current frame as one of a speech signal and a music signal, determine whether there is an error in the classification result of the current frame based on feature parameters obtained from multiple frames, and correct the classification result of the current frame in response to the determined result.

[0011] According to one or more exemplary embodiments, an audio encoding method includes: classifying a current frame as one of a speech signal and a music signal; determining whether there is an error in a classification result of the current frame based on feature parameters obtained from multiple frames; correcting the classification result of the current frame in response to the determined result; and encoding the current frame based on the classification result of the current frame or the corrected classification result.

[0012] According to one or more exemplary embodiments, an audio encoding device includes at least one processor, wherein the at least one processor is configured to: classify a current frame as one of a speech signal and a music signal, determine whether there is an error in the classification result of the current frame based on feature parameters obtained from multiple frames, correct the classification result of the current frame in response to the determined result, and encode the current frame based on the classification result of the current frame or the corrected classification result.

[0013] Advantageous Effects of the Invention

[0014] By modifying the initial classification result of the audio signal based on the modification parameter, it is possible to prevent frequent switching of the encoding mode while determining the encoding mode optimal for the characteristics of the audio signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a block diagram of an audio signal classification apparatus according to an exemplary embodiment;

[0016] Figure 2 is a block diagram of an audio signal classification apparatus according to another exemplary embodiment;

[0017] Figure 3 is a block diagram of an audio encoding apparatus according to an exemplary embodiment;

[0018] Figure 4 is a flow chart for describing a method of modifying signal classification in a CELP core according to an exemplary embodiment;

[0019] Figure 5 is a flow chart for describing a method of modifying signal classification in an HQ core according to an exemplary embodiment;

[0020] Figure 6 A state machine for modifying context-based signal classification in a CELP core according to an exemplary embodiment is shown;

[0021] Figure 7 shows a state machine for modifying context-based signal classification in an HQ core according to an exemplary embodiment;

[0022] Figure 8 is a block diagram of a coding mode determination apparatus according to an exemplary embodiment;

[0023] Fig. 9 is a flowchart for describing an audio signal classification method according to an exemplary embodiment;

[0024] Fig.10 is a block diagram of a multimedia device according to an exemplary embodiment;

[0025] Fig.11 is a block diagram of a multimedia device according to another exemplary embodiment; DETAILED DESCRIPTION

[0026] Hereinafter, one aspect of the present invention will be described in detail with reference to the accompanying drawings. In the following description, when it is determined that a detailed description of a related well-known formula or function may obscure the main point, the detailed description is omitted.

[0027] When it is described that a specific element is “connected” or “linked” to another element, it should be understood that the specific element can be connected or linked to the other element directly or via an intervening element.

[0028] Although terms such as 'first' and 'second' may be used to describe various elements, the elements cannot be limited by the terms. The terms may be used to classify a specific element from another element.

[0029] The components appearing in the embodiments are shown separately to represent the functions of different features, but it does not mean that each component is formed in separate hardware or a single software configuration unit. For the convenience of description, the components are shown as separate components, and one component can be formed by combining two components or one component can be separated into multiple components to perform functions.

[0030] Figure 1 is a block diagram illustrating a configuration of an audio signal classification apparatus according to an exemplary embodiment.

[0031] Figure 1 The audio signal classification device 100 shown may include a signal classifier 110 and a modifier 130. Here, except for the case where it needs to be implemented as a separate hardware component, the components may be integrated into at least one module and implemented as at least one processor (not shown). In addition, the audio signal may indicate a music signal, a speech signal, or a mixed signal of music and speech.

[0032] Reference Figure 1Based on various initial classification parameters, the signal classifier 110 can classify whether the audio signal corresponds to a music signal or a speech signal. The audio signal classification process may include at least one operation. According to an embodiment, the audio signal may be classified as a music signal or a speech signal based on the signal features of the current frame and multiple previous frames. The signal features may include at least one of short-term features and long-term features. In addition, the signal features may include at least one of time domain features and frequency domain features. Here, if the audio signal is classified as a speech signal, the audio signal may be encoded using a code excited linear prediction (CELP) type encoder. If the audio signal is classified as a music signal, the audio signal may be encoded using a transform encoder. For example, the transform encoder may be, for example, a modified discrete cosine transform (MDCT) encoder, but is not limited thereto.

[0033] According to another exemplary embodiment, the audio signal classification process may include a first operation of classifying the audio signal into a speech signal and a general audio signal (i.e., a music signal) according to whether the audio signal has a speech feature and a second operation of determining whether the general audio signal is suitable for a general signal audio coder (GSC). It can be determined whether the audio signal can be classified as a speech signal or a music signal by combining the classification result of the first operation and the classification result of the second operation. When the audio signal is classified as a speech signal, the audio signal can be encoded by a CELP type coder. According to the bit rate or signal characteristics, the CELP type coder may include multiple modes in the unvoiced coding (UC) mode, the voiced coding (VC) mode, the transient coding (TC) mode, and the general coding (GC) mode. The general signal audio coding (GSC) mode may be implemented by a separate encoder or included as a mode of the CELP type encoder. When the audio signal is classified as a music signal, a transform encoder or a CELP / transform hybrid encoder may be used to encode the audio signal. Specifically, the transform encoder may be applied to a music signal, and the CELP / transform hybrid encoder may be applied to a non-music signal (wherein the non-music signal is not a speech signal) or a signal mixed with music and speech. According to an embodiment, according to bandwidth, all of CELP type encoder, CELP / convert hybrid encoder and transform encoder can be used, or CELP type encoder and transform encoder can be used. For example, CELP type encoder and transform encoder can be used for narrowband (NB), CELP type encoder, CELP / convert hybrid encoder and transform encoder can be used for wideband (WB), ultra-wideband (SWB) and full band (FB). CELP / convert hybrid encoder is obtained by combining an encoder based on LP and a transform domain encoder operating in the time domain, and can also be referred to as a general signal audio encoder (GSC).

[0034] The signal classification of the first operation can be based on a Gaussian mixture model (GMM). Various signal features can be used for GMM. The example of signal features can include open-loop pitch, normalized correlation, spectrum envelope, pitch stability, signal non-stationarity, LP residual error, spectrum difference and spectrum stationarity, but is not limited thereto. The example of signal features for the signal classification of the second operation can include spectrum energy variation features, tilt features of LP analysis residual energy, high-frequency band spectrum kurtosis features, correlation features, turbidity features and pitch features, but is not limited thereto. The features used for the first operation can be used to determine whether the audio signal has speech features or non-speech features, so as to determine whether the CELP type encoder is suitable for encoding, and the features used for the second operation can be used to determine whether the audio signal has music features or non-music features, so as to determine whether GSC is suitable for encoding. For example, a group of frames classified as a music signal in the first operation can be changed into a speech signal in the second operation and then encoded by a mode in the CELP mode. That is to say, when the audio signal is a signal of large correlation or an attack signal has a large pitch period and high stability at the same time, the audio signal can be changed from a music signal to a speech signal in the second operation. The encoding mode may be changed according to the result of the above signal classification.

[0035] The modifier 130 may modify or maintain the classification result of the signal classifier 110 based on at least one modification parameter. The modifier 130 may modify or maintain the classification result of the signal classifier 110 based on the context. For example, when the current frame is classified as a speech signal, the current frame may be modified to a music signal or maintained as a speech signal, and when the current frame is classified as a music signal, the current frame may be modified to a speech signal or maintained as a music signal. In order to determine whether there is an error in the classification result of the current frame, the features of multiple frames including the current frame are used. For example, eight frames are used, but the embodiment is not limited thereto.

[0036] The correction parameter may include a combination of at least one of pitch, linear prediction error, voicing and correlation. Here, the pitch may include a pitch ton2 in the range of 1-2KHz and a pitch ton3 in the range of 2-4KHz, wherein the pitch ton2 and the pitch ton3 may be determined by formulas 1 and 2, respectively.

[0037]

[0038]

[0039] The superscript [-j] indicates the previous frame. For example, tonality2 [-1] Indicates the tone in the 1-2KHz range of the previous frame.

[0040] Low frequency band long term tone ton LT Can be defined as tonLT =0.2*log 10 [lt_tonality] Here, lt_tonality may represent full-band long-term tonality.

[0041] The difference d between the tone ton2 in the 1-2KHz range and the tone ton3 in the 2-4KHz range in the nth frame ft It can be defined as d ft =0.2*{log 10 (tonality2(n))-log 10 (tonality3(n))).

[0042] Next, the linear prediction error LP err It can be defined by formula 3.

[0043]

[0044] Among them, FV s (9) is defined as FV s (i) = sfa i FV i +sfb i (i=0, ..., 11) and corresponds to a value obtained by scaling the LP residual logarithmic energy ratio feature parameter defined by Formula 4 among the feature parameters used for the signal classifier 110 or 210. In addition, sfa i and sfb i It can vary depending on the type and bandwidth of the feature parameter, and is used to approximate each feature parameter to the range of [0; 1].

[0045]

[0046] Here, E(1) represents the energy of the first LP coefficient, and E(13) represents the energy of the thirteenth LP coefficient.

[0047] Below, the value FV s (1) and value FV s (7) The difference between vcor It can be defined as d vcor =max(FV s (1)-FV s (7),0), where the value FV s (1) Based on FV s (i) = sfa i FV i +sfb i(i=0, ..., 11) scaling the normalized correlation feature or the turbidity feature FV defined by Formula 5 in the feature parameters of the signal classifier 110 or 210 1 The obtained value FV s (7) is based on FV s (i) = sfa i FV i +sfb i (i=0,...,11) is obtained by scaling the correlation graph feature FV(7) defined by formula 6.

[0048]

[0049] in, Represents the normalized correlation in the first or second half frame.

[0050]

[0051] Among them, M cor Represents the correlation graph of one frame.

[0052] The modification parameter including at least one of conditions 1 to 4 may be generated using a plurality of feature parameters individually or in combination. Here, conditions 1 and 2 may indicate conditions according to which the speech state SPEECH_STATE may be changed, and conditions 3 and 4 may indicate conditions according to which the music state MUSIC_STATE may be changed. Specifically, condition 1 enables the speech state SPEECH_STATE to be changed from 0 to 1, and condition 2 enables the speech state SPEECH_STATE to be changed from 1 to 0. In addition, condition 3 enables the music state MUSIC_STATE to be changed from 0 to 1, and condition 4 enables the music state MUSIC_STATE to be changed from 1 to 0. A speech state SPEECH_STATE of 1 may indicate that the probability of speech is high (that is, CELP type coding is suitable), and a speech state SPEECH_STATE of 0 may indicate that the probability of non-speech is high. A music state MUSIC_STATE of 1 may indicate that transform coding is suitable, and a music state MUSIC_STATE of 0 may indicate that CELP / transform hybrid coding (i.e., GSC) is suitable. As another example, a music state MUSIC_STATE of 1 may indicate that transform coding is suitable, and a music state MUSIC_STATE of 0 may indicate that CELP type coding is suitable.

[0053] For example, condition 1 (f A ) can be defined as follows. That is, when d vcor >0.4 and d ft <0.1 and FV s (1)>(2*FV s(7)+0.12) and ton 2 <d vcor Andton 3 <d vcor ANDton LT <d vcor And FV s (7) <d vcor And FV s (1)>d vcor And FV s (1)>0.76, f A Can be set to 1.

[0054] For example, condition 2 (f B ) can be defined as follows. That is, when d vcor When f <0.4, B Can be set to 1.

[0055] For example, condition 3 (f C ) can be defined as follows. That is, when 0.26 <ton 2 <0.54 and ton 3 >0.22 and 0.26 <ton LT <0.54 and LP err >0.5, f C Can be set to 1.

[0056] For example, condition 4 (f D ) can be defined as follows. That is, when ton 2 <0.34 and ton 3 <0.26 and 0.26 <ton LT When f <0.45, D Can be set to 1.

[0057] The feature or feature set used to generate each condition is not limited thereto. In addition, each constant value is only exemplary and may be set to an optimal value according to an implementation method.

[0058] Specifically, the corrector 130 can correct errors in the initial classification results by using two independent state machines (e.g., a speech state machine and a music state machine). Each state machine has two states, and hysteresis can be used in each state to prevent frequent switching. For example, the hysteresis may include six frames. When the hysteresis variable in the speech state machine is changed from hang sp Indicates that the hysteresis variable in the music state machine is represented by hang musWhen indicating, if the classification result is changed in a given state, each variable is initialized to 6, and thereafter, for each subsequent frame, the hysteresis is decreased by 1. In each state machine, a correction parameter generated by combining at least one feature extracted from an audio signal may be used.

[0059] Figure 2 is a block diagram showing a configuration of an audio signal classification apparatus according to another embodiment.

[0060] Figure 2 The illustrated audio signal classification apparatus 200 may include a signal classifier 210 , a modifier 230 , and a detailed classifier 250 . Figure 2 The audio signal classification device 200 and Figure 1 The audio signal classification device 100 is different in that Figure 2 The audio signal classification device 200 further includes a fine classifier 250, and the functions of the signal classifier 210 and the modifier 230 are similar to those of the reference Figure 1 The descriptions are the same, and thus a detailed description of the functions of the signal classifier 210 and the modifier 230 is omitted.

[0061] Reference Figure 2 , the fine classifier 250 can finely classify the classification result modified or maintained by the modifier 230 based on the fine classification parameter. According to an embodiment, the fine classifier 250 will modify the audio signal classified as a music signal by determining whether the audio signal is suitable for encoding by a CELP / transformation hybrid encoder (e.g., GSC). In this case, as a correction method, a specific parameter or flag is changed to not select the transform encoder. When the classification result output from the modifier 230 indicates a music signal, the fine classifier 250 can perform fine classification again to classify whether the audio signal is a music signal or a speech signal. When the classification result of the fine classifier 250 indicates a music signal, the transform encoder can also be used to encode the audio signal in the second coding mode, and when the classification result of the fine classifier 250 indicates a speech signal, the CELP / transformation hybrid encoder can be used to encode the audio signal in the third coding mode. When the classification result output from the modifier 230 indicates a speech signal, the CELP type encoder can be used to encode the audio signal in the first coding mode. For example, fine classification parameters may include features such as, but not limited to, pitch, voicing, correlation, pitch gain, and pitch difference.

[0062] Figure 3 is a block diagram showing the configuration of an audio encoding device according to an embodiment.

[0063] Figure 3 The audio encoding device 300 shown may include an encoding mode determiner 310 and an encoding module 330. The encoding mode determiner 310 may include Figure 1 The audio signal classification device 100 or Figure 2 The encoding module 330 may include first to third encoders 331, 333, and 335. Here, the first encoder 331 may correspond to a CELP type encoder, the second encoder 333 may correspond to a CELP / transform hybrid encoder, and the third encoder 335 may correspond to a transform encoder. When GSC is implemented as a mode of a CELP type encoder, the encoding module 330 may include the first encoder 331 and the third encoder 335. The encoding module 330 and the first encoder 331 may have various configurations according to a bit rate or a bandwidth.

[0064] Reference Figure 3 , the coding mode determiner 310 may classify whether the audio signal is a music signal or a speech signal based on the signal feature, and determine the coding mode in response to the classification result. The coding mode may be executed in superframe units, frame units, or band units. Optionally, the coding mode may be executed in units of multiple superframe groups, multiple frame groups, or multiple band groups. Here, examples of coding modes may include two types: a variable domain mode and a linear prediction domain mode, but are not limited thereto. The linear prediction domain mode may include UC, VC, TC, and GC modes. The GSC mode may be classified as a separate coding mode or included in a sub-mode of the linear prediction domain mode. When the performance, processing speed, etc. of the processor are supported and the delay caused by the coding mode switching can be solved, the coding mode may also be subdivided, and the coding scheme may also be subdivided in response to the coding mode. Specifically, the coding mode determiner 310 may classify the audio signal into one of a music signal and a speech signal based on the initial classification parameter. Based on the correction parameter, the coding mode determiner 310 may correct the classification result as a music signal to a speech signal or keep the music signal, or correct the classification result as a speech signal to a music signal or keep the speech signal. The coding mode determiner 310 may classify the modified or maintained classification result (e.g., the classification result as a music signal) into one of a music signal and a speech signal based on the fine classification parameter. The coding mode determiner 310 may determine the coding mode by using the final classification result. According to an embodiment, the coding mode determiner 310 may determine the coding mode based on at least one of a bit rate and a bandwidth.

[0065] In the encoding module 330, when the classification result of the modifier 130 or 230 corresponds to a speech signal, the first encoder 331 may operate. When the classification result of the modifier 130 corresponds to a music signal, or when the classification result of the fine classifier 350 corresponds to a speech signal, the second encoder 333 may operate. When the classification result of the modifier 130 corresponds to a music signal, or when the classification result of the fine classifier 350 corresponds to a music signal, the third encoder 335 may operate.

[0066] Figure 4 is a flowchart for describing a method for modifying signal classification in a CELP kernel according to an embodiment, and may be represented by Figure 1 Corrector 130 or Figure 2 The modifier 230 is executed.

[0067] parameter Figure 4 In operation 410, a modification parameter may be received, for example, condition 1 and condition 2. In addition, in operation 410, hysteresis information of a speech state machine may be received. In operation 410, an initial classification result may also be received. The initial classification result may be obtained from Figure 1 The signal classifier 110 or Figure 2 The signal classifier 210 provides.

[0068] In operation 420, it may be determined whether the initial classification result (ie, voice state) is 0, condition 1 (f A ) is 1 and the hysteresis of the speech state machine hang sp is 0. If it is determined in operation 420 that the initial classification result (ie, the speech state) is 0, condition 1 is 1, and the hysteresis hang of the speech state machine is sp If the voice state is not 0, condition 1 is not 1, or the hysteresis of the voice state machine is not set in operation 420, the voice state may be changed to 1 and the hysteresis may be initialized to 6 in operation 430. The initialized hysteresis value may be provided to operation 460. Otherwise, if the voice state is not 0, condition 1 is not 1, or the hysteresis of the voice state machine is set in operation 420, sp If it is not 0, the method may continue to operation 440 .

[0069] In operation 440, it may be determined whether the initial classification result (ie, the speech state) is 1, condition 2 (f B ) is 1 and the hysteresis of the speech state machine hang sp is 0. If it is determined in operation 440 that the voice state is 1, condition 2 is 1, and the hysteresis of the voice state machine is sp If it is 0, then in operation 450, the voice state may be changed to 0 and hangover sp Can be initialized to 6. The initialized hysteresis value can be provided to operation 460. Otherwise, if the voice state is not 1, condition 2 is not 1, or the hysteresis of the voice state machine is hung in operation 440 sp If , , is not 0, the method may continue to operation 460 to perform a hysteresis update for decreasing the hysteresis by 1.

[0070] Figure 5 is a flowchart for describing a method for correcting signal classification in a high quality (HQ) kernel according to an embodiment, and may be Figure 1 Corrector 130 or Figure 2 The modifier 230 is executed.

[0071] Reference Figure 5 In operation 510, a correction parameter may be received, for example, condition 3 and condition 4. In addition, in operation 510, hysteresis information of the music state machine may be received. In operation 510, an initial classification result may also be received. The initial classification result may be obtained from Figure 1 The signal classifier 110 or Figure 2 The signal classifier 210 provides.

[0072] In operation 520, it may be determined whether the initial classification result (ie, the music state) is 1, condition 3 (f C ) is 1 and the hysteresis of the music state machine hang mus is 0. If it is determined in operation 520 that the initial classification result (ie, the music state) is 1, condition 3 is 1, and the hysteresis of the music state machine is hung mus If the music state is not 1, condition 3 is not 1, or the hysteresis of the music state machine is not set in operation 520, the music state may be changed to 0 and the hysteresis may be initialized to 6 in operation 530. The initialized hysteresis value may be provided to operation 560. Otherwise, if the music state is not 1, condition 3 is not 1, or the hysteresis of the music state machine is not set in operation 520, the music state may be changed to 0 and the hysteresis may be initialized to 6 in operation 530. mus If it is not 0, the method may continue to operation 540 .

[0073] In operation 540, it may be determined whether the initial classification result (ie, the music state) is 0, condition 4 (f D ) is 1 and the hysteresis of the music state machine hang sp If the music state is determined to be 0 in operation 540, condition 4 is 1, and the hysteresis of the music state machine is mus If it is 0, then in operation 550, the music state may be changed to 1 and the hysteresis hang mus Can be initialized to 6. The initialized hysteresis value can be provided to operation 560. Otherwise, if the voice state is not 0, condition 4 is not 1, or the hysteresis hang of the music state machine in operation 540 mus If it is not 0, the method may continue to operation 560 to perform a hysteresis update for decreasing the hysteresis by 1.

[0074] Figure 6 A state machine for modifying context-based signal classification in a state suitable for a CELP core (i.e., in a speech state) according to an embodiment is shown and can be used with Figure 4 correspond.

[0075] Reference Figure 6 , in the modifier ( Figure 1130 or 230), the correction of the classification result can be applied according to the music state determined by the music state machine and the voice state determined by the voice state machine. For example, when the initial classification result is set to a music signal, the music signal can be changed to a voice signal based on the correction parameter. Specifically, when the classification result of the first operation of the initial classification result indicates a music signal and the voice state is 1, both the classification result of the first operation and the classification result of the second operation can be changed to a voice signal. In this case, it can be determined that there is an error in the initial classification result, so that the classification result is corrected.

[0076] Figure 7 A state machine for modifying context-based signal classification in a state (eg, music state) for a high quality (HQ) core according to an embodiment is shown and may be used with Figure 5 correspond.

[0077] Reference Figure 7 , in the modifier ( Figure 1 130 or 230), the correction of the classification result can be applied according to the music state determined by the music state machine and the voice state determined by the voice state machine. For example, when the initial classification result is set to a voice signal, the voice signal can be changed to a music signal based on the correction parameter. Specifically, when the classification result of the first operation of the initial classification result indicates a voice signal and the music state is 1, both the classification result of the first operation and the classification result of the second operation can be changed to a music signal. When the initial classification result is set to a music signal, the music signal can be changed to a voice signal based on the correction parameter. In this case, it can be determined that there is an error in the initial classification result, so that the classification result is corrected.

[0078] Figure 8 is a block diagram showing a configuration of a coding mode determination apparatus according to an embodiment.

[0079] Figure 8 The illustrated encoding mode determination apparatus may include an initial encoding mode determiner 810 and a modifier 830 .

[0080] Reference Figure 8, the initial coding mode determiner 810 can determine whether the audio signal has a speech feature, and when the audio signal has a speech feature, the first coding mode can be determined as the initial coding mode. In the first coding mode, the audio signal can be encoded by a CELP type encoder. When the audio signal has a non-speech feature, the initial coding mode determiner 810 can determine the second coding mode as the initial coding mode. In the second coding mode, the audio signal can be encoded by a transform encoder. Optionally, when the audio signal has a non-speech feature, the initial coding mode determiner 810 can determine one of the second coding mode and the third coding mode as the initial coding mode according to the bit rate. In the third coding mode, the audio signal can be encoded by a CELP / transform hybrid encoder. According to an embodiment, the initial coding mode determiner 810 can use three ways of scheme.

[0081] When the initial coding mode is determined to be the first coding mode, the corrector 830 may correct the initial coding mode to the second coding mode based on the correction parameter. For example, when the initial classification result indicates a speech signal but has music features, the initial classification result may be corrected to a music signal. When the initial coding mode is determined to be the second coding mode, the corrector 830 may correct the initial coding mode to the first coding mode or the third coding mode based on the correction parameter. For example, when the initial classification result indicates a music signal but has speech features, the initial classification result may be corrected to a speech signal.

[0082] Fig. 9 is a flowchart for describing an audio signal classification method according to an embodiment.

[0083] Reference Fig. 9 In operation 910, the audio signal may be classified into one of a music signal and a speech signal. Specifically, in operation 910, whether the current frame corresponds to a music signal or a speech signal may be classified based on the signal feature. Operation 910 may be performed by Figure 1 The signal classifier 110 or Figure 2 The signal classifier 210 is executed.

[0084] In operation 930, it may be determined whether there is an error in the classification result of operation 910 based on the correction parameter. If it is determined in operation 930 that there is an error in the classification result, the classification result may be corrected in operation 950. If it is determined in operation 930 that there is no error in the classification result, the classification result is maintained unchanged in operation 970. Operations 930 to 970 may be performed by Figure 1 Corrector 130 or Figure 2 The modifier 230 is executed.

[0085] Fig.10 is a block diagram showing a configuration of a multimedia device according to an embodiment.

[0086] Fig.10 The multimedia device 1000 shown may include a communication unit 1010 and an encoding module 1030. In addition, according to the use of the audio bit stream, a storage unit 1050 for storing the audio bit stream obtained as the encoding result may also be included. In addition, the multimedia device 1000 may further include a microphone 1070. That is, the storage unit 1050 and the microphone 1070 may be selectively provided. According to an exemplary embodiment, Fig.10 The multimedia device 1000 shown may also include any decoding device (not shown), for example, a decoding module for performing a general decoding function or a decoding module according to an exemplary embodiment. Here, the encoding module 1030 may be integrated with other components (not shown) provided to the multimedia device 1000 and implemented as at least one processor (not shown).

[0087] Reference Fig.10 , the communication unit 1010 may receive at least one of audio and a coded bit stream provided from the outside, or transmit at least one of reconstructed audio and an audio bit stream obtained as a result of encoding by the encoding module 1030 .

[0088] The communication unit 1010 is configured to be able to send data to an external multimedia device or a server or receive data from an external multimedia device or a server through a wireless network (such as wireless Internet, a wireless intranet, a wireless telephone network, a wireless local area network (LAN), a Wi-Fi network, a Wi-Fi Direct (WFD) network, a third generation (3G) network, a 4G network, a Bluetooth network, an Infrared Data Association (IrDA) network, a Radio Frequency Identification (RFID) network, an Ultra-Wideband (UWB) network, a ZigBee network, and a Near Field Communication (NFC) network) or a wired network (such as a wired telephone network or wired Internet).

[0089] According to an embodiment, the encoding module 1030 may encode an audio signal in the time domain, wherein the audio signal in the time domain is provided through the communication unit 1010 or the microphone 1070. Figures 1 to 9 The device or method shown implements the encoding process.

[0090] The storage unit 1050 may store various programs required to operate the multimedia device 1000 .

[0091] The microphone 1070 may provide a user or external audio signal to the encoding module 1030 .

[0092] Fig.11 is a block diagram showing a configuration of a multimedia device according to another embodiment.

[0093] Fig.11The multimedia device 1100 shown may include a communication unit 1110, an encoding module 1120, and a decoding module 1130. In addition, according to the use of the audio bitstream or the reconstructed audio signal, a storage unit 1140 for storing the audio bitstream obtained as a result of encoding or the reconstructed audio signal obtained as a result of decoding may be further included. In addition, the multimedia device 1100 may further include a microphone 1150 or a speaker 1160. Here, the encoding module 1120 and the decoding module 1130 may be integrated with other components (not shown) provided to the multimedia device 1100 and implemented as at least one processor (not shown).

[0094] Omitted Fig.11 Among the components shown in Fig.10 Detailed description of components that are the same as those in the multimedia device 1000 shown in FIG.

[0095] The decoding module 1130 may receive the bit stream provided by the communication unit 1110 and decode the audio spectrum included in the bit stream. Figure 3 The encoding module 330 is implemented accordingly.

[0096] The speaker 1170 may output the reconstructed audio signal generated by the decoding module 1130 to the outside.

[0097] Fig.10 The multimedia device 1000 and Fig.11 The multimedia device 1100 shown may include a dedicated voice communication terminal (including a telephone or mobile phone), a broadcast or music dedicated device (including a TV or MP3 player), or a hybrid terminal device of a dedicated voice communication terminal and a broadcast or music dedicated device, but is not limited thereto. In addition, the multimedia transposition 1000 or 1100 may be used as a transducer arranged in a client, in a server, or between a client and a server.

[0098] For example, when the multimedia device 1000 or 1100 is a mobile phone, although not shown, it may further include a user input unit (such as a keyboard), a display unit for displaying a user interface or information processed by the mobile phone, and a processor for controlling general functions of the mobile phone. In addition, the mobile phone may further include a camera unit having an image pickup function and at least one component for performing a function required by the mobile phone.

[0099] For example, when the multimedia device 1000 or 1100 is a TV, although not shown, it may further include a user input unit (such as a keyboard), a display unit for displaying received broadcast information, and a processor for controlling general functions of the TV. In addition, the TV may further include at least one component for performing a function required by the TV.

[0100] The method according to the embodiment can be edited by a computer executable program and implemented in a general digital computer for executing the program by using a computer readable recording medium. In addition, the data structure, program command or data file that can be used in the embodiments of the present invention can be recorded in a computer readable recording medium in various ways. The computer readable recording medium may include all types of storage devices for storing data that can be read by a computer system. Examples of computer readable recording media include magnetic media (such as hard disks, floppy disks or tapes), optical media (such as compact disk read-only memory (CD-ROM) or digital versatile disk (DVD)), magneto-optical media (such as floppy disks) and hardware devices (such as ROM, RAM or flash memory) that are specially configured to store and implement program commands. In addition, the computer readable recording medium can be a transmission medium for transmitting signals for specifying program commands, data structures, etc. Examples of program commands include high-level language codes that can be executed by a computer using an interpreter and machine language codes generated by a compiler.

[0101] Although the embodiments of the present invention have been described with reference to limited embodiments and drawings, the embodiments of the present invention are not limited to the embodiments described above, and their updates and modifications can be variously implemented by ordinary technicians in the field from this disclosure. Therefore, the scope of the present invention is not defined by the above description but by the claims, and all of their identical or equivalent modifications will belong to the scope of the technical concept of the present invention.

Claims

1. A signal classification method, include: Based on the plurality of first signal features, classifying the current frame as one of a speech signal and a music signal; estimating the condition based on a plurality of second signal features, wherein the plurality of second signal features are obtained from a plurality of frames; First, determining whether the estimated result of the condition corresponds to a first threshold; secondly determining whether the hysteresis parameter corresponds to a second threshold; and Based on the first determined result and the second determined result, the classification result of the current frame is corrected, The plurality of second signal features include a first tone in the range of 1-2 KHz and a second tone in the range of 2-4 KHz.

2. The signal classification method according to claim 1, in, The step of correcting the classification result of the current frame is performed based on multiple independent state machines.

3. The signal classification method according to claim 2, in, The multiple independent state machines include a music state machine and a voice state machine.

4. The signal classification method according to claim 1, in, The step of modifying the classification result of the current frame includes: when it is determined that the classification result of the current frame indicates a music signal and the current frame has a speech feature, modifying the classification result to a speech signal.

5. The signal classification method according to claim 1, in, The step of modifying the classification result of the current frame includes: when it is determined that the classification result of the current frame indicates a speech signal and the current frame has a music feature, modifying the classification result to a music signal.

6. An audio encoding method, include: Based on the plurality of first signal features, classifying the current frame as one of a speech signal and a music signal; estimating the condition based on a plurality of second signal features, wherein the plurality of second signal features are obtained from a plurality of frames; First, determining whether the estimated result of the condition corresponds to a first threshold; secondly, determining whether the hysteresis parameter corresponds to a second threshold; Based on the result of the first determination and the result of the second determination, modifying the classification result of the current frame; and Based on the classification result of the current frame or the revised classification result, encode the current frame, The plurality of second signal features include a first tone in the range of 1-2 KHz and a second tone in the range of 2-4 KHz.

7. The audio encoding method according to claim 6, in, The step of encoding the current frame is performed using one of a CELP type encoder and a transform encoder.

8. The audio encoding method according to claim 6, in, The step of encoding the current frame is performed using one of a CELP type coder, a transform coder and a CELP / transform hybrid coder.

9. A signal classification device comprising at least one processor, in, The at least one processor is configured to: Based on the plurality of first signal features, classifying the current frame as one of a speech signal and a music signal; estimating the condition based on a plurality of second signal features, wherein the plurality of second signal features are obtained from a plurality of frames; First, determining whether the estimated result of the condition corresponds to a first threshold; secondly determining whether the hysteresis parameter corresponds to a second threshold; and Based on the first determined result and the second determined result, the classification result of the current frame is corrected, The plurality of second signal features include a first tone in the range of 1-2 KHz and a second tone in the range of 2-4 KHz.

10. An audio encoding device comprising at least one processor, in, The at least one processor is configured to: Based on the plurality of first signal features, classifying the current frame as one of a speech signal and a music signal; estimating the condition based on a plurality of second signal features, wherein the plurality of second signal features are obtained from a plurality of frames; First, determining whether the estimated result of the condition corresponds to a first threshold; secondly, determining whether the hysteresis parameter corresponds to a second threshold; Based on the result of the first determination and the result of the second determination, modifying the classification result of the current frame; and Based on the classification result of the current frame or the revised classification result, encode the current frame, The plurality of second signal features include a first tone in the range of 1-2 KHz and a second tone in the range of 2-4 KHz.