CN113177135A - Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment - Google Patents

Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment Download PDF

Info

Publication number
CN113177135A
CN113177135A CN202110486513.8A CN202110486513A CN113177135A CN 113177135 A CN113177135 A CN 113177135A CN 202110486513 A CN202110486513 A CN 202110486513A CN 113177135 A CN113177135 A CN 113177135A
Authority
CN
China
Prior art keywords
resource
target
audio
vehicle
additional
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
CN202110486513.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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer Technology 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to CN202110486513.8A priority Critical patent/CN113177135A/en
Publication of CN113177135A publication Critical patent/CN113177135A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/638Presentation of query results
    • G06F16/639Presentation of query results using playlists
    • 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/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • 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/16Sound input; Sound output
    • G06F3/167Audio in a user interface, e.g. using voice commands for navigating, audio feedback

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Fittings On The Vehicle Exterior For Carrying Loads, And Devices For Holding Or Mounting Articles (AREA)

Abstract

The invention discloses a method and a device for playing audio by vehicle-mounted equipment, a storage medium and electronic equipment. Wherein, the method comprises the following steps: acquiring initial resources of a target song; processing the initial resource into a target resource through a software development kit on the target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled; acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute an operation on a target resource; and responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, and synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource. The invention solves the technical problem that the audio playing mode of the vehicle-mounted equipment is single.

Description

Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment
Technical Field
The invention relates to the field of computers, in particular to a method and a device for playing audio by vehicle-mounted equipment, a storage medium and electronic equipment.
Background
In the prior art, the audio playing mode of the vehicle-mounted device is usually only to perform single reduction playing on the audio to be played, and no other associated operations are performed, so that the playing mode is single, the user feels fatigue, and the diversified requirements of the user cannot be met. Namely, the audio playing mode of the vehicle-mounted device in the prior art has a single technical problem.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for playing audio by vehicle-mounted equipment, a storage medium and electronic equipment, and at least solves the technical problem that the mode for playing audio by the vehicle-mounted equipment is single.
According to an aspect of the embodiment of the invention, a method for playing audio by vehicle-mounted equipment is provided, which comprises the following steps: acquiring initial resources of a target song; processing the initial resource into a target resource through a software development kit on target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled; acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute operation on the target resource; and responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, and synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for playing audio by a vehicle-mounted device, including: a processing unit, configured to process the initial resource into a target resource through a software development kit on a target vehicle-mounted device, where the target resource includes an audio resource of the target song and an additional resource, and the additional resource is a resource that is synchronously operated when the audio resource is controlled; a second obtaining unit, configured to obtain a target operation instruction, where the target operation instruction is used to instruct to perform an operation on the target resource; and the response unit is used for responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource and synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource.
As an optional solution, the response unit includes at least one of: the first control module is used for controlling the lighting equipment of the target vehicle-mounted equipment to execute light regulation and control operation according to the additional resources; the second control module is used for controlling the communication equipment of the target vehicle-mounted equipment to execute communication request operation according to the additional resources; and the third control module is used for controlling the display equipment of the target vehicle-mounted equipment to execute information display operation according to the additional resources.
As an optional solution, the first control module includes: a determining submodule, configured to determine a target execution manner of the lighting control operation according to the beat data when the additional resource includes the beat data, where the beat data is used to represent distribution information of audio data corresponding to the audio resource on each beat in a target time period corresponding to the audio resource; and the control sub-module is used for controlling the lighting equipment to execute the light regulation and control operation according to the target execution mode.
As an optional solution, the determining sub-module includes at least one of: the first determining subunit is configured to determine an execution duration of the lighting regulation operation according to a beat duration corresponding to the beat data; the second determining subunit is used for determining the execution intensity of the light regulation and control operation according to the beat intensity corresponding to the beat data; and the third determining subunit is used for determining the execution frequency of the light regulation and control operation according to the beat frequency corresponding to the beat data.
According to another aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, and a computer program is stored in the computer-readable storage medium, where the computer program is configured to execute the method for playing audio by the vehicle-mounted device when the computer program runs.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the method for playing audio by the vehicle-mounted device through the computer program.
In the embodiment of the invention, the initial resource of the target song is obtained; processing the initial resource into a target resource through a software development kit on target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled; acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute operation on the target resource; and responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource, and synchronously executing the additional operation associated with the target song besides the playing operation of the target song in the process of playing the target song through the vehicle-mounted equipment by using the mode of processing the initial resource into the target resource, thereby achieving the purpose of enriching the playing mode of the vehicle-mounted equipment on the audio, realizing the technical effect of improving the diversity of the audio played by the vehicle-mounted equipment, and further solving the technical problem that the audio playing mode of the vehicle-mounted equipment is single.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a schematic diagram of an application environment of an alternative method for playing audio by an on-board device according to an embodiment of the invention;
FIG. 2 is a schematic diagram illustrating a flow chart of an alternative method for playing audio by an onboard device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative method for playing audio by an onboard device according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an alternative method for playing audio by a vehicle-mounted device according to an embodiment of the invention;
FIG. 5 is a schematic diagram of an alternative method for playing audio by a vehicle-mounted device according to an embodiment of the invention;
FIG. 6 is a schematic diagram of an alternative method for playing audio by a vehicle-mounted device according to an embodiment of the invention;
FIG. 7 is a schematic diagram of an alternative method for playing audio by a vehicle-mounted device according to an embodiment of the invention;
FIG. 8 is a schematic diagram of an alternative apparatus for playing audio for a vehicle-mounted device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of an alternative apparatus for playing audio for a vehicle-mounted device according to an embodiment of the invention;
fig. 10 is a schematic structural diagram of an alternative electronic device according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an aspect of the embodiment of the present invention, a method for a vehicle-mounted device to play audio is provided, and optionally, as an optional implementation manner, the method for the vehicle-mounted device to play audio may be applied, but is not limited to, to an environment as shown in fig. 1. The system may include, but is not limited to, a user equipment 102, a network 110, and a server 112, wherein the user equipment 102 may include, but is not limited to, a display 108, a processor 106, and a memory 104.
The specific process comprises the following steps:
step S102, the user equipment 102 is used for obtaining initial resources of target songs;
step S104-S106, the user equipment 102 sends the initial resource to the server 112 through the network 110;
step S108, the server 112 processes the initial resource through the processing engine 116, so as to generate a target resource;
in steps S110 to S112, the server 112 transmits the target resource to the user equipment 102 through the network 110, stores the target resource in the memory 104 of the user equipment 102, and further displays the screen resource corresponding to the target resource on the display 108 through the processor 106 in the user equipment 102, controls the target in-vehicle device 1022 to perform a play operation on the audio resource, and synchronously controls the target in-vehicle device 1022 to perform an additional operation according to the additional resource, when the target operation instruction is detected on the user equipment 102.
In addition to the example shown in fig. 1, the above steps may be performed by the user equipment 102 independently, i.e., the steps of processing the initial resource are performed by the user equipment 102, thereby relieving the processing pressure of the server.
Optionally, as an optional implementation manner, as shown in fig. 2, the method for the vehicle-mounted device to play audio includes:
s202, acquiring initial resources of a target song;
s204, processing the initial resource into a target resource through a software development kit on the target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled;
s206, acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute operation on a target resource;
and S208, responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, and synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource.
Optionally, in this embodiment, the method for playing the audio by the vehicle-mounted device may be but is not limited to be applied to the vehicle-mounted device when playing the song, and synchronously control one or more vehicle-mounted devices to execute additional operations associated with the song being played, for example, a light in the vehicle-mounted device flashes along with a beat change of the song.
Optionally, in this embodiment, the initial resource of the target song may be, but is not limited to, a resource to be analyzed of the target vehicle-mounted device (target vehicle-mounted device) transmitted to the vehicle-mounted device through bluetooth communication by a mobile phone Application program (APP, for short, specifically, for example, a BLE/SPP communication protocol is used first, a new interactive bidirectional control protocol is encapsulated between the mobile phone APP and the vehicle-mounted device, and then, in a case that a play operation request for a certain song is triggered on the vehicle-mounted device side, the mobile phone APP side receives the play operation request through the interactive bidirectional control protocol, and provides the initial resource of the song for the vehicle-mounted device through the interactive bidirectional control protocol, so as to provide a timely music play experience for a user on the vehicle-mounted device side;
optionally, in this embodiment, the BLE communication protocol and the SPP communication protocol in the bluetooth BLE/SPP communication protocol may be, but are not limited to, used in various combinations, for example, the combination is determined according to a system type of a target terminal on a terminal side or a target vehicle-mounted device on a vehicle-mounted side, further for example, if the system type of the target terminal on the terminal side is Android system (Android), the SPP communication protocol may be, but is not limited to, selected, whereas if the system type of the target terminal on the terminal side is apple system (IOS), the BLE communication protocol may be, but is not limited to, selected, and its technical logic may be, but is not limited to IOS and Android) have different conditions for supporting the BLE communication protocol and the SPP communication protocol, and therefore, the BLE protocol is considered to be adopted; while the Android supports a BLE communication protocol and an SPP communication protocol, the support of the BLE communication protocol is not particularly good, the stability and the communication rate are slightly inferior to those of the SPP communication protocol, and then the communication modes used in various combination forms between the BLE communication protocol and the SPP communication protocol are used to enhance the compatibility and facilitate the development and implementation of products, so that under the interactive control protocol, data such as requests, instructions, resources and the like are corresponding to a specific certain data format, and the real-time bidirectional communication between the terminal side and the vehicle-mounted side is realized.
Optionally, in this embodiment, the initial resource of the target song may include, but is not limited to, at least one of the following: the system comprises lyric resources, audio resources, text resources, image resources, video resources, song list resources, audio beat resources, song type resources, song label resources and the like, wherein the audio beat resources can be but are not limited to a unit for measuring the rhythm of a target song, and in music, a series of brands with certain strength repeatedly appear at regular intervals, and can be understood as information resources of a fixed unit time value and strength rule; the song tag resource may be, but is not limited to, an operation tag previously allocated to a target song for a user, and the song tag resource may be, but is not limited to, to indicate that, when the target song is played, a tag operation corresponding to the tag is synchronously executed, for example, the target song is "ten years", and it is assumed that the user previously allocated a first love tag to the song "ten years", and the tag is preset to be associated with a communication address of the user a, and further, when the song "ten years" is indicated to be played, communication with the user a may be, but is not limited to, automatically requested, or prompt information may be generated to prompt the song "ten years" to be allocated a first love tag, and the first love tag is associated with the user a.
Optionally, in this embodiment, the target vehicle-mounted device may be, but is not limited to, a target vehicle machine, and the target vehicle machine may be, but is not limited to, an additional device configured with at least one of the following: display, processor, memory, network card, audio, etc. The target vehicle-mounted device may also be, but is not limited to, a functional device installed in or on the target vehicle, such as a navigation device, a personal computer, etc., and is not limited herein. Optionally, in this embodiment, the operation performed on the target resource may include, but is not limited to, at least one of the following: the method comprises the following steps of resource playing operation, resource switching operation, resource fast-forward operation, resource pausing operation, resource slow-releasing operation, resource backing operation, additional resource display operation, resource skipping operation, resource mode selection operation and the like;
optionally, in this embodiment, the target vehicle-mounted device may be, but is not limited to, a single vehicle-mounted device, and may also be, but is not limited to, a vehicle-mounted device cluster that is understood as being associated or in an interactive relationship with each other, where the number of the target vehicle-mounted devices is not limited herein.
Optionally, in this embodiment, the control-target in-vehicle device performs the playing operation on the audio resource, and the additional operation performed by the control-target in-vehicle device according to the additional resource may be, but is not limited to, being performed synchronously with the additional operation performed by the control-target in-vehicle device, or it may be understood that there is an association relationship between the playing operation and the additional operation, for example, as shown in fig. 3, when the target in-vehicle device 304 acquires the initial resource 302, an audio and video device (not shown in the figure) of the target in-vehicle device 304 plays the audio resource corresponding to the initial resource 302 to perform the playing operation, and an in-vehicle device 306 (such as a vehicle lamp) of the target in-vehicle device 304 performs the additional operation on the additional resource corresponding to the initial resource 302.
It should be noted that, by using the way of processing the initial resource as the target resource, in the process of playing the target song through the vehicle-mounted device, in addition to implementing the playing operation on the target song, the additional operation associated with the target song is also synchronously executed, thereby enriching the audio playing way of the vehicle-mounted device.
For further example, optionally as shown in fig. 4, in a case that the in-vehicle device obtains the initial resource of the target song 404, the initial resource is processed into the target resource through a software development kit on the target in-vehicle device; further assuming that the target operation instruction is obtained, responding to the target operation instruction, controlling the in-vehicle device 402 of the target in-vehicle device to perform playing operation on the audio resource, and synchronously controlling the in-vehicle device 406 of the target in-vehicle device to perform additional operation according to the additional resource, specifically, assuming that the target song 404 is a song "strong wind blowing", during playing of the song "strong wind blowing" through the in-vehicle device 402, synchronously controlling the in-vehicle device 406 (such as an air conditioner) to start a blowing mode, so as to create a scene mode associated with the song "strong wind blowing".
According to the embodiment provided by the application, the initial resource of the target song is obtained; processing the initial resource into a target resource through a software development kit on the target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled; acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute an operation on a target resource; and responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource, and synchronously executing the additional operation associated with the target song besides the playing operation of the target song in the process of playing the target song through the vehicle-mounted equipment by utilizing the mode of processing the initial resource into the target resource, thereby achieving the purpose of enriching the playing mode of the vehicle-mounted equipment on the audio, and further achieving the technical effect of improving the diversity of the audio played by the vehicle-mounted equipment.
As an optional solution, processing the initial resource into the target resource through a software development kit on the target vehicle-mounted device includes:
and analyzing the initial resource through a software development kit to obtain the target resource in a target data format, wherein the target data format is a data format recognizable by the target vehicle-mounted equipment.
Optionally, in this embodiment, before obtaining the initial resource of the target song, a Software Development Kit (SDK) is encapsulated into a target tool data packet according to a bluetooth communication protocol indicated by the bluetooth protocol identifier, and a service is provided for both the transceiver (the target terminal and the target vehicle-mounted device) by using the target tool data packet. And the SDK can automatically complete the filling of the check data and the sending of the resource packet for the resource type and the resource content submitted by the sender. And on the receiving side, after receiving the data packet, the SDK can automatically complete resource verification, and the original resource content and the resource type are taken out and submitted to a receiving party. Therefore, after the sender and the receiver integrate the SDK, the details of resource sending and verification are not concerned, and the product development efficiency is improved.
Optionally, in this embodiment, before obtaining the initial resource of the target song, a sender of the initial resource is required to package and process the initial resource into a bluetooth protocol corresponding to the target vehicle-mounted device, and optionally but not limited to compress the initial resource into a small data amount resource beneficial to transmission, where the compression may but not limited to reduce the data amount to reduce the storage space and improve the processing efficiency of the data to be processed in transmission and storage on the premise of not losing useful information of the data to be processed, or reorganize the data to be processed according to a certain algorithm to reduce redundancy of the data and a technical method of the storage space, such as lossy compression and lossless compression; in particular, in computer science and information theory, data compression or source coding is the process of representing information in fewer data bits (or other information-related elements) than uncoded according to a particular coding scheme.
It should be noted that the initial resource is analyzed through the software development kit, so as to analyze the initial resource that cannot be directly identified or played into the target resource that can be identified or played by the target vehicle-mounted device.
According to the embodiment provided by the application, the initial resource is analyzed and processed through the software development kit so as to obtain the target resource in the target data format, wherein the target data format is a data format recognizable by the target vehicle-mounted equipment, the purpose is achieved, and the effect is achieved.
As an optional scheme, parsing the initial resource through a software development kit to obtain a target resource in a target data format includes:
s1, analyzing the initial resource through the software development kit to obtain the audio resource in the target data format;
s2, performing audio identification processing on the audio data corresponding to the audio resource to obtain reference data, wherein the reference data is used for representing the associated information of the audio data;
and S3, performing integration processing on the reference data to obtain additional resources.
Optionally, in this embodiment, the audio Recognition process may include, but is not limited to, Speech Recognition (ASR), where the Speech Recognition is to convert words in Speech into computer-readable input, such as keys, binary codes, or character arrangements; further, the audio recognition process may also include, but is not limited to, beat recognition, in which beats in audio data are converted into computer-readable information data.
It should be noted that the initial resource may, but is not limited to, carry an audio resource, but does not necessarily carry an additional resource, or the audio resource may, but is not limited to, be directly obtained by analyzing the initial resource, and the additional resource may, but is not limited to, be indirectly obtained by performing audio identification processing on the obtained audio resource, so that the amount of data that the initial resource needs to carry is reduced, and the transmission efficiency of the initial resource is improved.
For further example, optionally, as shown in fig. 5, when the target in-vehicle device 504 receives a data packet loaded with the initial resource 502, the initial resource 502 is firstly parsed by a software development kit of the target in-vehicle device 504 to obtain an audio resource 506; then, the audio resource 506 is subjected to audio recognition processing to obtain reference data 508 (shown in the figure as fluctuation information that can be understood as audio), and then an additional resource 510 is obtained based on the reference data 508; based on this, in the case where the target operation instruction is acquired, the control-target in-vehicle device 504 performs the play operation on the audio resource 506, and the control-target in-vehicle device 504 synchronously performs the additional operation according to the additional resource 510.
According to the embodiment provided by the application, the initial resource is analyzed and processed through the software development kit, so that the audio resource in the target data format is obtained; performing audio identification processing on audio data corresponding to the audio resource to obtain reference data, wherein the reference data is used for representing associated information of the audio data; the reference data is integrated to obtain additional resources, so that the purpose of reducing the data quantity carried by the initial resources is achieved, and the effect of improving the transmission efficiency of the initial resources is achieved.
As an optional scheme, parsing the initial resource through a software development kit to obtain a target resource in a target data format includes:
and analyzing the initial resource through a software development kit to obtain the audio resource in the target data format and the additional resource in the target data format.
It should be noted that the initial resource may, but is not limited to, carry an audio resource and an additional resource, and further, when the target vehicle-mounted device receives the initial resource, the initial resource may be analyzed to directly obtain the audio resource and the additional resource.
By further example, optionally based on fig. 5, continuing with fig. 6 for example, in the case that the target in-vehicle device 504 receives a data packet loaded with the initial resource 502, the initial resource 502 is parsed by a software development kit of the target in-vehicle device 504 to obtain an audio resource 506 and an additional resource 510, respectively; based on this, in the case where the target operation instruction is acquired, the control-target in-vehicle device 504 performs the play operation on the audio resource 506, and the control-target in-vehicle device 504 synchronously performs the additional operation according to the additional resource 510.
According to the embodiment provided by the application, the initial resource is analyzed and processed through the software development kit so as to obtain the audio resource in the target data format and the additional resource in the target data format, the purpose of rapidly playing the audio through the vehicle-mounted equipment is achieved, and the effect of improving the execution efficiency of the vehicle-mounted equipment for playing the audio is achieved.
As an optional solution, processing the initial resource into the target resource through a software development kit on the target vehicle-mounted device includes:
s1, verifying the communication protocol corresponding to the initial resource through the software development kit to obtain a verification result, wherein the verification result is used for indicating whether the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted device;
and S2, processing the initial resource as the target resource when the verification result indicates that the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted device.
Optionally, in this embodiment, the bluetooth communication protocol indicated by the bluetooth protocol identifier requires that each time the resource is transmitted, the transmitted resource needs to be encoded and arranged according to an agreed format, and a resource type identifier is filled in (for example, a specific type of an additional display resource, for example, a song, the additional display resource may be subdivided into at least one of a lyric type, a cover page, a type playlist type, and the like) and a corresponding resource content, and extra check data for checking is filled in a prescribed position according to an agreed check mode, so as to form a complete resource packet (initial resource);
and then after receiving the resource packet, the receiver (target vehicle-mounted device) verifies the resource packet according to the protocol convention (for example, verifies the resource length and data format in the resource packet), and when determining that the resource packet meets the verification convention of the protocol and the resource is the correct resource, obtains the resource content and the resource type sent by the sender. And sending the resource packet with a specific format to inform the sender that the resource is received. If the verification fails, the receiver can send a resource packet with a specific format to inform the sender of receiving errors.
It should be noted that the initial resource may be transmitted in the form of a data packet or a resource packet, such as a data packet 702 shown in fig. 7, where data corresponding to the initial resource is packaged in a corresponding data format line and then transmitted, specifically, the data packet 702 includes a frame header, a data length, a data type (which may be understood as a resource type identifier), a data body (which may be understood as resource content of the audio resource and/or the additional resource), verification data (for a subsequent verification operation), a frame end, and the like.
According to the embodiment provided by the application, the communication protocol corresponding to the initial resource is verified through the software development kit to obtain a verification result, wherein the verification result is used for indicating whether the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted device; and under the condition that the verification result indicates that the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted equipment, the initial resource is processed as the target resource, so that the purpose of ensuring the received initial resource as a safe resource is achieved, and the effect of improving the use safety of the initial resource is realized.
As an alternative, the control-target in-vehicle device performs an additional operation according to the additional resource, including at least one of:
s1, controlling the lighting equipment of the target vehicle-mounted equipment to execute light regulation and control operation according to the additional resources;
s2, controlling the communication equipment of the target vehicle-mounted equipment to execute the communication request operation according to the additional resource;
s3, the display device of the control-target in-vehicle device performs the information presentation operation according to the additional resource.
Optionally, in this embodiment, the lighting device of the control target vehicle-mounted device may perform the light regulation and control operation according to the additional resource, but is not limited to that shown in fig. 3, the vehicle-mounted device 306 may be, but is not limited to, a lighting device, and further may control the vehicle-mounted device 306 to perform the light regulation and control operation according to the additional resource, for example, in the process of playing a song with a violent tempo, the vehicle-mounted device 306 is controlled to perform lighting flicker with a higher frequency, and the like; in addition, the lighting equipment can also be but not limited to be understood as the lighting equipment configured in the vehicle-mounted device, so that a user can listen to the song and also can see the lighting effect corresponding to the song, and the user experience of the vehicle-mounted device user is improved.
Optionally, in this embodiment, the communication device of the control target vehicle-mounted device executing the communication request operation according to the additional resource may be, but is not limited to be, understood to request the communication object associated with a specific song to request communication when the specific song is played.
Optionally, in this embodiment, the controlling of the display device of the target vehicle-mounted device to perform the information displaying operation according to the additional resource may be, but is not limited to be, understood that when the target song is played, a corresponding display screen, such as a music short corresponding to the target song, or video or image data of an association relationship established in advance by the user, may be displayed.
By the embodiment provided by the application, the lighting equipment of the target vehicle-mounted equipment is controlled to execute the light regulation and control operation according to the additional resources; controlling the communication equipment of the target vehicle-mounted equipment to execute communication request operation according to the additional resources; and the display equipment of the target vehicle-mounted equipment is controlled to execute information display operation according to the additional resources, so that the effect of improving the diversity of audio playing modes of the vehicle-mounted equipment is realized.
As an alternative, the controlling the lighting device of the target in-vehicle device to perform the light regulation operation according to the additional resource includes:
s1, determining a target execution mode of the light regulation operation according to the beat data under the condition that the additional resources comprise the beat data, wherein the beat data are used for expressing the distribution information of the audio data corresponding to the audio resources on each beat in the target time period corresponding to the audio resources;
and S2, controlling the lighting equipment to execute the light regulation and control operation according to the target execution mode.
Alternatively, in the present embodiment, the tempo data may be understood as, but not limited to, note lengths and distribution information of the hard beats and the weak beats in the audio resource. Such as 1/4, 2/4, 3/4, 4/4, 3/8, 6/8, 7/8, 9/8, etc., the length of each bar may be, but is not limited to, fixed, and the target song may be, but is not limited to, a combination of several tempos according to some distribution information.
It should be noted that the tempo data may be understood as tempo information representing the target song, and the tempo information is a key influencing the listening sensation of the user, and in order to expand the key, the tempo data is combined with the lighting data of the light, and the sensory experience of the user on the target song is improved by combining the viewing sensation and the listening sensation.
For further example, it is optionally assumed that, at the first time, when the rhythm data corresponding to the target song is a snapshot, the lighting device is synchronously controlled to execute a highlight adjusting operation; on the contrary, if the rhythm data corresponding to the target song is a weak beat at the second moment, the lighting device is synchronously controlled to execute the weak light adjustment operation.
According to the embodiment provided by the application, under the condition that the additional resources comprise beat data, determining the target execution mode of the light regulation operation according to the beat data, wherein the beat data is used for representing the distribution information of the audio data corresponding to the audio resources on each beat in the target time period corresponding to the audio resources; the lighting equipment is controlled to execute the light regulation and control operation according to the target execution mode, the purpose of combining the impression and the hearing of the user on the target song is achieved, and the effect of improving the user experience of the vehicle-mounted equipment user is achieved.
As an optional scheme, determining a target execution mode of the light regulation operation according to the beat data includes at least one of:
s1, determining the execution duration of the light regulation operation according to the beat duration corresponding to the beat data;
s2, determining the execution intensity of the light regulation and control operation according to the beat intensity corresponding to the beat data;
and S3, determining the execution frequency of the light regulation operation according to the beat frequency corresponding to the beat data.
Optionally, in this embodiment, the beat duration and the execution duration, the beat strength and the execution strength, and the beat frequency and the execution frequency all have positive correlations. Optionally, in order to synchronize the light adjusting operation with the playing operation of the target song, the beat duration and the execution duration, the beat intensity and the execution intensity, and the beat frequency and the execution frequency may be set to be in proportion.
For further illustration, optionally assuming that the beat time duration and the playing time duration of the target song are both 3 minutes, the execution time duration of the lighting device may be set to 3 minutes, but not limited thereto; further determining the execution intensity of the lighting equipment according to the beat intensity of the target song within the 3 minutes, and synchronously operating the lighting equipment according to the execution intensity; similarly, within the above 3 minutes, the execution frequency of the lighting apparatus is determined according to the beat frequency of the target song, and the lighting apparatus is operated synchronously according to the execution frequency.
According to the embodiment provided by the application, the execution duration of the light regulation and control operation is determined according to the beat duration corresponding to the beat data; determining the execution intensity of the light regulation and control operation according to the beat intensity corresponding to the beat data; the execution frequency of the light regulation and control operation is determined according to the beat frequency corresponding to the beat data, the purpose of improving the fitting degree of the lighting equipment and the target song is achieved, and the effect of improving the viewing/listening experience of the vehicle-mounted equipment user is achieved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
According to another aspect of the embodiment of the invention, a device for playing the audio by the vehicle-mounted equipment is further provided, wherein the device is used for implementing the method for playing the audio by the vehicle-mounted equipment. As shown in fig. 8, the apparatus includes:
a first obtaining unit 802, configured to obtain an initial resource of a target song;
the processing unit 804 is configured to process the initial resource into a target resource through a software development kit on the target vehicle-mounted device, where the target resource includes an audio resource of the target song and an additional resource, and the additional resource is a resource that is synchronously operated when the audio resource is controlled;
a second obtaining unit 806, configured to obtain a target operation instruction, where the target operation instruction is used to instruct to perform an operation on a target resource;
and the response unit 808 is configured to respond to the target operation instruction, control the target vehicle-mounted device to perform a playing operation on the audio resource, and synchronously control the target vehicle-mounted device to perform an additional operation according to the additional resource.
Optionally, in this embodiment, the apparatus for playing audio by a vehicle-mounted device may be but is not limited to be applied to the vehicle-mounted device to play a song, and synchronously control one or more vehicle-mounted devices to perform additional operations related to the song being played, for example, a light in the vehicle-mounted device flashes along with a beat change of the song, and the apparatus for playing audio by the vehicle-mounted device improves a sensory feeling of a vehicle-mounted device user on the whole song in a diverse song playing manner, thereby improving user experience of the vehicle-mounted device user.
Optionally, in this embodiment, the initial resource of the target song may be, but is not limited to, a resource to be analyzed that is transmitted to the car machine (target car-mounted device) through bluetooth communication by a mobile phone Application program (APP), specifically, for example, a BLE/SPP communication protocol is used first, a new interactive bidirectional control protocol is encapsulated between the mobile phone APP and the car machine, and then, when the car machine side triggers a play operation request for a certain song, the mobile phone APP side receives the play operation request through the interactive bidirectional control protocol, and provides the initial resource of the song for the car machine through the interactive bidirectional control protocol, so as to provide a timely music play experience for a user on the car machine side.
Optionally, in this embodiment, the BLE communication protocol and the SPP communication protocol in the bluetooth BLE/SPP communication protocol may be, but are not limited to, used in various combinations, for example, the combination is determined according to a system type of a target terminal on a terminal side or a target vehicle-mounted device on a vehicle-mounted side, further for example, if the system type of the target terminal on the terminal side is Android system (Android), the SPP communication protocol may be, but is not limited to, selected, whereas if the system type of the target terminal on the terminal side is apple system (IOS), the BLE communication protocol may be, but is not limited to, selected, and its technical logic may be, but is not limited to IOS and Android) have different conditions for supporting the BLE communication protocol and the SPP communication protocol, and therefore, the BLE protocol is considered to be adopted; while the Android supports a BLE communication protocol and an SPP communication protocol, the support of the BLE communication protocol is not particularly good, the stability and the communication rate are slightly inferior to those of the SPP communication protocol, and then the communication modes used in various combination forms between the BLE communication protocol and the SPP communication protocol are used to enhance the compatibility and facilitate the development and implementation of products, so that under the interactive control protocol, data such as requests, instructions, resources and the like are corresponding to a specific certain data format, and the real-time bidirectional communication between the terminal side and the vehicle-mounted side is realized.
Optionally, in this embodiment, the initial resource of the target song may include, but is not limited to, at least one of the following: the system comprises lyric resources, audio resources, text resources, image resources, video resources, song list resources, audio beat resources, song type resources, song label resources and the like, wherein the audio beat resources can be but are not limited to a unit for measuring the rhythm of a target song, and in music, a series of brands with certain strength repeatedly appear at regular intervals, and can be understood as information resources of a fixed unit time value and strength rule; the song tag resource may be, but is not limited to, an operation tag previously allocated to a target song for a user, and the song tag resource may be, but is not limited to, to indicate that, when the target song is played, a tag operation corresponding to the tag is synchronously executed, for example, the target song is "ten years", and it is assumed that the user previously allocated a first love tag to the song "ten years", and the tag is preset to be associated with a communication address of the user a, and further, when the song "ten years" is indicated to be played, communication with the user a may be, but is not limited to, automatically requested, or prompt information may be generated to prompt the song "ten years" to be allocated a first love tag, and the first love tag is associated with the user a.
Optionally, in this embodiment, the target vehicle-mounted device may be, but is not limited to, a target vehicle machine, and the target vehicle machine may be, but is not limited to, an additional device configured with at least one of the following: display, processor, memory, network card, audio, etc. The target vehicle-mounted device may also be, but is not limited to, a functional device installed in or on the target vehicle, such as a navigation device, a personal computer, etc., and is not limited herein. Optionally, in this embodiment, the operation performed on the target resource may include, but is not limited to, at least one of the following: the method comprises the following steps of resource playing operation, resource switching operation, resource fast-forward operation, resource pausing operation, resource slow-releasing operation, resource backing operation, additional resource display operation, resource skipping operation, resource mode selection operation and the like;
optionally, in this embodiment, the target vehicle-mounted device may be, but is not limited to, a single vehicle-mounted device, and may also be, but is not limited to, a vehicle-mounted device cluster that is understood as being associated or in an interactive relationship with each other, where the number of the target vehicle-mounted devices is not limited herein.
It should be noted that, by using the way of processing the initial resource as the target resource, in the process of playing the target song through the vehicle-mounted device, in addition to implementing the playing operation on the target song, the additional operation associated with the target song is also synchronously executed, thereby enriching the audio playing way of the vehicle-mounted device.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
According to the embodiment provided by the application, the initial resource of the target song is obtained; processing the initial resource into a target resource through a software development kit on the target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled; acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute an operation on a target resource; and responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource, and synchronously executing the additional operation associated with the target song besides the playing operation of the target song in the process of playing the target song through the vehicle-mounted equipment by utilizing the mode of processing the initial resource into the target resource, thereby achieving the purpose of enriching the playing mode of the vehicle-mounted equipment on the audio, and further achieving the technical effect of improving the diversity of the audio played by the vehicle-mounted equipment.
As an alternative, as shown in fig. 9, the processing unit 804 includes:
the first processing module 902 is configured to analyze the initial resource through a software development kit to obtain a target resource in a target data format, where the target data format is a data format recognizable by the target vehicle-mounted device.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
As an optional solution, the first processing module 902 includes:
the first processing submodule is used for analyzing and processing the initial resource through a software development toolkit so as to obtain the audio resource in the target data format;
the second processing submodule is used for carrying out audio identification processing on the audio data corresponding to the audio resource so as to obtain reference data, wherein the reference data is used for representing the associated information of the audio data;
and the third processing submodule is used for carrying out integration processing on the reference data to obtain additional resources.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
As an optional solution, the first processing module 902 includes:
and the fourth processing submodule is used for analyzing the initial resource through the software development kit so as to obtain the audio resource in the target data format and the additional resource in the target data format.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
As an optional solution, the processing unit 804 includes:
the verification module is used for verifying the communication protocol corresponding to the initial resource through the software development kit to obtain a verification result, wherein the verification result is used for indicating whether the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted equipment;
and the second processing module is used for processing the initial resource into the target resource under the condition that the verification result indicates that the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted equipment.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
As an optional solution, the response unit 808 includes at least one of the following:
the first control module is used for controlling the lighting equipment of the target vehicle-mounted equipment to execute light regulation and control operation according to the additional resources;
the second control module is used for controlling the communication equipment of the target vehicle-mounted equipment to execute communication request operation according to the additional resources;
and the third control module is used for controlling the display equipment of the target vehicle-mounted equipment to execute information display operation according to the additional resources.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
As an alternative, the first control module includes:
the determining submodule is used for determining a target execution mode of light regulation and control operation according to the beat data under the condition that the additional resources comprise the beat data, wherein the beat data is used for expressing the distribution information of the audio data corresponding to the audio resources on each beat in the target time period corresponding to the audio resources;
and the control sub-module is used for controlling the lighting equipment to execute the light regulation and control operation according to the target execution mode.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
As an alternative, the determining submodule includes at least one of:
the first determining subunit is used for determining the execution duration of the light regulation and control operation according to the beat duration corresponding to the beat data;
the second determining subunit is used for determining the execution intensity of the light regulation and control operation according to the beat intensity corresponding to the beat data;
and the third determining subunit is used for determining the execution frequency of the light regulation and control operation according to the beat frequency corresponding to the beat data.
For a specific embodiment, reference may be made to the example shown in the method for playing audio by the vehicle-mounted device, and details are not described herein in this example.
According to still another aspect of the embodiment of the present invention, there is further provided an electronic device for implementing the method for playing audio by an in-vehicle device, as shown in fig. 10, the electronic device includes a memory 1002 and a processor 1004, the memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any one of the method embodiments through the computer program.
Optionally, in this embodiment, the electronic device may be located in at least one network device of a plurality of network devices of a computer network.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, acquiring initial resources of the target song;
s2, processing the initial resource into a target resource through a software development kit on the target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled;
s3, acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute operation on a target resource;
and S4, responding to the target operation instruction, controlling the target vehicle-mounted device to perform playing operation on the audio resource, and synchronously controlling the target vehicle-mounted device to perform additional operation according to the additional resource.
Alternatively, it can be understood by those skilled in the art that the structure shown in fig. 10 is only an illustration, and the electronic device may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, and a Mobile Internet Device (MID), a PAD, and the like. Fig. 10 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, etc.) than shown in FIG. 10, or have a different configuration than shown in FIG. 10.
The memory 1002 may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for playing audio by an in-vehicle device in the embodiment of the present invention, and the processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, implements the method for playing audio by an in-vehicle device described above. The memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1002 may further include memory located remotely from the processor 1004, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The memory 1002 may be used to store information such as an initial resource, a target resource, and a target operation instruction. As an example, as shown in fig. 10, the memory 1002 may include, but is not limited to, a first obtaining unit 802, a processing unit 804, a second obtaining unit 806, and a response unit 808 of the apparatus for playing audio by the vehicle-mounted device. In addition, the device may further include, but is not limited to, other module units in the apparatus for playing audio by the vehicle-mounted device, which is not described in this example again.
Optionally, the above-mentioned transmission device 1006 is used for receiving or sending data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices so as to communicate with the internet or a local area Network. In one example, the transmission device 1006 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In addition, the electronic device further includes: a display 1008 for displaying the information such as the initial resource, the target resource, and the target operation instruction; and a connection bus 1010 for connecting the respective module parts in the above-described electronic apparatus.
Alternatively, in the present embodiment, the above-mentioned computer-readable storage medium may be configured to store a computer program for executing the steps of:
s1, acquiring initial resources of the target song;
s2, processing the initial resource into a target resource through a software development kit on the target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled;
s3, acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute operation on a target resource;
and S4, responding to the target operation instruction, controlling the target vehicle-mounted device to perform playing operation on the audio resource, and synchronously controlling the target vehicle-mounted device to perform additional operation according to the additional resource.
Alternatively, in this embodiment, a person skilled in the art may understand that all or part of the steps in the methods of the foregoing embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (15)

1. A method for playing audio by vehicle-mounted equipment is characterized by comprising the following steps:
acquiring initial resources of a target song;
processing the initial resource into a target resource through a software development kit on target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled;
acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute an operation on the target resource;
and responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource, and synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource.
2. The method of claim 1, wherein processing the initial resource into a target resource through a software development kit on a target in-vehicle device comprises:
and analyzing the initial resource through the software development kit to obtain the target resource in a target data format, wherein the target data format is a data format recognizable by the target vehicle-mounted equipment.
3. The method of claim 2, wherein parsing the initial resource through the software development kit to obtain the target resource in a target data format comprises:
analyzing the initial resource through the software development kit to obtain the audio resource in the target data format;
performing audio identification processing on audio data corresponding to the audio resource to obtain reference data, wherein the reference data is used for representing associated information of the audio data;
and performing integration processing on the reference data to obtain the additional resource.
4. The method of claim 2, wherein parsing the initial resource through the software development kit to obtain the target resource in a target data format comprises:
and analyzing the initial resource through the software development kit to obtain the audio resource in the target data format and the additional resource in the target data format.
5. The method of any one of claims 1 to 4, wherein the processing the initial resource into a target resource by a software development kit on a target in-vehicle device comprises:
verifying the communication protocol corresponding to the initial resource through the software development kit to obtain a verification result, wherein the verification result is used for indicating whether the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted device;
and processing the initial resource into the target resource under the condition that the verification result indicates that the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted equipment.
6. The method of any of claims 1-4, wherein the controlling the target in-vehicle device to perform additional operations in accordance with the additional resources comprises at least one of:
controlling lighting equipment of the target vehicle-mounted equipment to execute light regulation and control operation according to the additional resources;
controlling the communication equipment of the target vehicle-mounted equipment to execute communication request operation according to the additional resources;
and controlling the display equipment of the target vehicle-mounted equipment to execute information display operation according to the additional resources.
7. The method of claim 6, wherein the controlling the lighting device of the target vehicle-mounted device to perform a light regulation operation according to the additional resource comprises:
determining a target execution mode of the light regulation operation according to the beat data under the condition that the additional resources comprise beat data, wherein the beat data is used for representing distribution information of audio data corresponding to the audio resources on each beat in a target time period corresponding to the audio resources;
and controlling the lighting equipment to execute the light regulation and control operation according to the target execution mode.
8. The method of claim 7, wherein said determining a target manner of execution of said light management operation according to said tempo data comprises at least one of:
determining the execution time length of the light regulation operation according to the beat time length corresponding to the beat data;
determining the execution intensity of the light regulation and control operation according to the beat intensity corresponding to the beat data;
and determining the execution frequency of the light regulation and control operation according to the beat frequency corresponding to the beat data.
9. An apparatus for playing audio by a vehicle-mounted device, comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring initial resources of a target song;
the processing unit is used for processing the initial resource into a target resource through a software development kit on target vehicle-mounted equipment, wherein the target resource comprises an audio resource of the target song and an additional resource, and the additional resource is a resource which is synchronously operated when the audio resource is controlled;
the second acquisition unit is used for acquiring a target operation instruction, wherein the target operation instruction is used for indicating to execute operation on the target resource;
and the response unit is used for responding to the target operation instruction, controlling the target vehicle-mounted equipment to execute playing operation on the audio resource and synchronously controlling the target vehicle-mounted equipment to execute additional operation according to the additional resource.
10. The apparatus of claim 9, wherein the processing unit comprises:
and the first processing module is used for analyzing and processing the initial resource through the software development kit to obtain the target resource in a target data format, wherein the target data format is a data format recognizable by the target vehicle-mounted equipment.
11. The apparatus of claim 10, wherein the first processing module comprises:
the first processing submodule is used for analyzing and processing the initial resource through the software development kit so as to obtain the audio resource in the target data format;
the second processing submodule is used for performing audio identification processing on audio data corresponding to the audio resource to obtain reference data, wherein the reference data is used for representing the associated information of the audio data;
and the third processing submodule is used for carrying out integration processing on the reference data to obtain the additional resource.
12. The apparatus of claim 10, wherein the first processing module comprises:
and the fourth processing submodule is used for analyzing and processing the initial resource through the software development kit so as to obtain the audio resource in the target data format and the additional resource in the target data format.
13. The apparatus according to any one of claims 9 to 12, wherein the processing unit comprises:
the verification module is used for verifying the communication protocol corresponding to the initial resource through the software development kit to obtain a verification result, wherein the verification result is used for indicating whether the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted device;
and the second processing module is used for processing the initial resource into the target resource under the condition that the verification result indicates that the communication protocol corresponding to the initial resource is the communication protocol corresponding to the target vehicle-mounted equipment.
14. A computer-readable storage medium, comprising a stored program, wherein the program is operable to perform the method of any one of claims 1 to 8.
15. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method of any of claims 1 to 8 by means of the computer program.
CN202110486513.8A 2021-04-30 2021-04-30 Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment Pending CN113177135A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110486513.8A CN113177135A (en) 2021-04-30 2021-04-30 Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110486513.8A CN113177135A (en) 2021-04-30 2021-04-30 Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN113177135A true CN113177135A (en) 2021-07-27

Family

ID=76928092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110486513.8A Pending CN113177135A (en) 2021-04-30 2021-04-30 Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113177135A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011069380A1 (en) * 2009-12-07 2011-06-16 华为终端有限公司 Method for displaying related information and mobile communication terminal
CN104168322A (en) * 2014-08-25 2014-11-26 百度在线网络技术(北京)有限公司 Vehicle-mounted terminal data transmission method, application server, client-side and user terminal
CN105721672A (en) * 2016-01-20 2016-06-29 广东翼卡车联网服务有限公司 Smart phone and original vehicle host double-screen mutual control method and system thereof
CN107529132A (en) * 2017-09-05 2017-12-29 北京京东尚科信息技术有限公司 The method and apparatus that data are transmitted between bluetooth equipment and application program
CN109743819A (en) * 2018-12-07 2019-05-10 北京梧桐车联科技有限责任公司 Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp
CN111332197A (en) * 2020-03-09 2020-06-26 湖北亿咖通科技有限公司 Light control method and device of vehicle-mounted entertainment system and vehicle-mounted entertainment system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011069380A1 (en) * 2009-12-07 2011-06-16 华为终端有限公司 Method for displaying related information and mobile communication terminal
CN104168322A (en) * 2014-08-25 2014-11-26 百度在线网络技术(北京)有限公司 Vehicle-mounted terminal data transmission method, application server, client-side and user terminal
CN105721672A (en) * 2016-01-20 2016-06-29 广东翼卡车联网服务有限公司 Smart phone and original vehicle host double-screen mutual control method and system thereof
CN107529132A (en) * 2017-09-05 2017-12-29 北京京东尚科信息技术有限公司 The method and apparatus that data are transmitted between bluetooth equipment and application program
CN109743819A (en) * 2018-12-07 2019-05-10 北京梧桐车联科技有限责任公司 Control method and device, storage medium and the vehicle-mounted atmosphere lamp of vehicle-mounted atmosphere lamp
CN111332197A (en) * 2020-03-09 2020-06-26 湖北亿咖通科技有限公司 Light control method and device of vehicle-mounted entertainment system and vehicle-mounted entertainment system

Similar Documents

Publication Publication Date Title
CN105933084B (en) Receiving device, method of reseptance and program
CN104053071B (en) Distribute control system, dissemination system and distribution control method
CN102368214B (en) Automatic interface generation method and system
CN104052797B (en) Distribute control system, dissemination system and distribution control method
CN104053073B (en) Distribute control system, dissemination system and distribution control method
CN104053070B (en) Distribute control system, dissemination system and distribution control method
CN110134487B (en) Dynamic skin changing method of live interface, readable storage medium and computer equipment
KR102598237B1 (en) Method and apparatus for digital broadcast services
CN108154877B (en) Voice broadcasting method and device of air conditioner
CN105872607A (en) Method, server and terminal device for providing multimedia contents
US20170034551A1 (en) Dynamic screen replication and real-time display rendering based on media-application characteristics
CN108810052A (en) The selection method and device of direct broadcast server
CN113163263B (en) Method, device and storage medium for controlling media resources by vehicle-mounted equipment
CN112354177A (en) Webrtc-based cloud game instant starting method, device and system
CN110874139A (en) Systems, devices, and methods for streaming haptic effects
CN114115866A (en) Cross-domain-based vehicle-mounted scene self-defining method, device, equipment and storage medium
CN113177135A (en) Method and device for playing audio by vehicle-mounted equipment, storage medium and electronic equipment
US20130326601A1 (en) Communication system
CN111008287B (en) Audio and video processing method and device, server and storage medium
CN114373449A (en) Intelligent device, server and voice interaction method
CN106535031B (en) Vehicle audio control method, device and system
CN101448136B (en) Method for realizing video on-demand function and system thereof
SG175105A1 (en) Method and corresponding device for transmitting mobile multimedia broadcast program prompt information
CN110933825B (en) Communication control method of rescue equipment and related product
CN107105325B (en) Advertisement data stream sending method, related server and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210727