CN-115827912-B - Data processing method, device, electronic equipment and computer readable storage medium
Abstract
The embodiment of the application provides a data processing method, a data processing device, electronic equipment and a computer readable storage medium, and relates to the technical field of computer software. The method comprises the steps of obtaining a running state of a vehicle, wherein the running state comprises at least one of the moving speed and the moving direction of the vehicle, obtaining at least one of the offset and the offset direction of target lyrics according to at least one of the moving speed and the moving direction, wherein the target lyrics correspond to audio being played in a vehicle-mounted terminal of the vehicle, and determining a moving special effect of the target lyrics on a display screen of the vehicle-mounted terminal based on the offset and/or the offset direction. According to the embodiment of the application, the moving special effect that the target lyrics synchronously change along with the speed and the moving direction of the vehicle is realized, and the interestingness and the diversity of lyric display are enhanced.
Inventors
- WU DAOQUAN
- LI PENG
- WANG LONGKAI
- FAN SHAOQIANG
- JIA YAN
- LIN SHUN
Assignees
- 厦门雅基软件有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20221109
Claims (10)
- 1. A method of data processing, comprising: Acquiring a running state of a vehicle, wherein the running state comprises at least one of a moving speed and a moving direction of the vehicle; Acquiring at least one of the offset and the offset direction of target lyrics according to at least one of the moving speed and the moving direction, wherein the target lyrics correspond to the audio being played in the vehicle-mounted terminal of the vehicle; Determining a moving special effect of the target lyrics on a display screen of the vehicle-mounted terminal based on the offset and/or the offset direction; The method for determining the moving special effect of the target lyrics on the display screen of the vehicle-mounted terminal based on the offset and/or the offset direction comprises the steps of determining the moving distance of the target lyrics corresponding to each text image according to the offset, determining the moving direction of the target lyrics corresponding to each text image according to the offset direction, and determining the moving special effect of the target lyrics based on the moving distance and the moving direction of each text image.
- 2. The method according to claim 1, wherein the method further comprises: Acquiring the sound intensity of the audio; Determining a rhythm of the audio based on the sound intensity, wherein the rhythm is used for representing a rhythm law of the audio; and determining the approach special effect of the target lyrics corresponding to the audio on the display screen of the vehicle-mounted terminal based on the voice rhythm.
- 3. The method according to claim 1, wherein the method further comprises: Acquiring time statistical information of each word of the target lyrics, wherein the time statistical information comprises a time stamp and a voice-saving duration of the word; encoding each word based on the time statistical information of each word to obtain an encoding value of each word in the target lyrics; and determining the out-of-field special effect of each word in the target lyrics on the display screen of the vehicle-mounted terminal according to the coding value.
- 4. The method of claim 2, wherein the determining the pitch of the audio based on the sound intensity comprises: converting the time domain signal of sound intensity into a frequency domain signal, wherein the frequency domain signal is used for representing the volume amplitude of audio frequency under different frequencies; and taking the volume amplitude as the rhythm of the audio.
- 5. The method of claim 4, wherein the determining, based on the musical scale, an approach special effect of the target lyrics corresponding to the audio on the display screen of the vehicle-mounted terminal comprises: Determining the crushing degree of the target lyrics corresponding to each text image based on the volume amplitude, wherein the volume amplitude is in direct proportion to the crushing degree; and dividing the text image according to the breaking degree, and taking the dynamic splicing display process of the divided text image as the approach special effect of the target lyrics.
- 6. The method of claim 3, wherein the encoding each word based on the temporal statistics of each word to obtain the encoded value for each word in the target lyrics comprises: And according to each character, splicing the time stamp and the audio duration corresponding to the character to generate a target character string of the character, and generating a coding value of the key based on a preset mapping relation by taking the target character string as the key.
- 7. The method of claim 3, wherein the determining the out-of-field effect of each word in the target lyrics on the display screen of the vehicle-mounted terminal according to the encoding value comprises: determining the vanishing time length of each word according to the coding value, wherein the vanishing time length is used for indicating the time length of the vanishing animation after the word image corresponding to the word is segmented; And determining the out-of-field special effect according to the vanishing time.
- 8. A data processing apparatus, comprising: The system comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring a running state of a vehicle, and the running state comprises at least one of a moving speed and a moving direction of the vehicle; the second acquisition module is used for acquiring at least one of the offset and the offset direction of target lyrics according to at least one of the moving speed and the moving direction, wherein the target lyrics correspond to the audio being played in the vehicle-mounted terminal of the vehicle; the determining module is used for determining the moving special effect of the target lyrics on the display screen of the vehicle-mounted terminal based on the offset and/or the offset direction; The determining module is used for determining the moving distance of the target lyrics corresponding to each text image according to the offset, determining the moving direction of the target lyrics corresponding to each text image according to the offset direction, and determining the moving special effect of the target lyrics based on the moving distance and the moving direction of each text image.
- 9. An electronic device comprising a memory, a processor and a computer program stored on the memory, characterized in that the processor executes the computer program to carry out the steps of the method according to any one of claims 1 to 7.
- 10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any one of claims 1 to 7.
Description
Data processing method, device, electronic equipment and computer readable storage medium Technical Field The present application relates to the field of computer software technology, and in particular, to a data processing method, apparatus, electronic device, and computer readable storage medium. Background Along with the development of communication networks, the intelligent cabin is also more and more widely applied, is a man-machine interaction scene in the automobile cockpit, and mainly aims to integrate driving information and entertainment information, and provides a user with efficient, visual and future technological driving experience by utilizing the strong capability of processing massive information data. Taking the playing of audio and video in the vehicle-mounted terminal as an example, lyric contents can be synchronously displayed along with the audio on a display screen of the vehicle-mounted terminal, so that comfortable and convenient vehicle-using experience is provided for drivers and passengers, but the problem that lyric display is too single exists. Disclosure of Invention The embodiment of the application provides a data processing method, a data processing device, electronic equipment and a computer readable storage medium, which can solve the problem of single lyric display in a vehicle-mounted terminal. The technical scheme is as follows: According to an aspect of an embodiment of the present application, there is provided a data processing method, including: Acquiring a running state of the vehicle, wherein the running state comprises at least one of a moving speed and a moving direction of the vehicle; Acquiring at least one of the offset and the offset direction of target lyrics according to at least one of the moving speed and the moving direction, wherein the target lyrics correspond to the audio being played in the vehicle-mounted terminal of the vehicle; and determining the moving special effect of the target lyrics on the display screen of the vehicle-mounted terminal based on the offset and/or the offset direction. In one possible implementation manner, the method further includes: Acquiring sound intensity of audio frequency; determining a rhythm of the audio based on the sound intensity, wherein the rhythm is used for representing a rhythm law of the audio; and determining the approach special effect of the target lyrics corresponding to the audio on the display screen of the vehicle-mounted terminal based on the musical notation. In one possible implementation manner, the method further includes: Acquiring time statistical information of each word of the target lyrics, wherein the time statistical information comprises a time stamp of the word and a pitch length; encoding each word based on the time statistical information of each word to obtain an encoding value of each word in the target lyrics; and determining the out-of-field special effect of each word in the target lyrics on the display screen of the vehicle-mounted terminal according to the coding value. In yet another possible implementation manner, determining the rhythm of the audio based on the sound intensity includes: converting the time domain signal of sound intensity into a frequency domain signal, wherein the frequency domain signal is used for representing the volume amplitude of the audio under different frequencies; the volume magnitude is taken as the rhythm of the audio. In another possible implementation manner, the determining, based on the musical notation, the approach special effect of the target lyrics corresponding to the audio on the display screen of the vehicle-mounted terminal includes: determining the crushing degree of the target lyrics corresponding to each text image based on the volume amplitude, wherein the volume amplitude is in direct proportion to the crushing degree; Dividing the text image according to the breaking degree, and taking the dynamic splicing display process of the divided text image as the approach special effect of the target lyrics. In another possible implementation manner, the determining the moving special effect of the target lyrics on the display screen of the vehicle-mounted terminal based on the offset and/or the offset direction includes: determining the moving distance of the target lyrics corresponding to each text image according to the offset; determining the moving direction of the target lyrics corresponding to each text image according to the offset direction; and determining the moving special effect of the target lyrics based on the moving distance and the moving direction of each text image. In another possible implementation manner, the encoding each word based on the time statistics of each word to obtain the encoded value of each word in the target lyrics includes: and generating a coding value of the key based on a preset mapping relation by taking the target character string as the key. In another possible implementation manner, the det