CN117037858A - Vehicle-mounted music playing method, computer device and storage medium - Google Patents

Vehicle-mounted music playing method, computer device and storage medium Download PDF

Info

Publication number
CN117037858A
CN117037858A CN202311007124.8A CN202311007124A CN117037858A CN 117037858 A CN117037858 A CN 117037858A CN 202311007124 A CN202311007124 A CN 202311007124A CN 117037858 A CN117037858 A CN 117037858A
Authority
CN
China
Prior art keywords
music
piece
playing
music piece
spliced
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
CN202311007124.8A
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.)
GAC Honda Automobile Co Ltd
Guangqi Honda Automobile Research and Development Co Ltd
Original Assignee
GAC Honda Automobile Co Ltd
Guangqi Honda Automobile Research and Development 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 GAC Honda Automobile Co Ltd, Guangqi Honda Automobile Research and Development Co Ltd filed Critical GAC Honda Automobile Co Ltd
Priority to CN202311007124.8A priority Critical patent/CN117037858A/en
Publication of CN117037858A publication Critical patent/CN117037858A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B31/00Arrangements for the associated working of recording or reproducing apparatus with related apparatus
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/037Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for occupant comfort, e.g. for automatic adjustment of appliances according to personal settings, e.g. seats, mirrors, steering wheel
    • B60R16/0373Voice control
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/50Context or environment of the image
    • G06V20/56Context or environment of the image exterior to a vehicle by using sensors mounted on the vehicle
    • G06V20/58Recognition of moving objects or obstacles, e.g. vehicles or pedestrians; Recognition of traffic objects, e.g. traffic signs, traffic lights or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/174Facial expression recognition
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Mechanical Engineering (AREA)
  • Acoustics & Sound (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The invention discloses a vehicle-mounted music playing method, a computer device and a storage medium, wherein first emotion information and second emotion information are detected for personnel on a vehicle, spliced music is played, the spliced music is formed by splicing a first music piece and a second music piece which are respectively matched with the first emotion information and the second emotion information, when the spliced music is switched to play, the music played on the vehicle can adapt to emotion change of the personnel on the vehicle, and emotion requirements of the personnel on the vehicle are met; the spliced music is played in a song mode, so that the effect of switching to play the second music piece after playing the first music piece is achieved, meanwhile, the phenomenon of music pause and the like in the song cutting process is avoided, the spliced music has a more natural playing effect, the effect of enhancing or relieving emotion changes, the emotion changes close to the emotion changes of people on a vehicle, and a good emotion improvement effect is achieved. The invention is widely applied to the technical field of automobiles.

Description

Vehicle-mounted music playing method, computer device and storage medium
Technical Field
The invention relates to the technical field of automobiles, in particular to a vehicle-mounted music playing method, a computer device and a storage medium.
Background
During driving of an automobile, the driver or passenger's occupants may be affected by various factors, thereby creating negative emotions that affect the driving experience and even the driving safety. Music can regulate the emotion of a person, for example, soft music is beneficial to relieve anger emotion, and aggressive music is beneficial to relieve low-lying emotion. Based on the principle, some current automobile technologies are beneficial to alleviating negative emotion of the personnel on the automobile by identifying emotion of the personnel on the automobile and playing corresponding music according to the identification result. Since a song is played typically for a period of time during which the emotion of the person on the vehicle may have changed, the currently played song will not be able to adapt to the emotion needs of the person on the vehicle.
Disclosure of Invention
Aiming at the technical problems that the played music cannot meet the emotion change of the personnel on the vehicle in real time in the current vehicle-mounted music playing technology, the invention aims to provide a vehicle-mounted music playing method, a computer device and a storage medium.
In one aspect, an embodiment of the present invention includes a vehicle-mounted music playing method, including the steps of:
identifying first emotion information of personnel on the vehicle;
acquiring a first music piece according to the first emotion information; the first music piece is matched with the first emotion information;
playing a first music piece;
detecting emotion change of the personnel on the vehicle in the playing process of the first music piece, and identifying second emotion information of the personnel on the vehicle;
acquiring a second music piece according to the second emotion information; the second music piece is matched with the second emotion information;
splicing the first music piece and the second music piece to obtain spliced music;
and synchronously switching the playing of the first music piece to the playing of the spliced music.
Further, the obtaining a second music piece according to the second emotion information includes:
according to the second emotion information, a plurality of matched candidate music fragments are searched from a music library;
setting music splicing conditions;
detecting whether the music splicing condition is met or not by respectively combining the currently played part in the first music piece with each candidate music piece;
and when detecting that the candidate music piece meets the music splicing condition, taking the candidate music piece meeting the music splicing condition as the second music piece.
Further, the obtaining a second music piece according to the second emotion information further includes:
and when any candidate music piece is not detected to meet the music stitching condition, selecting one candidate music piece from all the candidate music pieces as the second music piece.
Further, the splicing the first music piece and the second music piece to obtain spliced music includes:
and when the second music piece meets the music splicing condition, splicing the ending part of the first music piece with the beginning part of the second music piece to obtain the spliced music.
Further, the splicing the first music piece and the second music piece to obtain spliced music includes:
when the second music piece does not meet the music splicing condition, generating a transition music piece;
splicing the ending part of the first music piece with the beginning part of the transition music piece, and splicing the ending part of the transition music piece with the beginning part of the second music piece to obtain the spliced music.
Further, the generating the transition music piece includes:
acquiring first audio information from the first music piece;
acquiring second audio information from the second music piece;
acquiring information of the current vehicle exterior environment to obtain third audio information;
inputting the first audio information, the second audio information and the third audio information into an artificial intelligent model for processing; the artificial intelligent model has automatic composing performance;
and obtaining an output result of the artificial intelligence model to be used as the transition music piece.
Further, the step of synchronously switching the playing of the first music piece to the playing of the spliced music includes:
acquiring the current playing position of the first music piece;
determining a starting playing position in the spliced music according to the current playing position;
stopping playing the first music piece;
and playing the spliced music from the initial playing position.
Further, the step of synchronously switching the playing of the first music piece to the playing of the spliced music further includes:
detecting driving parameters of an automobile;
determining an acceleration rate according to the driving parameters;
a determined target splicing position; the target splicing position is a splicing position of a part corresponding to the first music piece and a part corresponding to the second music piece in the spliced music, or a splicing position of a part corresponding to the transition music piece and a part corresponding to the second music piece;
and when the spliced music is played, performing accelerated playing on the part from the initial playing position to the target spliced position in the spliced music according to the acceleration multiplying power, and performing original speed playing on other parts in the spliced music.
In another aspect, an embodiment of the present invention further includes a computer apparatus including a memory for storing at least one program, and a processor for loading the at least one program to perform a vehicle-mounted music playing method in the embodiment.
In another aspect, the embodiment of the present invention further includes a storage medium in which a processor-executable program is stored, which when executed by a processor, is for executing a vehicle-mounted music playing method in the embodiment.
The beneficial effects of the invention are as follows: according to the vehicle-mounted music playing method, when the first emotion information and the second emotion information, namely the emotion of the vehicle personnel are detected to be changed, spliced music is played, wherein the spliced music is formed by splicing a first music piece and a second music piece which are respectively matched with the first emotion information and the second emotion information, and therefore when the first emotion information and the second emotion information are switched to play the spliced music, the music played on the vehicle can adapt to the emotion change of the vehicle personnel, and accordingly the emotion requirement of the vehicle personnel is met; in addition, the spliced music is played in a song mode, after the part corresponding to the first music piece in the spliced music is played, the part corresponding to the second music piece in the spliced music can be seamlessly switched to play, and the phenomena of music pause and the like in the song cutting process are avoided, so that the music playing device has a more natural playing effect, the effect of enhancing or relieving emotion changes, the emotion changes of people on a vehicle can be approached, and a good emotion improving effect is facilitated.
Drawings
Fig. 1 is a schematic diagram of a system to which a vehicle-mounted music playing method may be applied in an embodiment;
fig. 2 is a schematic diagram illustrating steps of a vehicle-mounted music playing method according to an embodiment;
fig. 3 is a schematic diagram of a step of acquiring a second music piece according to second emotion information in the embodiment;
FIG. 4 is a schematic diagram of a form of spliced music in an embodiment;
FIG. 5 is a schematic diagram of another form of spliced music in an embodiment;
fig. 6 is a schematic diagram of a step of synchronously switching the playing of the first music piece to the playing of the spliced music according to the embodiment;
fig. 7 is a schematic diagram of an accelerated playback of spliced music in an embodiment.
Detailed Description
In this embodiment, the vehicle-mounted music playing method may be applied to the vehicle-mounted system shown in fig. 1. Referring to fig. 1, the in-vehicle system includes a control module, an emotion recognition module, a storage module, a communication module, a sensing module, and a music playing module. Wherein the control module is a device having data processing and control functions, for example, an ECU (electronic control unit) on board can be used as the control module; the emotion recognition module can recognize emotion types of the personnel on the vehicle by collecting facial expression, limb actions or breathing, heartbeat and other information of the personnel on the vehicle; the storage module can establish a song library, and music information is stored in the song library; the communication module can be connected with the Internet through a wireless communication protocol, accesses the music server through the Internet and downloads the needed music information; the sensing module comprises sensors arranged at the positions of an engine, a steering wheel, an accelerator pedal, a brake pedal, wheels and the like on the automobile, and driving parameters such as the rotation speed of the engine, the steering amplitude of the steering wheel, the current speed, the current acceleration and the like can be acquired through the sensors; the music playing module comprises devices such as a power amplifier, a loudspeaker and the like, can receive the music information output by the control module, and plays corresponding sound in the automobile cabin.
In this embodiment, referring to fig. 2, the vehicle-mounted music playing method includes the steps of:
s1, identifying first emotion information of personnel on a vehicle;
s2, acquiring a first music piece according to the first emotion information;
s3, playing the first music piece;
s4, detecting emotion changes of the personnel on the vehicle in the playing process of the first music piece, and identifying second emotion information of the personnel on the vehicle;
s5, acquiring a second music piece according to the second emotion information;
s6, splicing the first music piece and the second music piece to obtain spliced music;
s7, synchronously switching the playing of the first music piece to the playing of spliced music.
Steps S1-S7 are performed by the control module. When the control module performs some of the steps, it may call the emotion recognition module of fig. 1 or the like to acquire the required data or output the data to these components.
In this embodiment, steps S1 to S7 will be described with the driver as an example of the person on the vehicle.
In step S1, the control module triggers the emotion recognition module to work, and performs emotion recognition on the driver to obtain first emotion information. The first emotion information indicates the emotion type of the driver, such as calm, anger, low, happy, etc., when the control module performs step S1. The emotion recognition module sends the recognized first emotion information to the control module.
In step S2, the control module searches for corresponding music from a song library locally stored in the storage module shown in fig. 1 or from a cloud server through the communication module according to the first emotion information. The search conditions of the control module are: the music found matches the first mood information, i.e. can have an enhancing effect on the positive mood of the first mood information type the driver has, or can have a relieving effect on the negative mood of the first mood information type the driver has. For example, if the first mood information indicates a happy type of mood, finding music of the happy type can have an enhancing effect on this, and the music of the happy type is matched with the first mood information; if the first mood information indicates a low-lying type of mood, finding a light-fast type of music can have a relieving effect on this, and the light-fast type of music is matched with the first mood information.
In step S2, when the control module finds out the music information matching with the first emotion information from the local song library or cloud, the music information is read or downloaded to the control module to obtain the first music piece.
In step S3, the control module decodes the first music piece, thereby obtaining audio waveform information. The control module sends the audio waveform information to the music playing module to trigger the music playing module to play corresponding sound, so that the first music piece is played.
And when the step S3 is executed, the control module synchronously executes the step S4, and invokes the emotion recognition module to continuously recognize the emotion of the driver so as to obtain emotion information detected in real time. When the emotion information different from the first emotion information is detected, the emotion of the person on the vehicle is judged to be changed, and new emotion information is obtained, wherein the new emotion information is the second emotion information. The emotion recognition module sends the second emotion information to the control module.
When executing step S5, the same principle as that of step S2, the control module searches the music information matched with the second emotion information from the local song library or cloud, and reads or downloads the music information to the control module to obtain the second music piece.
In step S6, the control module performs a stitching process on the first music piece obtained in step S2 and the second music piece obtained in step S5 to obtain stitched music.
When executing step S7, the same principle as that of step S3, the control module stops playing the first music piece and starts playing the spliced music, thereby switching the first music piece to the spliced music.
By executing the steps S1-S7, when the first emotion information and the second emotion information, that is, the emotion of the person on the vehicle changes, can be detected, spliced music is played, wherein the spliced music is formed by splicing a first music piece and a second music piece which are respectively matched with the first emotion information and the second emotion information (wherein the spliced music is also sometimes called as 'mixed connection', 'mixed shearing', 'merging', 'synthesizing', and the like; in addition, the spliced music is played in a song mode, after the part corresponding to the first music piece in the spliced music is played, the part corresponding to the second music piece in the spliced music can be seamlessly switched to play, and the phenomena of music pause and the like in the song cutting process are avoided, so that the music playing device has a more natural playing effect, the effect of enhancing or relieving emotion changes, the emotion changes of people on a vehicle can be approached, and a good emotion improving effect is facilitated.
In this embodiment, when performing step S5, that is, the step of acquiring the second music piece according to the second emotion information, the following steps may be specifically performed:
s501, according to the second emotion information, searching a plurality of matched candidate music pieces from a music library;
s502, setting music splicing conditions;
s503, detecting whether the music splicing condition is met or not by the currently played part in the first music piece and each candidate music piece respectively;
s504, when the fact that the candidate music pieces meet the music splicing conditions is detected, the candidate music pieces meeting the music splicing conditions are used as second music pieces.
S505, when any candidate music piece is not detected to meet the music stitching condition, selecting one candidate music piece from all candidate music pieces as a second music piece.
In this embodiment, the principle of steps S501-S505 is shown in fig. 3.
Referring to fig. 3, in step S501, the searched plurality of candidate music pieces and the second emotion information, that is, by playing the candidate music pieces, can strengthen the positive emotion represented by the second emotion information of the person on the vehicle or alleviate the negative emotion represented by the second emotion information of the person on the vehicle.
In step S502, the control module may set a music stitching condition according to the rule of "music burn-in". For example, the music stitching condition may specifically include: and in the spliced two music fragments, the last part of the former music fragment is similar to the tune of the beginning part of the latter music fragment, the song style is similar, or the lyrics escort is similar, etc.
In step S503, the control module detects the currently played portion of the first music piece and each candidate music piece respectively. For example, for any one of the candidate pieces of music, it is detected whether or not the start portion of the candidate piece of music satisfies the "music splice condition of" tune similar, song style similar, lyrics rhyme, or the like "with the currently played portion (at the position played when step S5 is performed) in the first piece of music; if the candidate musical piece satisfies the music splicing condition, the candidate musical piece is determined as the second musical piece, otherwise, the candidate musical piece is not determined as the second musical piece, and the judgment of other candidate musical pieces is continued.
Steps S503-S504 are executed, and all the candidate music pieces are traversed, and the execution results of steps S503-S504 include: (1) Only one candidate music piece meeting the music splicing condition is detected; (2) Detecting a plurality of candidate music pieces meeting the music splicing conditions; (4) No candidate musical pieces capable of satisfying the music splicing condition are detected.
In the case of the execution result (2), one candidate musical piece satisfying the music splicing condition may be selected as the second musical piece by means of random selection or the like.
In the case of execution result (3), the process goes to step S505, where one candidate musical piece is selected as the second musical piece by means of random selection or the like.
By executing steps S501 to S505, the second music piece can be determined. Because the second music piece is searched according to the second emotion information, the second music piece can be matched with the second emotion information, and on the basis, the second music piece and the first music piece can also meet the music splicing condition.
In this embodiment, when step S6 is performed, that is, the step of splicing the first music piece and the second music piece to obtain spliced music, the following steps may be specifically performed:
s601, when the second music piece meets the music splicing condition, splicing the ending part of the first music piece with the beginning part of the second music piece to obtain spliced music;
s602, when the second music piece does not meet the music splicing condition, generating a transition music piece;
s603, splicing the tail part of the first music piece with the head part of the transition music piece, and splicing the tail part of the transition music piece with the head part of the second music piece to obtain spliced music.
If the second piece of music is obtained by performing step S504, referring to fig. 4, step S601 is performed to stitch the ending part of the first piece of music with the beginning part of the second piece of music to obtain stitched music. Under the condition that the second music piece and the first music piece meet the music splicing condition, the first music piece and the second music piece can be directly spliced together, and the splicing music has the natural transition effect of 'music string burning' when played.
If the second music piece is obtained by executing step S505, referring to fig. 5, steps S602-S603 are executed to stitch the first music piece, the transition music piece, and the second music piece together end to end in order, thereby obtaining stitched music. Under the condition that the second music piece and the first music piece do not meet the music splicing condition, the transition music piece which meets the music splicing condition respectively between the second music piece and the first music piece and between the second music piece and the first music piece is obtained, and the transition music piece is inserted between the first music piece and the second music piece, so that the influence of the condition that the second music piece and the first music piece do not meet the music splicing condition is relieved, and the natural transition effect of 'music string burning' is achieved when the spliced music is played.
In this embodiment, when step S602, that is, the step of generating the transition piece of music is performed, the following steps may be specifically performed:
s60201, acquiring first audio information from a first music piece;
s60202, acquiring second audio information from a second music piece;
s60203, acquiring information of the current vehicle exterior environment to obtain third audio information;
s60204, inputting the first audio information, the second audio information and the third audio information into an artificial intelligent model for processing; the artificial intelligent model has automatic composing performance;
s60205, obtaining an output result of the artificial intelligence model as a transition music piece.
The control module may run the artificial intelligence model locally or request the cloud-run artificial intelligence model to provide services through the communication module while performing steps S60201-S60205. The artificial intelligent model is trained and can automatically make a music according to the audio information. For example, using an artificial intelligence model based on time series processing, the artificial intelligence model may process the input audio information into a time series, the artificial intelligence model performs a time series prediction algorithm, predicts new audio information based on the existing time series, and the predicted new audio information together with the original audio information may be outputted as a new music piece obtained by automatic composition of the artificial intelligence model.
In step S60201, the control module performs time domain analysis, frequency domain analysis, and other processes on the first music piece, and obtains first audio information such as waveforms or frequency spectrums. Based on the same principle, in step S60202, the control module performs time domain analysis, frequency domain analysis, and other processes on the second music piece, to obtain second audio information such as waveforms or frequency spectrums.
In step S60203, information is collected from the current vehicle exterior environment to obtain third audio information. Specifically, the control module may invoke a sound sensor installed on the automobile to collect a tire noise, a wind noise, a side vehicle or a sound emitted by a pedestrian in an environment outside the automobile, so as to obtain third audio information. Or the control module can call an image sensor installed on the automobile, shoot the outside environment of the automobile, obtain a two-dimensional image, then perform dimension reduction processing on the two-dimensional image, and the obtained one-dimensional information can be expressed as third audio information.
In step S60204, under the condition that the artificial intelligent model is operated by the cloud, the control module uploads the first audio information, the second audio information and the third audio information to the server through the communication module, and the server inputs the first audio information, the second audio information and the third audio information to the artificial intelligent model for processing. The first audio information, the second audio information, and the third audio information may form a time series, and the artificial intelligence model predicts the time series to populate the predicted audio information between the first audio information and the second audio information, and between the second audio information and the third audio information.
In step S60205, the first audio information, the second audio information, the third audio information, and the padded predicted audio information constitute a transition piece of music.
In this embodiment, the principle of performing steps S60201-S60205 is that: the first audio information, the second audio information and the third audio information respectively determine key information of the beginning, the middle and the end of the last obtained transition music piece, and the complete transition music piece is obtained through the automatic composing function of the artificial intelligent model; the beginning of the transition music piece is determined by the first audio information, so that the natural transition effect of 'music string burning' is obtained after the transition music piece is spliced with the first music piece; the end of the transition music piece is determined by the second audio information, so that the natural transition effect of 'music string burning' is obtained after the transition music piece is spliced with the second music piece; the middle part of the transition music piece is determined by the third audio information, so that the artificial intelligent model is favorable for 'creating' according to the vehicle exterior environment, and the transition music piece content with the style matched with the current driving environment is obtained, thereby being favorable for the sound effect played by the transition music piece, having the characteristics matched with the current driving environment, and enhancing the driving pleasure.
In this embodiment, when step S7 is performed, that is, the step of synchronously switching the playing of the first music piece to the playing of the spliced music, the following steps may be specifically performed:
s701, acquiring a current playing position of a first music piece;
s702, determining an initial playing position in spliced music according to the current playing position;
s703, stopping playing the first music piece;
s704, starting from the initial playing position, playing spliced music.
The principle of steps S701-S704 is shown in fig. 6.
When steps S701-S702 are performed, the spliced music may be aligned with the beginning of the first music piece, and then the absolute position of the start play position in the time axis of the spliced music is the same as the absolute position of the current play position in the time axis of the first music piece.
When executing steps S703-S704, immediately starting from the start playing position after stopping playing the first music piece, playing the spliced music, so that the on-board personnel cannot perceive that the switching has been completed, thereby realizing a smooth playing effect.
In this embodiment, when step S7 is performed, that is, the step of synchronously switching the playing of the first music piece to the playing of the spliced music, the following steps may be further performed:
s705, detecting driving parameters of the automobile;
s706, determining an acceleration multiplying power according to driving parameters;
s707, determining a target splicing position;
s708, when the spliced music is played, the part from the initial playing position to the target spliced position in the spliced music is accelerated to play according to the acceleration multiplying power, and other parts in the spliced music are played at the original speed.
The principle of steps S705-S708 is shown in fig. 7.
When executing step S705, the control module may invoke the sensing module to detect and obtain driving parameters such as the engine speed, the steering amplitude of the steering wheel, the current vehicle speed, the current acceleration, and the like. The control module may select one of the driving parameters, or may select a vector composed of a plurality of driving parameters, and execute S706.
In step S706, taking the control module selecting the driving parameter "current vehicle speed" as an example, the control module may set an acceleration rate, and set the acceleration rate to be positively correlated with the driving parameter, that is, the larger the current vehicle speed is, the larger the acceleration rate is (the acceleration rate is constantly greater than 1).
In step S707, as shown in fig. 7, in the case where the spliced music is formed by splicing the first music piece, the second music piece, and the transition music piece, the splice position of the portion corresponding to the transition music piece and the portion corresponding to the second music piece is the target splice position. In the case where the piece of music is formed by stitching a first piece of music with a second piece of music, the stitching position of the portion corresponding to the first piece of music and the portion corresponding to the second piece of music is the target stitching position.
When step S708 is executed, referring to fig. 7, the portion of the spliced music from the start playing position to the target splicing position is accelerated to play according to the acceleration rate; specifically, the control module may obtain a preset playing rate of the portion, take a product of the preset playing rate and the acceleration rate as an actual playing rate, and play the portion according to the actual playing rate; and playing other parts in the spliced music, namely the parts from the target splicing position to the end, according to the preset playing rate of the parts.
In this embodiment, the principle of performing steps S705 to S708 is that: by accelerating the playing of the part from the initial playing position to the target splicing position in the spliced music, the corresponding part of the second music piece in the spliced music can be played in advance on the basis of realizing the 'serial burning' effect of natural transition, so that the new emotion requirement of the personnel on the vehicle can be met as soon as possible; in addition, the acceleration degree of the accelerated playing is related to the driving parameters of the automobile, and since the driving parameters of the automobile are related to the driving behaviors of the driver, and the driving behaviors of the driver are affected by the emotion of the driver, the latest emotion information of the driver, which is included in the driving parameters of the automobile, can be used as a control variable, for example, in the case that the emotion of the driver is more impatient, a larger speed or acceleration is often generated, and the steps S705-S708 are executed to play the second music piece as soon as possible through accelerating the part before the second music piece, so that the emotion relieving effect of the second music piece is facilitated to arrive as soon as possible, and the emotion relieving effect of the music is improved.
The same technical effects as those of the vehicle-mounted music playing method in the embodiment can be achieved by writing a computer program for executing the vehicle-mounted music playing method in the embodiment into a computer device or a storage medium, and executing the vehicle-mounted music playing method in the embodiment when the computer program is read out to run.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly or indirectly fixed or connected to the other feature. Further, the descriptions of the upper, lower, left, right, etc. used in this disclosure are merely with respect to the mutual positional relationship of the various components of this disclosure in the drawings. As used in this disclosure, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The term "and/or" as used in this embodiment includes any combination of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could also be termed a second element, and, similarly, a second element could also be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language (e.g., "such as") provided herein, is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be appreciated that embodiments of the invention may be implemented or realized by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer readable storage medium configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, in accordance with the methods and drawings described in the specific embodiments. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Furthermore, the operations of the processes described in the present embodiments may be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes (or variations and/or combinations thereof) described in this embodiment may be performed under control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications), by hardware, or combinations thereof, that collectively execute on one or more processors. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable computing platform, including, but not limited to, a personal computer, mini-computer, mainframe, workstation, network or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and so forth. Aspects of the invention may be implemented in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optical read and/or write storage medium, RAM, ROM, etc., such that it is readable by a programmable computer, which when read by a computer, is operable to configure and operate the computer to perform the processes described herein. Further, the machine readable code, or portions thereof, may be transmitted over a wired or wireless network. When such media includes instructions or programs that, in conjunction with a microprocessor or other data processor, implement the above steps, the invention of this embodiment includes these and other different types of non-transitory computer-readable storage media. The invention also includes the computer itself when programmed according to the methods and techniques of the invention.
The computer program can be applied to the input data to perform the functions of the present embodiment, thereby converting the input data to generate output data that is stored to the non-volatile memory. The output information may also be applied to one or more output devices such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including specific visual depictions of physical and tangible objects produced on a display.
The present invention is not limited to the above embodiments, but can be modified, equivalent, improved, etc. by the same means to achieve the technical effects of the present invention without departing from the spirit and principle of the present invention. Various modifications and variations are possible in the technical solution and/or in the embodiments within the scope of the invention.

Claims (10)

1. A vehicle-mounted music playing method, characterized in that the vehicle-mounted music playing method comprises:
identifying first emotion information of personnel on the vehicle;
acquiring a first music piece according to the first emotion information; the first music piece is matched with the first emotion information;
playing a first music piece;
detecting emotion change of the personnel on the vehicle in the playing process of the first music piece, and identifying second emotion information of the personnel on the vehicle;
acquiring a second music piece according to the second emotion information; the second music piece is matched with the second emotion information;
splicing the first music piece and the second music piece to obtain spliced music;
and synchronously switching the playing of the first music piece to the playing of the spliced music.
2. The method for playing vehicle-mounted music according to claim 1, wherein said obtaining a second piece of music based on the second emotion information comprises:
according to the second emotion information, a plurality of matched candidate music fragments are searched from a music library;
setting music splicing conditions;
detecting whether the music splicing condition is met or not by respectively combining the currently played part in the first music piece with each candidate music piece;
and when detecting that the candidate music piece meets the music splicing condition, taking the candidate music piece meeting the music splicing condition as the second music piece.
3. The method for playing vehicle-mounted music according to claim 2, wherein said obtaining a second piece of music based on the second emotion information, further comprises:
and when any candidate music piece is not detected to meet the music stitching condition, selecting one candidate music piece from all the candidate music pieces as the second music piece.
4. A vehicle-mounted music playing method according to claim 2 or 3, wherein the splicing the first music piece and the second music piece to obtain spliced music includes:
and when the second music piece meets the music splicing condition, splicing the ending part of the first music piece with the beginning part of the second music piece to obtain the spliced music.
5. A vehicle-mounted music playing method according to claim 2 or 3, wherein the splicing the first music piece and the second music piece to obtain spliced music includes:
when the second music piece does not meet the music splicing condition, generating a transition music piece;
splicing the ending part of the first music piece with the beginning part of the transition music piece, and splicing the ending part of the transition music piece with the beginning part of the second music piece to obtain the spliced music.
6. The method for playing back music on board of claim 5, wherein the generating the transition piece of music comprises:
acquiring first audio information from the first music piece;
acquiring second audio information from the second music piece;
acquiring information of the current vehicle exterior environment to obtain third audio information;
inputting the first audio information, the second audio information and the third audio information into an artificial intelligent model for processing; the artificial intelligent model has automatic composing performance;
and obtaining an output result of the artificial intelligence model to be used as the transition music piece.
7. A vehicle-mounted music playing method according to claim 2 or 3, wherein said switching from playing said first music piece to playing said spliced music synchronously includes:
acquiring the current playing position of the first music piece;
determining a starting playing position in the spliced music according to the current playing position;
stopping playing the first music piece;
and playing the spliced music from the initial playing position.
8. The method for playing vehicle-mounted music according to claim 7, wherein said switching from playing said first music piece to playing said spliced music synchronously, further comprises:
detecting driving parameters of an automobile;
determining an acceleration rate according to the driving parameters;
a determined target splicing position; the target splicing position is a splicing position of a part corresponding to the first music piece and a part corresponding to the second music piece in the spliced music, or a splicing position of a part corresponding to the transition music piece and a part corresponding to the second music piece;
and when the spliced music is played, performing accelerated playing on the part from the initial playing position to the target spliced position in the spliced music according to the acceleration multiplying power, and performing original speed playing on other parts in the spliced music.
9. A computer apparatus comprising a memory for storing at least one program and a processor for loading the at least one program to perform the vehicle-mounted music playing method of any one of claims 1 to 8.
10. A computer-readable storage medium in which a processor-executable program is stored, characterized in that the processor-executable program, when executed by a processor, is for performing the in-vehicle music playback method of any one of claims 1 to 8.
CN202311007124.8A 2023-08-10 2023-08-10 Vehicle-mounted music playing method, computer device and storage medium Pending CN117037858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311007124.8A CN117037858A (en) 2023-08-10 2023-08-10 Vehicle-mounted music playing method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311007124.8A CN117037858A (en) 2023-08-10 2023-08-10 Vehicle-mounted music playing method, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN117037858A true CN117037858A (en) 2023-11-10

Family

ID=88624010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311007124.8A Pending CN117037858A (en) 2023-08-10 2023-08-10 Vehicle-mounted music playing method, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN117037858A (en)

Similar Documents

Publication Publication Date Title
US10446150B2 (en) In-vehicle voice command recognition method and apparatus, and storage medium
US10872603B2 (en) Dialog device and dialog method
CN105976843A (en) In-vehicle music control method, device, and automobile
JP2017211703A (en) Drive evaluation device and drive evaluation program
JP2021124642A (en) Information processing device, vehicle, program, and information processing method
US11605369B2 (en) Audio translator
US20150047495A1 (en) Audio system for a motor vehicle
CN111400514A (en) Information recommendation method, device and system
KR20200083901A (en) Method, Device and Storage Medium for Evaluating Human Machine Interface of Take-over Request for Autonomous driving
CN117037858A (en) Vehicle-mounted music playing method, computer device and storage medium
CN116204726B (en) Data processing method, device and equipment based on multi-mode model
JP7331850B2 (en) Information processing device and information processing method
CN110297617B (en) Method and device for initiating active conversation
US11450209B2 (en) Vehicle and method for controlling thereof
JP2016126436A (en) Image recognition evaluation system and image recognition evaluation apparatus
CN115168642A (en) Vehicle-mounted music recommendation method, device, equipment, storage medium and vehicle
CN110775067B (en) Driving evaluation system, driving evaluation method, and computer storage medium
CN117037857A (en) Vehicle-mounted music playing method, computer device and storage medium
CN111382665B (en) Information processing apparatus and computer-readable storage medium
JP7176383B2 (en) Information processing device and information processing program
JP2009074395A (en) Drive force control device
JP6493199B2 (en) Vehicle status change system
CN111967380A (en) Content recommendation method and system
Mishra et al. Music tune generation based on facial emotion
CN111655547A (en) Configuration adjustment method and device, movable platform and 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