Electronic device for dynamic note matching and operating method thereof
By reducing the sequence of audio signals and pre-stored data, generating a cost matrix and detecting warped paths, the problem of large server calculations is solved and efficiency and service quality are improved.
Patent Information
- Application Number
- CN202010440463.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-11
- Filing Date
- 2020-05-22
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-05-22
AI Technical Summary
When providing QbH services, the server needs to compare the audio signal with a large number of audio files, resulting in a large amount of calculation and reducing the computing speed of the server.
By extracting and reducing the corresponding sequence from the input signal and pre-stored data, a cost matrix is generated and warped paths are detected in it to calculate similarity and reduce the amount of calculation.
The operation efficiency and service quality of the electronic device are improved, the calculation amount is reduced, and the desired results are obtained at the same time.
Smart Images

Figure CN112071333B_ABST
Abstract
Description
[0001] Technical Area
[0002] Various embodiments relate to an electronic device for dynamic note matching (DNM) and an operating method thereof. Background Art
[0003] In recent years, a QbH (query by humming) service has been provided in a communication environment. In order to provide such a service, a server stores a large amount of information related to audio files. The client transmits an audio signal having a melody to be searched to the server, and the server feeds back information associated with an audio file most similar to the audio signal to the client. As a result, the server needs to compare the audio signal with a large number of audio files respectively. Therefore, the server needs a high amount of calculation. This may lead to a problem of reducing the calculation speed of the server. Summary of the invention
[0004] Various embodiments may provide an electronic device and an operating method thereof, which may reduce the amount of calculation required to provide services.
[0005] Various embodiments may provide an electronic device and an operating method thereof, which may reduce the amount of calculation required to compare an audio signal with a large number of audio files.
[0006] An operating method of an electronic device according to multiple embodiments is used for dynamic note matching (DNM), which includes: an operation of reducing a first sequence extracted from an input signal based on at least one first interval in which each value is continuously arranged to obtain a first interval sequence; an operation of obtaining a second interval sequence reduced based on at least one second interval in which each value is continuously arranged from a pre-stored second sequence; and an operation of calculating the similarity between the first interval sequence and the second interval sequence through the above-mentioned dynamic note matching (DNM).
[0007] An electronic device according to various embodiments is used for dynamic note matching (DNM), comprising: a processor configured to extract a first sequence from an input signal, and a memory connected to the processor and storing at least one second sequence.
[0008] According to multiple embodiments, the processor is configured to: reduce the first sequence based on the first interval in which each value is continuously arranged to obtain a first interval sequence; obtain a second interval sequence reduced from the second sequence based on at least one second interval in which each value is continuously arranged; and calculate the similarity between the first interval sequence and the second interval sequence through the dynamic note matching (DNM).
[0009] According to multiple embodiments, a non-transitory computer-readable storage medium is used for dynamic note matching (DNM) and can store one or more programs to execute: an operation of reducing a first sequence extracted from an input signal based on at least one first interval in which each value is continuously arranged to obtain a first interval sequence; an operation of obtaining a second interval sequence reduced from a pre-stored second sequence based on at least one second interval in which each value is continuously arranged; and an operation of calculating the similarity between the first interval sequence and the second interval sequence through the above-mentioned dynamic note matching (DNM).
[0010] According to multiple embodiments, the electronic device can reduce the amount of calculation required by the electronic device by reducing and comparing the input signal and the pre-stored data respectively. At this time, the electronic device generates a cost matrix based on the first interval sequence reduced from the input signal and the second interval sequence reduced from the pre-stored data, and the warp path can be detected in the cost matrix by dynamic note matching (DNM). Through this, the electronic device obtains reduced information from the input signal and the pre-stored data, so that dynamic programming can be used. Therefore, even if the electronic device reduces the amount of calculation, the desired result can be obtained. This can improve the operating efficiency of the electronic device and improve the quality of service provided by the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a diagram illustrating a system and signal flows thereof according to various embodiments.
[0012] Figure 2 are drawings illustrating electronic devices according to various embodiments.
[0013] Figure 3 are drawings illustrating an operating method of an electronic device according to various embodiments.
[0014] Figure 4 are drawings illustrating an operating method of an electronic device according to various embodiments.
[0015] Figure 5 It is shown Figure 4 FIG. 1 is a diagram illustrating an operation of calculating similarity.
[0016] Figure 6 , Figure 7 , Figure 8 , Fig. 9 , Fig.10 , Fig.11 , Fig.12 and Fig.13 It is used to illustrate Figure 4 FIG. 1 is a diagram illustrating an operation of calculating similarity.
[0017] Fig.14 is a drawing illustrating an operating method of an electronic device according to some embodiments. DETAILED DESCRIPTION
[0018] Hereinafter, multiple embodiments of the present invention will be described with reference to the accompanying drawings.
[0019] Figure 1 is a diagram illustrating a system 100 and signal flows thereof according to various embodiments.
[0020] refer to Figure 1 According to multiple embodiments, the system 100 may include multiple electronic devices 110, 130. The electronic devices 110, 130 may communicate with each other through a computer network (not shown). The electronic devices 110, 130 may include at least one client 110 and at least one server 130. For example, the client 110 may include at least one of a portable communication device, a computer device, a portable multimedia device, a portable medical device, a camera, a wearable device, or a household device, but is not limited thereto. The server 130 may provide multiple services to the client 110. Thus, the server 130 may have a database (database; DB) for providing services. According to multiple embodiments, the server 130 may provide a QbH (query by humming) service to the client 110. Thus, the server 130 may store at least one of multiple audio files or meta-information about audio files.
[0021] According to various embodiments, in operation 141, the client 110 may detect an audio signal. The client 110 may collect the audio signal within a specific time interval based on a user's request. The audio signal may be related to a melody that the user wants to search for. For example, the audio signal may include at least one of a user's voice or music played in an external environment. Thereafter, in operation 143, the client 110 transmits the audio signal to the server 130.
[0022] In operation 143, when an audio signal is received from the client 110, the server 130 may extract a first sequence q from the audio signal in operation 145. The first sequence q may be composed of a digital vector. Thus, the server 130 may extract the digital vector from the audio signal and obtain the first sequence q from the digital vector. At this time, the first sequence q has a specific length a, and each value, i.e., the digital vector, may have a structure of continuous arrangement.
[0023] In operation 147, the server 130 may calculate the similarity of each of the first sequence q and the pre-stored second sequence s. At this time, the server 130 may store at least one of the audio file or the meta information about the audio file, and the second sequence s of the audio file. Here, each second sequence s may be extracted from at least a portion of an area of an audio file and may be composed of a digital vector. Thus, the server 130 extracts the digital vector from at least a portion of an area of an audio file and obtains one of the second sequences s from the digital vector. At this time, each second sequence s has a specific length b, and each value (value), i.e., the digital vector, may have a continuously arranged structure. Furthermore, the server 130 may calculate the similarity of each of the first sequence q and the second sequence s by dynamic note matching (DNM). The server 130 may reduce the first sequence q and the second sequence s, and calculate the similarity based on this.
[0024] In operation 149, the server 130 may generate feedback information including at least one of the second sequences s. The server 130 may select at least one of the second sequences s based on the similarity. According to one embodiment, the server 130 may detect the maximum value in the similarity and select the second sequence s corresponding thereto. According to other embodiments, the server 130 may detect at least one of the similarities exceeding a predetermined threshold and select the second sequence s corresponding thereto. Furthermore, the server 130 may generate the feedback information to include meta information of an audio file associated with at least one of the second sequences. Thereafter, in operation 151, the server 130 may transmit the feedback information to the client 110.
[0025] In operation 151, when feedback information is received from server 130, client 110 may process the feedback information in operation 153. According to one embodiment, client 110 may output the feedback information. According to other embodiments, client 110 may transmit the feedback information to other electronic devices (not shown).
[0026] Figure 2 1 are diagrams illustrating electronic devices 110 and 130 according to various embodiments.
[0027] refer to Figure 2 According to various embodiments, the system 100 includes a plurality of electronic devices 110, 130. The electronic devices 110, 130 may communicate with each other via a computer network 200. For example, the computer network 200 may include at least one of a long-range wireless communication computer network or a short-range wireless communication computer network. The electronic devices 110, 130 may include at least one client 110 and at least one server 130.
[0028] According to various embodiments, the client 110 may include at least one of an input module 211, an output module 213, an interface 215, a communication module 217, a memory 219, or a processor 221. In some embodiments, at least one of the constituent elements of the client 110 may be omitted, or one or more other constituent elements may be added to the client 110.
[0029] The input module 211 may input a signal from outside the client 110 or a command for at least one component of the client 110. At this time, the signal may include at least one of an audio signal or a video signal. For example, the input module 211 may include at least one of a microphone, a camera module, a mouse, a keyboard, or various sensors.
[0030] The output module 213 provides information to the outside of the client 110. The output module 213 may include at least one of a display module that provides visual information or an audio module that provides auditory information. For example, the display module may include at least one of a display, a holographic device, or a projector. In some embodiments, the display module may be combined with at least one sensor for sensing touch.
[0031] The interface 215 can connect the client 110 to other electronic devices (not shown) directly or wirelessly. As an example, the interface 215 can include a connector for physically connecting to other electronic devices. As an example, the interface 215 can include at least one of an HDMI (high definition multimedia interface), a USB (universal serial bus) interface, an SD (secure digital) card interface, or an audio interface.
[0032] The communication module 217 may perform communication with an external device in the client 110. The communication module 217 may establish a communication channel between the client 110 and the external device, and may perform communication with the external device through the communication channel. The communication module 217 may include at least one of a wired communication module or a wireless communication module. For example, the wireless communication module may perform communication with the external device through the computer network 200.
[0033] The memory 219 may store a plurality of data used by at least one constituent element of the client 110. For example, the memory 219 may include at least one of a volatile memory or a nonvolatile memory. The data may include a program or related input data or output data.
[0034] The processor 221 may execute the program of the memory 219 to control at least one component of the client 110, and perform data processing or calculation. The processor 221 may detect an audio signal through the input module 211 or the interface 215. The processor 221 may collect audio signals within a specific time interval based on a user request input through the input module 211. The audio signal may be related to a melody that the user wants to search for. For example, the audio signal may include at least one of a user's voice or music played in an external environment. The processor 221 may transmit the audio signal to the server 130 through the communication module 217. The processor 221 may receive feedback information corresponding to the audio signal from the server 130 through the communication module 217, and process the feedback information. According to one embodiment, the processor 221 may output the feedback information through the output module 213. According to other embodiments, the processor 221 may transmit the feedback information to other electronic devices (not shown) through the interface 215.
[0035] According to various embodiments, the server 130 may include at least one of the communication module 237, the memory 239, or the processor 241. In some embodiments, at least one of the constituent elements of the server 130 may be omitted, or one or more other constituent elements may be added to the server 130.
[0036] The communication module 237 may perform communication with an external device in the server 130. The communication module 237 may establish a communication channel between the server 130 and the external device, and may perform communication with the external device through the communication channel. The communication module 237 may include at least one of a wired communication module or a wireless communication module. For example, the wireless communication module may perform communication with an external device through the computer network 200.
[0037] The memory 239 may store a plurality of data used by at least one component of the server 130. For example, the memory 239 may include at least one of a volatile memory or a non-volatile memory. The data may include a program or related input data or output data. The memory 239 may include a database for providing services to the client 110. The database may store at least one of a plurality of audio files or meta information about the audio files.
[0038] The processor 241 may execute the program of the memory 239 to control at least one component of the server 130, and perform data processing or calculation. The processor 241 may receive an audio signal from the client 110 through the communication module 237. The processor 241 may calculate the similarity between the audio signal and each of the audio files stored in the memory 239. At this time, the processor 241 may calculate the similarity between the audio signal and each of the audio files through dynamic note matching (DNM). The processor 241 may feed back at least one meta information in the audio file to the client 110 through the communication module 237 and based on the similarity. At this time, the processor 241 may generate feedback information including the meta information and transmit the feedback information to the client 110.
[0039] According to multiple embodiments, the processor 241 can extract a first sequence q from an audio signal, and reduce the first sequence q to obtain a first interval sequence. The first sequence q can be composed of a digital vector. Thus, the processor 241 can extract a digital vector from an audio signal, and obtain the first sequence q from the digital vector. At this time, the first sequence q has a specific length a, and each value (value), that is, a digital vector, can be composed of at least one first interval arranged in a row. Thus, the processor 241 reduces the first sequence q to a first interval sequence based on the first interval. At this time, the first interval sequence can refer to the value (A_value) of the first interval, that is, a sequence of digital vectors and lengths (A_duration).
[0040] According to multiple embodiments, the processor 241 can obtain a reduced second interval sequence from a second sequence s of an audio file. At this time, at least one of the second sequence s or the second interval sequence is stored in the memory 239. Here, each second sequence s can be extracted from at least a portion of an area of an audio file and can be composed of a digital vector. At this time, each second sequence s has a specific length b, and each value (value), i.e., a digital vector, can be composed of at least one second interval arranged in a row. Each second interval sequence can be reduced based on a second interval from the second sequence s. At this time, each second interval sequence can refer to the value (B_value) of the second interval, i.e., a sequence about a digital vector and a length (B_duration).
[0041] According to multiple embodiments, the processor 241 may calculate the similarity between the first interval sequence and each second interval sequence by dynamic note matching (DNM). The processor 241 may generate a cost matrix based on the first interval sequence and each second interval sequence. At this time, the processor 241 may generate at least one row of the cost matrix corresponding to the first interval, and may generate at least one column of the cost matrix corresponding to the second interval. The processor 241 detects a warping path in the cost matrix, and may use the warping path to calculate the similarity between the first interval sequence and each second interval sequence.
[0042] Figure 3 1 is a diagram illustrating an operation method of the electronic device 110 , ie, the client 110 , according to various embodiments.
[0043] refer to Figure 3 In operation 311, the client 110 may detect an audio signal. The processor 221 collects the audio signal within a specific time interval based on a user's request input through the input module 211. The audio signal may be related to a melody that the user wants to search for. For example, the audio signal may include at least one of a user's voice or music played in an external environment. Thereafter, in operation 313, the client 110 transmits the audio signal to the server 130. The processor 221 may transmit the audio signal to the server 130 through the communication module 217.
[0044] In operation 315, the client 110 may receive feedback information from the server 130. The processor 221 may receive feedback information corresponding to the audio signal from the server 130 through the communication module 217. The feedback information may include meta information of at least one audio file detected corresponding to the audio signal. Accordingly, in operation 317, the client 110 may process the feedback information. According to one embodiment, the processor 221 may output the feedback information through the output module 213. According to other embodiments, the processor 221 may transmit the feedback information to other electronic devices (not shown) through the interface 215.
[0045] Figure 4 1 is a diagram illustrating an operation method of the electronic device 130, ie, the server 130, according to various embodiments.
[0046] refer to Figure 4 In operation 411, the server 130 may receive an audio signal from an external device, namely, the client 110. The processor 241 may receive the audio signal from the client 110 through the communication module 237. The audio signal may be related to a melody that the user wants to search for. For example, the audio signal may include at least one of a user's voice or music played in an external environment.
[0047] In operation 143, the server 130 may extract a first sequence q from the audio signal. The first sequence q may consist of a digital vector. Thus, the server 130 may extract the digital vector from the audio signal and obtain the first sequence q from the digital vector. At this time, the first sequence q has a specific length a, and each value (value), i.e., the digital vector, may consist of at least one first interval arranged continuously. For example, the first sequence q may have a structure as described in [Mathematical Formula 1] below, and in this case, the length (q_length) (n) of the first sequence q may be 8.
[0048]
Mathematical formula 1
[0049] q=[3, 3, 3, 3, 3, 4, 4, 4]
[0050] In operation 415, the server 130 may calculate the similarity between the first sequence q and the pre-stored second sequence s. At this time, at least one of the second sequence s or the second interval sequence is stored in the memory 239. Here, each second sequence s may be extracted from at least a portion of an area of an audio file and may be composed of a digital vector. At this time, each second sequence s has a specific length b, and each value, i.e., a digital vector, may be composed of at least one second interval arranged in a row. For example, one of the second sequences s may have a structure as described in [Mathematical Formula 2] below, and in this case, the length (s_length) (m) of one of the second sequences s may be 10. The processor 241 may calculate the similarity between the first sequence q and the second sequence s by dynamic note matching (DNM).
[0051]
Mathematical formula 2
[0052] s=[1,1,1,1,1,1,3,3,3,3]
[0053] Figure 5 It is shown Figure 4 FIG. 1 is a diagram illustrating an operation of calculating similarity. Figure 6 , Figure 7 , Figure 8 , Fig. 9 , Fig.10 , Fig.11 , Fig.12 and Fig.13 It is used to illustrate Figure 4 FIG. 1 is a diagram illustrating an operation of calculating similarity.
[0054] refer to Figure 5, in operation 511, the server 130 may obtain a first interval sequence A of the first sequence q. The processor 241 may reduce the first sequence q to a first interval sequence A based on the first interval of the first sequence q. At this time, the first interval sequence A may refer to the value (A_value) of the first interval, i.e., a digital vector and a length (A_duration), such as a sequence of (A_value, A_duration). For example, the first interval sequence A is reduced from the first sequence q of the structure described in [Mathematical Formula 1] above, and has a structure described in [Mathematical Formula 3] below, and in this case, the length (A_length) of the first interval sequence A may be 2.
[0055]
Mathematical formula 3
[0056] A = [(3, 5), (4, 3)]
[0057] In operation 513, the server 130 may obtain a second interval sequence B of the second sequence s. The second interval sequence B may be reduced based on a second interval in the second sequence s. At this time, the second interval sequence B may refer to the value (B_value) of the second interval, i.e., a digital vector and a length (B_duration), such as a sequence of (B_value, B_duration). According to one embodiment, a second interval sequence B corresponding to one of the second sequences s may be stored in the memory 239. According to other embodiments, the processor 241 may reduce one of the second sequences s to obtain the second interval sequence B. For example, the second interval sequence B is reduced from the second sequence s having the structure described in [Mathematical Formula 2] above, and has the structure described in [Mathematical Formula 4] below, and in this case, the length (B_length) of the second interval sequence B may be 2.
[0058]
Mathematical formula 4
[0059] B = [(1, 6), (3, 4)]
[0060] In operation 515, the server 130 may generate a cost matrix based on the first interval sequence A and the second interval sequence B. The processor 241 may generate a cost matrix based on the first interval sequence A and the second interval sequence B. Figure 6As shown, a cost matrix 600 for dynamic note matching (DNM) can be generated. The processor 241 can generate at least one row of the cost matrix 600 through a first interval corresponding to a first interval sequence A, and can generate at least one column of the cost matrix 600 through a second interval corresponding to a second interval sequence B. At this time, the cost matrix 600 may include at least one vector region 610. Each vector region 610 may be generated through one of the first intervals and one of the second intervals. Here, each vector region 610 as a two-dimensional vector region may be determined by a value (A_value) and a length (A_duration) of one in the first interval and a value (B_value) and a length (B_duration) of one in the second interval. According to various embodiments, there may be a predefined warping rule for the cost matrix 600 for dynamic note matching (DNM).
[0061] According to the first warping rule, the warping path may proceed in a direction extending from the lower side and the left side to at least one of the upper side or the right side in the cost matrix 600. For example, when the cost matrix 600 includes a plurality of vector regions 610 according to a plurality of columns and a plurality of rows, the warping path may proceed in a vertical direction extending from one of the vector regions 610 to the upper side, a horizontal direction extending to the right side, or a diagonal direction extending between the upper side and the right side.
[0062] According to the second warping rule, in each vector region 610, the warping path may proceed along a diagonal direction extending between the upper side and the right side. Figure 7 and Figure 8 As shown, each vector region 610 represents the arrangement of elements according to a first interval value (A_value) and length (A_duration) and a second interval value (B_value) and length (B_duration), and a cost (cost) can be assigned to each element in each vector region 610. In the elements of each vector region 610, the starting position 711, 811 and the arrival position 713, 813 of the warp path 710, 810 can be determined. At this time, according to the starting position 711, 811 of the warp path 710, 810, the arrival position 713, 813 of the warp path 710, 810 can be determined differently. The warp path 710, 810 can travel in a manner of contacting at least one of the upper side edge or the right side edge of the vector region 610. As an example, Figure 7 As shown, the arrival position 713 of the warping path 710 may contact the upper side of the vector region 610. In this case, as shown in FIG. Fig. 9As shown in a, for the arrival position 713 in the vector area 610, the effective distance from the upper side (A_durmat[n, m]) is 0, and there is an effective distance from the right side (B_durmat[n, m]). As another example, Figure 8 As shown, the arrival position 813 of the warping path 810 may contact the right side of the vector region 610. In this case, Fig. 9 As shown in b, for the arrival position 813 in the vector area 610, the effective distance from the right side (B_durmat[n, m]) is 0, and there is a effective distance from the upper side (A_durmat[n, m]).
[0063] In operation 517, the server 130 may calculate the cost (cost) of each vector region 610 of the cost matrix 600. The processor 241 may calculate the cost of each vector region 610 using the value (A_value) and length (A_duration) of the first interval and the value (B_value) and length (B_duration) of the second interval as described in the following [Formula 5]. According to the above-mentioned second warping rule, [Formula 5] may be warped into the following [Formula 6].
[0064]
Mathematical formula 5
[0065] cost[n,m]=|A_value[n]-B_value[m]|·min(A_duration[n],B_duration[m])
[0066]
Mathematical formula 6
[0067] cost[n,m]=|A_value[n]-B_value[m]|·min(effective distance), effective distance ≠ 0
[0068] Processor 241 may calculate the cost of vector region 61 with respect to the bottommost row and leftmost column of cost matrix 600. For example, for Fig.10 The processor 241 can calculate the cost of the vector regions 610, 1011, 1013, 1015 in the bottom row and leftmost column of the cost matrix 600. Here, the processor 241 can calculate the cost of each vector region 610, 1011, 1013, 1015 based on the second warping rule described above. Specifically, the processor 241 can calculate the cost when the warping path reaches the upper side edge of the vector region 610, 1011, 1013, 1015 and the cost when the warping path reaches the right side edge of the vector region 610, 1011, 1013, 1015.
[0069] Then, when the cost matrix 600 is composed of a plurality of columns and a plurality of rows, the processor 241 may calculate the cost of the target vector region 610, 1017 for which the cost is to be calculated from the plurality of vector regions 610. At this time, the processor 241 may calculate the cost of the target vector region 1017 based on the first warping rule described above and using the reference vector regions 1011, 1013, 1015 for which the cost has been calculated from the vector region 610. For example, the processor 241 may calculate the cost of the target vector region 1017 as follows: Fig.11 , Fig.12 and Fig.13 As shown, the candidate cost of the target vector region 1017 can be calculated from each of the reference vector regions 1011 , 1013 , and 1015 . The processor 241 can select the minimum value among the candidate costs as the cost of the target vector region 1017 .
[0070] Thus, the processor 241 can select the reference vector regions 1011, 1013, 1015 in the lower column and left row of the target vector region 1017. Here, the reference vector regions 1011, 1013, 1015 may include a first reference vector region 1011, a second reference vector region 1013, and a third reference vector region 1015. The first reference vector region 1011 is a vector region 610 set at the lower side and left side of the target vector region 1017, i.e., in the diagonal direction, the second reference vector region 1013 is a vector region 610 set at the lower side of the target vector region 1017, and the third reference vector region 1015 is a vector region 610 set at the left side of the target vector region 1017.
[0071] Processor 241 Fig.11 As shown, the candidate cost of the target vector region 1017 can be calculated from the first reference vector region 1011. Here, the processor 241 can calculate the candidate cost when the warping path in the first reference vector region 1011 reaches the upper side edge as described in the following [Math 7]. In addition, the processor 241 can calculate the candidate cost when the warping path in the first reference vector region 1011 reaches the right side edge as described in the following [Math 8].
[0072]
Mathematical formula 7
[0073] cost_candidate[0]=costArr[n-1,m-1]
[0074] +dist[n,m]·min(A_duration[n],B_duration[m])
[0075] +dist[n-1,m-1]·B_durmat[n-1,m-1],
[0076] dist[n,m]=|A_value[n]-B_value[m]|,
[0077] dist[n-1,m-1]=|A_value[n-1]-B_value[m-1]|
[0078]
Mathematical formula 8
[0079] cost_candidate[0]=costArr[n-1, m-1]
[0080] +dist[n, m]·min(A_duration[n], B_duration[m])
[0081] +dist[n-1,m-1]·A_durmat[n-1,m-1]
[0082] Processor 241 Fig.12 As shown, the candidate cost of the target vector region 1017 can be calculated from the second reference vector region 1013. Here, the processor 241 can calculate the candidate cost when the warping path in the second reference vector region 1013 reaches the upper side edge as described in the following [Math 9]. Furthermore, the processor 241 can calculate the candidate cost when the warping path in the second reference vector region 1013 reaches the right side edge as described in the following [Math 10].
[0083]
Mathematical formula 9
[0084] cost_candidate[1]=costArr[n-1,m]
[0085] +dist[n,m]·min(A_duration[n],B_durmat[n-1,m]
[0086]
Mathematical formula 10
[0087] cost_candidate[1]=costArr[n-1,m]
[0088] +dist[n,m]·A_duration[n]
[0089] +dist[n-1,m]·A_durmat[n-1,m]
[0090] dist[n-1,m]=|A_value[n-1]-B_value[m]|
[0091] Processor 241 Fig.13As shown, the candidate cost of the target vector region 1017 can be calculated from the third reference vector region 1015. Here, the processor 241 can calculate the candidate cost when the warping path in the third reference vector region 1015 reaches the upper side edge as described in the following [Math 11]. In addition, the processor 241 can calculate the candidate cost when the warping path in the third reference vector region 1017 reaches the right side edge as described in the following [Math 12].
[0092]
Mathematical formula 11
[0093] cost_candidate[2]=costArr[n,m-1]
[0094] +dist[n,m]·B_duration[,]
[0095] +dist[n,m-1]·B_durmat[n,m-1],
[0096] dist[n,m-1]=|A_value[n]-B_value[m-1]|
[0097]
Mathematical formula 12
[0098] cost_candidate[2]=costArr[n,m-1]
[0099] +dist[n,m]·min(A_durmat[n,m-1],B_duration[m])
[0100] In operation 519 , the server 130 may detect a warp path in the cost matrix 600 . The processor 241 may detect an optimal warp path in the cost matrix 600 by considering the costs of all vectors 610 in the cost matrix 600 .
[0101] In operation 521, the server 130 may calculate the similarity between the first interval sequence A and the second interval sequence B based on the warping path. The processor 241 may analyze the warping path of the cost matrix 600 to calculate the similarity between the first interval sequence A and the second interval sequence B. Afterwards, the server 130 may return Figure 4 .
[0102] Reference again Figure 4, in operation 417, the server 130 may generate feedback information including at least one of the second sequences s. The processor 241 may select at least one of the second sequences s based on the similarity between the first sequence q and the second sequence s. According to one embodiment, the processor 241 may detect the maximum value in the similarity and select the second sequence s corresponding thereto. According to other embodiments, the processor 241 may detect at least one of the similarities exceeding a predetermined threshold and select the second sequence s corresponding thereto. Furthermore, the processor 241 may generate the feedback information to include meta information of an audio file associated with at least one of the second sequences.
[0103] In operation 419 , the server 130 may transmit the feedback information to an external device, namely, the client 110 . The processor 241 may transmit the feedback information to the client 110 through the communication module 237 .
[0104] Fig.14 is a diagram illustrating an operating method of the electronic device 110 , 130 according to some embodiments.
[0105] refer to Fig.14 , the electronic devices 110 and 130 according to some embodiments may detect an audio signal in operation 1411. The processors 221 and 241 may collect audio signals within a specific time interval based on a user's request. The audio signal may be related to the melody that the user wants to search for. For example, the audio signal may include at least one of a user's voice or music played in an external environment. Afterwards, in operation 1413, the electronic devices 110 and 130 may extract a first sequence q from the audio signal. The processors 221 and 241 may extract the first sequence q from the audio signal. By this, in operation 1415, the electronic devices 110 and 130 may calculate the similarity of each of the first sequence q and the pre-stored second sequence s. The processors 221 and 241 may calculate the similarity of the first sequence q and the second sequence s by dynamic note matching (DNM). At this time, the memory 219 and 239 of the electronic devices 110 and 130 may store at least one of an audio file or meta information about an audio file, and a second sequence s of the audio file.
[0106] In operation 1417, the electronic device 110, 130 may generate feedback information including at least one of the second sequence s. The processor 221, 231 may generate the feedback information. Thereafter, in operation 1419, the electronic device 110, 130 may process the feedback information. According to one embodiment, the processor 221, 231 may output the feedback information. According to other embodiments, the processor 221, 231 may transmit the feedback information to other electronic devices (not shown).
[0107] According to various embodiments, the electronic devices 110 and 130 can reduce the amount of calculation required by the electronic devices 110 and 130 by respectively reducing and comparing the input signal and the pre-stored data. At this time, the electronic devices 110 and 130 generate a cost matrix 610 based on the first interval sequence A reduced from the input signal and the second interval sequence B reduced from the pre-stored data, and the warp path can be detected in the cost matrix 610 by dynamic note matching (DNM). Through this, the electronic devices 110 and 130 obtain reduced information from the input signal and the pre-stored data, so that dynamic programming can be used. Therefore, even if the electronic devices 110 and 130 reduce the amount of calculation, the desired results can be obtained. This can improve the operating efficiency of the electronic devices 110 and 130 and improve the quality of service provided by the electronic devices.
[0108] The operating method of the electronic devices 110 and 130 according to multiple embodiments is used for dynamic note matching (DNM), which includes: an operation of reducing a first sequence q extracted from an input signal based on at least one first interval in which each value is continuously arranged to obtain a first interval sequence A; an operation of obtaining a second interval sequence B reduced based on at least one second interval in which each value is continuously arranged from a pre-stored second sequence s; and an operation of calculating the similarity between the above-mentioned first interval sequence A and the above-mentioned second interval sequence B.
[0109] According to multiple embodiments, the first interval sequence A may represent a sequence of values and lengths of the first interval, and the second interval sequence B may represent a sequence of values and lengths of the second interval.
[0110] According to multiple embodiments, the operation of calculating the above-mentioned similarity may include: an operation of generating a cost matrix 610 including at least one vector region 610 based on the above-mentioned first interval sequence A and the above-mentioned second interval sequence B; an operation of calculating the cost of the above-mentioned vector region 610; an operation of detecting a warp path in the above-mentioned cost matrix 610 based on the above-mentioned cost; and an operation of calculating the above-mentioned similarity using the above-mentioned warp path.
[0111] According to multiple embodiments, the operation of generating the above-mentioned cost matrix 610 may include: the operation of generating at least one column of the above-mentioned cost matrix 610 corresponding to the above-mentioned first interval; and the operation of generating at least one row of the above-mentioned cost matrix 610 corresponding to the above-mentioned second interval.
[0112] According to various embodiments, each of the vector regions 610 may be generated by one of the first intervals and one of the second intervals.
[0113] According to multiple embodiments, the above-mentioned cost calculation operation may include: an operation of calculating the cost of the vector area 610 in the lowermost row and leftmost column of the above-mentioned cost matrix 610 using the value and length of the above-mentioned first interval and the value and length of the above-mentioned second interval; when the above-mentioned cost matrix 610 is composed of multiple columns and multiple rows, an operation of selecting the reference vector areas 1011, 1013, 1015 in the lower column and left row of the target vector area 1017; and an operation of calculating the cost of the above-mentioned target vector area 1017 based on the costs of the above-mentioned reference vector areas 1011, 1013, 1015.
[0114] According to multiple embodiments, the operation of calculating the cost of the target vector region 1017 may include: an operation of calculating a candidate cost of the target vector region 1017 from each of the reference vector regions 1011 , 1013 , 1015 ; and an operation of selecting a minimum value among the candidate costs as the cost of the target vector region 1017 .
[0115] According to multiple embodiments, the above-mentioned candidate cost calculation operation may include: an operation of calculating one of the above-mentioned candidate costs from the cost of the upper side edge of one of the above-mentioned reference vector areas 1011, 1013, 1015; and an operation of calculating another of the above-mentioned candidate costs from the cost of the right side edge of one of the above-mentioned reference vector areas 1011, 1013, 1015.
[0116] According to multiple embodiments, the operation of acquiring the above-mentioned first interval sequence A may include: the operation of receiving an audio signal from an external device; the operation of extracting the above-mentioned first sequence q from the above-mentioned audio signal; and the operation of reducing the above-mentioned first sequence q to acquire the above-mentioned first interval sequence A.
[0117] According to multiple embodiments, the operation of acquiring the second interval sequence B and the operation of calculating the similarity may be performed one by one on multiple pre-stored second sequences s.
[0118] According to multiple embodiments, the method further includes: an operation of selecting at least one of the second sequences s based on the similarity; and an operation of feeding back meta information associated with the selected second sequence s to the external device.
[0119] The electronic devices 110 and 130 according to various embodiments are used for dynamic note matching (DNM), and include: a processor 221 and 241 configured to extract a first sequence q from an input signal, and a memory 239 connected to the processors 221 and 241 and storing at least one second sequence.
[0120] According to multiple embodiments, the processors 221 and 241 are configured to: reduce the first sequence by q based on the first interval in which each value is continuously arranged to obtain a first interval sequence A; obtain a second interval sequence B reduced by at least one second interval in which each value is continuously arranged from the second sequence s; and calculate the similarity between the first interval sequence A and the second interval sequence B.
[0121] According to multiple embodiments, the first interval sequence A may represent a sequence of values and lengths of the first interval, and the second interval sequence B may represent a sequence of values and lengths of the second interval.
[0122] According to multiple embodiments, the above-mentioned processors 221, 241 are configured to: generate a cost matrix 610 including at least one vector region 610 based on the above-mentioned first interval sequence A and the above-mentioned second interval sequence B; calculate the cost regarding the above-mentioned vector region 610; detect a warp path in the above-mentioned cost matrix 610 based on the above-mentioned cost; and calculate the above-mentioned similarity using the above-mentioned warp path.
[0123] According to multiple embodiments, the above-mentioned processors 221, 241 are configured to: generate at least one column of the above-mentioned cost matrix 610 corresponding to the above-mentioned first interval; generate at least one row of the above-mentioned cost matrix 610 corresponding to the above-mentioned second interval; and therefore, the above-mentioned vector region 610 is generated by one of the above-mentioned first intervals and one of the above-mentioned second intervals, respectively.
[0124] According to multiple embodiments, the processors 221 and 241 are configured to: calculate the cost of the vector region 610 in the bottom row and leftmost column of the cost matrix 610 using the value and length of the first interval and the value and length of the second interval; select the reference vector regions 1011, 1013, and 1015 in the bottom column and left row of the target vector region 1017 when the cost matrix 610 is composed of a plurality of columns and a plurality of rows; and calculate the cost of the target vector region 1017 based on the costs of the reference vector regions 1011, 1013, and 1015.
[0125] According to multiple embodiments, the processors 221 and 241 are configured to: calculate a candidate cost of the target vector region 1017 from each of the reference vector regions 1011 , 1013 , and 1015 ; and select a minimum value of the candidate costs as the cost of the target vector region 1017 .
[0126] According to multiple embodiments, the processors 221 and 241 are configured to: calculate one of the candidate costs from the cost of the upper side edge of one of the reference vector regions 1011, 1013, and 1015; and calculate another of the candidate costs from the cost of the right side edge of one of the reference vector regions 1011, 1013, and 1015.
[0127] According to multiple embodiments, the processors 221 and 241 are configured to: receive an audio signal from an external device, such as the client 110 ; extract the first sequence q from the audio signal; and reduce the first sequence q to obtain the first interval sequence A.
[0128] According to multiple embodiments, the processors 221 and 241 are configured to: calculate multiple similarities corresponding to multiple pre-stored second sequences s respectively; select at least one of the second sequences s based on the similarities; and feed back meta information associated with the selected second sequence s to the external device.
[0129] The various embodiments of the present invention may be embodied as software including one or more command languages stored in a storage medium (storage medium) (e.g., memory 219, 239) readable by a machine (e.g., electronic device 110, 130). For example, a processor of a machine (e.g., processor 221, 241) may call and execute at least one command in one or more command languages stored from a storage medium. This enables the machine to operate to perform at least one function according to at least one called command language. The one or more command languages may include code generated by a compiler or code executable by an interpreter. The machine-readable storage medium may be provided in the form of a non-transitory storage medium. Here, "non-transitory" simply means that the storage medium is a tangible device, does not include a signal (e.g., electromagnetic waves), and the term does not distinguish between the case where data is semi-permanently stored in the storage medium and the case where it is temporarily stored.
[0130] According to multiple embodiments, a non-transitory computer-readable storage medium can store one or more programs to run: an operation of reducing a first sequence q extracted from an input signal based on at least one first interval in which each value is continuously arranged to obtain a first interval sequence A; an operation of obtaining a second interval sequence B reduced from a pre-stored second sequence s based on at least one second interval in which each value is continuously arranged; and an operation of calculating the similarity between the above-mentioned first interval sequence A and the above-mentioned second interval sequence B.
[0131] It should be understood that the multiple embodiments and terms used in this article do not limit the technology described in this article to a specific implementation form, but include multiple warpings, equivalents, and / or substitutes of the corresponding embodiments. For the description of the accompanying drawings, similar reference symbols may be used for similar components. Unless the context clearly indicates otherwise, singular expressions may include plural expressions. In this article, expressions such as "A or B", "at least one of A and / or B", "A, B or C" or "at least one of A, B and / or C" may include all possible combinations listed together. Expressions such as "first", "second", "first" or "second" may modify the corresponding components regardless of order or importance, and are only used to distinguish one component from other components, not to limit the corresponding components. When it is mentioned that some (e.g., first) components are "(functionally or communicatively) connected" or "connected" with other (e.g., second) components, some of the above components may be directly connected to the above other components or connected through other components (e.g., third components).
[0132] The term "module" used in this article includes a unit composed of hardware, software or firmware, and can be used interchangeably with terms such as logic, logic block, component or circuit. A module can be a component that constitutes an entirety or the smallest unit or a part thereof that performs one or more functions. For example, a module can be composed of an ASIC (application-specific integrated circuit).
[0133] According to multiple embodiments, each constituent element (e.g., module or program) of the described constituent elements may include singular or plural individuals. According to multiple embodiments, one or more constituent elements or operations in the above-mentioned corresponding constituent elements may be omitted, or one or more other constituent elements or operations may be added. The majority of constituent elements (e.g., module or program) that are replaced or added may be merged into one constituent element. In this case, the merged constituent element may perform one or more functions of each constituent element in the majority of constituent elements that are the same or similar to those performed by the corresponding constituent elements in the majority of constituent elements before the merger. According to multiple embodiments, the operations performed by modules, programs or other constituent elements may be performed sequentially, in parallel, repeatedly or heuristically, or one or more operations may be performed in other orders, omitted or one or more other operations may be added.
Claims
1. A method for operating an electronic device for dynamic note matching, wherein: include: An operation of reducing a first sequence having a structure of digital vector arrangement extracted from an input audio signal based on at least one first interval in which digital vectors of the same value are arranged continuously to obtain a first interval sequence, wherein the first interval sequence is composed of digital vectors arranged continuously in the first interval and the length of the first interval; An operation of reducing a pre-stored second sequence having a structure of digital vector arrangement based on at least one second interval in which digital vectors of the same value are continuously arranged to obtain a second interval sequence, wherein the second interval sequence consists of digital vectors continuously arranged in the second interval and the length of the second interval; and An operation of calculating the similarity between the first interval sequence and the second interval sequence.
2. The method for operating an electronic device according to claim 1, wherein: The above similarity calculation operation includes: An operation of generating a cost matrix including at least one vector region based on the first interval sequence and the second interval sequence; An operation for calculating the cost of the above vector region; An operation of detecting a warped path in the cost matrix based on the cost; and The above-mentioned similarity operation is calculated using the above-mentioned warping path.
3. The method for operating an electronic device according to claim 2, wherein: The above cost matrix generation operation includes: generating at least one row of the cost matrix corresponding to the first interval; and The operation of generating at least one column of the cost matrix corresponding to the second interval, each of the vector regions is generated by one of the first intervals and one of the second intervals.
4. The method for operating an electronic device according to claim 3, wherein: The above cost calculation operations include: An operation of calculating the cost of the vector region of the bottom row and leftmost column of the cost matrix using the value of the first interval and the length of the first interval and the value of the second interval and the length of the second interval; When the cost matrix is composed of a plurality of columns and a plurality of rows, an operation of selecting a reference vector region in a lower row and a left column of a target vector region; and The cost calculation operation of the target vector area is performed based on the cost of the reference vector area.
5. The method for operating an electronic device according to claim 4, wherein: The cost calculation operations for the above target vector area include: An operation of calculating a candidate cost of the target vector region from each of the reference vector regions; and An operation of selecting the minimum value among the candidate costs as the cost of the target vector region.
6. The method for operating an electronic device according to claim 5, wherein: The candidate cost calculation operations mentioned above include: An operation of calculating one of the candidate costs from the cost of the upper side edge of one of the reference vector regions; and An operation of calculating another one of the candidate costs from the cost of the right side edge of one of the reference vector regions.
7. The method for operating an electronic device according to claim 1, wherein: The first interval sequence acquisition operation includes: An operation of receiving an audio signal from an external device; An operation of extracting the first sequence from the audio signal; and An operation of reducing the first sequence to obtain the first interval sequence.
8. The method for operating an electronic device according to claim 7, wherein: In the above second interval sequence acquisition operation and the above similarity calculation operation, The pre-stored multiple second sequences are executed one by one.
9. The method for operating an electronic device according to claim 8, wherein: Also includes: An operation of selecting at least one of the second sequences based on the similarity; and The operation of feeding back meta information associated with the selected second sequence to the external device.
10. An electronic device for dynamic note matching, wherein: include: a processor configured to extract a first sequence having a structure of digital vector arrangement from an input audio signal, and a memory, connected to the processor, storing at least one second sequence, The above processor is composed of: Reducing the first sequence based on a first interval in which digital vectors with the same value are continuously arranged to obtain a first interval sequence, wherein the first interval sequence is composed of the digital vectors continuously arranged in the first interval and the length of the first interval; Reducing the second sequence having a structure of digital vector arrangement based on at least one second interval in which digital vectors of the same value are arranged continuously to obtain a second interval sequence, wherein the second interval sequence consists of digital vectors arranged continuously in the second interval and the length of the second interval; and The similarity between the first interval sequence and the second interval sequence is calculated.
11. The electronic device according to claim 10, wherein: The above processor is composed of: generating a cost matrix including at least one vector region based on the first interval sequence and the second interval sequence; Calculate the cost for the above vector area; detecting a warped path in the cost matrix based on the cost; and The similarity is calculated using the warping path.
12. The electronic device according to claim 11, wherein: The above processor is composed of: generating at least one row of the cost matrix corresponding to the first interval; generating at least one column of the cost matrix corresponding to the second interval; and The vector region is generated by one of the first intervals and one of the second intervals, respectively.
13. The electronic device according to claim 12, wherein: The above processor is composed of: Calculate the cost of the vector region in the bottom row and leftmost column of the cost matrix using the value of the first interval and the length of the first interval and the value of the second interval and the length of the second interval; When the cost matrix is composed of a plurality of columns and a plurality of rows, selecting a reference vector region in a lower row and a left column of the target vector region; and The cost of the target vector area is calculated based on the cost of the reference vector area.
14. The electronic device according to claim 13, wherein: The above processor is composed of: Calculating a candidate cost for the target vector region from each of the reference vector regions; and The minimum value among the candidate costs is selected as the cost of the target vector region.
15. The electronic device according to claim 14, wherein: The above processor is composed of: Calculating one of the candidate costs from the cost of the upper side edge of one of the reference vector regions; and Another one of the candidate costs is calculated from the cost of the right side edge of one of the reference vector regions.
16. The electronic device according to claim 10, wherein: The above processor is composed of: receiving audio signals from external devices; extracting the first sequence from the audio signal; and The first sequence is reduced to obtain the first interval sequence.
17. The electronic device according to claim 16, wherein: The above processor is composed of: Calculating a plurality of similarities respectively corresponding to a plurality of pre-stored second sequences; selecting at least one of the second sequences based on the similarity; and The meta information associated with the selected second sequence is fed back to the external device.
18. A non-transitory computer-readable storage medium for dynamic note matching, wherein: To store one or more programs to run: An operation of reducing a first sequence having a structure of digital vector arrangement extracted from an input audio signal based on at least one first interval in which digital vectors of the same value are arranged continuously to obtain a first interval sequence, wherein the first interval sequence is composed of digital vectors arranged continuously in the first interval and the length of the first interval; An operation of obtaining at least one second interval in which digital vectors of the same value are continuously arranged from a pre-stored second sequence having a structure in which digital vectors are arranged to reduce the second interval sequence, wherein the second interval sequence is composed of digital vectors continuously arranged in the second interval and the length of the second interval; and An operation of calculating the similarity between the first interval sequence and the second interval sequence.
Citation Information
Patent Citations
Audio processing device, method, program, and integrated circuit
CN103380457A
Sound detecting apparatus, sound detecting method, sound feature value detecting apparatus, sound feature value detecting method, sound section detecting apparatus, sound section detecting method, and program
CN104221018A
Audio frequency recognition method and device and storage medium
CN107978323A
Pattern analogy calculator
JP1989021499A
Musical piece retrieval device
JP1997138691A
