Interaction method and device of vehicle-mounted audio, electronic equipment and storage medium
1. An interactive method of vehicular audio, the method comprising:
when an audio file is loaded, reading preset interaction function information from an audio metadata container of the audio file; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
triggering an interactive function event of an audio file according to the time for triggering the interactive function in the preset interactive function information;
and responding to the triggered interactive function event, and displaying the interactive function corresponding to the interactive function identifier for the user to perform user interaction.
2. The method of claim 1, wherein the audio metadata container of the audio file comprises interactive function information previously written to the audio file by the in-vehicle infotainment system.
3. The method of claim 2, wherein the interactive functions include displaying two-dimensional codes, voting campaigns, media information delivery, and interactive interface display and clicking.
4. The method of claim 1, wherein reading the preset interactive function information from the audio metadata container of the audio file comprises:
reading a TXXX expansion key tag of an audio metadata container of the audio file;
and if the interactive function information is detected to be included in the TXXX expansion key label, determining the time for triggering the interactive function and the interactive function identification included in the interactive function information.
5. The method according to claim 1, wherein triggering an interactive function event for generating an audio file according to a time condition for triggering an interactive function in the preset interactive function information comprises:
and when the playing progress of the audio file reaches the time of triggering the interactive function during audio playing, sending an instruction to the vehicle-mounted information entertainment system so as to control the interactive function event triggering the audio file.
6. The method of claim 1, wherein displaying the interactive function corresponding to the interactive function identifier to the user comprises:
sending an interactive function detail request carrying an interactive function identifier to a cloud server through a vehicle-mounted information entertainment system, and acquiring interactive function detail information associated with the issued interactive function identifier from the cloud server;
and displaying the interactive function corresponding to the interactive function identifier based on the interactive function detail information associated with the interactive function identifier so as to enable the user to trigger interaction.
7. An interactive device for car audio, the device comprising:
the information reading module is used for reading preset interaction function information from an audio metadata container of an audio file when the audio file is loaded; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
the interactive triggering module is used for triggering an interactive function event for generating an audio file according to the time for triggering the interactive function in the preset interactive function information;
and the interactive display module is used for responding to the triggered interactive function event and displaying the interactive function corresponding to the interactive function identifier to the user for user interaction.
8. The apparatus of claim 7, wherein the audio metadata container of the audio file comprises interactive function information previously written to the audio file by the in-vehicle infotainment system.
9. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method of interacting in-vehicle audio of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method for interactive car audio of any one of claims 1 to 6.
Background
The car is provided with an audio player, audio can be delivered to the user through the audio player, for example, the audio content delivered to the user mainly comprises real-time live audio (such as a broadcasting station and online live) and on-demand audio (such as online, offline music and online content audio). However, the audio content is spread in one direction, the presented content is single, the requirements of audio interaction, accuracy and individuation cannot be met, and information interaction with a user cannot be performed, so that the audio playing effect is poor.
Disclosure of Invention
The embodiment of the invention provides a vehicle-mounted audio interaction method and device, electronic equipment and a storage medium, and aims to realize real-time interaction of on-demand online content audio in an audio playing process.
In a first aspect, an embodiment of the present invention provides an interaction method for car audio, including:
when an audio file is loaded, reading preset interaction function information from an audio metadata container of the audio file; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
triggering an interactive function event of an audio file according to the time for triggering the interactive function in the preset interactive function information;
and responding to the triggered interactive function event, and displaying the interactive function corresponding to the interactive function identifier for the user to perform user interaction.
In a second aspect, an embodiment of the present invention further provides an interactive device for car audio, including:
the information reading module is used for reading preset interaction function information from an audio metadata container of an audio file when the audio file is loaded; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
the interactive triggering module is used for triggering an interactive function event for generating an audio file according to the time for triggering the interactive function in the preset interactive function information;
and the interactive display module is used for responding to the triggered interactive function event and displaying the interactive function corresponding to the interactive function identifier to the user for user interaction.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
one or more processors;
storage means for storing one or more programs;
the one or more programs are executed by the one or more processors such that the one or more processors implement the interactive method of car audio as provided in any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for interacting with car audio as provided in any embodiment of the present invention.
The embodiment of the invention provides a vehicle-mounted audio interaction method and device, electronic equipment and a storage medium, and the technical scheme of the application is adopted to read the preset time for triggering the interaction function and the interaction function identifier from an audio metadata container of an audio file when the audio file is loaded; triggering an interactive function event of an audio file according to the time for triggering the interactive function in the preset interactive function information; and responding to the triggered interactive function event, displaying the interactive function corresponding to the interactive function identifier for the user interaction, and realizing the technical effect of on-demand online content audio real-time interaction.
The above summary of the present invention is merely an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description in order to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a flowchart of an interactive method for car audio according to an embodiment of the present application;
fig. 2 is a flowchart of an interactive method for car audio provided in the second embodiment of the present application;
fig. 3 is a schematic structural diagram of an interactive device for car audio provided in the third embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1 is a flowchart of an interaction method for car audio according to an embodiment of the present invention, where the method is applicable to a case of car audio interaction, and the method is executed by an interaction device for car audio, where the device is implemented by software and/or hardware, and can be integrated in an electronic device. As shown in fig. 1, the interaction method of the car audio in this embodiment includes the following steps:
s110, when the audio file is loaded, reading preset interaction function information from an audio metadata container of the audio file.
The interactive function information comprises time for triggering the interactive function and an interactive function identifier.
Audio files refer to files that store audio data, and there are many different formats. For example, a variety of formats including, but not limited to, WAV, MP3, AAC, and M4A.
Metadata may refer to data that describes the data and its environment, information that primarily describes attributes of the data, and is used to support functions such as indicating storage locations, historical data, resource lookups, file records, and the like. For example, metadata in an audio file may provide basic attributes including, but not limited to, the name, content, year, producer, etc. of the audio.
The audio metadata container may refer to a container carrying audio metadata information, for example, the name, author, content, etc. including but not limited to audio metadata may be carried in a car audio metadata container. Interaction is the meaning of the process of associating, interacting with each other. For example, the process may be a process in which the user scans the two-dimensional code, views the information, and performs operations such as voting and approval according to the information.
And S120, triggering an interactive function event for generating an audio file according to the time for triggering the interactive function in the preset interactive function information.
The time for triggering the interactive function may refer to the time for triggering the preset interactive function, for example, when the interactive function is triggered in thirteen hours and five minutes, the time for triggering the interactive function is divided into thirteen hours and five minutes. The time for triggering the interactive function may also be related to the audio playing time, how long the interaction is performed after the audio playing starts, for example, the interaction is performed at the 15 th second after the audio playing starts, and then the 15 th second after the audio playing starts is the time for triggering the interactive function.
And S130, responding to the triggered interactive function event, and displaying the interactive function corresponding to the interactive function identifier to the user for user interaction.
The interactive functions include, but are not limited to, displaying two-dimensional codes, voting activities, media information delivery, and interactive interface display and clicking. For example, a two-dimensional code presented to the user on an application program, and the user is enabled to scan the two-dimensional code to perform operations such as audio viewing, voting and praise.
The interactive function identifier is an identifier for showing the interactive function to the user. For example, the user is presented with an identification that the user can see or interact with by clicking.
And after responding to the triggered interactive function event, displaying a two-dimensional code, a vote, an advertisement and the like to the user, wherein the user can see or click an interactive interface to interact with the user.
The embodiment of the invention discloses a vehicle-mounted audio interaction method, which comprises the steps of reading preset time for triggering an interaction function and an interaction function identifier from an audio metadata container of an audio file when the audio file is loaded; triggering an interactive function event of an audio file according to the time for triggering the interactive function in the preset interactive function information; and responding to the triggered interactive function event, and displaying the interactive function corresponding to the interactive function identifier for the user to perform user interaction. By the technical means of the embodiment of the invention, the on-demand online content audio real-time interaction is realized.
Example two
Fig. 2 is a flowchart of an interaction method of car audio according to a second embodiment of the present application. Embodiments of the present invention are further optimized on the basis of the above-mentioned embodiments, and the embodiments of the present invention may be combined with various alternatives in one or more of the above-mentioned embodiments. As shown in fig. 2, the interactive method for car audio provided in the embodiment of the present invention may include the following steps:
s210, when the audio file is loaded, reading preset time for triggering the interactive function and an interactive function identifier from an audio metadata container of the audio file.
Optionally, the audio metadata container of the audio file includes interactive function information written in advance to the audio file through the in-vehicle infotainment system.
Optionally, reading preset interaction function information from an audio metadata container of the audio file, including:
reading a TXXX expansion key tag of an audio metadata container of the audio file;
and if the interactive function information is detected to be included in the TXXX expansion key label, determining the time for triggering the interactive function and the interactive function identification included in the interactive function information.
Among them, ID3 is a widely supported audio metadata container. The invention is used for storing information of song title, singer, album, track number and the like (the version is V1) of MP3 music files. Later supported by various mainstream audio coding and packaging formats (MP3, AAC, M4A and the like), and meanwhile, the ID3 protocol also evolves to the V2 version, so that the method has stronger metadata expression capability and expansion capability.
The vehicle-mounted information entertainment system is a vehicle-mounted comprehensive information processing system formed by a vehicle-mounted special central processing unit based on a vehicle body bus system and internet services. The ID3V2 written to the audio file by the background operation management system of the in-vehicle infotainment system is identified as follows:
TXXX: time-to-trigger seconds | Interactive capability ID
TXXX is an ID3V2 extension key, and other keys in ID3V2 may be used to hold this information.
The information divided by the vertical lines represents the time for triggering the display of the interactive capability and the ID of the interactive capability when the audio is played.
When a media player of the vehicle-mounted information entertainment system loads an audio file, an expansion key TXXX of ID3V2 is read, whether the key contains interactive capability information or not is checked, and if the label of the expansion key TXXX detects that the key contains the interactive function information, the time for triggering the interactive function and the interactive function identifier contained in the interactive function information are determined, so that the real-time detection of the interactive function information is realized.
S220, when the playing progress of the audio file reaches the time of triggering the interactive function during audio playing, sending an instruction to the vehicle-mounted information entertainment system so as to control the interactive function event triggering the audio file.
After the time for triggering the interactive function and the interactive function identifier are detected in the ID3V2, the media player should send a trigger interactive capability event to the in-vehicle infotainment system when the playing progress reaches "trigger time seconds" in the expansion key.
A media player, also called a media player, generally refers to a playing software for playing multimedia in a computer, which gathers decoders together to generate a playing function. Such as vehicle mounted media players, video media players, and media players for public transit televisions, among others.
And S230, sending an interactive function detail request carrying the interactive function identifier to the cloud server through the vehicle-mounted information entertainment system, and acquiring interactive function detail information associated with the issued interactive function identifier from the cloud server.
The cloud server is a computing server which is simple, efficient, safe, reliable and elastic in processing capacity.
The detailed interactive function information associated with the interactive function identifier may refer to information associated with scanning the two-dimensional code, for example, a download link, a file, and the like displayed after scanning the two-dimensional code; the information may refer to information associated with a page that the user can click on, for example, after the user clicks on the page, operations such as voting and approval according to a page prompt are performed.
And S240, displaying the interactive function corresponding to the interactive function identifier based on the interactive function detail information associated with the interactive function identifier so that the user can trigger interaction.
And displaying the interactive function corresponding to the interactive function identifier according to the interactive function detail information associated with the interactive function identifier, wherein the interactive capability includes but is not limited to displaying a two-dimensional code, voting, advertisement and other interactive interfaces which can be seen by the user or clicked by the user. When the two-dimensional code is displayed for the user, the user can scan the two-dimensional code, check related contents, vote and like the audio. The interactivity of the user is increased, and the viscosity of the user is improved.
According to the technical scheme of the embodiment of the invention, when the audio file is loaded, the preset time for triggering the interactive function and the interactive function identifier are read from the audio metadata container of the audio file; when the playing progress of the audio file reaches the time of triggering the interactive function during audio playing, sending an instruction to a vehicle-mounted information entertainment system so as to control an interactive function event triggering the audio file; sending an interactive function detail request carrying an interactive function identifier to a cloud server through a vehicle-mounted information entertainment system, and acquiring interactive function detail information associated with the issued interactive function identifier from the cloud server; and displaying the interactive function corresponding to the interactive function identifier based on the interactive function detail information associated with the interactive function identifier so that the user can trigger interaction, thereby realizing real-time interaction of on-demand online content audio and increasing the user viscosity.
EXAMPLE III
Fig. 3 is a schematic structural diagram of an interactive device for car audio provided in the third embodiment of the present invention. The device is suitable for the condition of vehicle audio interaction, can be realized by software and/or hardware, and is integrated in the electronic equipment. The device is used for realizing the interaction method of the vehicle-mounted audio provided by the embodiment. As shown in fig. 3, the interactive device for car audio provided in this embodiment includes:
the information reading module 310 is configured to read preset interaction function information from an audio metadata container of an audio file when the audio file is loaded; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
the interaction triggering module 320 is configured to trigger an interaction function event for generating an audio file according to the time for triggering the interaction function in the preset interaction function information;
the interactive display module 330 is configured to, in response to the triggered interactive function event, display the interactive function corresponding to the interactive function identifier to the user for user interaction.
Optionally, the audio metadata container of the audio file includes interactive function information written in advance to the audio file through the in-vehicle infotainment system.
Optionally, the interactive function includes displaying a two-dimensional code, voting activities, media information delivery, and interactive interface display and clicking.
Optionally, the information reading module includes:
reading a TXXX expansion key tag of an audio metadata container of the audio file;
and if the interactive function information is detected to be included in the TXXX expansion key label, determining the time for triggering the interactive function and the interactive function identification included in the interactive function information.
Optionally, the interactive triggering module includes:
and when the playing progress of the audio file reaches the time of triggering the interactive function during audio playing, sending an instruction to the vehicle-mounted information entertainment system so as to control the interactive function event triggering the audio file.
Optionally, the interactive display module includes:
sending an interactive function detail request carrying an interactive function identifier to a cloud server through a vehicle-mounted information entertainment system, and acquiring interactive function detail information associated with the issued interactive function identifier from a cloud service;
and displaying the interactive function corresponding to the interactive function identifier based on the interactive function detail information associated with the interactive function identifier so as to enable the user to trigger interaction.
The interactive device for the vehicle-mounted audio provided by the embodiment of the invention can execute the interactive method for the vehicle-mounted audio provided by any embodiment of the invention, has corresponding functions and beneficial effects of the interactive method for the vehicle-mounted audio, and the detailed process refers to the relevant operations of the interactive method for the vehicle-mounted audio in the embodiment.
Example four
Fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present application. The embodiment of the application provides electronic equipment, and the interactive device of the vehicle-mounted audio provided by the embodiment of the application can be integrated in the electronic equipment. As shown in fig. 4, the present embodiment provides an electronic device 400, which includes: one or more processors 420; the storage device 410 is configured to store one or more programs, and when the one or more programs are executed by the one or more processors 420, the one or more processors 420 implement the method for interacting car audio provided in the embodiment of the present application, the method includes:
when an audio file is loaded, reading preset interaction function information from an audio metadata container of the audio file; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
triggering an interactive function event of an audio file according to the time for triggering the interactive function in the preset interactive function information;
and responding to the triggered interactive function event, and displaying the interactive function corresponding to the interactive function identifier for the user to perform user interaction.
Of course, those skilled in the art can understand that the processor 420 also implements the technical solution of the interactive method for car audio provided in any embodiment of the present application.
The electronic device 400 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 4, the electronic device 400 includes a processor 420, a storage device 410, an input device 530, and an output device 440; the number of the processors 420 in the electronic device may be one or more, and one processor 420 is taken as an example in fig. 4; the processor 420, the storage device 410, the input device 430, and the output device 440 in the electronic apparatus may be connected by a bus or other means, and are exemplified by a bus 450 in fig. 4.
The storage device 410 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and module units, such as program instructions corresponding to the interactive method of car audio in the embodiment of the present application.
The storage device 410 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage 410 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 410 may further include memory located remotely from processor 420, which may be connected via 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 input means 430 may be used to receive input numbers, character information, or voice information, and to generate key signal inputs related to user settings and function control of the electronic device. The output device 440 may include a display screen, speakers, or other electronic equipment.
The electronic equipment provided by the embodiment of the application can achieve the technical effect of realizing on-demand online content audio real-time interaction.
EXAMPLE five
An embodiment of the present invention provides a computer-readable medium, on which a computer program is stored, where the computer program is used, when executed by a processor, to execute an interactive method for car audio, where the method includes:
when an audio file is loaded, reading preset interaction function information from an audio metadata container of the audio file; the interactive function information comprises time for triggering the interactive function and an interactive function identifier;
triggering an interactive function event of an audio file according to the time for triggering the interactive function in the preset interactive function information;
and responding to the triggered interactive function event, and displaying the interactive function corresponding to the interactive function identifier for the user to perform user interaction.
Optionally, the program, when executed by the processor, may be further configured to perform the car audio interaction method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:16位加法器及其实现方法、运算电路及芯片