Song teaching method, device, terminal and storage medium
By obtaining the full audio and accompaniment data of the song and intelligently playing it in segments based on rhythm information, it solves the problem of poor song teaching effect in the existing technology and achieves a more efficient learning and practice experience, which is especially suitable for children and difficult songs.
Patent Information
- Application Number
- CN202110763798.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2041-07-06
AI Technical Summary
The existing technology cannot effectively improve the effect of song teaching, especially the learning effect of humming along with the song is poor.
By acquiring the full audio data and accompaniment data of the song, intelligently segmenting it based on rhythm information, the audio and accompaniment data of each song fragment are played in sequence, allowing users to learn through audio first, and then practice accompaniment, providing climax segment teaching and early childhood education. teaching mode.
It improves the effect, flexibility and adaptability of song teaching, is especially suitable for children and difficult song teaching, and enhances the user's learning and practice experience.
Smart Images

Figure CN113343022B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of Internet technology, and in particular to a song teaching method, device, terminal and storage medium. Background Art
[0002] With the continuous development of Internet technology, listening to songs has become a common form of entertainment. People not only like to listen to songs, but also like to hum along with the songs. They learn the songs by humming along with the songs, but the learning effect of this method is poor. Therefore, a song teaching method is urgently needed. Summary of the invention
[0003] The embodiment of the present application provides a song teaching method, device, terminal and storage medium, provides a song teaching method, and improves the song teaching effect. The technical solution is as follows:
[0004] On the one hand, a song teaching method is provided, the method comprising:
[0005] In response to a learning-to-sing operation for any song, full-song audio data and full-song accompaniment data of the song are acquired, wherein the full-song audio data includes vocal data;
[0006] Based on the rhythm information of the song, at least one set of teaching singing data of the song is obtained from the full song audio data and the full song accompaniment data, each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same segment of the song;
[0007] Play the segment audio data and segment accompaniment data in each group of teaching singing data in sequence.
[0008] On the one hand, a song teaching device is provided, the device comprising:
[0009] A data acquisition module, for acquiring full song audio data and full song accompaniment data of any song in response to a learning-to-sing operation of the song, wherein the full song audio data includes vocal data;
[0010] The data acquisition module is further used to acquire at least one set of teaching singing data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same segment of the song;
[0011] The playing module is used to play the audio data and accompaniment data of each group of teaching singing data in sequence.
[0012] In one possible implementation, the at least one set of teaching singing data includes climax teaching singing data, and the climax teaching singing data includes climax audio data and climax accompaniment data. The data acquisition module is used to acquire the climax audio data and climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song.
[0013] In one possible implementation, the rhythm information is a climax identifier, the full song audio data and the full song accompaniment data include the climax identifier, and the climax identifier is used to represent the climax segment of the song; the data acquisition module is used to determine the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the climax identifier.
[0014] In a possible implementation, the data acquisition module includes:
[0015] A data acquisition unit, configured to determine, in response to the climax identifier indicating that the song has multiple climax segments, climax audio data and accompaniment audio data corresponding to each climax segment from the full song audio data and the full song accompaniment data;
[0016] The deduplication unit is used to perform deduplication processing on the climax audio data and the accompaniment audio data corresponding to the multiple climax clips to obtain the climax audio data and the climax accompaniment data.
[0017] In a possible implementation, the data acquisition module includes:
[0018] A processing unit, configured to process the full song audio data through a climax division model based on the rhythm information of the song to obtain the climax audio data;
[0019] The data acquisition unit is used to determine the climax accompaniment data corresponding to the climax audio data from the full song accompaniment data based on the climax audio data.
[0020] In one possible implementation, the at least one set of teaching singing data is used to teach singing the climax segment of the song, and each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same line of lyrics in the climax segment of the song; the data acquisition module is used to acquire the climax audio data and climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song; and acquire the segment audio data and segment accompaniment data corresponding to each line of lyrics from the climax audio data and the climax accompaniment data.
[0021] In one possible implementation, the data acquisition module is used to acquire the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the rhythm information of the song in the young child teaching mode.
[0022] In a possible implementation, the device further includes:
[0023] Age acquisition module, used to obtain the age registered based on the current login account;
[0024] The mode switching module is used to enter the young age teaching mode in response to the age being less than the age threshold.
[0025] In a possible implementation, the device further includes:
[0026] A display module, used for displaying a teaching singing interface corresponding to the song, wherein the teaching singing interface includes a first mode option and prompt information, wherein the prompt information is used for prompting the user to teach only the climax segment of the song when the first mode option is in a selected state;
[0027] A mode switching module is used to enter the early childhood teaching mode in response to a selection operation of the first mode option.
[0028] In a possible implementation, the device further includes:
[0029] A display module, used for displaying lyrics data of the song when not in the young teaching mode;
[0030] The data acquisition module is used for responding to the interception operation of the lyrics data, and composing a set of teaching singing data with the segment audio data and the segment accompaniment data corresponding to the intercepted lyrics data;
[0031] The playing module is used to play the audio data and accompaniment data of each group of teaching singing data in sequence.
[0032] In a possible implementation, the playing module is used to play the audio data and the accompaniment data in the teaching singing data in turn in response to obtaining a set of teaching singing data; or
[0033] The playback module is used to respond to obtaining multiple groups of teaching singing data and play each group of teaching singing data in turn according to the arrangement order of the multiple groups of teaching singing data.
[0034] In one possible implementation, the playback module is used to play the audio data segments in the first group of teaching singing data; after playing the audio data segments in the first group of teaching singing data, play the accompaniment audio data in the first group of teaching singing data; after playing the accompaniment audio data in the first group of teaching singing data, continue to play the audio data segments in the next group of teaching singing data; until the accompaniment audio data segments in the last group of teaching singing data are played.
[0035] In a possible implementation, the playing module is used to display a remaining play countdown of the corresponding segment accompaniment data after playing any segment of audio data; in response to the remaining play countdown being zero, play the segment accompaniment data.
[0036] In a possible implementation, the device further includes:
[0037] A recording module, used for recording during the process of playing the segment accompaniment data of each group of teaching singing data, to obtain singing-along data;
[0038] The display module is used to display guidance information based on the recorded sing-along data, and the guidance information is used to indicate errors that occur when the user sings along with the song.
[0039] In a possible implementation, the display module further includes at least one of the following units:
[0040] A first display unit is used to display first guidance information according to currently recorded sing-along data during the playback of any segment of accompaniment data, wherein the first guidance information is used to check whether the user's current pitch is correct;
[0041] The second display unit is used to display second guidance information after the song teaching is completed, based on the sing-along data recorded during the teaching process, wherein the second guidance information is used to indicate at least one of the wrong passages or words sung by the user, the user's vocal range, the user's pitch accuracy, or improvement suggestions.
[0042] In a possible implementation, the playback module is further configured to perform at least one of the following:
[0043] In response to a triggering operation of a re-teaching option for any segment, replaying the segment audio data corresponding to the segment;
[0044] In response to a triggering operation of a re-practice option for any segment, the segment accompaniment data corresponding to the segment is replayed.
[0045] On the other hand, a terminal is provided, which includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the song teaching method described in the above aspects.
[0046] On the other hand, a computer-readable storage medium is provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed in the song teaching method described in the above aspects.
[0047] On the other hand, a computer program is provided, in which at least one program code is stored, and the at least one program code is loaded and executed by a processor to implement the operations performed in the song teaching method described in the above aspects.
[0048] The song teaching method, device, terminal and storage medium provided in the embodiments of the present application can intelligently segment the song based on the rhythm information of the song, and play the audio and accompaniment of each song segment in sequence, so that the user can first learn through the audio of the song, and then practice through the accompaniment of the song, thereby improving the teaching effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0050] Figure 1 It is a structural diagram of an implementation environment provided by an embodiment of the present application;
[0051] Figure 2 is a flow chart of a song teaching method provided by an embodiment of the present application;
[0052] Figure 3 is a flow chart of another song teaching method provided by an embodiment of the present application;
[0053] Figure 4 is a schematic diagram of a song teaching interface provided in an embodiment of the present application;
[0054] Figure 5 is a schematic diagram of a song teaching method provided in an embodiment of the present application;
[0055] Figure 6 is a schematic diagram of another song teaching interface provided in an embodiment of the present application;
[0056] Figure 7 is a schematic diagram of another song teaching interface provided in an embodiment of the present application;
[0057] Figure 8 is a schematic diagram of another song teaching interface provided in an embodiment of the present application;
[0058] Fig. 9 It is a structural schematic diagram of a song teaching device provided in an embodiment of the present application;
[0059] Fig.10 is a structural schematic diagram of another song teaching device provided in an embodiment of the present application;
[0060] Fig.11 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application;
[0061] Fig.12 It is a structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0063] It is understood that the terms "first", "second", "third", "fourth", "fifth", "sixth", etc. used in this application can be used in this article to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, the first segment can be called the second segment, and the second segment can be called the first segment without departing from the scope of this application.
[0064] The terms "each", "multiple", "at least one", "any" and the like used in this application include one, two or more than two, multiple include two or more than two, each refers to each of the corresponding multiple, and any refers to any one of the multiple. For example, multiple segments include 3 segments, and each refers to each of the 3 segments, and any refers to any one of the 3 segments, which can be the first, the second, or the third.
[0065] In one possible implementation, the song teaching method provided in the embodiment of the present application is executed by a terminal, such as a mobile phone, a tablet computer, a computer, etc. In another possible implementation, the song teaching method provided in the embodiment of the present application is executed by a computer device, which includes a terminal and a server, and the server can be a server or a cloud server that provides cloud computing and cloud storage services.
[0066] Figure 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Figure 1 , the implementation environment includes a terminal 101 and a server 102. The terminal 101 and the server 102 are connected via a wireless or wired network.
[0067] The target application provided by the server 102 is installed on the terminal 101. Optionally, the terminal 101 is a computer, a mobile phone, a tablet computer or other terminals. Optionally, the server 102 is a background server of the target application or a cloud server providing cloud computing and cloud storage services.
[0068] Optionally, the target application is a target application in the terminal operating system, or a target application provided by a third party. For example, the target application is an audio playback application, and the audio playback function has the functions of playing audio and recording audio. Of course, the target application can also have other functions, such as teaching function, review function, game function, shopping function, etc.
[0069] Optionally, the terminal 101 obtains the full audio data and the full accompaniment data of the song from the server 102, divides the full audio data and the full accompaniment data into at least one group of teaching singing data, plays the segment audio data and the segment accompaniment data in each group of teaching singing data in turn, records the process of playing the segment accompaniment data to obtain sing-along data; analyzes the recorded sing-along data, and displays to the user the errors that occur when singing along with the song.
[0070] The method provided in the embodiment of the present application can be applied to any song teaching scenario:
[0071] For example, children's song teaching scene:
[0072] Usually, children have limited learning abilities. If the method provided in the embodiment of the present application is adopted, only the climax part of the song can be taught, and the teaching method is more flexible.
[0073] Another example is a teaching scene:
[0074] For a certain song, the user may only sing a certain part badly. If the method provided in the embodiment of the present application is adopted, only a certain part of the song can be taught, which makes the teaching method more flexible and improves the teaching effect.
[0075] It should be noted that the embodiments of the present application only take children's song teaching scenes and fragment teaching scenes as examples to exemplify the song teaching scenes, and do not limit the song teaching scenes of the present application.
[0076] Figure 21 is a flow chart of a song teaching method provided in the embodiment of the present application. The embodiment of the present application takes the execution subject as a terminal as an example for exemplary description. Figure 2 , the method comprising:
[0077] 201. In response to a learning-to-sing operation for any song, the terminal obtains full audio data and full accompaniment data of the song, wherein the full audio data includes vocal data.
[0078] The full song audio data includes vocal data, while the full song accompaniment data does not include vocal data. The vocal data in the full song audio data is used to teach the terminal user. The vocal data included in the full song audio data can be the vocal data of the original singer of the song or the vocal data of the cover singer. The embodiment of the present application does not limit the vocal data in the full song audio data.
[0079] 202. The terminal obtains at least one set of teaching singing data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, and each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same segment of the song.
[0080] In an embodiment of the present application, the terminal can intelligently segment the song based on the rhythm information of the song, and combine the segment audio data and segment accompaniment data corresponding to the same segment into a group of teaching singing data.
[0081] 203. The terminal plays the audio data and accompaniment data of each group of teaching singing data in sequence.
[0082] The terminal first plays the segment audio data including the vocal data, and then plays the segment accompaniment data excluding the vocal data. In this way, the user can first listen to the original song for learning, and then practice with the accompaniment to achieve the teaching effect.
[0083] The song teaching method provided in the embodiment of the present application can intelligently segment the song based on the rhythm information of the song, and play the audio and accompaniment of each song segment in sequence, so that the user can first learn through the audio of the song, and then practice through the accompaniment of the song, thereby improving the teaching effect.
[0084] Figure 3 is a flow chart of a song teaching method provided in an embodiment of the present application. Figure 3 The embodiment of the present application takes the execution subject as a terminal as an example for illustrative description, and the method includes:
[0085] 301. The terminal displays a song selection interface, which includes multiple songs.
[0086] Among them, the song selection interface is an interface for selecting songs, which includes multiple songs, and the user can select any song from the multiple songs; optionally, the song selection interface also provides a search function, and the user can enter the song identifier of any song in the song selection interface, for example, the singer of the song, the song name of the song, the album name of the album to which the song belongs, etc. The terminal retrieves the corresponding song for the user based on the song identifier entered by the user, and displays the retrieved song to the user.
[0087] In a possible implementation, the song selection interface provides at least one song list, and different song lists are used to display different types of songs. For example, the song selection interface provides a hot song ranking list, which is used to display multiple current hot songs; for another example, the song selection interface provides a "My Attention" list, which is used to display songs that are followed by the current login account; for another example, the song selection interface provides a "Recommended Works" list, which is used to display singing works uploaded by other login accounts.
[0088] In a possible implementation, the terminal is installed with a target application, and the target application provides a song selection interface.
[0089] 302. In response to a learning-to-sing operation for any song, the terminal obtains full audio data and full accompaniment data of the song, wherein the full audio data includes vocal data.
[0090] The learning-singing operation for any song may be any triggering operation, for example, any one or a combination of multiple operations such as a click operation, a slide operation, and a double-click operation. The present application embodiment does not limit the learning-singing operation. Figure 4 As shown, the terminal responds to the learning-singing operation of any song, which may be the terminal responding to the triggering operation of the "start singing" option in the learning-singing interface of any song.
[0091] The full song audio data and full song accompaniment data are the data corresponding to the entire song.
[0092] 303. Based on the rhythm information of the song, the terminal obtains at least one set of teaching singing data of the song from the full song audio data and the full song accompaniment data, and each set of teaching singing data includes the segment audio data and segment accompaniment data corresponding to any segment of the song.
[0093] It should be noted that the playing time of a song is usually 3 to 4 minutes. If the user learns the whole song in one breath, it is difficult. Therefore, in the embodiment of the present application, segmented teaching is adopted. The whole song can be divided into multiple segments for learning, or only a certain segment of the song can be learned. Moreover, when learning a certain segment of the song, the whole segment can be learned together, or it can be learned sentence by sentence, which is not limited in the embodiment of the present application.
[0094] In a possible implementation, the terminal divides the entire song into multiple segments for learning. Based on the rhythm information of the song, the terminal obtains at least one set of teaching singing data of the song from the entire song audio data and the entire song accompaniment data, including: the terminal determines the rhythm change point based on the rhythm information of the song; based on the rhythm change point, the entire song audio data is divided into multiple segment audio data; the segment accompaniment data corresponding to each segment audio data is determined from the entire song accompaniment data, and the segment audio data and segment accompaniment data corresponding to the same segment are combined into a set of teaching singing data.
[0095] Optionally, the rhythm information is used to indicate the speed of the song rhythm, and the rhythm change point is a node where the speed of the rhythm changes significantly. Optionally, the rhythm information is used to indicate the change in the strength of the song beat, and the rhythm change point is a node where the strength of the beat changes significantly. The rhythm information can also be used for other information, and the embodiment of the present application does not limit the rhythm information.
[0096] The climax of a song is often the most favorite part of the song, and people's enthusiasm for learning the climax is usually higher than their enthusiasm for learning other parts. Therefore, the embodiment of the present application also provides a method for teaching the climax of a song. In another possible implementation, at least one set of teaching singing data includes climax teaching singing data, and the climax teaching singing data includes climax audio data and climax accompaniment data, and the climax audio data and climax accompaniment data are data corresponding to the climax of the song.
[0097] Among them, if the climax segment of the song is to be taught, the terminal needs to accurately determine the climax segment from the entire song. The embodiment of the present application also provides a variety of methods for determining the climax segment.
[0098] Optionally, the terminal obtains at least one set of teaching singing data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, including: obtaining the climax audio data and climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song.
[0099] In a possible implementation, the rhythm information is a climax identifier, and the full song audio data and full song accompaniment data acquired by the terminal include the climax identifier, and the climax identifier is used to indicate the climax segment of the song. The terminal acquires the climax audio data and climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, including: determining the climax audio data and climax accompaniment data from the full song audio data and the full song accompaniment data based on the climax identifier.
[0100] The climax identifier can be in any form, and the embodiment of the present application does not limit the form of the climax identifier. Optionally, the climax identifier includes the start time and end time of the climax segment, and the climax audio data and the climax accompaniment data can be segmented from the full song audio data and the full song accompaniment data according to the start time and the end time.
[0101] Optionally, the climax marker may include a climax start marker and a climax end marker, which are inserted into the full song audio data and the full song accompaniment data, and the data between the climax start marker and the climax end marker is the data corresponding to the climax segment.
[0102] The climax identifier can be marked manually or by a device in the full song audio data and the full song accompaniment data. Optionally, the climax identifier can be marked manually, and the singer marks the climax segment of the song when uploading the full song audio data of the song; optionally, the climax identifier can be marked by a device, and the device determines the segment with the highest playback volume when multiple users listen to the song as the climax segment; optionally, a climax division model is deployed in the server, and through the climax division model, the full song audio data of the song is processed based on the rhythm information of the song to obtain climax audio data; based on the climax audio data, the climax accompaniment data corresponding to the climax audio data is determined from the full song accompaniment data.
[0103] Among them, obtaining the climax audio data can be: the climax division model outputs the climax audio data, or the climax division model outputs the whole song audio data, and the whole song audio data includes the climax identifier added by the climax division model, and the climax identifier indicates the climax data.
[0104] Among them, the climax division model is a model for dividing the climax segments in the song. The climax division model is a trained model with a certain accuracy. The training process of the climax division model may include: obtaining training data, the training data includes the full song audio data of any song, the full song audio data includes a sample climax identifier, and the full song audio data is processed by the climax division model based on the rhythm information of the song to obtain a predicted climax identifier; based on the difference between the sample climax identifier and the predicted climax identifier, the climax division model is trained. Alternatively, the training process of the climax division model may include: obtaining training data, the training data includes the full song audio data and the sample climax audio data of any song, and the full song audio data is processed by the climax division model to obtain predicted climax audio data; based on the difference between the sample climax audio data and the predicted climax audio data, the climax division model is trained.
[0105] It should be noted that some songs have multiple climax segments, and the singing content of the climax segments is consistent. Therefore, when obtaining the climax segments of these songs, it is not necessary to obtain each climax segment. Therefore, in an embodiment of the present application, after the climax segment is obtained, the climax segment can also be deduplicated. Optionally, the terminal determines the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data according to the climax identifier, including: in response to the climax identifier indicating that there are multiple climax segments in the song, the climax audio data and the accompaniment audio data corresponding to each climax segment are determined from the full song audio data and the full song accompaniment data; the climax audio data and the accompaniment audio data corresponding to the multiple climax segments are deduplicated to obtain the climax audio data and the climax accompaniment data.
[0106] In an embodiment of the present application, the climax segment of the song can be divided out by the server, or the climax segment of the song can be divided out by the terminal, and the embodiment of the present application does not limit this. In one possible implementation, after the terminal obtains the full song audio data and the full song accompaniment data from the server, the climax audio data and the climax accompaniment data are divided out through a climax division model. Optionally, the terminal obtains the climax audio data and the climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, including: processing the full song audio data based on the rhythm information of the song through the climax division model to obtain the climax audio data; based on the climax audio data, determining the climax accompaniment data corresponding to the climax audio data from the full song accompaniment data.
[0107] Among them, the climax division model is the same as the climax division model deployed in the server, and will not be described one by one here.
[0108] In a possible implementation, when younger children are learning a song, it is difficult for them to learn the whole song. Therefore, an embodiment of the present application provides a method for teaching only the climax part of a song to younger children. For example, the terminal obtains the climax audio data and climax accompaniment data of the song from the whole song audio data and the whole song accompaniment data based on the rhythm information of the song, including: in the young teaching mode, based on the rhythm information of the song, the climax audio data and climax accompaniment data are obtained from the whole song audio data and the whole song accompaniment data.
[0109] Among them, the young teaching mode can be triggered based on the age registered based on the current login account. Figure 5 As shown, optionally, before the terminal obtains the climax audio data and climax accompaniment data from the full song audio data and the full song accompaniment data in the young age teaching mode based on the rhythm information of the song, the method further includes: obtaining the age registered based on the current login account; in response to the age being less than the age threshold, entering the young age teaching mode. The age threshold can be any value, for example, the age threshold is 6, 8, 10, etc.
[0110] In addition, in view of the fact that some users did not fill in their real age during the registration process, or younger children use their parents' accounts to learn, this will cause the terminal to not enter the young teaching mode, thereby failing to provide better services to users. Therefore, the embodiment of the present application also provides a method for the user to choose whether to enter the young teaching mode. Optionally, in the young teaching mode, before the terminal obtains the climax audio data and climax accompaniment data from the full song audio data and the full song accompaniment data based on the rhythm information of the song, the method also includes: displaying the teaching singing interface corresponding to the song, the teaching singing interface including the first mode option and prompt information, the prompt information is used to prompt the user that when the first mode option is selected, only the climax segment of the song is taught; in response to the selection operation of the first mode option, entering the young teaching mode.
[0111] For example, Figure 4 As shown, the teaching interface of song A displays an option of "only sing the climax" and a prompt message "it is recommended that babies under 6 years old start practicing from the climax".
[0112] It should be noted that, in the embodiment of the present application, when teaching users to learn the climax segment, the climax segment can be taught in its entirety or sentence by sentence.
[0113] In a possible implementation, for the climax segment, the terminal adopts complete segment teaching, and the climax audio data and climax accompaniment data corresponding to the entire segment of the climax segment constitute a set of teaching singing data.
[0114] In another possible implementation, for the climax segment, the terminal adopts sentence-by-sentence teaching, and the segment audio data and segment accompaniment data corresponding to the same sentence of lyrics in the climax segment form a group of teaching singing data. Optionally, at least one group of teaching singing data is used to teach singing the climax segment of the song, and each group of teaching singing data includes the segment audio data and segment accompaniment data corresponding to the same sentence of lyrics in the climax segment of the song, and based on the rhythm information of the song, at least one group of teaching singing data of the song is obtained from the audio data and the accompaniment data of the whole song, including: based on the rhythm information of the song, the climax audio data and the climax accompaniment data of the song are obtained from the audio data and the accompaniment data of the whole song; and the segment audio data and the segment accompaniment data corresponding to each sentence of lyrics are obtained from the climax audio data and the accompaniment data.
[0115] It should be noted that, whether it is a plurality of segments divided by the terminal itself or a climax segment divided by the terminal itself, the terminal can teach each segment in its entirety or teach each segment sentence by sentence. This embodiment of the application does not limit this.
[0116] In a possible implementation, the terminal performs complete segment teaching for each segment. Each set of teaching data is segment audio data and segment accompaniment data corresponding to a complete segment. Optionally, the terminal obtains at least one set of teaching singing data from the full song audio data and the full song accompaniment data based on the rhythm information of the song, including: determining the segment audio data and the segment accompaniment data corresponding to the target segment from the full song audio data and the full song accompaniment data based on the rhythm information of the song; and combining the segment audio data and the segment accompaniment data into a set of teaching singing data.
[0117] The target segment may be any segment divided by the terminal.
[0118] In another possible implementation, the terminal uses sentence-by-sentence teaching. Each set of teaching data is a segment of audio data and a segment of accompaniment data corresponding to a line of lyrics. Optionally, the terminal obtains at least one set of teaching singing data of a song, including: obtaining the full song audio data and the full song accompaniment data of the song; determining the segment of audio data and the segment of accompaniment data corresponding to each line of lyrics from the full song audio data and the full song accompaniment data; and forming the segment of audio data and the segment of accompaniment data corresponding to the same line of lyrics into a set of teaching singing data.
[0119] It should be noted that in the embodiment of the present application, not only can the entire song be taught sentence by sentence, but also a certain segment of the song can be taught sentence by sentence. The teaching of segments captured by users or climax segments can all be taught sentence by sentence, and the embodiment of the present application does not limit this.
[0120] It should be noted that in the embodiment of the present application, the terminal can only learn the climax segment in the young teaching mode. However, in some cases, the terminal is not in the young teaching mode, and the user learns to sing a certain song on the terminal, which may be because a certain section of the song is not sung well. In this case, the user only needs to learn the poorly sung segment, and the poorly sung segments of different users are not the same. Therefore, the embodiment of the present application also provides another song teaching method. In a possible implementation, the terminal can show the lyrics of the song to the user, and the user only needs to mark the lyrics corresponding to the poorly sung segment to achieve targeted learning of the segment. The method also includes: not in the young teaching mode, displaying the lyrics data of the song; in response to the interception operation of the lyrics data, the segment audio data and segment accompaniment data corresponding to the intercepted lyrics data are combined into a group of teaching data; and the segment audio data and segment accompaniment data in each group of teaching data are played in sequence.
[0121] It should be noted that the user can intercept multiple lyrics data, that is, the user can learn multiple song segments. The terminal can form a group of teaching singing data with the segment audio data and segment accompaniment data corresponding to the same intercepted lyrics data.
[0122] Another point to be explained is that the terminal can provide the user with any method of intercepting the lyrics data. For example, the terminal provides a start line and an end line, and the user can drag the start line and the end line on the displayed lyrics data to intercept the lyrics data.
[0123] It should be noted that, whether it is the segments divided intelligently by the terminal or the segments divided autonomously by the user, the terminal can use complete segment teaching or sentence-by-sentence teaching, and the embodiments of the present application do not limit this.
[0124] It should be noted that in a possible implementation, the user can choose to use the complete segment teaching or sentence by sentence teaching. Optionally, the song teaching interface includes a second mode option and a third mode option, the second mode option corresponds to the complete segment teaching, and the third mode option corresponds to the sentence by sentence teaching; in response to the selection of the second mode option, the complete segment teaching is adopted; in response to the selection of the third mode option, the sentence by sentence teaching is adopted.
[0125] 304. The terminal plays the audio data and accompaniment data of each group of teaching singing data in sequence.
[0126] When teaching a song, the terminal first plays the audio data segment. Since the audio data segment includes vocal data, the user can listen to the played audio data segment for learning; then the accompaniment data segment is played, and the user can sing along with the accompaniment data segment and practice by singing along.
[0127] When teaching a song, the terminal may need to teach one segment or multiple segments. In a possible implementation, when the terminal needs to teach a segment, the segment audio data and segment accompaniment data in each group of teaching singing data are played in turn, including: in response to obtaining a group of teaching singing data, the segment audio data and segment accompaniment data in the teaching singing data are played in turn.
[0128] In another possible implementation, when the terminal needs to teach multiple segments, the terminal responds to obtaining multiple groups of teaching singing data and plays each group of teaching singing data in turn according to the arrangement order of the multiple groups of teaching singing data.
[0129] Optionally, each group of teaching singing data is played in turn according to the arrangement order of multiple groups of teaching singing data, including: playing the audio data fragments in the first group of teaching singing data; after playing the audio data fragments in the first group of teaching singing data, playing the accompaniment audio data in the first group of teaching singing data; after playing the accompaniment audio data in the first group of teaching singing data, continuing to play the audio data fragments in the next group of teaching singing data; until the accompaniment audio data fragments in the last group of teaching singing data are played.
[0130] In a possible implementation, after playing the segment audio data, the terminal needs to play the segment accompaniment data, and when playing the segment accompaniment data, the user needs to sing along, and in order to allow the user to better enter the practice state, the user can be given some preparation time. Optionally, the terminal plays the segment audio data and the segment accompaniment data in each group of teaching singing data in sequence, including: after playing any segment audio data, displaying the remaining play countdown of the corresponding segment accompaniment data, and playing the segment accompaniment data in response to the remaining play countdown being zero.
[0131] The playback countdown can be any length, such as 3 seconds or 5 seconds, and the present application embodiment does not limit the playback countdown. Figure 6 As shown, after the audio data segment is played, a prompt message "It's your turn" and a countdown of "3" seconds for the remaining playback are displayed in the teaching interface of song A.
[0132] In addition, in the embodiment of the present application, the user learns by listening to the segment audio data. After the user finishes listening to the segment audio data, the user may not have learned it. Therefore, the terminal also provides a re-teaching function. In a possible implementation, in response to the triggering operation of the re-teaching option for any segment, the segment audio data corresponding to the segment is replayed. Optionally, after the segment audio data is played, the segment accompaniment data corresponding to the segment continues to be played.
[0133] In addition, when the user practices with the segment accompaniment data, the user may not perform well, so the embodiment of the present application also provides a re-practice function. In a possible implementation, in response to the triggering operation of the re-practice option for any segment, the segment accompaniment data corresponding to the segment is replayed.
[0134] 305. The terminal records the accompaniment data of each group of teaching singing data while playing the segment, and obtains singing-along data.
[0135] During the process of playing the segment accompaniment data at the terminal, the user can practice the learned segment and sing along with the segment accompaniment data. The terminal can record the user's singing along to determine the user's learning results and areas where the user needs to improve.
[0136] It should be noted that the user may make some mistakes during the singing-along process, resulting in poor singing-along results; or the user is dissatisfied with the current singing-along results. In order to provide users with better services, the embodiment of the present application also provides a re-recording function. In one possible implementation, in response to a triggering operation of a re-recording option for any segment, the segment accompaniment data corresponding to the segment is replayed, and the recording is performed during the playing of the segment accompaniment data to obtain the singing-along data, and the singing-along data corresponding to the segment recorded last time is replaced with the singing-along data recorded this time.
[0137] In addition, in an embodiment of the present application, if the user triggers the re-teaching option for a certain segment, after playing the segment audio data corresponding to the segment, the segment accompaniment data corresponding to the segment will also be played, and recording will be performed during the playing of the segment accompaniment data to obtain sing-along data.
[0138] It should be noted that the re-teaching option can be triggered before or after the sing-along, and the embodiments of the present application do not limit this. If the user triggers the re-teaching option before singing along, the recording is performed during the playing of the segment accompaniment data, and the obtained sing-along data is the final sing-along data. If the user triggers the re-teaching option after singing along, the previously recorded sing-along data of the segment can be discarded, and only the last recorded sing-along data of the segment is retained. In one possible implementation, in response to the triggering operation of the re-teaching option for any segment, the segment audio data corresponding to the segment is replayed; after the segment audio data is played, the segment accompaniment data corresponding to the segment is played; during the playing of the segment accompaniment data, recording is performed to obtain the sing-along data, and the sing-along data corresponding to the segment recorded last time is replaced with the sing-along data recorded this time.
[0139] For example, Figure 7As shown, in the song teaching interface of song A, an option of "learn again" is displayed. After the user clicks the option of "learn again", the accompaniment data of the segment is played again.
[0140] It should be noted that, in the embodiment of the present application, in addition to providing the re-recording function and the re-teaching function, a skip teaching function can also be provided, for example, Figure 8 As shown, when playing the audio data of a certain segment, the user thinks that the segment has been learned almost completely, and can skip the teaching and directly practice.
[0141] 306. When playing any piece of accompaniment data, the terminal displays first guidance information according to the currently recorded sing-along data, where the first guidance information is used to indicate to the user whether the current pitch is correct.
[0142] In an embodiment of the present application, the terminal will record the sing-along data while playing any piece of accompaniment data. The terminal can analyze the recorded sing-along data to determine whether the user sings correctly.
[0143] Displaying the first guidance information during the process of the terminal playing any piece of accompaniment data actually means displaying the first guidance information during the user's singing along. Since the first guidance information is used to indicate whether the user's current pitch is correct, the user can make real-time changes based on the first guidance information to sing along more accurately.
[0144] For example, Figure 7 As shown, the teaching singing interface of song A displays multiple pitch lines. If the user's pitch is the same as the pitch indicated by the pitch line, the corresponding part of the pitch line will change color. According to the color of the pitch line, the user can clearly know which parts of the pitch are sung accurately and which parts of the pitch are sung inaccurately.
[0145] 307. After the song teaching is completed, the terminal displays second guidance information based on the sing-along data recorded during the teaching process, and the second guidance information is used to indicate at least one of the wrongly sung segments, wrongly sung words, the user's vocal range, the user's pitch accuracy, or improvement suggestions.
[0146] In an embodiment of the present application, the terminal will obtain at least one set of teaching singing data of the song and teach the user to sing. If the terminal obtains multiple sets of teaching singing data, the terminal will also record multiple sets of singing along data during the teaching process. Optionally, the terminal can combine the recorded multiple sets of singing along data to obtain the singing along data of the song, and then share the singing along data. For example, the terminal first synthesizes each set of singing along data with the corresponding fragment accompaniment data to obtain multiple sets of audio data, and then synthesizes the multiple sets of audio data into a complete song track, and the user can choose whether to play the synthesized complete song track.
[0147] The difference between the second guidance information and the first guidance information is that the first guidance information is only for the currently recorded set of sing-along data; while the second guidance information is used for multiple sets of recorded sing-along data. In addition, the second guidance information is used to indicate at least one of the wrongly sung segments, wrongly sung words, the user's vocal range, the user's pitch accuracy, or improvement suggestions. It should be noted that the embodiment of the present application is only an exemplary description of the second guidance information and does not limit the second guidance information. Optionally, the second guidance information may also include at least one of the scores corresponding to each line of lyrics of the user, the overall score, the ranking order, the singing level, etc.
[0148] For example, the terminal will display the lyrics of the song, in which the wrong segments and wrong words of the user are marked and displayed in different colors. In addition, the terminal can also give some suggestions on singing skills, which are not limited in the embodiments of the present application.
[0149] It should be noted that the above steps 305 to 307 are optional execution steps, and one or more steps in steps 305 to 307 can be selectively executed, and the embodiment of the present application does not limit this.
[0150] The song teaching method provided in the embodiment of the present application can intelligently segment the song based on the rhythm information of the song, and play the audio and accompaniment of each song segment in sequence, so that the user can first learn through the audio of the song, and then practice through the accompaniment of the song, thereby improving the teaching effect.
[0151] In addition, during the user's practice, the user's sing-along data will be recorded, and the errors that occurred during the user's singing-along data will be determined and displayed to the user, providing the user with targeted guidance and improving the teaching effect.
[0152] In addition, in the embodiment of the present application, younger users are also taken into consideration. For younger users, only the climax part of the song may be taught, and the teaching method is more flexible.
[0153] In addition, in the embodiments of the present application, functions such as re-recording and re-teaching are also provided, allowing users to independently change the learning process to make the teaching method more suitable for their own situation, which not only improves the flexibility of the teaching method, but also improves the teaching effect.
[0154] Fig. 9 Schematic diagram of a song teaching device provided by this application. Fig. 9 , the device comprises:
[0155] The data acquisition module 901 is used for acquiring the full audio data and the full accompaniment data of any song in response to the learning operation of the song, wherein the full audio data includes the vocal data;
[0156] The data acquisition module 901 is further used to acquire at least one set of teaching singing data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same segment of the song;
[0157] The playing module 902 is used to play the audio data and accompaniment data in each group of teaching singing data in sequence.
[0158] like Fig.10 As shown, in one possible implementation, the at least one set of teaching singing data includes climax teaching singing data, and the climax teaching singing data includes climax audio data and climax accompaniment data. The data acquisition module 901 is used to acquire the climax audio data and climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song.
[0159] In one possible implementation, the rhythm information is a climax identifier, the full song audio data and the full song accompaniment data include the climax identifier, and the climax identifier is used to represent the climax segment of the song; the data acquisition module 901 is used to determine the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the climax identifier.
[0160] In a possible implementation, the data acquisition module 901 includes:
[0161] The data acquisition unit 9011 is used for determining the climax audio data and the accompaniment audio data corresponding to each climax segment from the full song audio data and the full song accompaniment data in response to the climax identifier indicating that the song has multiple climax segments;
[0162] The deduplication unit 9012 is used to perform deduplication processing on the climax audio data and the accompaniment audio data corresponding to the multiple climax segments to obtain the climax audio data and the climax accompaniment data.
[0163] In a possible implementation, the data acquisition module includes:
[0164] The processing unit 9013 is used to process the full song audio data through a climax division model based on the rhythm information of the song to obtain the climax audio data;
[0165] The data acquisition unit 9011 is used to determine the climax accompaniment data corresponding to the climax audio data from the full song accompaniment data based on the climax audio data.
[0166] In one possible implementation, the at least one group of teaching singing data is used to teach singing the climax segment of the song, and each group of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same line of lyrics in the climax segment of the song; the data acquisition module 901 is used to acquire the climax audio data and climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song; and acquire the segment audio data and segment accompaniment data corresponding to each line of lyrics from the climax audio data and the climax accompaniment data.
[0167] In one possible implementation, the data acquisition module 901 is used to acquire the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the rhythm information of the song in the young child teaching mode.
[0168] In a possible implementation, the device further includes:
[0169] Age acquisition module 903, used to obtain the age registered based on the current login account;
[0170] The mode switching module 904 is used to enter the young age teaching mode in response to the age being less than the age threshold.
[0171] In a possible implementation, the device further includes:
[0172] Display module 905, used to display the teaching singing interface corresponding to the song, the teaching singing interface includes a first mode option and prompt information, the prompt information is used to prompt the user to teach only the climax segment of the song when the first mode option is in the selected state;
[0173] The mode switching module 904 is used to enter the early childhood teaching mode in response to the selection operation of the first mode option.
[0174] In a possible implementation, the device further includes:
[0175] Display module 905, used for displaying lyrics data of the song when not in the young teaching mode;
[0176] The data acquisition module 901 is used for responding to the interception operation of the lyrics data, and composing a set of teaching singing data with the segment audio data and the segment accompaniment data corresponding to the intercepted lyrics data;
[0177] The playing module 902 is used to play the audio data and accompaniment data of each group of teaching singing data in sequence.
[0178] In a possible implementation, the playing module 902 is used to play the audio data and the accompaniment data in the teaching singing data in turn in response to obtaining a set of teaching singing data; or
[0179] The playing module 902 is used to respond to obtaining multiple groups of teaching singing data and play each group of teaching singing data in turn according to the arrangement order of the multiple groups of teaching singing data.
[0180] In one possible implementation, the playback module 902 is used to play the audio data segments in the first group of teaching singing data; after playing the audio data segments in the first group of teaching singing data, play the accompaniment audio data in the first group of teaching singing data; after playing the accompaniment audio data in the first group of teaching singing data, continue to play the audio data segments in the next group of teaching singing data; until the accompaniment audio data segments in the last group of teaching singing data are played.
[0181] In a possible implementation, the playing module 902 is used to display the remaining play countdown of the corresponding segment accompaniment data after playing any segment of audio data; in response to the remaining play countdown being zero, play the segment accompaniment data.
[0182] In a possible implementation, the device further includes:
[0183] A recording module 906, for recording during the process of playing the segment accompaniment data of each group of teaching singing data, to obtain singing-along data;
[0184] The display module 905 is used to display guidance information based on the recorded sing-along data, and the guidance information is used to instruct the user on errors that occur when singing along with the song.
[0185] In a possible implementation, the display module 905 further includes at least one of the following units:
[0186] The first display unit 9051 is used to display first guidance information according to the currently recorded sing-along data during the playback of any segment of accompaniment data, wherein the first guidance information is used to check whether the user's current pitch is correct;
[0187] The second display unit 9052 is used to display second guidance information after the song teaching is completed, based on the sing-along data recorded during the teaching process, and the second guidance information is used to indicate at least one of the wrongly sung passages, wrongly sung words, the user's vocal range, the user's pitch accuracy, or improvement suggestions.
[0188] In a possible implementation, the playing module 902 is further configured to perform at least one of the following:
[0189] In response to a triggering operation of a re-teaching option for any segment, replaying the segment audio data corresponding to the segment;
[0190] In response to a triggering operation of a re-practice option for any segment, the segment accompaniment data corresponding to the segment is replayed.
[0191] An embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor to implement the operations performed in the song teaching method of the above embodiment.
[0192] Optionally, the computer device is provided as a terminal. Fig.11 1 is a schematic diagram of the structure of a terminal provided in an embodiment of the present application. The terminal 1100 may be a portable mobile terminal, such as a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III), an MP4 player (Moving Picture Experts Group Audio Layer IV), a laptop computer or a desktop computer. The terminal 1100 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal or other names.
[0193] The terminal 1100 includes a processor 1101 and a memory 1102 .
[0194] The processor 1101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1101 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1101 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1101 may be integrated with a GPU (Graphics Processing Unit), which is responsible for displaying and drawing the content that needs to be displayed on the display screen. In some embodiments, the processor 1101 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0195] The memory 1102 may include one or more computer-readable storage media, which may be non-transitory. The memory 1102 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1102 is used to store at least one program code, which is used to be executed by the processor 1101 to implement the operations performed in the song teaching method of the above embodiment.
[0196] In some embodiments, the terminal 1100 may also optionally include: a peripheral device interface 1103 and at least one peripheral device. The processor 1101, the memory 1102 and the peripheral device interface 1103 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 1103 via a bus, a signal line or a circuit board. Specifically, the peripheral device includes: at least one of a radio frequency circuit 1104, a display screen 1105, a camera assembly 1106, an audio circuit 1107, a positioning assembly 1108 and a power supply 1109.
[0197] The peripheral device interface 1103 may be used to connect at least one peripheral device related to I / O (Input / Output) to the processor 1101 and the memory 1102. In some embodiments, the processor 1101, the memory 1102, and the peripheral device interface 1103 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1101, the memory 1102, and the peripheral device interface 1103 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
[0198] The radio frequency circuit 1104 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1104 communicates with the communication network and other communication devices through electromagnetic signals. The radio frequency circuit 1104 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1104 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and the like. The radio frequency circuit 1104 can communicate with other terminals through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to: the World Wide Web, a metropolitan area network, an intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a WiFi (Wireless Fidelity) network. In some embodiments, the radio frequency circuit 1104 may also include circuits related to NFC (Near Field Communication), which is not limited in this application.
[0199] The display screen 1105 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1105 is a touch display screen, the display screen 1105 also has the ability to collect touch signals on the surface or above the surface of the display screen 1105. The touch signal can be input to the processor 1101 as a control signal for processing. At this time, the display screen 1105 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 1105 can be one, set on the front panel of the terminal 1100; in other embodiments, the display screen 1105 can be at least two, respectively set on different surfaces of the terminal 1100 or in a folding design; in other embodiments, the display screen 1105 can be a flexible display screen, set on a curved surface or a folding surface of the terminal 1100. Even, the display screen 1105 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1105 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0200] The camera assembly 1106 is used to capture images or videos. Optionally, the camera assembly 1106 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, there are at least two rear cameras, which are any one of a main camera, a depth of field camera, a wide-angle camera, and a telephoto camera, so as to realize the fusion of the main camera and the depth of field camera to realize the background blur function, the fusion of the main camera and the wide-angle camera to realize panoramic shooting and VR (Virtual Reality) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 1106 may also include a flash. The flash can be a monochrome temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm light flash and a cold light flash, which can be used for light compensation at different color temperatures.
[0201] The audio circuit 1107 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, and convert the sound waves into electrical signals and input them into the processor 1101 for processing, or input them into the radio frequency circuit 1104 to achieve voice communication. For the purpose of stereo acquisition or noise reduction, there may be multiple microphones, which are respectively arranged at different parts of the terminal 1100. The microphone may also be an array microphone or an omnidirectional acquisition microphone. The speaker is used to convert the electrical signal from the processor 1101 or the radio frequency circuit 1104 into sound waves. The speaker may be a traditional film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can not only convert the electrical signal into sound waves audible to humans, but also convert the electrical signal into sound waves inaudible to humans for purposes such as ranging. In some embodiments, the audio circuit 1107 may also include a headphone jack.
[0202] The positioning component 1108 is used to locate the current geographical location of the terminal 1100 to implement navigation or LBS (Location Based Service). The positioning component 1108 can be based on the US GPS (Global Positioning System), China's Beidou system or Russia's Grenas positioning system and the European Union's Galileo positioning system.
[0203] The power supply 1109 is used to power various components in the terminal 1100. The power supply 1109 can be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1109 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery charged through a wired line, and a wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery can also be used to support fast charging technology.
[0204] In some embodiments, the terminal 1100 further includes one or more sensors 1110 , including but not limited to: an acceleration sensor 1111 , a gyroscope sensor 1112 , a pressure sensor 1113 , a fingerprint sensor 1114 , an optical sensor 1115 , and a proximity sensor 1116 .
[0205] The acceleration sensor 1111 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established by the terminal 110. For example, the acceleration sensor 1111 can be used to detect the components of gravity acceleration on the three coordinate axes. The processor 1101 can control the display screen 1105 to display the user interface in a horizontal view or a vertical view according to the gravity acceleration signal collected by the acceleration sensor 1111. The acceleration sensor 1111 can also be used to collect motion data of games or users.
[0206] The gyro sensor 1112 can detect the body direction and rotation angle of the terminal 1100, and the gyro sensor 1112 can cooperate with the acceleration sensor 1111 to collect the user's 3D actions on the terminal 1100. The processor 1101 can implement the following functions based on the data collected by the gyro sensor 1112: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
[0207] The pressure sensor 1113 may be provided at the side frame of the terminal 1100 and / or the lower layer of the display screen 1105. When the pressure sensor 1113 is provided at the side frame of the terminal 1100, the user's holding signal of the terminal 1100 may be detected, and the processor 1101 performs left and right hand recognition or shortcut operation according to the holding signal collected by the pressure sensor 1113. When the pressure sensor 1113 is provided at the lower layer of the display screen 1105, the processor 1101 controls the operability controls on the UI interface according to the user's pressure operation on the display screen 1105. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
[0208] The fingerprint sensor 1114 is used to collect the user's fingerprint, and the processor 1101 identifies the user's identity based on the fingerprint collected by the fingerprint sensor 1114, or the fingerprint sensor 1114 identifies the user's identity based on the collected fingerprint. When the user's identity is identified as a trusted identity, the processor 1101 authorizes the user to perform relevant sensitive operations, which include unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings. The fingerprint sensor 1114 can be set on the front, back, or side of the terminal 1100. When a physical button or a manufacturer logo is set on the terminal 1100, the fingerprint sensor 1114 can be integrated with the physical button or the manufacturer logo.
[0209] The optical sensor 1115 is used to collect the ambient light intensity. In one embodiment, the processor 1101 can control the display brightness of the display screen 1105 according to the ambient light intensity collected by the optical sensor 1115. Specifically, when the ambient light intensity is high, the display brightness of the display screen 1105 is increased; when the ambient light intensity is low, the display brightness of the display screen 1105 is reduced. In another embodiment, the processor 1101 can also dynamically adjust the shooting parameters of the camera assembly 1106 according to the ambient light intensity collected by the optical sensor 1115.
[0210] The proximity sensor 1116, also called a distance sensor, is disposed on the front panel of the terminal 1100. The proximity sensor 1116 is used to collect the distance between the user and the front of the terminal 1100. In one embodiment, when the proximity sensor 1116 detects that the distance between the user and the front of the terminal 1100 is gradually decreasing, the processor 1101 controls the display screen 1105 to switch from the screen-on state to the screen-off state; when the proximity sensor 1116 detects that the distance between the user and the front of the terminal 1100 is gradually increasing, the processor 1101 controls the display screen 1105 to switch from the screen-off state to the screen-on state.
[0211] Those skilled in the art will understand that Fig.11 The structure shown in the figure does not constitute a limitation on the terminal 1100, and the terminal 1100 may include more or fewer components than those shown in the figure, or combine certain components, or adopt a different component arrangement.
[0212] Optionally, the computer device is provided as a server. Fig.12 This is a schematic diagram of the structure of a server according to an exemplary embodiment. The server 1200 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1201 and one or more memories 1202, wherein the memory 1202 stores at least one program code, and the at least one program code is loaded and executed by the processor 1201 to implement the methods provided by the above-mentioned various method embodiments. Of course, the server may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output, and the server may also include other components for implementing device functions, which will not be described in detail here.
[0213] An embodiment of the present application also provides a computer-readable storage medium, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed in the song teaching method of the above embodiment.
[0214] An embodiment of the present application also provides a computer program, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to implement the operations performed in the song teaching method of the above embodiment.
[0215] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0216] The above are only optional embodiments of the embodiments of the present application and are not intended to limit the embodiments of the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. A song teaching method, It is characterized in that The method comprises: In response to a learning-to-sing operation for any song, full-song audio data and full-song accompaniment data of the song are acquired, wherein the full-song audio data includes vocal data; Based on the rhythm information of the song, at least one set of teaching singing data of the song is obtained from the full song audio data and the full song accompaniment data, each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same segment of the song, and the teaching singing data includes segment audio data and segment accompaniment data corresponding to the intercepted lyrics data obtained according to the interception operation of the lyrics data; Play the audio data and accompaniment data of each group of teaching singing data in sequence; Recording is performed during the process of playing the segment accompaniment data of each group of teaching singing data to obtain singing-along data; During the playback of any segment of accompaniment data, first guidance information is displayed according to the currently recorded sing-along data, wherein the first guidance information is used to indicate whether the current pitch of the user is correct; After the song teaching is completed, each set of sing-along data is synthesized with the corresponding segment accompaniment data to obtain multiple sets of audio data; the multiple sets of audio data are synthesized into a complete song track, and the synthesized complete song track is shared; The method further comprises: In response to a trigger operation of a re-teaching option for any segment, the segment audio data corresponding to the segment is replayed, and after the segment audio data corresponding to the segment is played, the segment accompaniment data corresponding to the segment is continued to be played; wherein, if a trigger operation of the re-teaching option is received before recording, the sing-along data obtained by recording during the playing of the segment accompaniment data is the final sing-along data; if a trigger operation of the re-teaching option is received after recording, the sing-along data obtained by the previous recording is discarded, and the sing-along data obtained by the current recording is retained; In response to a triggering operation of a re-practice option for any segment, replaying the segment accompaniment data corresponding to the segment; In response to the triggering operation of the re-recording option for any segment, the segment accompaniment data corresponding to the segment is replayed, recording is performed during the playing of the segment accompaniment data to obtain sing-along data, and the sing-along data corresponding to the last recorded segment is replaced with the sing-along data recorded this time.
2. The method according to claim 1, It is characterized in that The at least one set of teaching singing data includes climax teaching singing data, and the climax teaching singing data includes climax audio data and climax accompaniment data. The at least one set of teaching singing data of the song is obtained from the full song audio data and the full song accompaniment data based on the rhythm information of the song, including: Based on the rhythm information of the song, the climax audio data and the climax accompaniment data of the song are obtained from the full song audio data and the full song accompaniment data.
3. The method according to claim 2, It is characterized in that The rhythm information is a climax mark, the full song audio data and the full song accompaniment data include the climax mark, and the climax mark is used to indicate the climax segment of the song; The step of obtaining the climax audio data and the climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song comprises: Based on the climax identifier, the climax audio data and the climax accompaniment data are determined from the full song audio data and the full song accompaniment data.
4. The method according to claim 3, It is characterized in that The step of determining the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the climax identifier comprises: In response to the climax identifier indicating that the song has multiple climax segments, determining climax audio data and accompaniment audio data corresponding to each climax segment from the full song audio data and the full song accompaniment data; The climax audio data and the accompaniment audio data corresponding to the multiple climax segments are deduplicated to obtain the climax audio data and the climax accompaniment data.
5. The method according to claim 2, It is characterized in that The step of obtaining the climax audio data and the climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song comprises: Processing the full song audio data based on the rhythm information of the song through a climax division model to obtain the climax audio data; Based on the climax audio data, the climax accompaniment data corresponding to the climax audio data is determined from the full song accompaniment data.
6. The method according to claim 1, It is characterized in that The at least one set of teaching singing data is used for teaching singing the climax segment of the song, each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same line of lyrics of the climax segment of the song, and the at least one set of teaching singing data of the song is obtained from the full song audio data and the full song accompaniment data based on the rhythm information of the song, including: Based on the rhythm information of the song, acquiring the climax audio data and the climax accompaniment data of the song from the full song audio data and the full song accompaniment data; The segment audio data and segment accompaniment data corresponding to each line of lyrics are obtained from the climax audio data and the climax accompaniment data.
7. The method according to claim 2 or 6, It is characterized in that The step of obtaining the climax audio data and the climax accompaniment data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song comprises: In the young child teaching mode, the climax audio data and the climax accompaniment data are obtained from the full song audio data and the full song accompaniment data based on the rhythm information of the song.
8. The method according to claim 7, It is characterized in that In the young child teaching mode, before obtaining the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the rhythm information of the song, the method further includes: Get the age registered based on the current login account; In response to the age being less than an age threshold, entering the young age teaching mode.
9. The method according to claim 7, It is characterized in that In the young child teaching mode, before obtaining the climax audio data and the climax accompaniment data from the full song audio data and the full song accompaniment data based on the rhythm information of the song, the method further includes: Displaying a teaching singing interface corresponding to the song, the teaching singing interface including a first mode option and prompt information, the prompt information being used to prompt the user to teach the climax segment of the song when the first mode option is in a selected state; In response to the selection operation of the first mode option, the early childhood teaching mode is entered.
10. The method according to claim 7, It is characterized in that The method further comprises: The lyrics data of the song are not displayed in the young child teaching mode; In response to the interception operation of the lyrics data, the segment audio data and the segment accompaniment data corresponding to the intercepted lyrics data are combined into a set of teaching singing data; Play the audio data and accompaniment data of each group of teaching singing data in sequence.
11. The method according to claim 1, It is characterized in that The sequentially playing of the segment audio data and the segment accompaniment data in each group of teaching singing data comprises: In response to obtaining a set of teaching singing data, playing the segment audio data and the segment accompaniment data in the teaching singing data in turn; or, In response to obtaining multiple groups of teaching singing data, each group of teaching singing data is played in turn according to the arrangement order of the multiple groups of teaching singing data.
12. The method according to claim 11, It is characterized in that The method of playing each group of teaching singing data in turn according to the arrangement order of the multiple groups of teaching singing data comprises: Play the audio data of the first group of teaching singing data; After playing the segment audio data in the first group of teaching singing data, playing the accompaniment audio data in the first group of teaching singing data; After playing the accompaniment audio data in the first group of teaching singing data, continue playing the segment audio data in the next group of teaching singing data; until the segment accompaniment data in the last group of teaching singing data is played.
13. The method according to claim 1, It is characterized in that The sequentially playing of the segment audio data and the segment accompaniment data in each group of teaching singing data comprises: After playing any piece of audio data, display the remaining play countdown of the corresponding piece of accompaniment data; In response to the remaining play countdown being zero, the segment accompaniment data is played.
14. The method according to claim 1, It is characterized in that The method further comprises: After the song teaching is completed, the second guidance information is displayed based on the sing-along data recorded during the teaching process, and the second guidance information is used to indicate at least one of the wrong passages or words sung by the user, the user's vocal range, the user's pitch accuracy, or improvement suggestions.
15. A song teaching device, It is characterized in that The device comprises: A data acquisition module, for acquiring full song audio data and full song accompaniment data of any song in response to a learning-to-sing operation of the song, wherein the full song audio data includes vocal data; The data acquisition module is further used to acquire at least one set of teaching singing data of the song from the full song audio data and the full song accompaniment data based on the rhythm information of the song, each set of teaching singing data includes segment audio data and segment accompaniment data corresponding to the same segment of the song, and the teaching singing data includes segment audio data and segment accompaniment data corresponding to the intercepted lyrics data obtained according to the interception operation of the lyrics data; A playing module, used for playing the segment audio data and segment accompaniment data in each group of teaching singing data in sequence; A recording module, used for recording during the process of playing the segment accompaniment data of each group of teaching singing data, to obtain singing-along data; A first display unit is used to display first guidance information according to currently recorded sing-along data during the process of playing any piece of accompaniment data, wherein the first guidance information is used to indicate whether the current pitch of the user is correct; A module for performing the following steps: after the song teaching is completed, synthesizing each set of sing-along data with the corresponding segment accompaniment data to obtain multiple sets of audio data; synthesizing the multiple sets of audio data into a complete song track, and sharing the synthesized complete song track; The playback module is further used to respond to a trigger operation of a re-teaching option for any segment, replay the segment audio data corresponding to the segment, and continue to play the segment accompaniment data corresponding to the segment after playing the segment audio data corresponding to the segment; wherein, if a trigger operation of the re-teaching option is received before recording, the sing-along data obtained by recording during the playing of the segment accompaniment data is the final sing-along data; if a trigger operation of the re-teaching option is received after recording, the sing-along data obtained by the previous recording is discarded, and the sing-along data obtained by the current recording is retained; The playing module is further used to replay the segment accompaniment data corresponding to any segment in response to a triggering operation of a re-practice option for the segment; A module for executing the following steps: in response to a triggering operation of a re-recording option for any segment, replaying the segment accompaniment data corresponding to the segment, recording during the playing of the segment accompaniment data to obtain sing-along data, and replacing the sing-along data corresponding to the last recorded segment with the sing-along data recorded this time.
16. A terminal, It is characterized in that The terminal includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to implement the operations performed in the song teaching method as described in any one of claims 1 to 14.
17. A computer-readable storage medium, It is characterized in that At least one program code is stored in the computer-readable storage medium, and the at least one program code is loaded and executed by the processor to implement the operations performed in the song teaching method as described in any one of claims 1 to 14.
