CN116726494A - Song playing method and device, storage medium and computer equipment - Google Patents

Song playing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN116726494A
CN116726494A CN202310705462.2A CN202310705462A CN116726494A CN 116726494 A CN116726494 A CN 116726494A CN 202310705462 A CN202310705462 A CN 202310705462A CN 116726494 A CN116726494 A CN 116726494A
Authority
CN
China
Prior art keywords
song
version
humming
played
playing
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.)
Pending
Application number
CN202310705462.2A
Other languages
Chinese (zh)
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202310705462.2A priority Critical patent/CN116726494A/en
Publication of CN116726494A publication Critical patent/CN116726494A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6063Methods for processing data by generating or executing the game program for sound processing
    • A63F2300/6081Methods for processing data by generating or executing the game program for sound processing generating an output signal, e.g. under timing constraints, for spatialization
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H2210/00Aspects or methods of musical processing having intrinsic musical character, i.e. involving musical theory or musical parameters or relying on musical knowledge, as applied in electrophonic musical tools or instruments
    • G10H2210/021Background music, e.g. for video sequences, elevator music
    • G10H2210/026Background music, e.g. for video sequences, elevator music for games, e.g. videogames

Abstract

The embodiment of the application discloses a song playing method, a device, a storage medium and computer equipment, wherein the method comprises the following steps: playing a reference version of the song, the reference version being marked with a reference end timestamp for each lyric in the song; when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not; if the virtual role exists in the appointed virtual scene area, matching lyrics to be played of humming version of the song based on the reference ending time stamp; continuing to play the reference version of the song and playing the lyrics to be played of the humming version; and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference end time stamp until the song is finished. By playing a less specialized humming version of a song when a virtual character exists within a designated virtual scene area, the user's sense of substitution of the song is enhanced.

Description

Song playing method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of computers, and in particular, to a song playing method, apparatus, computer readable storage medium and computer device.
Background
In recent years, with development and popularization of computer equipment technology, more and more game applications having three-dimensional virtual environments are emerging, such as: a first person shooter game (First person shooting game, FPS), a Role-playing game (RPG), a multiplayer online combat arena game (Multiplayer Online Battle Arena, MOBA), and the like.
In the prior art, in order to improve the sense of immersion of a user during play, songs are played during a game, so that the user plays the game while listening to the songs.
In the research and practice process of the prior art, the inventor of the application finds that songs played in games in the prior art are singers with higher professional degree or songs recorded by original singing, users only feel that the songs are very good, the users cannot feel substitution, follow singing is carried out, and the substitution feeling of the users of the songs is lower.
Disclosure of Invention
The embodiment of the application provides a song playing method and device, which can improve the substitution sense of a user of songs and improve the play immersion sense of the user.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme:
a song playing method, comprising:
Playing a reference version of a song, the reference version marked with a reference end timestamp for each lyric of the song;
when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not;
if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp;
continuing to play the reference version of the song and playing the lyrics to be played of the humming version;
and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played.
A song playing apparatus comprising:
the first playing module is used for playing a reference version of the song, and the reference version is marked with a reference ending time stamp of each sentence of lyrics in the song;
the judging module is used for judging whether a virtual character exists in the appointed virtual scene area or not when the song of the reference version is played to the reference ending time stamp;
The matching module is used for matching lyrics to be played of the humming version of the song based on the reference ending time stamp if the virtual roles exist in the appointed virtual scene area;
the second playing module is used for continuously playing the reference version of the song and playing the lyrics to be played of the humming version;
and the execution module is used for returning to execute the step of judging whether the virtual character exists in the appointed virtual scene area or not when the song of the reference version is played to the reference ending time stamp when the song to be played is played, until the song is played.
A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the song playing method described above.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the song playing method as described above when the program is executed.
According to the embodiment of the application, the reference version of the song is played, and the reference version is marked with the reference ending time stamp of each lyric in the song; when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not; if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp; continuing to play the reference version of the song and playing the lyrics to be played of the humming version; and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played. Therefore, through playing the humming version with lower professional degree of the song when the virtual role exists in the appointed virtual scene area, the substitution sense of the user of the song is improved, and the playing immersion sense of the user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1a is a schematic system diagram of a song playing method according to an embodiment of the present application.
Fig. 1b is a schematic flow chart of a song playing method according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a song playing device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
The embodiment of the application provides a song playing method, a song playing device, a storage medium and computer equipment. Referring to fig. 1a, fig. 1a is a schematic system diagram of a song playing method according to an embodiment of the present application. The system may include at least one client 1000, at least one computer device 2000, at least one database 3000, and a network 4000. A client 1000 held by a user may be connected to the computer device 2000 through a network 4000. Computer device 2000 is any device having computing hardware capable of supporting and executing software products corresponding to a game. The client 1000 has one or more multi-touch sensitive screens for sensing and obtaining input of a user through touch or slide operations performed at a plurality of points of one or more touch sensitive display screens. In addition, when the system includes a plurality of clients 1000, a plurality of computer devices 2000, and a plurality of networks 4000, different clients 1000 may be connected to different computer devices 2000 through different networks 4000. The network 4000 may be a wireless network or a wired network, such as a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, etc. In addition, the different clients 1000 may be connected to other terminals or to the computer device 2000 using their own bluetooth network or hotspot network. For example, multiple users may be online through different clients 1000 to connect through an appropriate network and synchronize with each other to support multi-user gaming. In addition, the system may include a plurality of databases 3000, the plurality of databases 3000 being coupled to different computer devices 2000, and information related to the game environment may be continuously stored in the databases 3000 while different users play multi-user games online.
It should be noted that, the system schematic diagram of the song playing system shown in fig. 1a is only an example, and the song playing system and the scenario described in the embodiments of the present application are for more clearly describing the technical solution of the embodiments of the present application, and do not constitute a limitation on the technical solution provided by the embodiments of the present application, and those skilled in the art can know that, with the evolution of the song playing system and the appearance of the new service scenario, the technical solution provided by the embodiments of the present application is equally applicable to similar technical problems.
In the present embodiment, description will be made from the viewpoint of a song playing apparatus which can be integrated in a computer device having a storage unit and a microprocessor mounted thereon and having arithmetic capability.
Referring to fig. 1b, fig. 1b is a flowchart illustrating a song playing method according to an embodiment of the present application. The song playing method comprises the following steps:
in step 101, a reference version of a song is played, said reference version being marked with a reference end time stamp for each lyric of said song.
The reference version of the song is the version recorded by the original singing of the song, namely the normal release version of the song, or the version recorded by the professional singer.
Specifically, the song of the reference version is marked with an end time stamp of each sentence of lyrics, and the end time stamp marked in the reference version is the reference end time stamp.
The marking mode of the reference ending time stamp can be to establish a mapping relation table of each sentence of lyrics in the reference version and the reference ending time stamp; or adding a reference ending time stamp at the position of the last word of each sentence of lyrics for marking.
For example, as shown in table 1, table 1 is a mapping table of each sentence of lyrics in the reference version and the reference end time stamp, in which two sentences of lyrics are marked as "ten years old and two years old" and "no thinking", and the corresponding end time stamps are 1.30 and 2.00, respectively.
TABLE 1
Lyrics End time stamp
Two kinds of death are lost in ten years 1.30
Not think of 2.00
In step 102, when the song of the reference version is played to the reference end time stamp, it is determined whether a virtual character exists in the designated virtual scene area.
When the song of the reference version is played to the reference ending time stamp, that is, when a certain sentence of lyrics in the song of the reference version is completely played, in order to enable the user to hear the humming version of the song and drive the user to follow the singing, whether a virtual role controlled by the user exists in a designated virtual scene area in the virtual scene needs to be determined.
Specifically, the virtual scene region is designated as a region in the virtual scene where a humming version of the song can be played or a region where the avatar can hear a humming version of the song.
In step 103, if the virtual character exists in the specified virtual scene area, matching the lyrics to be played of the humming version of the song based on the reference ending time stamp.
If the virtual character exists in the designated virtual scene area, the humming version of the song played at this time is indicated to be heard by the user who controls the virtual character. Thus, the lyrics to be played of the humming version of the song are matched based on the reference end timestamp.
Specifically, the matched lyrics to be played are the next lyrics of the lyrics played in the song of the reference version in the humming version.
In some embodiments, the humming version of the song includes a first sub-humming version and a second sub-humming version, and before the step of matching the lyrics to be played of the humming version of the song based on the reference end timestamp, the method further includes:
(1) Acquiring the history visit times of the virtual character visiting the appointed virtual scene area;
(2) Determining a first playing probability of the first humming version and a second playing probability of the second humming version according to the historical visit times;
(3) And determining the humming version based on the first playing probability and the second playing probability.
In order to guide the user from entering to mastering the song, the humming version of the same song is provided with two sub-humming versions, namely a first sub-humming version and a second sub-humming version, wherein the first sub-humming version is a humming version with lyrics, the second sub-humming version is different from the reference version in that the second sub-humming version is a version with excellent sound to perform, and the professional part cannot reach the professional degree of a professional singer in the reference version, so that the pitch tone and the like are inaccurate; the second humming version is a humming version without lyrics, i.e. the humming version without lyrics obtained by repeating a humming of two words (e.g. Lap, hu);
specifically, the first sub-humming version and the second sub-humming version combine the history of the virtual character with the history of the number of accesses to the designated virtual scene region to determine the probability of playing each sub-humming version, thereby selecting a humming version from the two sub-humming versions for playing.
In some embodiments, the step of determining the first probability of playing the first humming version and the second probability of playing the second humming version according to the historical visit times includes:
If the historical visit times are smaller than the preset visit times, determining a first play probability according to a first designated play probability and the historical visit times, and determining a second designated play probability as a second play probability.
The predetermined number of visits, for example, 50 times, may be set, and the manner of determining the first playing probability of the first humming version and the second playing probability of the second humming version may be: if the historical visit times are smaller than the preset visit times, determining a first play probability according to a first designated play probability and the historical visit times, and determining a second designated play probability as a second play probability.
For example, if the historical visit number is 30 times and is less than 50 times of the preset visit number, the second designated play probability (e.g., 50%) is determined as the second play probability of the second humming version. The first designated playing probability is 0%, the historical visit times are combined for 30 times, each visit is set, the probability is increased by 1%, and the first playing probability of the historical visit times for 30 times is 0% +30 x 1% = 30%.
In some embodiments, the method further comprises:
if the historical visit times are greater than or equal to the preset visit times, determining the second designated play probability as the first play probability, and determining the third designated play probability as the second play probability.
The method for determining the first playing probability of the first humming version and the second playing probability of the second humming version may further be: if the historical visit times are greater than or equal to the preset visit times, determining the second designated play probability as the first play probability, and determining the third designated play probability as the second play probability.
For example, if the historical visit times are 70 times and greater than 50 times of the preset visit times, the second designated play probability (for example, 50%), in combination with the historical visit times of 70 times, after more than 50 times, each visit is made, the probability increases by 1%, the first play probability is 50++ (70-50) x 1% = 70%, and the third designated play probability is 0%, the second play probability is 0%. That is, after the number of visits exceeds the preset number, the second sub-humming version of the humming version without lyrics will not be played again, but only the first sub-humming version of the humming version with lyrics will be played.
In some embodiments, the step of matching the lyrics to be played of the humming version of the song based on the reference ending time stamp includes:
(1) Acquiring a humming ending time stamp marked by each lyric in the humming version of the song;
(2) Screening out a target ending time stamp matched with the reference ending time stamp from humming ending time stamps;
(3) And determining the lyrics from the target ending time stamp to the next humming ending time stamp as lyrics to be played.
Wherein each lyric in the humming version is also marked with a humming end timestamp, and the manner of matching the lyrics to be played of the humming version of the song based on the reference end timestamp may be: acquiring a humming ending time stamp marked by each lyric in the humming version of the song; screening out a target ending time stamp matched with the reference ending time stamp from humming ending time stamps; and determining the lyrics from the target ending time stamp to the next humming ending time stamp as lyrics to be played.
Specifically, since the reference version and the humming version of the song are respectively singed by different persons, there may be the same lyrics, and the end time of singing by different persons is different, for example, the reference end time stamp of "dead two decades" in the reference version is 1.30, but the humming end time stamp of "dead two decades" in the humming version may be 1.31. The method of screening the target ending time stamp matched with the reference ending time stamp from the humming ending time stamps can determine the matching time interval based on the preset time interval and the reference ending time stamp. For example, if the preset time interval is 5s, the matching time interval is 1.25 to 1.35.
And after the matching time interval is determined, selecting a target ending time stamp with the humming ending time stamp in the matching time interval from the humming ending time stamps, wherein the labeled one lyrics corresponding to the target ending time stamp corresponds to one lyrics of which the song of the reference version is already played.
Specifically, in order to continue playing, the lyrics from the target ending timestamp to the next ending timestamp in the humming version of the song need to be determined as the lyrics to be played.
In some embodiments, before the step of obtaining the humming end timestamp of each lyrics tag in the humming version of the song, the method further includes:
(1) Obtaining a reference version and a humming version of the song;
(2) And detecting waveform amplitude of the reference version and the humming version, determining an ending time stamp corresponding to each lyric, determining the ending time stamp corresponding to each lyric in the song of the reference version as the reference ending time stamp, and determining the ending time stamp corresponding to each lyric in the song of the humming version as the humming ending time stamp.
The third party library Librosa of python is used for writing a script, and waveform amplitude detection is performed on the reference version and humming version of the song to find the end position of each lyric. Since the humming version comprises a first sub-humming version and a second sub-humming version, waveform amplitude detection is required for the two sub-humming versions to find the end timestamp of each lyric.
In step 104, the playing of the reference version of the song and the playing of the lyrics to be played of the humming version are continued.
After determining the lyrics to be played, since the song of the reference version is not stopped, continuing playing the reference version of the song, and simultaneously playing the lyrics to be played of the humming version.
In some embodiments, a part of the words in the lyrics to be played is marked with a pitch shift mark, and the step of playing the lyrics to be played of the humming version includes:
(1) Based on the pitch shift mark of each character mark, performing pitch correction on the pitch shift of the character to obtain lyrics to be played after pitch correction;
(2) And playing the lyrics to be played after the pitch correction of the humming version.
When the lyrics to be played of the humming version are played, because the humming version is obtained by sound excellent singing with low specificity, the situation that the pitch of part of characters in the lyrics is inaccurate relative to the reference version possibly exists, and therefore the pitch correction is carried out on the pitch offset of the characters based on the fact that the part of characters in the lyrics to be played is marked with a pitch offset mark, so that the lyrics to be played after the pitch correction are obtained; and playing the lyrics to be played after the pitch correction of the humming version.
In some embodiments, the pitch-shifting marks include a first sub-tone high-shifting mark and a second sub-tone high-shifting mark, the step of performing pitch correction on the pitch shift of each word based on the pitch-shifting mark of each word mark, and striking the lyrics to be played after the pitch correction includes:
(1.1) when there is a first target text marked as a first sub-tone high offset mark, decreasing the pitch of the first target text;
and (1.2) when a second target character marked as a second sub-tone high-offset mark exists, increasing the pitch of the second target character to obtain lyrics to be played after the pitch correction.
There are two cases of pitch shifting, the first being higher relative to the reference version and the second being lower relative to the reference version. If the text is higher than the reference version, the higher text is marked as a first sub-tone high-offset mark; if the text is lower than the reference version, the text with higher text is marked as a second sub-tone high offset mark.
Specifically, when a first target character marked as a first sub-tone high-offset mark exists in pitch correction, the pitch of the first target character is reduced; and when a second target character marked as a second sub-tone high-offset mark exists, the pitch of the second target character is increased, so that lyrics to be played after the pitch correction are obtained.
Wherein, the increase or decrease of the pitch in pitch correction can be randomly adjusted within a preset pitch range.
In some embodiments, before the step of playing the lyrics to be played of the humming version, the method further includes:
(1) Determining a humming pitch of each word in the humming version of the song and a benchmark pitch of each word in the benchmark version of the song;
(2) Comparing humming pitch corresponding to each character with reference pitch;
(3) If the humming pitch corresponding to the text is higher than the reference pitch, marking the text as a first sub-tone high-offset mark;
(4) And if the humming pitch corresponding to the text is lower than the reference pitch, marking the text as a second sub-tone high-offset mark.
The pitch shift marking mode of each text in the humming version is as follows: determining a humming pitch of each word in the humming version of the song and a benchmark pitch of each word in the benchmark version of the song; comparing humming pitch corresponding to each character with reference pitch; if the humming pitch corresponding to the text is higher than the reference pitch, marking the text as a first sub-tone high-offset mark; and if the humming pitch corresponding to the text is lower than the reference pitch, marking the text as a second sub-tone high-offset mark.
Specifically, after the pitch of each text in the humming version and the reference version is obtained, it is determined whether there is a pitch shift by comparing the pitch of the humming version of the same text with the pitch of the reference version. If so, marking the characters with humming pitch higher than the reference pitch as a first sub-tone high-offset mark; words with humming pitch lower than the reference pitch are marked as second sub-note high offset marks.
For example, the reference version of a word has a pitch of c4, and if the humming version has a pitch higher than c4, the word is labeled c4_high; if the pitch in the humming version is lower than c4, the word is labeled c4_low.
The pitch determination range of the mark may be set, and if the humming pitch is not deviated from the reference pitch by more than the preset pitch range, the mark may not be made.
In step 105, when the playing of the lyrics to be played is finished, a step of determining whether a virtual character exists in the designated virtual scene area when the song of the reference version is played to the reference end time stamp is returned to be executed until the song is completely played.
When the song to be played is finished, the lyrics corresponding to the song to be played in the song of the reference version are also played simultaneously or in a small time, and the step of judging whether the virtual character exists in the appointed virtual scene area or not when the song of the reference version is played to the reference ending time stamp is returned until the song is played.
Specifically, in the above-mentioned loop, the song always plays the reference version when playing and plays the humming version of the lyrics to be played when the virtual character exists in the designated virtual scene area.
As can be seen from the foregoing, in the embodiment of the present application, a reference version of a song is played, where the reference version is marked with a reference ending timestamp of each lyric of the song; when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not; if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp; continuing to play the reference version of the song and playing the lyrics to be played of the humming version; and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played. Therefore, through playing the humming version with lower professional degree of the song when the virtual role exists in the appointed virtual scene area, the substitution sense of the user of the song is improved, and the playing immersion sense of the user is improved.
In order to facilitate better implementation of the song playing method provided by the embodiment of the application, the embodiment of the application also provides a device based on the song playing method. Wherein the meaning of the nouns is the same as that in the song playing method, and specific implementation details can be referred to the description in the method embodiment.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a song playing apparatus according to an embodiment of the present application, where the song playing apparatus may include a first playing module 301, a determining module 302, a matching module 303, a second playing module 304, and an executing module 305.
A first playing module 301, configured to play a reference version of a song, where the reference version is marked with a reference end timestamp of each lyric of the song;
a determining module 302, configured to determine whether a virtual character exists in the specified virtual scene area when the song of the reference version is played to the reference end timestamp;
a matching module 303, configured to match lyrics to be played of the humming version of the song based on the reference ending timestamp if the virtual character exists in the specified virtual scene area;
a second playing module 304, configured to continue playing the reference version of the song and playing lyrics to be played of the humming version;
And the execution module 305 is configured to return to executing the step of determining whether the virtual character exists in the designated virtual scene area when the song of the reference version is played to the reference end time stamp when the song to be played is played, until the song is played.
In some embodiments, the humming version of the song includes a first sub-humming version and a second sub-humming version, and the apparatus further includes:
the acquisition module is used for acquiring the history visit times of the virtual character to the appointed virtual scene area;
the first determining module is used for determining a first playing probability of the first humming version and a second playing probability of the second humming version according to the historical visit times;
and the second determining module is used for determining the humming version based on the first playing probability and the second playing probability.
In some embodiments, the first determining module includes:
and the first determining submodule is used for determining the first playing probability according to the first appointed playing probability and the historical visit times and determining the second appointed playing probability as the second playing probability if the historical visit times are smaller than the preset visit times.
In some embodiments, the first determining module further comprises:
and the second determining submodule is used for determining the first playing probability according to the second designated playing probability and the historical visit times and determining the third designated playing probability as the second playing probability if the historical visit times are larger than or equal to the preset visit times.
In some embodiments, the matching module 303 includes:
an obtaining sub-module, configured to obtain a humming end timestamp of each lyric tag in the humming version of the song;
a screening sub-module, configured to screen a target ending timestamp matched with the reference ending timestamp from humming ending timestamps;
and a third determining submodule, configured to determine lyrics between the target ending time stamp and the next humming ending time stamp as lyrics to be played.
In some embodiments, the part of the words in the lyrics to be played is marked with a pitch shift mark, and the second playing module 304 includes:
the correcting submodule is used for correcting the pitch of the characters based on the pitch deviation mark of each character mark to obtain lyrics to be played after the pitch correction;
And the playing sub-module is used for playing the lyrics to be played after the pitch correction of the humming version.
In some implementations, the pitch-shifting indicia includes a first sub-tone high-shifting indicia and a second sub-tone high-shifting indicia, the correction submodule including:
a reducing unit, configured to reduce, when there is a first target text marked as a first sub-tone high offset mark, a pitch of the first target text;
and the improving unit is used for improving the pitch of the second target text when the second target text marked as the second sub-tone high-offset mark exists, so as to obtain lyrics to be played after the pitch correction.
In some embodiments, the apparatus further comprises:
a third determining module for determining the humming pitch of each word in the song of the humming version and the reference pitch of each word in the song of the reference version;
the comparison module is used for comparing humming pitch corresponding to each character with reference pitch;
the first marking module is used for marking the characters as a first sub-tone high-offset mark if the humming pitch corresponding to the characters is higher than the reference pitch;
and the second marking module is used for marking the text as a second sub-tone high-offset mark if the humming pitch corresponding to the text is lower than the reference pitch.
As can be seen from the foregoing, in the embodiment of the present application, a reference version of a song is played through the first playing module 301, where the reference version is marked with a reference ending time stamp of each lyric of the song; the judging module 302 judges whether a virtual character exists in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp; the matching module 303 matches lyrics to be played of the humming version of the song based on the reference ending timestamp if the virtual character exists in the designated virtual scene area; the second playing module 304 continues playing the reference version of the song and playing the lyrics to be played of the humming version; and the execution module 305 returns to execute the step of judging whether the virtual character exists in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp when the song to be played is played, until the song is played. Therefore, through playing the humming version with lower professional degree of the song when the virtual role exists in the appointed virtual scene area, the substitution sense of the user of the song is improved, and the playing immersion sense of the user is improved.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Correspondingly, the embodiment of the application also provides computer equipment, which can be a terminal or a server, wherein the terminal can be terminal equipment such as a smart phone, a tablet personal computer, a notebook computer, a touch screen, a game console, a personal computer (PC, personal Computer), a personal digital assistant (Personal Digital Assistant, PDA) and the like. Fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application, as shown in fig. 3. The computer device 2000 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer readable storage media, and a computer program stored on the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. It will be appreciated by those skilled in the art that the computer device structure shown in the figures is not limiting of the computer device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The processor 401 is a control center of the computer device 2000, connects various parts of the entire computer device 2000 using various interfaces and lines, and performs various functions of the computer device 2000 and processes data by running or loading software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the computer device 2000.
In the embodiment of the present application, the processor 401 in the computer device 2000 loads the instructions corresponding to the processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions:
playing a reference version of a song, the reference version marked with a reference end timestamp for each lyric of the song; when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not; if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp; continuing to play the reference version of the song and playing the lyrics to be played of the humming version; and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played.
In some embodiments, the humming version of the song includes a first sub-humming version and a second sub-humming version, and before the step of matching the lyrics to be played of the humming version of the song based on the reference end timestamp, the method further includes:
Acquiring the history visit times of the virtual character visiting the appointed virtual scene area;
determining a first playing probability of the first humming version and a second playing probability of the second humming version according to the historical visit times;
and determining the humming version based on the first playing probability and the second playing probability.
In some embodiments, the step of determining the first probability of playing the first humming version and the second probability of playing the second humming version according to the historical visit times includes:
if the historical visit times are smaller than the preset visit times, determining a first play probability according to a first designated play probability and the historical visit times, and determining a second designated play probability as a second play probability.
In some embodiments, the method further comprises:
if the historical visit times are greater than or equal to the preset visit times, determining a first play probability according to a second designated play probability and the historical visit times, and determining a third designated play probability as a second play probability.
In some embodiments, the step of matching the lyrics to be played of the humming version of the song based on the reference ending time stamp includes:
Acquiring a humming ending time stamp marked by each lyric in the humming version of the song;
screening out a target ending time stamp matched with the reference ending time stamp from humming ending time stamps;
and determining the lyrics from the target ending time stamp to the next humming ending time stamp as lyrics to be played.
In some embodiments, a part of the words in the lyrics to be played is marked with a pitch shift mark, and the step of playing the lyrics to be played of the humming version includes:
based on the pitch shift mark of each character mark, performing pitch correction on the pitch shift of the character to obtain lyrics to be played after pitch correction;
and playing the lyrics to be played after the pitch correction of the humming version.
In some embodiments, the pitch-shifting marks include a first sub-tone high-shifting mark and a second sub-tone high-shifting mark, the step of performing pitch correction on the pitch shift of each word based on the pitch-shifting mark of each word mark, and striking the lyrics to be played after the pitch correction includes:
when a first target character marked as a first sub-tone high-offset mark exists, reducing the pitch of the first target character;
And when a second target character marked as a second sub-tone high-offset mark exists, the pitch of the second target character is increased, so that lyrics to be played after the pitch correction are obtained.
In some embodiments, before the step of playing the humming version of lyrics to be played, the method further comprises:
determining a humming pitch of each word in the humming version of the song and a benchmark pitch of each word in the benchmark version of the song;
comparing humming pitch corresponding to each character with reference pitch;
if the humming pitch corresponding to the text is higher than the reference pitch, marking the text as a first sub-tone high-offset mark;
and if the humming pitch corresponding to the text is lower than the reference pitch, marking the text as a second sub-tone high-offset mark.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Optionally, as shown in fig. 3, the computer device 2000 further includes: a touch display 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch display 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407, respectively. Those skilled in the art will appreciate that the computer device structure shown in FIG. 3 is not limiting of the computer device and may include more or fewer components than shown, or may be combined with certain components, or a different arrangement of components.
The touch display 403 may be used to display a graphical user interface and receive operation instructions generated by a user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. Wherein the display panel may be used to display information entered by a user or provided to a user as well as various graphical user interfaces of a computer device, which may be composed of graphics, text, icons, video, and any combination thereof. Alternatively, the display panel may be configured in the form of a liquid crystal display (LCD, liquid Crystal Display), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations on or near the user (such as operations on or near the touch panel by the user using any suitable object or accessory such as a finger, stylus, etc.), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch azimuth of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends the touch point coordinates to the processor 401, and can receive and execute commands sent from the processor 401. The touch panel may overlay the display panel, and upon detection of a touch operation thereon or thereabout, the touch panel is passed to the processor 401 to determine the type of touch event, and the processor 401 then provides a corresponding visual output on the display panel in accordance with the type of touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 403 to realize the input and output functions. In some embodiments, however, the touch panel and the touch panel may be implemented as two separate components to perform the input and output functions. I.e. the touch-sensitive display 403 may also implement an input function as part of the input unit 406.
In an embodiment of the present application, the processor 401 executes the game application program to generate a graphical user interface on the touch display screen 403, where the virtual scene on the graphical user interface includes at least one skill control area, and the skill control area includes at least one skill control. The touch display 403 is used for presenting a graphical user interface and receiving an operation instruction generated by a user acting on the graphical user interface.
The radio frequency circuitry 404 may be used to transceive radio frequency signals to establish wireless communications with a network device or other computer device via wireless communications.
The audio circuitry 405 may be used to provide an audio interface between a user and a computer device through speakers, microphones, and so on. The audio circuit 405 may transmit the received electrical signal after audio data conversion to a speaker, where the electrical signal is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signals into electrical signals, which are received by the audio circuit 405 and converted into audio data, which are processed by the audio data output processor 401 and sent via the radio frequency circuit 404 to, for example, another computer device, or which are output to the memory 402 for further processing. The audio circuit 405 may also include an ear bud jack to provide communication of the peripheral ear bud with the computer device.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 407 is used to power the various components of the computer device 2000. Alternatively, the power supply 407 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. The power supply 407 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown in fig. 3, the computer device 2000 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., which will not be described herein.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to related descriptions of other embodiments.
As can be seen from the above, the computer device provided in this embodiment plays a reference version of a song, where the reference version is marked with a reference end timestamp of each lyric of the song; when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not; if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp; continuing to play the reference version of the song and playing the lyrics to be played of the humming version; and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played. Therefore, through playing the humming version with lower professional degree of the song when the virtual role exists in the appointed virtual scene area, the substitution sense of the user of the song is improved, and the playing immersion sense of the user is improved.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application provides a computer readable storage medium having stored therein a plurality of computer programs that can be loaded by a processor to perform steps in any of the skills control methods provided by the embodiment of the present application. For example, the computer program may perform the steps of:
playing a reference version of a song, the reference version marked with a reference end timestamp for each lyric of the song; when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not; if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp; continuing to play the reference version of the song and playing the lyrics to be played of the humming version; and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps of any song playing method provided by the embodiment of the present application can be executed by the computer program stored in the storage medium, so that the beneficial effects of any song playing method provided by the embodiment of the present application can be achieved, and detailed descriptions of the previous embodiments are omitted.
The song playing method, device, storage medium and computer equipment provided by the embodiment of the application are described in detail, and specific examples are applied to illustrate the principle and implementation of the application, and the description of the above embodiments is only used for helping to understand the method and core ideas of the application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (11)

1. A song playing method, comprising:
playing a reference version of a song, the reference version marked with a reference end timestamp for each lyric of the song;
when the song of the reference version is played to the reference ending time stamp, judging whether a virtual character exists in the appointed virtual scene area or not;
if the virtual roles exist in the appointed virtual scene area, matching lyrics to be played of the humming version of the song based on the reference ending time stamp;
continuing to play the reference version of the song and playing the lyrics to be played of the humming version;
and when the lyrics to be played are finished, returning to execute the step of judging whether the virtual roles exist in the appointed virtual scene area when the song of the reference version is played to the reference ending time stamp until the song is finished being played.
2. The song playing method of claim 1 wherein the humming version of the song includes a first sub-humming version and a second sub-humming version, further comprising, prior to the step of matching lyrics to be played of the humming version of the song based on the reference end timestamp:
Acquiring the history visit times of the virtual character visiting the appointed virtual scene area;
determining a first playing probability of the first humming version and a second playing probability of the second humming version according to the historical visit times;
and determining the humming version based on the first playing probability and the second playing probability.
3. The song playing method of claim 2 wherein the step of determining the first probability of playing the first humming version and the second probability of playing the second humming version based on the historical visit times comprises:
if the historical visit times are smaller than the preset visit times, determining a first play probability according to a first designated play probability and the historical visit times, and determining a second designated play probability as a second play probability.
4. A song playing method according to claim 3, characterized in that the method further comprises:
if the historical visit times are greater than or equal to the preset visit times, determining a first play probability according to a second designated play probability and the historical visit times, and determining a third designated play probability as a second play probability.
5. The song playing method of claim 1 wherein the step of matching lyrics to be played of the humming version of the song based on the reference end timestamp comprises:
acquiring a humming ending time stamp marked by each lyric in the humming version of the song;
screening out a target ending time stamp matched with the reference ending time stamp from humming ending time stamps;
and determining the lyrics from the target ending time stamp to the next humming ending time stamp as lyrics to be played.
6. The song playing method of claim 1 wherein part of words in the lyrics to be played are marked with pitch shift marks, and the step of playing the humming version of the lyrics to be played comprises:
based on the pitch shift mark of each character mark, performing pitch correction on the pitch shift of the character to obtain lyrics to be played after pitch correction;
and playing the lyrics to be played after the pitch correction of the humming version.
7. The song playing method of claim 6, wherein the pitch-shift marks include a first sub-tone high-shift mark and a second sub-tone high-shift mark, the step of pitch-correcting the pitch shift of each word based on the pitch-shift mark of each word, and striking the pitch-corrected lyrics to be played, comprising:
When a first target character marked as a first sub-tone high-offset mark exists, reducing the pitch of the first target character;
and when a second target character marked as a second sub-tone high-offset mark exists, the pitch of the second target character is increased, so that lyrics to be played after the pitch correction are obtained.
8. The song playing method of claim 7 further comprising, prior to the step of playing the humming version of lyrics to be played:
determining a humming pitch of each word in the humming version of the song and a benchmark pitch of each word in the benchmark version of the song;
comparing humming pitch corresponding to each character with reference pitch;
if the humming pitch corresponding to the text is higher than the reference pitch, marking the text as a first sub-tone high-offset mark;
and if the humming pitch corresponding to the text is lower than the reference pitch, marking the text as a second sub-tone high-offset mark.
9. A song playing apparatus, comprising:
the first playing module is used for playing a reference version of the song, and the reference version is marked with a reference ending time stamp of each sentence of lyrics in the song;
The judging module is used for judging whether a virtual character exists in the appointed virtual scene area or not when the song of the reference version is played to the reference ending time stamp;
the matching module is used for matching lyrics to be played of the humming version of the song based on the reference ending time stamp if the virtual roles exist in the appointed virtual scene area;
the second playing module is used for continuously playing the reference version of the song and playing the lyrics to be played of the humming version;
and the execution module is used for returning to execute the step of judging whether the virtual character exists in the appointed virtual scene area or not when the song of the reference version is played to the reference ending time stamp when the song to be played is played, until the song is played.
10. A computer readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps in the song playing method of any one of claims 1 to 8.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the song playing method of any one of claims 1 to 8 when the program is executed by the processor.
CN202310705462.2A 2023-06-14 2023-06-14 Song playing method and device, storage medium and computer equipment Pending CN116726494A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310705462.2A CN116726494A (en) 2023-06-14 2023-06-14 Song playing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310705462.2A CN116726494A (en) 2023-06-14 2023-06-14 Song playing method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN116726494A true CN116726494A (en) 2023-09-12

Family

ID=87918123

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310705462.2A Pending CN116726494A (en) 2023-06-14 2023-06-14 Song playing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN116726494A (en)

Similar Documents

Publication Publication Date Title
WO2017032153A1 (en) Prompt information display method, apparatus and terminal
CN113101652A (en) Information display method and device, computer equipment and storage medium
CN113398590B (en) Sound processing method, device, computer equipment and storage medium
CN107680614B (en) Audio signal processing method, apparatus and storage medium
CN113786620A (en) Game information recommendation method and device, computer equipment and storage medium
CN111643903B (en) Control method and device of cloud game, electronic equipment and storage medium
WO2024045528A1 (en) Game control method and apparatus, and computer device and storage medium
WO2023246166A1 (en) Method and apparatus for adjusting video progress, and computer device and storage medium
CN108231046B (en) Song tone identification method and device
CN116726494A (en) Song playing method and device, storage medium and computer equipment
CN115068941A (en) Game image quality recommendation method and device, computer equipment and storage medium
CN113332718B (en) Interactive element query method and device, electronic equipment and storage medium
CN112799754B (en) Information processing method, information processing device, storage medium and computer equipment
CN116850586A (en) Method, device, storage medium and computer equipment for game skill play prediction
CN113413591B (en) Information processing method, device, terminal and storage medium
CN114191814A (en) Information processing method, information processing device, computer equipment and storage medium
CN116603248A (en) Football game matching method and device, storage medium and computer equipment
CN116173504A (en) Information processing method, information processing device, computer equipment and computer readable storage medium
CN113158917B (en) Behavior pattern recognition method and device
CN115920385A (en) Game signal feedback method and device, electronic equipment and readable storage medium
CN115040867A (en) Game card control method and device, computer equipment and storage medium
CN116920384A (en) Information display method and device in game, computer equipment and storage medium
CN116328315A (en) Virtual model processing method, device, terminal and storage medium based on block chain
CN113975818A (en) Abnormal role determination method and device, computer equipment and storage medium
CN117504278A (en) Interaction method, interaction device, computer equipment and computer readable storage medium

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