Vehicle control method and device and vehicle

文档序号:181125 发布日期:2021-11-02 浏览:36次 中文

阅读说明:本技术 一种车辆控制方法、装置及车辆 (Vehicle control method and device and vehicle ) 是由 张中强 于 2021-07-13 设计创作,主要内容包括:本公开提供了一种车辆控制方法、装置及车辆,该方法包括:获取所述车辆中存储的音频文件的文件头,得到文件头列表;其中,所述文件头列表中包括至少一个音频文件的文件头;所述文件头包括用于表示对应音频文件的播放场景的第一数据;检测所述车辆播放音频的事件是否发生;在所述事件发生的情况下,确定所述车辆的当前音频播放场景;根据所述文件头列表,确定与所述当前音频播放场景匹配的目标音频文件;播放所述目标音频文件。(The present disclosure provides a vehicle control method, a device and a vehicle, wherein the method comprises the following steps: acquiring a file header of an audio file stored in the vehicle to obtain a file header list; wherein the file header list comprises a file header of at least one audio file; the file header comprises first data used for representing a playing scene of a corresponding audio file; detecting whether an event that the vehicle plays audio occurs; determining a current audio playing scene of the vehicle if the event occurs; determining a target audio file matched with the current audio playing scene according to the file header list; and playing the target audio file.)

1. A vehicle control method comprising:

acquiring a file header of an audio file stored in the vehicle to obtain a file header list; wherein the file header list comprises a file header of at least one audio file; the file header comprises first data used for representing a playing scene of a corresponding audio file;

detecting whether an event that the vehicle plays audio occurs;

determining a current audio playing scene of the vehicle if the event occurs;

determining a target audio file matched with the current audio playing scene according to the file header list;

and playing the target audio file.

2. The method of claim 1, the header further comprising second data representing a priority of a corresponding audio file,

determining an audio file matched with the current audio playing scene according to the file header list, wherein the determining of the audio file matched with the current audio playing scene as a target audio file comprises:

determining an audio file matched with the current audio playing scene according to the file header list;

and according to the second data, selecting one audio file with the highest priority from the audio files matched with the current audio playing scene as the target audio file.

3. The method of claim 1, wherein determining, from the header list, a target audio file that matches the current audio playback scene comprises:

determining an audio file matched with the current audio playing scene according to the file header list;

and randomly selecting one audio file from the audio files matched with the current audio playing scene as the target audio file.

4. The method of claim 2 or 3, wherein determining, according to the header list, an audio file that matches the current audio playback scene comprises:

determining a file header, which is contained in the file header list and has a playing scene represented by first data and the current audio playing scene, as a target file header;

and determining the audio file corresponding to the target file header as the audio file matched with the current audio playing scene.

5. The method of claim 1, the header of the target audio file further comprising third data representing a sampling rate of the target audio file;

the playing the target audio file comprises:

and playing the target audio file according to the third data.

6. The method of claim 1, further comprising:

responding to a deletion request, and acquiring a first file identifier contained in the deletion request;

and deleting the audio file corresponding to the first file identification in the vehicle.

7. The method of claim 1, further comprising:

responding to a new request, and acquiring a second file identifier contained in the new request;

and downloading the audio file corresponding to the second file identifier from the server and storing the audio file.

8. The method of claim 1, further comprising:

responding to an updating request, and acquiring a third file identifier contained in the updating request;

and downloading the audio file corresponding to the third file identifier from a server, and replacing the audio file corresponding to the third file identifier in the vehicle.

9. A vehicle control apparatus comprising:

the list obtaining module is used for obtaining a file header of an audio file stored in the vehicle to obtain a file header list; wherein the file header list comprises a file header of at least one audio file; the file header comprises first data used for representing a playing scene of a corresponding audio file;

the event detection module is used for detecting whether an event that the vehicle plays the audio occurs or not;

the scene determining module is used for determining the current audio playing scene of the vehicle under the condition that the event occurs;

the audio determining module is used for determining a target audio file matched with the current audio playing scene according to the file header list;

and the audio playing module is used for playing the target audio file.

10. A vehicle comprising a processor and a memory for storing an executable computer program; the processor is adapted to perform the method according to any of claims 1 to 8 under control of the computer program.

Technical Field

The present disclosure relates to the field of vehicle sharing technology, and more particularly, to a vehicle control method, a vehicle control device, and a vehicle.

Background

At present, the shared vehicle trip becomes a emerging trip mode in a city, and the trip demand of urban people can be effectively solved. Existing shared vehicles mainly include bicycles, electric power-assisted vehicles, and automobiles.

In the prior art, audio is typically pre-stored in a shared vehicle. In the event of an audio playback event, the shared vehicle will typically play pre-stored audio.

However, the shared vehicle cannot play the audio matched with the scene according to the actual playing scene, so that the user experience is poor.

Disclosure of Invention

An object of the present disclosure is to provide a new technical solution for playing an audio file in a vehicle.

According to a first aspect of the present disclosure, there is provided a vehicle control method including:

acquiring a file header of an audio file stored in the vehicle to obtain a file header list; wherein the file header list comprises a file header of at least one audio file; the file header comprises first data used for representing a playing scene of a corresponding audio file;

detecting whether an event that the vehicle plays audio occurs;

determining a current audio playing scene of the vehicle if the event occurs;

determining a target audio file matched with the current audio playing scene according to the file header list;

and playing the target audio file.

Optionally, the header further comprises second data for indicating a priority of the corresponding audio file,

determining an audio file matched with the current audio playing scene according to the file header list, wherein the determining of the audio file matched with the current audio playing scene as a target audio file comprises:

determining an audio file matched with the current audio playing scene according to the file header list;

and according to the second data, selecting one audio file with the highest priority from the audio files matched with the current audio playing scene as the target audio file.

Optionally, the determining, according to the file header list, a target audio file matched with the current audio playing scene includes:

determining an audio file matched with the current audio playing scene according to the file header list;

and randomly selecting one audio file from the audio files matched with the current audio playing scene as the target audio file.

Optionally, the determining, according to the file header list, an audio file matched with the current audio playing scene includes:

determining a file header, which is contained in the file header list and has a playing scene represented by first data and the current audio playing scene, as a target file header;

and determining the audio file corresponding to the target file header as the audio file matched with the current audio playing scene.

Optionally, the header of the target audio file further includes third data representing a sampling rate of the target audio file;

the playing the target audio file comprises:

and playing the target audio file according to the third data.

Optionally, the method further includes:

responding to a deletion request, and acquiring a first file identifier contained in the deletion request;

and deleting the audio file corresponding to the first file identification in the vehicle.

Optionally, the method further includes:

responding to a new request, and acquiring a second file identifier contained in the new request;

and downloading the audio file corresponding to the second file identifier from the server and storing the audio file.

Optionally, the method further includes:

responding to an updating request, and acquiring a third file identifier contained in the updating request;

and downloading the audio file corresponding to the third file identifier from a server, and replacing the audio file corresponding to the third file identifier in the vehicle.

According to a second aspect of the present disclosure, there is provided a vehicle control apparatus including:

the list obtaining module is used for obtaining a file header of an audio file stored in the vehicle to obtain a file header list; wherein the file header list comprises a file header of at least one audio file;

the file header comprises first data used for representing a playing scene of a corresponding audio file;

the event detection module is used for detecting whether an event that the vehicle plays the audio occurs or not;

the scene determining module is used for determining the current audio playing scene of the vehicle under the condition that the event occurs;

the audio determining module is used for determining a target audio file matched with the current audio playing scene according to the file header list;

and the audio playing module is used for playing the target audio file.

According to a third aspect of the present disclosure, there is provided a vehicle comprising a processor and a memory for storing an executable computer program; the processor is adapted to perform the method according to the first aspect of the present disclosure under control of the computer program.

Through the embodiment of the disclosure, the file header of the audio file is preset, and under the condition that an event for playing the audio occurs, the target audio file matched with the current audio playing scene is determined according to the file header to be played, so that the corresponding audio can be played according to the current audio playing scene, and the user experience is improved.

Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.

Drawings

The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.

Fig. 1 is a block diagram showing an example of a hardware configuration of a vehicle system that can be used to implement an embodiment of the present disclosure.

Fig. 2 shows a flowchart of a vehicle control method of an embodiment of the present disclosure.

Fig. 3 shows a block schematic diagram of a vehicle control apparatus of an embodiment of the present disclosure.

Fig. 4 shows a schematic block diagram of a vehicle of an embodiment of the present disclosure.

Detailed Description

Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that:

the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.

The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.

Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.

In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.

It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.

< hardware configuration >

As shown in fig. 1, the vehicle system 100 includes a server 1000, a mobile terminal 2000, a vehicle 3000, and a network 4000.

The server 1000 provides a service point for processes, databases, and communications facilities. The server 1000 may be a unitary server or a distributed server across multiple computers or computer data centers. The server may be of various types, such as, but not limited to, a web server, a news server, a mail server, a message server, an advertisement server, a file server, an application server, an interaction server, a database server, or a proxy server. In some embodiments, each server may include hardware, software, or embedded logic components or a combination of two or more such components for performing the appropriate functions supported or implemented by the server. For example, a server, such as a blade server, a cloud server, etc., or may be a server group consisting of a plurality of servers, which may include one or more of the above types of servers, etc.

In one example, the server 1000 may be as shown in fig. 1, including a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600. Although the server may also include speakers, microphones, and the like, these components are reasonably irrelevant to the present disclosure and are omitted here.

The processor 1100 may be, for example, a central processing unit CPU, a microprocessor MCU, or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a serial interface, an infrared interface, and the like. Communication device 1400 is capable of wired or wireless communication, for example. The display device 1150 is, for example, a liquid crystal display panel, an LED display panel touch display panel, or the like. Input devices 1160 may include, for example, a touch screen, a keyboard, and the like.

In the present embodiment, the mobile terminal 2000 is an electronic device having a communication function and a service processing function. The mobile terminal 2000 may be a mobile terminal such as a mobile phone, a laptop, a tablet, a palmtop, etc. In one example, the mobile terminal 2000 is a device that performs management operations on the vehicle 3000, for example, a mobile phone installed with an Application (APP) that supports operation and management of the vehicle.

As shown in fig. 1, the mobile terminal 2000 may include a processor 2100, a memory 2200, an interface device 2300, a communication device 2400, a display device 2500, an input device 2600, a speaker 2700, a microphone 2800, and the like. The processor 2100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 2200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 2300 includes, for example, a USB interface, a headphone interface, and the like. Communication device 2400 is capable of wired or wireless communication, for example. The display device 2500 is, for example, a liquid crystal display panel, a touch panel, or the like. The input device 2600 may include, for example, a touch screen, a keyboard, and the like. A user can input/output voice information through the speaker 2700 and the microphone 2800.

The vehicle 3000 is any vehicle that can give the right to share the use by different users in time or separately, for example, a shared bicycle, a shared moped, a shared electric vehicle, a shared automobile, and the like. The vehicle 3000 may be a bicycle, a tricycle, an electric scooter, a motorcycle, a four-wheeled passenger vehicle, or the like.

The vehicle 3000 has an identification code for uniquely identifying the corresponding bluetooth device, which may be a two-dimensional code and/or a number, which may be composed of numbers and/or characters.

The user may scan the two-dimensional code on the vehicle 3000 through the mobile terminal 2000, and then send the two-dimensional code information to the server 1000 to perform an unlocking operation.

The user may also input or recognize a number on the vehicle 3000 through the mobile terminal 2000, and then transmit the number information to the server 1000 to perform an unlocking operation.

When the user scans the two-dimensional code on the vehicle 3000 or inputs a number through the mobile terminal 2000, it is necessary to use functions of the mobile terminal 2000, such as a flashlight function, a positioning function, a camera function, and the like of the mobile terminal 2000.

As shown in fig. 1, vehicle 3000 may include a processor 3100, a memory 3200, an interface device 3300, a communication device 3400, a display device 3500, an input device 3600, a positioning device 3700, speakers 3800, and so forth. The processor 3100 may be a central processing unit CPU, a microprocessor MCU, or the like. The memory 3200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface 3300 includes, for example, a USB interface, a headphone interface, and the like. The communication device 3400 can perform wired or wireless communication, for example. The output device 3500 may be, for example, a device that outputs a signal, may be a display device such as a liquid crystal display screen or a touch panel, or may be a speaker or the like that outputs voice information or the like. The input device 3600 may include, for example, a touch panel, a keyboard, or the like, and may input voice information through a microphone. The positioning device 3700 is used to provide positioning function, and may be, for example, a GPS positioning module, a beidou positioning module, etc. The speaker 3800 is used to play audio.

The network 4000 may be a wireless communication network or a wired communication network, and may be a local area network or a wide area network. In the article management system shown in fig. 1, a vehicle 3000 and a server 1000, and a mobile terminal 2000 and the server 1000 can communicate with each other via a network 4000. The vehicle 3000 may be the same as the server 1000, and the network 4000 through which the mobile terminal 2000 communicates with the server 1000 may be different from each other.

It should be understood that although fig. 1 shows only one server 1000, mobile terminal 2000, vehicle 3000, it is not meant to limit the corresponding number, and multiple servers 1000, mobile terminals 2000, vehicles 3000 may be included in the vehicle system 100.

Taking the vehicle 3000 as an example of a shared bicycle, the vehicle system 100 is a shared bicycle system. The server 1000 is used to provide all the functionality necessary to support shared bicycle use. The mobile terminal 2000 may be a mobile phone on which a shared bicycle application is installed, and the shared bicycle application may help a user to acquire a corresponding function using the vehicle 3000, and the like.

The vehicle system 100 shown in fig. 1 is merely illustrative and is in no way intended to limit the present disclosure, its application, or uses.

Although fig. 1 shows only one server 1000, one mobile terminal 2000 and one vehicle 3000, it should be understood that, in a specific application, the vehicle system 100 may include a plurality of servers 1000, a plurality of mobile terminals 2000 and a plurality of vehicles 3000 according to actual requirements.

In an embodiment of the present disclosure, the memory 1200 of the server 1000 is used for storing instructions for controlling the processor 1100 to operate so as to execute the method steps provided by the embodiment of the present disclosure and executed by the server.

Although a number of devices are shown for server 1000 in fig. 1, the present disclosure may refer to only some of the devices, for example, server 1000 refers to only memory 1200 and processor 1100.

In an embodiment of the present disclosure, the memory 2200 of the mobile terminal 2000 is configured to store instructions for controlling the processor 2100 to operate so as to execute the method steps performed by the mobile terminal provided by the embodiment of the present disclosure.

Although a number of devices are shown in fig. 1 for mobile terminal 2000, this disclosure may refer to only some of the devices, for example, mobile terminal 2000 may refer to only memory 2200 and processor 2100.

In an embodiment of the present disclosure, the memory 3200 of the vehicle 3000 is configured to store instructions for controlling the processor 3100 to operate the vehicle 3000 to perform the steps of the vehicle control method performed by the vehicle according to the embodiment of the present disclosure.

Although a number of devices are shown for vehicle 3000 in fig. 1, the present disclosure may refer to only some of the devices, for example, vehicle 3000 refers only to memory 3200 and processor 3100.

In the above description, the skilled person can design the instructions according to the disclosed solution of the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.

< method examples >

In the present embodiment, the vehicle is a transportation device that is released for a user to obtain a use right in a time-sharing lease mode, a local lease mode, or the like, and may be a two-wheeled or three-wheeled bicycle, a power-assisted vehicle, an electric vehicle, or a motor vehicle with four or more wheels.

The vehicle control method is implemented by a vehicle, which may be in various physical forms. For example, the vehicle may be a shared vehicle, and may specifically be vehicle 3000 as shown in fig. 1.

As shown in fig. 2, the vehicle control method includes steps S2100 to S2500.

In step S2100, a header of an audio file stored in the vehicle is acquired, and a header list is obtained.

The file header list comprises at least one file header of the audio file, and the file header comprises data used for representing a playing scene of the corresponding audio file.

In one embodiment of the present disclosure, an audio file stored in a vehicle has a header in which data representing information of a playback scene, a priority, a sampling rate, an audio type, and the like of the audio file may be encapsulated.

Specifically, the file format of the audio file having the file header in the present embodiment may be a target format. Then, the audio file in the target format may be obtained by format-converting the original audio file. The file format of the original audio file may include PCM or MP3, among others.

Further, the information such as the playing scene, priority, sampling rate, etc. of the original audio file may be obtained, and the information is packaged into a file header, which is added to the initial position of the original audio file to obtain the audio file in the target format.

In one embodiment of the present disclosure, the audio file stored in the vehicle may be made by a user and sent to the vehicle through the server.

In one embodiment of the present disclosure, this step S2100 may be performed with the lock of the vehicle powered up.

Specifically, the vehicle may traverse the file headers of the audio files stored in the vehicle, and obtain a file header list including the file headers of all the audio files.

Step S2200 detects whether an event that the vehicle plays the audio occurs.

The event of the vehicle playing the audio can be preset according to the application scene or the specific requirement.

In one embodiment of the present disclosure, the event that the vehicle plays the audio may include at least any one of success of unlocking the vehicle, failure of unlocking the vehicle, success of locking the vehicle, and failure of locking the vehicle.

In the embodiment that the event of playing the audio by the vehicle includes any one of success of unlocking the vehicle, failure of unlocking the vehicle, success of locking the vehicle and failure of locking the vehicle, the event of playing the audio by the vehicle can be determined to occur when the success of unlocking the vehicle, the failure of unlocking the vehicle, the success of locking the vehicle or the failure of locking the vehicle is detected.

In step S2300, in case of the event, the current audio playing scene of the vehicle is determined.

In this embodiment, the current audio playing scene of the vehicle may be determined according to an event that occurs when the vehicle plays audio. Specifically, an audio playing scene corresponding to each event of the vehicle playing audio may be preset, and in the case of executing step S2300, the audio playing scene corresponding to the event of the vehicle playing audio is determined as the current audio playing scene.

For example, in an embodiment where the event of the vehicle playing the audio includes any one of success of unlocking the vehicle, failure of unlocking the vehicle, success of locking the vehicle, and failure of locking the vehicle, the audio playing scene corresponding to the success of unlocking the vehicle may be set in advance as a first scene, the audio playing scene corresponding to the failure of unlocking the vehicle may be set as a second scene, the audio playing scene corresponding to the success of locking the vehicle may be set as a third scene, and the audio playing scene corresponding to the failure of locking the vehicle may be set as a fourth scene. Then, under the condition that the vehicle is successfully unlocked, the current audio playing scene can be determined to be the first scene; under the condition that the occurred event is that the unlocking of the vehicle fails, the current audio playing scene can be determined to be a second scene; under the condition that the vehicle is successfully locked, the current audio playing scene can be determined to be a third scene; in the case that the occurred event is that the vehicle has failed to be locked, it may be determined that the current audio playing scene is the fourth scene.

Step S2400, determine a target audio file matched with the current audio playing scene according to the file header list.

In one embodiment of the present disclosure, determining a target audio file matching the current audio playback scene according to the file header list may include steps S2411 to S2412 as follows:

step S2411, determining an audio file matched with the current audio playing scene according to the file header list.

In the present embodiment, the header includes therein first data representing a playback scene of the corresponding audio file. Then, according to the file header list, determining an audio file matched with the current audio playing scene, which may be determining a file header in the file header list, where a playing scene represented by the first data is the same as the current audio playing scene, as a target file header; and determining the audio file corresponding to the target file header as the audio file matched with the current audio playing scene.

Specifically, one or more audio files may be matched with the current audio playing scene, which is not limited herein.

Step S2412, randomly selecting one of the audio files matched with the current audio playing scene as a target audio file.

In the case where there is one audio file matching the current audio playback scene, the audio file may be the target audio file.

When there are a plurality of audio files matching the current audio playing scene, one of the audio files matching the current audio playing scene may be randomly selected as a target audio file.

In another embodiment of the present disclosure, second data for indicating a priority of a corresponding audio file is further included in the header. Then, determining the target audio file matching the current audio playing scene according to the file header list may further include steps S2421 to S2422 as follows:

step S2421, determining an audio file matched with the current audio playing scene according to the file header list.

In the present embodiment, the header includes therein first data representing a playback scene of the corresponding audio file. Then, according to the file header list, determining an audio file matched with the current audio playing scene, which may be determining a file header in the file header list, where a playing scene represented by the first data is the same as the current audio playing scene, as a target file header; and determining the audio file corresponding to the target file header as the audio file matched with the current audio playing scene.

Specifically, one or more audio files may be matched with the current audio playing scene, which is not limited herein.

Step S2422, according to the second data, selecting one with the highest priority from the audio files matched with the current audio playing scene as a target audio file.

In the case where there is one audio file matching the current audio playback scene, the audio file may be the target audio file.

In the case that there are a plurality of audio files matching the current audio playing scene, the audio file with the highest priority may be selected from the audio files matching the current audio playing scene as the target audio file according to the second data.

Step S2500, the target audio file is played.

By the method, the file header of the audio file is preset, and the target audio file matched with the current audio playing scene is determined according to the file header to be played under the condition that the event for playing the audio occurs, so that the corresponding audio can be played according to the current audio playing scene, and the user experience is improved.

In one embodiment of the present disclosure, the audio type of the target audio file may be PCM, and third data indicating a sampling rate of the target audio file may be further included in a header of the target audio file. Then, playing the target audio file may include: and playing the target audio file according to the third data.

In this embodiment, by setting the audio type and the sampling rate in the file header, the vehicle can be compatible with the PCM type audio file with a higher sampling rate, and also can be compatible with other audio formats with low space occupation, so as to reduce the storage occupation space of the audio file and extend the playing time of the audio file.

In the embodiment of the disclosure, the corresponding audio file can be uniquely identified by using the file identifier, so that the audio file is subjected to processing such as deletion, update, addition and the like according to the file identifier. For example, the file identification may be a file name.

In one embodiment of the present disclosure, the method may further include: responding to the deletion request, and acquiring a first file identifier contained in the deletion request; and deleting the audio file corresponding to the first file identification in the vehicle.

In this embodiment, the deletion request may be triggered by the user through the corresponding client and forwarded to the vehicle through the server.

In the case where an audio file corresponding to the first file identification is stored in the vehicle, in response to the deletion request, the stored audio file corresponding to the first file identification may be deleted. In the case where the audio file corresponding to the first file identification is not stored in the vehicle, in the case where the first file identification included in the deletion request is acquired, it may be that no operation needs to be performed.

By the method of the embodiment, the audio files in the vehicle can be deleted.

In one embodiment of the present disclosure, the method may further include: responding to the new request, and acquiring a second file identifier contained in the new request; and downloading the audio file corresponding to the second file identifier from the server and storing the audio file.

In this embodiment, the new addition request may be triggered by the user through the corresponding client and forwarded to the vehicle through the server.

The server may store a plurality of audio files in advance, and the vehicle may download and store the audio file corresponding to the second file identifier from the server when obtaining the second file identifier included in the new addition request.

By the method of the embodiment, the audio files in the vehicle can be added.

In one embodiment of the present disclosure, the method may further include: responding to the updating request, and acquiring a third file identifier contained in the updating request; and downloading the audio file corresponding to the third file identifier from the server, and replacing the audio file corresponding to the third file identifier in the vehicle.

In this embodiment, the update request may be triggered by the user through the corresponding client and forwarded to the vehicle through the server.

Specifically, the user may change the playing scene and/or priority of the audio file according to the application scene or specific requirements, and upload the changed audio file to the server.

When the vehicle obtains the third file identifier included in the update request, the audio file corresponding to the third file identifier may be downloaded from the server, and the audio file corresponding to the third file identifier in the vehicle may be replaced, so as to update the audio file corresponding to the third file identifier in the vehicle.

By the method of the embodiment, the playing scene and/or priority of the audio file can be adjusted, the audio file in the vehicle can be updated, and the dynamic configuration of the audio playing rule can be realized.

< apparatus embodiment >

Corresponding to the above method, the present specification also provides a vehicle control device 3000. As shown in fig. 3, the vehicle control apparatus 3000 may include a list obtaining module 3100, an event detection module 3200, a scene determination module 3300, an audio determination module 3400, and an audio playback module 3500. The list obtaining module 3100 is configured to obtain a header of an audio file stored in a vehicle, and obtain a header list; wherein, the file header list comprises at least one file header of the audio file; the file header comprises first data used for representing a playing scene of a corresponding audio file; the event detection module 3200 is configured to detect whether an event occurs when the vehicle plays an audio; the scene determining module 3300 is configured to determine a current audio playing scene of the vehicle when an event occurs; the audio determining module 3400 is configured to determine, according to the file header list, a target audio file matched with a current audio playing scene; the audio playing module 3500 is used for playing the target audio file.

In one embodiment of the disclosure, the header further includes second data for representing a priority of the corresponding audio file, and the audio determination module 3400 may be further configured to:

determining an audio file matched with the current audio playing scene according to the file header list;

and according to the second data, selecting one audio file with the highest priority from the audio files matched with the current audio playing scene as a target audio file.

In one embodiment of the present disclosure, the audio determination module 3400 may be further configured to:

determining an audio file matched with the current audio playing scene according to the file header list;

and randomly selecting one audio file matched with the current audio playing scene as a target audio file.

In one embodiment of the present disclosure, determining, from the file header list, an audio file that matches the current audio playback scene includes:

determining a file header, which is contained in the file header list and has a playing scene represented by first data and a current audio playing scene, as a target file header;

and determining the audio file corresponding to the target file header as the audio file matched with the current audio playing scene.

In one embodiment of the present disclosure, the header of the target audio file further includes third data for representing a sampling rate of the target audio file; the audio playing module 3500 can also be used for:

and playing the target audio file according to the third data.

In one embodiment of the present disclosure, the vehicle control device 3000 may further include:

the method comprises the steps of responding to a deletion request, and obtaining a first file identifier contained in the deletion request;

and deleting the audio file corresponding to the first file identification in the vehicle.

In one embodiment of the present disclosure, the vehicle control device 3000 may further include:

a module for responding to the new request and acquiring a second file identifier contained in the new request;

and the module is used for downloading the audio file corresponding to the second file identifier from the server and storing the audio file.

In one embodiment of the present disclosure, the vehicle control device 3000 may further include:

a module for responding to the update request and acquiring a third file identifier contained in the update request;

and the module is used for downloading the audio file corresponding to the third file identifier from the server and replacing the audio file corresponding to the third file identifier in the vehicle.

It will be apparent to those skilled in the art that the vehicle control apparatus 3000 may be implemented in various ways. For example, the vehicle control device 3000 may be realized by an instruction configuration processor. For example, the vehicle control apparatus 3000 may be realized by storing instructions in a ROM and reading the instructions from the ROM into a programmable device when starting the device. For example, the vehicle control device 3000 may be cured into a dedicated device (e.g., ASIC). The vehicle control device 3000 may be divided into units independent of each other, or may be implemented by combining them together. The vehicle control device 3000 may be implemented by one of the various implementations described above, or may be implemented by a combination of two or more of the various implementations described above.

In the present embodiment, the vehicle control device 3000 may have various implementation forms, for example, the vehicle control device 3000 may be any functional module running in a software product or an application providing a vehicle control service, or a peripheral insert, a plug-in, a patch, or the like of the software product or the application, or the software product or the application itself.

< vehicle embodiment >

In the present embodiment, a vehicle 400 is also provided, as shown in fig. 4, including a memory 410 and a processor 420.

The memory 410 for storing executable computer programs; the processor 420 is configured to execute the vehicle control method according to any one of the embodiments under the control of the computer program.

The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.

The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.

The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.

The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions 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 some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).

Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.

These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.

The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.

The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.

Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:安装基座及摩托车

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!