CN107122493B - Song playing method and device - Google Patents

Song playing method and device Download PDF

Info

Publication number
CN107122493B
CN107122493B CN201710359613.8A CN201710359613A CN107122493B CN 107122493 B CN107122493 B CN 107122493B CN 201710359613 A CN201710359613 A CN 201710359613A CN 107122493 B CN107122493 B CN 107122493B
Authority
CN
China
Prior art keywords
target
tone
lyrics
character pronunciation
original
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710359613.8A
Other languages
Chinese (zh)
Other versions
CN107122493A (en
Inventor
张学华
刘宇翔
雷超然
季雨晴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201710359613.8A priority Critical patent/CN107122493B/en
Publication of CN107122493A publication Critical patent/CN107122493A/en
Application granted granted Critical
Publication of CN107122493B publication Critical patent/CN107122493B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles
    • G06F16/636Filtering based on additional data, e.g. user or group profiles by using biological or physiological data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/685Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using automatically derived transcript of audio data, e.g. lyrics

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Library & Information Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Physiology (AREA)
  • Auxiliary Devices For Music (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The invention discloses a song playing method and a song playing device, wherein the method comprises the following steps: detecting a score and a pitch of a reference song; determining a target duration and a target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation. Therefore, the method and the device realize that any character and music score are used for playing the song, improve the convenience and the interestingness of artificial intelligence and improve the user experience.

Description

Song playing method and device
Technical Field
The invention relates to the field of artificial intelligence, in particular to a song playing method and device.
Background
Artificial Intelligence (Artificial Intelligence), abbreviated in english as AI. The method is a new technical science for researching and developing theories, methods, technologies and application systems for simulating, extending and expanding human intelligence. Artificial intelligence is a branch of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can react in a manner similar to human intelligence, a field of research that includes robotics, speech recognition, image recognition, natural language processing, and expert systems.
At present, a fixed song can be sung through a fixed music score and a fixed vocalizing word, and the mode is single and not convenient for a user to use.
Disclosure of Invention
The present invention has been made to solve at least one of the technical problems of the related art to some extent.
Therefore, one objective of the present invention is to provide a song playing method, which is used for solving the problem that a fixed song can only be sung through a fixed music score and fixed vocalized words in the prior art, so as to play the song by using any character and music score, improve the convenience and interest of artificial intelligence, and improve the user experience.
A second object of the present invention is to provide a song playback apparatus.
A third object of the invention is to propose a computer device.
A fourth object of the invention is to propose a non-transitory computer-readable storage medium.
A fifth object of the invention is to propose a computer program product.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a song playing method, including: detecting a score and a pitch of a reference song; determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
The song playing method of the embodiment of the invention determines the target time length and the target tone of each character pronunciation in the target lyrics by detecting the music score and the tone of the reference song and according to the music score and the tone of the reference song, and finally plays the target lyrics according to the target time length and the target tone of each character pronunciation. Therefore, the method and the device realize that any character and music score are used for playing the song, improve the convenience and the interestingness of artificial intelligence and improve the user experience.
In addition, the song playing method of the embodiment of the invention also has the following additional technical characteristics:
optionally, the method further includes: determining a target tone used for playing the target lyrics; the playing the target lyrics according to the target duration and the target tone of each word pronunciation comprises the following steps: and playing the target lyrics according to the target duration and the target tone of each character pronunciation by adopting the target tone.
Optionally, the determining a target duration and a target pitch of each word pronunciation in the target lyric according to the score and the pitch of the reference song comprises: determining a word count difference of the lyrics of the reference song and the target lyrics; and determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song and the number difference of the characters.
Optionally, the playing the target lyric according to the target duration and the target tone of each word pronunciation includes: detecting the original time length and the original tone of each character pronunciation in the target lyrics; comparing the target time length and the target tone of each character pronunciation with the original time length and the original tone of each character pronunciation to obtain the time length difference and the tone difference of each character pronunciation; and adjusting the original time length and the original tone of each character pronunciation according to the time length difference and the tone difference of each character pronunciation.
Optionally, the detecting an original duration and an original tone of each pronunciation of the word in the target lyric includes: detecting the original time length and the original tone of each character pronunciation of the target lyrics in the reading process; or detecting the original time length and the original tone of each character pronunciation of the target lyrics in the singing process.
To achieve the above object, a second embodiment of the present invention provides a song playing apparatus, including: a detection module for detecting the score and the pitch of the reference song; the first determining module is used for determining the target duration and the target tone of pronunciation of each word in the target lyrics according to the music score and the tone of the reference song; and the playing module is used for playing the target lyrics according to the target duration and the target tone of each character pronunciation.
The song playing device of the embodiment of the invention determines the target time length and the target tone of each character pronunciation in the target lyrics by detecting the music score and the tone of the reference song according to the music score and the tone of the reference song, and finally plays the target lyrics according to the target time length and the target tone of each character pronunciation. Therefore, the method and the device realize that any character and music score are used for playing the song, improve the convenience and the interestingness of artificial intelligence and improve the user experience.
In addition, the song playing device of the embodiment of the invention also has the following additional technical characteristics:
optionally, the apparatus further includes: the second determination module is used for determining a target tone for playing the target lyrics; the playing module is used for: and playing the target lyrics according to the target duration and the target tone of each character pronunciation by adopting the target tone.
Optionally, the first determining module is configured to: determining a word count difference of the lyrics of the reference song and the target lyrics; and determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song and the number difference of the characters.
Optionally, the playing module includes: the detection unit is used for detecting the original time length and the original tone of each character pronunciation in the target lyrics; the acquisition unit is used for comparing the target time length and the target tone of each character pronunciation with the original time length and the original tone of each character pronunciation to acquire the time length difference and the tone difference of each character pronunciation; and the adjusting unit is used for adjusting the original time length and the original tone of each character pronunciation according to the time length difference and the tone difference of each character pronunciation.
Optionally, the detection unit is configured to: detecting the original time length and the original tone of each character pronunciation of the target lyrics in the reading process; or detecting the original time length and the original tone of each character pronunciation of the target lyrics in the singing process.
To achieve the above object, a third embodiment of the present invention provides a computer device, including: comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the program, enables performing a song playback method, the method comprising: detecting a score and a pitch of a reference song; determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
In order to achieve the above object, a fourth aspect of the present invention provides a non-transitory computer-readable storage medium, in which instructions are executed by a processor to enable a song playback method to be performed, the method including: detecting a score and a pitch of a reference song; determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
In order to achieve the above object, a fifth aspect of the present invention provides a computer program product, wherein when executed by an instruction processor of the computer program product, a song playing method is performed, and the method includes: detecting a score and a pitch of a reference song; determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
Fig. 1 is a flowchart illustrating a song playing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a song playing method according to another embodiment of the present invention;
fig. 3 is a flowchart illustrating a song playing method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a song playback apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a song playback apparatus according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a song playback apparatus according to yet another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a song playback apparatus according to still another embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
A song playback method and apparatus according to an embodiment of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a song playing method according to an embodiment of the present invention.
It should be noted that the song playing method in the embodiment of the present application may be applied to devices (such as a mobile phone, a tablet, and a computer) of systems such as Android, IOS, and PC.
As shown in fig. 1, the song playing method includes the following steps:
step 101, the score and the pitch of the reference song are detected.
In practical applications, the scores and tones of different songs are different, and the reference song can be selected and the corresponding score and tone can be detected according to requirements. There are many ways to detect the score and pitch of a reference song, for example as follows:
in a first example, the corresponding score and pitch are matched by entering the title of the reference song into the relational database.
In a second example, a corresponding score and pitch are obtained by playing a reference song and performing a correlation algorithm process.
Step 102, determining the target duration and the target pitch of each character pronunciation in the target lyric according to the music score and the pitch of the reference song.
Specifically, after detecting the score and the pitch of the reference song, the target time length and the target pitch of each character pronunciation in the target lyric can be determined according to the score and the pitch of the reference song, and it can be understood that there are many ways to determine the target time length and the target pitch of each character pronunciation in the target lyric, and the setting can be selected according to the practical application needs, for example, as follows:
as an example, the word number difference between the lyrics of the reference song and the target lyrics is determined, and the target time length and the target pitch of each word in the target lyrics is determined according to the score and pitch of the reference song and the word number difference.
And 103, playing the target lyrics according to the target duration and the target tone of each character pronunciation.
Specifically, after the target time length and the target tone of each character pronunciation in the target lyric are determined, the target lyric can be played according to the target time length and the target tone of each character pronunciation. It is understood that there are many ways to play the target lyrics, and the setting can be selected according to the actual application requirement, for example, as follows:
as an example, the original time length and the original tone of each character pronunciation in the target lyric are detected, the target time length and the target tone of each character pronunciation and the original time length and the original tone of each character pronunciation are compared, the time length difference and the tone difference of each character pronunciation are obtained, and the original time length and the original tone of each character pronunciation are adjusted according to the time length difference and the tone difference of each character pronunciation.
The song playing method of the embodiment of the invention determines the target time length and the target tone of each character pronunciation in the target lyrics by detecting the music score and the tone of the reference song and according to the music score and the tone of the reference song, and finally plays the target lyrics according to the target time length and the target tone of each character pronunciation. Therefore, the method and the device realize that any character and music score are used for playing the song, improve the convenience and the interestingness of artificial intelligence and improve the user experience.
Fig. 2 is a flowchart of a song playing method according to another embodiment of the present invention. As shown in fig. 1, the song playing method includes the following steps:
in step 201, the score and pitch of the reference song are detected.
It should be noted that the description of step S201 corresponds to step S101, and thus the description of step S201 refers to the description of step S101, and is not repeated herein.
In step 202, the word count difference between the lyrics of the reference song and the target lyrics is determined.
Step 203, determining the target duration and the target pitch of each character pronunciation in the target lyric according to the music score and the pitch of the reference song and the number difference of the characters.
Specifically, the lyrics of the reference song and the number of the lyrics may be obtained, and the target lyrics may be input by the user in a manner of reading aloud through a related voice device, that is, the number of words corresponding to the target lyrics may be obtained, so that the word number difference between the lyrics of the reference song and the target lyrics may be determined.
Further, determining a target time length and a target pitch of each character pronunciation in the target lyric according to the music score and the pitch of the reference song and the character number difference, for example, when the character number difference is 0, determining that the target time length and the target pitch of each character pronunciation in the target lyric are consistent with the time length and the pitch of each character pronunciation in the corresponding lyric in the reference song; when the number difference is 0, the pronunciation time length and the pronunciation pitch of each word in the corresponding lyrics in the reference song are adjusted and then determined as the target pronunciation time length and the target pronunciation pitch of each word in the target lyrics.
Step 204, determine the target tone for playing the target lyrics.
And step 205, playing the target lyrics according to the target duration and the target tone of each character pronunciation by adopting the target tone.
Specifically, the timbre of the target lyric can be acquired when the user inputs the target lyric by voice, so that the target lyric can be played by adopting the target timbre according to the target duration and the target tone of each character pronunciation. For example, the voice of the Chinese woman is used to read a target lyric, and a music score of the snail is matched, so that the finally obtained song is performed by using the tone of the Chinese woman and the target lyric is sheathed with the melody of the snail.
Thus, using the timbre of any user, together with the lyrics and the score, it is possible to sing a given song with the timbre of this user.
Based on the above embodiments, in order to more clearly describe the specific process of how to play the target lyrics according to the target duration and the target pitch of each word pronunciation, the following description is made in detail with reference to fig. 3.
Fig. 3 is a flowchart of a song playing method according to another embodiment of the present invention. As shown in fig. 3, step 103 includes:
step 301, detecting the original time length and the original tone of each character pronunciation in the target lyric.
Step 302, comparing the target time length and the target tone of each character pronunciation with the original time length and the original tone of each character pronunciation to obtain the time length difference and the tone difference of each character pronunciation.
Step 303, adjusting the original time length and the original tone of each character pronunciation according to the time length difference and the tone difference of each character pronunciation.
Specifically, there are many ways to detect the original duration and the original pitch of each character pronunciation in the target lyric, and the detection can be selectively set according to the actual application requirements, for example, as follows:
in the first example, the original time length and the original tone of each word pronunciation of the target lyrics in the reading process are detected.
As a second example, the original duration and pitch of each word utterance of the target lyrics during singing is detected.
And further, comparing the target time length and the target tone of each character pronunciation with the original time length and the original tone of each character pronunciation, acquiring the time length difference and the tone difference of each character pronunciation, and finally adjusting the original time length and the original tone of each character pronunciation according to the time length difference and the tone difference of each character pronunciation.
The method is realized as a scene, a section of characters are converted into voice through a voice reading system, then an original tone A required to be sung by target lyrics is found according to a music score of a reference song, an actual target tone B of the currently read target lyrics is found through a detection mode, a tone difference C is calculated, and then the read target tone B is adjusted to the original tone A, so that the actually emitted tone is not the target tone B but the original tone A, and tone matching is carried out.
Meanwhile, the original time length b needing singing currently and the target time length a of the target lyrics to be read aloud currently are obtained according to the music score, the time length difference c is calculated, the target time length actually read aloud is lengthened or shortened to the original time length needing singing according to an algorithm, and after all the target lyrics are finished, the singing audio is obtained, and the reading audio is replaced for playing.
Therefore, the method and the device realize that any character and music score are used for playing the song, improve the convenience and the interestingness of artificial intelligence and improve the user experience.
In order to implement the above embodiments, the present invention provides a song playback apparatus.
Fig. 4 is a schematic structural diagram of a song playback apparatus according to an embodiment of the present invention.
As shown in fig. 4, the song playback apparatus includes: a detection module 11, a first determination module 12 and a play module 13.
Wherein the detecting module 11 is configured to detect a score and a pitch of the reference song.
And a first determining module 12 for determining a target duration and a target pitch of pronunciation of each word in the target lyrics according to the score and the pitch of the reference song.
And the playing module 13 is used for playing the target lyrics according to the target duration and the target tone of each character pronunciation.
Further, as shown in fig. 5, on the basis of fig. 4, the method further includes: a second determination module 14.
Wherein, the second determining module 14 is configured to determine a target tone for playing the target lyric.
And the playing module 13 is used for playing the target lyrics according to the target duration and the target tone of each character pronunciation by adopting the target tone.
Further, a first determining module 12 for determining a word number difference between the lyrics of the reference song and the target lyrics; and determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song and the number difference of the characters.
Further, as shown in fig. 6, the playing module includes: a detection unit 131, an acquisition unit 132, and an adjustment unit 133.
The detecting unit 131 is configured to detect an original time length and an original pitch of each character pronunciation in the target lyric.
An obtaining unit 132, configured to compare the target duration and the target pitch of each character pronunciation with the original duration and the original pitch of each character pronunciation, and obtain a duration difference and a pitch difference of each character pronunciation.
The adjusting unit 133 is configured to adjust the original time length and the original pitch of each character pronunciation according to the time length difference and the pitch difference of each character pronunciation.
Further, the detecting unit 131 is configured to detect an original duration and an original tone of each character pronunciation of the target lyric in the reading process; or detecting the original time length and the original tone of each character pronunciation of the target lyrics in the singing process.
It should be noted that the foregoing explanation on the embodiment of the song playing method is also applicable to the song playing apparatus of this embodiment, and is not repeated here.
In summary, the song playing apparatus according to the embodiment of the present invention determines the target time length and the target pitch of each character in the target lyrics by detecting the score and the pitch of the reference song, and finally plays the target lyrics according to the target time length and the target pitch of each character. Therefore, the method and the device realize that any character and music score are used for playing the song, improve the convenience and the interestingness of artificial intelligence and improve the user experience.
Fig. 7 is a schematic structural diagram of an information providing apparatus based on picture content according to still another embodiment of the present invention. As shown in fig. 7, the picture content-based information providing apparatus includes:
a memory 21, a processor 22 and a computer program stored on the memory 21 and executable on the processor 22.
The processor 22, when executing the program, implements the song playback method provided in the above-described embodiment.
Further, the song playback apparatus further includes:
a communication interface 23 for communication between the memory 21 and the processor 22.
A memory 21 for storing a computer program operable on the processor 22.
The memory 21 may comprise a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory.
And a processor 22, configured to implement the song playing method according to the foregoing embodiment when executing the program.
If the memory 21, the processor 22 and the communication interface 23 are implemented independently, the communication interface 21, the memory 21 and the processor 22 may be connected to each other through a bus and perform communication with each other. The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
Optionally, in a specific implementation, if the memory 21, the processor 22 and the communication interface 23 are integrated on a chip, the memory 21, the processor 22 and the communication interface 23 may complete mutual communication through an internal interface.
The processor 22 may be a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention.
In order to achieve the above embodiments, the present invention further provides a computer device, which is characterized by comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the program to enable a song playing to be performed, and the method comprises: detecting a score and a pitch of a reference song; determining a target duration and a target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
To achieve the above embodiments, the present invention also proposes a non-transitory computer-readable storage medium in which instructions, when executed by a processor, enable execution of a song playback, the method comprising: detecting a score and a pitch of a reference song; determining a target duration and a target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
To achieve the above embodiments, the present invention further provides a computer program product, which when executed by an instruction processor enables a song playing to be performed, the method comprising: detecting a score and a pitch of a reference song; determining a target duration and a target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song; and playing the target lyrics according to the target duration and the target tone of each character pronunciation.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (9)

1. A song playback method, comprising the steps of:
detecting a score and a pitch of a reference song; wherein, the reference song is selected according to the requirement;
determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song;
playing the target lyrics according to the target duration and the target tone of each character pronunciation;
determining a target tone used for playing the target lyrics; acquiring the target tone when the target lyrics are input according to the voice of a user;
the playing the target lyrics according to the target duration and the target tone of each word pronunciation comprises the following steps:
playing the target lyrics according to the target duration and the target tone of each character pronunciation by adopting the target tone;
wherein, the determining the target duration and the target pitch of each character pronunciation in the target lyrics according to the music score and the pitch of the reference song comprises:
determining a word count difference of the lyrics of the reference song and the target lyrics;
and determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song and the number difference of the characters.
2. The method of claim 1, wherein playing the target lyrics according to the target duration and target pitch of each word utterance comprises:
detecting the original time length and the original tone of each character pronunciation in the target lyrics;
comparing the target time length and the target tone of each character pronunciation with the original time length and the original tone of each character pronunciation to obtain the time length difference and the tone difference of each character pronunciation;
and adjusting the original time length and the original tone of each character pronunciation according to the time length difference and the tone difference of each character pronunciation.
3. The method of claim 2, wherein the detecting the original duration and the original pitch of the pronunciation of each word in the target lyrics comprises:
detecting the original time length and the original tone of each character pronunciation of the target lyrics in the reading process; alternatively, the first and second electrodes may be,
and detecting the original time length and the original tone of each character pronunciation of the target lyrics in the singing process.
4. A song playback apparatus, comprising:
a detection module for detecting the score and the pitch of the reference song; wherein, the reference song is selected according to the requirement;
the first determining module is used for determining the target duration and the target tone of pronunciation of each word in the target lyrics according to the music score and the tone of the reference song;
the playing module is used for playing the target lyrics according to the target duration and the target tone of each character pronunciation;
the second determination module is used for determining a target tone for playing the target lyrics; acquiring the target tone when the target lyrics are input according to the voice of a user;
the playing module is used for:
playing the target lyrics according to the target duration and the target tone of each character pronunciation by adopting the target tone;
wherein the first determination module is to:
determining a word count difference of the lyrics of the reference song and the target lyrics;
and determining the target duration and the target tone of each character pronunciation in the target lyrics according to the music score and the tone of the reference song and the number difference of the characters.
5. The apparatus of claim 4, wherein the play module comprises:
the detection unit is used for detecting the original time length and the original tone of each character pronunciation in the target lyrics;
the acquisition unit is used for comparing the target time length and the target tone of each character pronunciation with the original time length and the original tone of each character pronunciation to acquire the time length difference and the tone difference of each character pronunciation;
and the adjusting unit is used for adjusting the original time length and the original tone of each character pronunciation according to the time length difference and the tone difference of each character pronunciation.
6. The apparatus of claim 5, wherein the detection unit is to:
detecting the original time length and the original tone of each character pronunciation of the target lyrics in the reading process; alternatively, the first and second electrodes may be,
and detecting the original time length and the original tone of each character pronunciation of the target lyrics in the singing process.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the method of any one of claims 1-3.
8. A non-transitory computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method according to any one of claims 1-3.
9. A computer program product in which instructions, when executed by a processor, perform the method of any one of claims 1-3.
CN201710359613.8A 2017-05-19 2017-05-19 Song playing method and device Active CN107122493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710359613.8A CN107122493B (en) 2017-05-19 2017-05-19 Song playing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710359613.8A CN107122493B (en) 2017-05-19 2017-05-19 Song playing method and device

Publications (2)

Publication Number Publication Date
CN107122493A CN107122493A (en) 2017-09-01
CN107122493B true CN107122493B (en) 2020-04-28

Family

ID=59728280

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710359613.8A Active CN107122493B (en) 2017-05-19 2017-05-19 Song playing method and device

Country Status (1)

Country Link
CN (1) CN107122493B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108109634B (en) * 2017-12-15 2020-12-04 广州酷狗计算机科技有限公司 Song pitch generation method, device and equipment
CN108549642B (en) * 2018-04-27 2021-08-27 广州酷狗计算机科技有限公司 Method, device and storage medium for evaluating labeling quality of pitch information
CN108829751B (en) * 2018-05-25 2022-02-25 腾讯音乐娱乐科技(深圳)有限公司 Method and device for generating lyrics and displaying lyrics, electronic equipment and storage medium
CN108922562A (en) * 2018-06-15 2018-11-30 广州酷狗计算机科技有限公司 Sing evaluation result display methods and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103137167A (en) * 2013-01-21 2013-06-05 青岛海信宽带多媒体技术有限公司 Method for playing music and music player
CN103337240A (en) * 2013-06-24 2013-10-02 华为技术有限公司 Method for processing voice data, terminals, server and system
CN103902642A (en) * 2012-12-21 2014-07-02 香港科技大学 Music composition system using correlation between melody and lyrics
CN104391980A (en) * 2014-12-08 2015-03-04 百度在线网络技术(北京)有限公司 Song generating method and device
CN105740394A (en) * 2016-01-27 2016-07-06 广州酷狗计算机科技有限公司 Music generation method, terminal, and server
CN105788589A (en) * 2016-05-04 2016-07-20 腾讯科技(深圳)有限公司 Audio data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103902642A (en) * 2012-12-21 2014-07-02 香港科技大学 Music composition system using correlation between melody and lyrics
CN103137167A (en) * 2013-01-21 2013-06-05 青岛海信宽带多媒体技术有限公司 Method for playing music and music player
CN103337240A (en) * 2013-06-24 2013-10-02 华为技术有限公司 Method for processing voice data, terminals, server and system
CN104391980A (en) * 2014-12-08 2015-03-04 百度在线网络技术(北京)有限公司 Song generating method and device
CN105740394A (en) * 2016-01-27 2016-07-06 广州酷狗计算机科技有限公司 Music generation method, terminal, and server
CN105788589A (en) * 2016-05-04 2016-07-20 腾讯科技(深圳)有限公司 Audio data processing method and device

Also Published As

Publication number Publication date
CN107122493A (en) 2017-09-01

Similar Documents

Publication Publication Date Title
CN107122493B (en) Song playing method and device
CN108806656B (en) Automatic generation of songs
CN108806655B (en) Automatic generation of songs
CN106898340B (en) Song synthesis method and terminal
JP6793708B2 (en) Music synthesis methods, systems, terminals, computer readable storage media and programs
US9355634B2 (en) Voice synthesis device, voice synthesis method, and recording medium having a voice synthesis program stored thereon
CN103810992A (en) Voice synthesizing method and voice synthesizing apparatus
CN108877764B (en) Audio synthetic method, electronic equipment and the computer storage medium of talking e-book
EP3211637A1 (en) Speech synthesis device and method
CN110211556B (en) Music file processing method, device, terminal and storage medium
CN105718503B (en) Voice search device and speech search method
US11511200B2 (en) Game playing method and system based on a multimedia file
CN111128116B (en) Voice processing method and device, computing equipment and storage medium
CN104505103B (en) Voice quality assessment equipment, method and system
CN107371075A (en) Microphone
CN106847273B (en) Awakening word selection method and device for voice recognition
KR20220165666A (en) Method and system for generating synthesis voice using style tag represented by natural language
CN111399745A (en) Music playing method, music playing interface generation method and related products
CN112908308A (en) Audio processing method, device, equipment and medium
KR20190088129A (en) Providing method, apparatus and computer-readable medium of music contents using a user terminal linking with an electronic musical instrument
Schuller et al. Incremental acoustic valence recognition: an inter-corpus perspective on features, matching, and performance in a gating paradigm
CN111179890B (en) Voice accompaniment method and device, computer equipment and storage medium
CN110111813B (en) Rhythm detection method and device
JP6954780B2 (en) Karaoke equipment
CN106649643B (en) A kind of audio data processing method and its device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant