Application control method and related device
By converting voice broadcasting commands into media key events and sending them to non-customized applications, the problem that users cannot control non-customized applications through voice is solved, and the degree of intelligent control and user experience is improved.
Patent Information
- Application Number
- CN202411763475.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-03
- Publication Date
- 2025-03-07
AI Technical Summary
Users cannot control non-customized applications through voice control, and the degree of intelligence is low.
By receiving voice broadcast commands sent by the on-board voice service, determine the target application. If it is a non-customized application, convert the voice broadcast command into a media button event and send it to the non-customized application to perform the corresponding operation.
It realizes voice control for non-customized applications, and improves the intelligent control level and user experience of applications.
Smart Images

Figure CN119580730A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the vehicle-mounted field, and more specifically, to an application control method and related devices. Background Art
[0002] In order to improve the reliability of applications on vehicles, applications installed in the vehicle system are generally customized applications, which are highly compatible with the vehicle system and are easy to use. At the same time, there are also some non-customized applications in the application market, such as non-customized audio and video applications. After downloading non-customized applications to the vehicle, these non-customized applications are not connected to the vehicle voice service due to the high cost of accessing the voice service in the vehicle, making it impossible for users to control non-customized applications through voice, and the degree of intelligence is low. Summary of the invention
[0003] In view of this, the present application provides an application control method and related devices to solve the problem that users cannot control non-customized applications through voice and the level of intelligence is low.
[0004] In order to solve the above technical problems, this application adopts the following technical solutions:
[0005] An application control method, comprising:
[0006] Receive the voice broadcast control command sent by the in-vehicle voice service, and determine the target application that responds to the voice broadcast control command;
[0007] If the target application is a non-customized application, converting the voice control command into a media key event;
[0008] The media key event is sent to the non-customized application, so that the non-customized application performs an operation corresponding to the media key event.
[0009] Optionally, determining a target application that responds to the voice broadcast control instruction includes:
[0010] Determine whether the audio focus is occupied;
[0011] If occupied, determining the occupant of the audio focus, and using the occupant as the target application to respond to the voice broadcast control instruction;
[0012] If it is not occupied, determine the target application that responds to the voice play control instruction based on the audio stream play history.
[0013] Optionally, determining a target application that responds to the voice playback control instruction based on the audio stream playback history includes:
[0014] Determine whether there is an audio stream playback history;
[0015] If the audio stream playback history exists, determining the last application occupying the audio focus in the audio stream playback history;
[0016] The determined application is used as a target application for responding to the voice broadcast control instruction.
[0017] Optionally, converting the voice control command into a media key event includes:
[0018] Determine the key corresponding to the voice control command;
[0019] For the button, a media button event is obtained by encapsulating it in a media button format.
[0020] Optionally, sending the media key event to the non-customized application includes:
[0021] The media key event is sent to a native system service, so that the native system service forwards the media key event to the non-customized application.
[0022] Optionally, after sending the media key event to the non-customized application, the method further includes:
[0023] Output the command response information to the in-vehicle voice service, so that the in-vehicle voice service outputs voice feedback information corresponding to the command response information.
[0024] Optionally, it also includes:
[0025] If the target application is a customized application, encapsulate the voice broadcast control instruction into a control instruction that can be recognized by the customized application;
[0026] The control instruction is sent to the customized application so that the customized application performs an operation corresponding to the control instruction.
[0027] An application control device, comprising:
[0028] An application determination module, used to receive the voice broadcast control command sent by the vehicle voice service, and determine the target application that responds to the voice broadcast control command;
[0029] A conversion module, used for converting the voice playback control instruction into a media key event if the target application is a non-customized application;
[0030] The event sending module is used to send the media key event to the non-customized application, so that the non-customized application performs an operation corresponding to the media key event.
[0031] An electronic device comprises at least one processor and a memory connected to the processor, wherein:
[0032] The memory is used to store computer programs;
[0033] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned application control method.
[0034] A vehicle comprises the above electronic device.
[0035] The present application provides an application control method and related devices. In the present application, a voice broadcast control instruction sent by an in-vehicle voice service is received, and a target application that responds to the voice broadcast control instruction is determined. If the target application is a non-customized application, since the non-customized application can respond to the key operation on the vehicle computer, the voice broadcast control instruction can be converted into a media key event, and the media key event is sent to the non-customized application, so that the non-customized application performs the operation corresponding to the media key event. That is, the present invention achieves the purpose of voice control of non-customized applications by converting voice broadcast control instructions into media key events and controlling non-customized applications through media key events, thereby improving the intelligent control level of applications and improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0037] Figure 1 A flowchart of an application control method provided by an embodiment of the present invention;
[0038] Figure 2 A schematic diagram of a voice response scenario provided by an embodiment of the present invention;
[0039] Figure 3 A flowchart of a method for determining a receiver provided by an embodiment of the present invention;
[0040] Figure 4 A flow chart of a control method for a non-customized application provided by an embodiment of the present invention;
[0041] Figure 5 A flow chart of a control method for a customized application provided by an embodiment of the present invention;
[0042] Figure 6 A schematic diagram of the structure of an application control device provided by an embodiment of the present invention;
[0043] Figure 7A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] In order to improve the reliability of applications on vehicles, applications installed in the vehicle system are generally customized applications, which are highly compatible with the vehicle system and are convenient to use. At the same time, there are also some non-customized applications in the application market, such as non-customized audio and video applications. After downloading non-customized applications to the vehicle, these non-customized applications are not connected to the vehicle voice service due to the high cost of accessing the voice service in the vehicle.
[0046] In actual scenarios, there are more and more scenarios where voice is used for operations in the car environment, especially during driving. Whether the voice command is executed and whether the execution result meets the user's wishes are the most basic evaluation points for the user's experience of in-vehicle voice services. Therefore, for non-customized services, since non-customized applications are not connected to the car voice service, users cannot control non-customized applications by voice, such as users cannot control them by voice (play, pause, next song, previous song, etc.), the degree of intelligence is low, and the user experience is poor.
[0047] After analysis, it is found that most audio and video applications in the market have adapted to the media button processing flow and can support button operations. There are various ways to support button operations, such as background playback control based on the media session MediaSession framework, or registering a button listener in the playback interface of a non-customized application, so that the non-customized application supports background playback control and button control of the playback interface. Taking background playback control as an example, in the current car system, when a non-customized application is played in the background, the playback control of the non-customized audio and video application can be achieved through the hard buttons on the steering wheel. Similarly, for the button control of the playback interface, the hard buttons on the steering wheel can be used to achieve the playback control of non-customized audio and video applications. To this end, the present invention is based on this control method, converts voice playback control instructions into media button events, and controls non-customized applications through media button events, thereby achieving the purpose of voice control of non-customized applications, improving the degree of intelligent control of applications, and improving user experience.
[0048] On this basis, an embodiment of the present invention provides an application control method that can be applied to a vehicle computer, specifically, the adaptation service in the vehicle computer can execute the application control method. Generally, the system type used by the vehicle computer is the same as the system type of the non-customized application downloaded by the vehicle computer. For example, if the vehicle computer uses the Android system, the non-customized application downloaded by the vehicle computer also uses the Android system, and the two are consistent.
[0049] The application controlled in the present invention may be a customized audio and video application or a non-customized audio and video application. In addition, it may also be other applications, such as a customized navigation application and a non-customized navigation application.
[0050] Reference Figure 1 , an application control method may include:
[0051] S11. Receive a voice broadcast control instruction sent by the in-vehicle voice service, and determine a target application that responds to the voice broadcast control instruction.
[0052] like Figure 2 As shown, the user can input voice commands, such as "pause playback". At this time, the vehicle voice service (VRService) can receive the voice command. The vehicle voice service has a new playback control command recognition function, which can identify whether the voice command is a voice playback control command. The recognition process of the vehicle voice service is as follows:
[0053] After receiving the voice command, the in-vehicle voice service performs voice recognition on the voice command to obtain the voice recognition result, determines the keyword in the voice recognition result, matches the keyword with the function, and if it matches the voice broadcast control function, it is considered that the current voice command is a command for controlling customized audio and video applications or non-customized audio and video applications. At this time, the voice command is encapsulated according to the internal protocol to obtain the voice broadcast control command, and the voice broadcast control command is sent to the adapter service (AdapterService).
[0054] Among them, the voice control commands can be play, pause, previous song, next song, etc.
[0055] In actual scenarios, there are two types of applications controlled by the adapted service. One is the customized audio and video application (InnerMediaService), which is fully adapted to the internal protocol of the vehicle. The adapted service can interact with the customized audio and video application through the internal protocol. The other is the non-customized audio and video application (OutsideMediaService), which is not adapted to the internal protocol of the vehicle. The adapted service conversion protocol is required to indirectly interact with the non-customized audio and video application through the native system service.
[0056] like Figure 2As shown, the adaptation service receives the voice broadcast control instruction and needs to determine whether to forward the instruction to the customized audio and video application or to the native system service, and then send it to the non-customized audio and video application through the native system service. That is, the adaptation service needs to determine the target application that responds to the voice broadcast control instruction. The target application is a customized audio and video application or a non-customized audio and video application.
[0057] Specifically, the adaptation service identifies the recipient of the current voice broadcast control command based on the system environment (audio focus, audio stream history, etc.), that is, it determines whether the command is processed by a specific customized audio and video application or handed over by the system to a non-customized audio and video application. Regardless of whether it is sent to a customized audio and video application or handed over by the system to a non-customized audio and video application, the adaptation service needs to adapt to the in-vehicle voice service and undertake the function of converting voice broadcast control commands, converting voice broadcast control commands into control commands that can be recognized by customized audio and video applications, or into media key events that can be recognized by non-customized audio and video applications.
[0058] S12: If the target application is a non-customized application, convert the voice control command into a media key event.
[0059] Specifically, if the target application is a non-customized application, since the non-customized application is not connected to the car voice service, the user cannot control the non-customized application through voice, such as the user cannot perform voice playback control (play, pause, previous and next song). The non-customized application supports background button playback control and button control of the playback interface, so an adaptation service is required for intermediate conversion to convert it into a non-customized application, such as a non-customized audio and video application, which can recognize media button events.
[0060] S13: Send the media key event to the non-customized application, so that the non-customized application performs an operation corresponding to the media key event.
[0061] Specifically, the adaptation service cannot communicate directly with the non-customized application, and needs to communicate indirectly through the native system service. Then the adaptation service sends the media key event to the native system service, so that the native system service forwards the media key event to the non-customized application.
[0062] In this embodiment, a voice broadcast control instruction sent by the vehicle voice service is received, and a target application that responds to the voice broadcast control instruction is determined. If the target application is a non-customized application, since the non-customized application can respond to the key operation on the vehicle computer, the voice broadcast control instruction can be converted into a media key event, and the media key event is sent to the non-customized application, so that the non-customized application performs the operation corresponding to the media key event. That is, the present invention achieves the purpose of voice control of non-customized applications by converting voice broadcast control instructions into media key events and controlling non-customized applications through media key events, thereby improving the intelligent control level of applications and improving user experience.
[0063] The above embodiment mentions the need to determine the target application that responds to the voice broadcast control command, which can be exposed through the native system interface to assist the adaptation service in identifying the instruction recipient. The adaptation service can be determined through the system environment (audio focus, audio stream history records, etc.).
[0064] Among them, audio focus refers to a technical mechanism that ensures that only one application can play audio at any time in a multi-application environment. In the Android system, audio focus management is to prevent multiple applications from playing audio at the same time, which may cause audio confusion or conflict. When an application requests audio focus, if there is an application currently holding the audio focus, the application will receive a focus loss event, and the new application will gain focus. For example, when the calling application holds the audio focus, the audio focus requests of other applications will be rejected. Therefore, the target application can be determined by the occupant of the audio focus.
[0065] If an application occupies the audio focus, it can inform other applications by sending a notification message through the interface. The notification message is summarized and carries the package name of the application currently holding the audio focus, so that other applications can know which application is currently occupying the audio focus.
[0066] like Figure 3 As shown, first determine whether the audio focus is occupied. If it is occupied, it means that the current non-customized application or customized application is using the audio focus. For example, the current non-customized application or customized application is playing music. At this time, the occupant of the audio focus is determined and the occupant is used as the target application to respond to the voice broadcast control command.
[0067] Specifically, it is determined whether the audio focus is occupied by a non-customized application. If it is not occupied by a non-customized application, the receiver of the information sent by the adaptation service is the same as the occupier, which is a customized application, that is, the target application is a customized application. If it is occupied by a non-customized application, the occupier is a non-customized application. Since the non-customized application and the adaptation service need to be forwarded through the native system service, the receiver of the information sent by the adaptation service is the native system service.
[0068] If the audio focus is not occupied, the target application that responds to the voice play control instruction can be determined based on the audio stream playback history in the Android internal multimedia framework service.
[0069] Specifically, after each power-on, as long as there is audio stream playback, there will be an audio stream playback history. The audio stream playback history includes the package name of the application that occupies the audio focus after this power-on. These applications are arranged in chronological order. The older the current time, the higher the ranking, and the closer the current time, the lower the ranking. For example, the audio stream playback history includes non-customized application A, customized application C, and non-customized application B. At this time, non-customized application B is the last application to occupy the audio focus. If there is no audio stream playback after power-on, there is no audio stream playback history.
[0070] When the audio focus is not occupied, first determine whether there is an audio stream playback history. If there is the audio stream playback history, determine the last application that occupied the audio focus in the audio stream playback history, and use the determined application as the target application to respond to the voice playback control instruction.
[0071] For example, if the last application that occupied the audio focus was a customized application, then the target application is a customized application and the receiver is also a customized application. If the last application that occupied the audio focus was a non-customized application, then the target application is a non-customized application and the receiver is a native system service.
[0072] If there is no audio stream playback history, the default target application and receiver are the default customized application. If the customized applications include C, D, and E, the default customized application is C. If there is no audio stream playback history, the target application and receiver are the customized application C.
[0073] When it is determined that the target application is a non-customized application, the voice control command needs to be converted into a media key event. Figure 4After the in-vehicle voice service VRService receives the voice command, it recognizes that the voice command is a voice broadcast command, encapsulates the voice command according to the internal protocol between the in-vehicle voice service VRService and the adaptation service AdapterService, obtains the voice broadcast command, and sends the voice broadcast command to the adaptation service AdapterService.
[0074] AdapterService is based on Figure 3 Identify the recipient and the target application. If the target application is a non-customized application, such as a non-customized audio and video application, determine the key corresponding to the voice playback command. For example, if the voice playback command is pause, the corresponding key is the pause key, and then for the key, encapsulate it in the form of a media key to obtain a media key event. Taking the system type as an Android system as an example, encapsulate it in the form of an Android media key to obtain a media key event.
[0075] The media button event is then sent to the native system service (Android System), which performs Android media dispatch processing. Specifically, the native system service dispatches the media button event to the non-customized audio and video application (OutsideMediaService), and the non-customized audio and video application responds to the event and performs the corresponding operation of the event, such as performing a pause operation.
[0076] For example, if the user is playing music through a non-customized audio and video application, if a next song command is received from the user's voice output, the adaptation service outputs a media key event to the non-customized audio and video application, and the non-customized audio and video application plays the next song.
[0077] As can be seen from the above, the embodiment of the present invention adds an adaptation service, combines the adaptation service with the native system service, and uses the Android media button processing capability to convert the voice playback control command into a media button event and dispatch it to the system (AndroidSystem), which then dispatches it to the corresponding non-customized application, thereby realizing voice control of non-customized applications.
[0078] In actual scenarios, the native interface cannot directly return the execution result. The voice side can design appropriate feedback statements and provide direct feedback after the adaptation service sends the media key event.
[0079] like Figure 4As shown, after sending the media button event to the non-customized application, the adaptation service outputs command response information (such as informing that the command has been sent) to the in-vehicle voice service, and the in-vehicle voice service outputs voice feedback information corresponding to the command response information. The user can receive the voice feedback information, thereby realizing a closed loop of voice communication and enabling the user to understand the progress of voice control in a timely manner.
[0080] It should be noted that after the adaptation service sends the media button event to the native system service, it can output command response information to the in-vehicle voice service, and the in-vehicle voice service outputs voice feedback information corresponding to the command response information, thereby reducing user waiting time and improving user experience.
[0081] In this embodiment, for non-customized audio and video applications, the Android media button processing flow is used to solve the problem that non-customized audio and video applications cannot use the vehicle voice service for voice playback control (play, pause, next song, previous song, etc.), and voice playback control can be supported without adapting the vehicle voice service. In addition, the hard buttons on the steering wheel are used to implement voice operation, and the user experience is consistent in the playback control commands. In addition, the adaptation service uses the native capabilities of the system, with low cost and high benefits.
[0082] It should be noted that the method of converting voice broadcast control instructions into media key events and controlling applications through media key events in the present invention can also be applied to other public version applications that cannot be controlled by voice.
[0083] In another implementation of the present invention, if the target application is a customized application, the voice broadcast control instruction is encapsulated as a control instruction that can be recognized by the customized application.
[0084] Specifically, refer to Figure 5 When the target application is a customized application, since the adaptation service can interact with the customized application, such as a customized audio and video application, through an internal customized protocol, the control of the customized application can be directly implemented through the internal customized protocol.
[0085] After the in-vehicle voice service VRService receives the voice command, it recognizes that the voice command is a voice broadcast command, encapsulates the voice command according to the internal protocol between the VRService and the adapter service AdapterService, obtains the voice broadcast command, and dispatches the voice broadcast command to the adapter service AdapterService. Figure 3Identify the recipient and the target application. If the target application is a customized application, continue to encapsulate the voice broadcast control command according to the internal customized protocol, encapsulate the voice broadcast control command into a control command that the customized application can recognize, and distribute it to the customized application, such as a customized audio and video application, so that the customized application performs the operation corresponding to the control command. After receiving the command, the customized application returns the processing result according to the protocol until voice feedback is received and the process ends.
[0086] In this embodiment, for customized applications, instructions are forwarded and processed according to an internal customized protocol to implement control of the customized application.
[0087] Based on the above-mentioned application control method embodiment, another embodiment of the present invention provides an application control device, referring to Figure 6 , which may include:
[0088] The application determination module 11 is used to receive the voice broadcast control command sent by the vehicle voice service and determine the target application that responds to the voice broadcast control command;
[0089] A conversion module 12, configured to convert the voice playback control instruction into a media key event if the target application is a non-customized application;
[0090] The event sending module 13 is used to send the media key event to the non-customized application, so that the non-customized application performs an operation corresponding to the media key event.
[0091] In one implementation, the application determination module 11 includes:
[0092] The application judgment submodule is used to judge whether the audio focus is occupied;
[0093] A first determination submodule is used to determine the occupant of the audio focus if it is occupied, and use the occupant as a target application to respond to the voice broadcast control instruction;
[0094] The second determination submodule is used to determine the target application that responds to the voice playback control instruction based on the audio stream playback history if it is not occupied.
[0095] In one implementation, the second determining submodule includes:
[0096] A determination unit, used to determine whether there is an audio stream playback history;
[0097] A first application determination unit, configured to determine the last application occupying the audio focus in the audio stream playback history if the audio stream playback history exists;
[0098] The second application determination unit is used to use the determined application as a target application for responding to the voice broadcast control instruction.
[0099] In one implementation, the conversion module 12 includes:
[0100] The conversion submodule is used to determine the key corresponding to the voice broadcast control instruction, and for the key, encapsulate it in the form of a media key to obtain a media key event.
[0101] In one implementation, the event sending module 13 includes:
[0102] The sending submodule is used to send the media key event to the native system service, so that the native system service forwards the media key event to the non-customized application.
[0103] In one implementation, the method further includes:
[0104] The response feedback module is used to output the command response information to the in-vehicle voice service, so that the in-vehicle voice service outputs the voice feedback information corresponding to the command response information.
[0105] In one implementation, the method further includes:
[0106] An instruction encapsulation module, used for encapsulating the voice broadcast control instruction into a control instruction recognizable by the customized application if the target application is a customized application;
[0107] The instruction sending module is used to send the control instruction to the customized application so that the customized application performs the operation corresponding to the control instruction.
[0108] In this embodiment, a voice broadcast control instruction sent by the vehicle voice service is received, and a target application that responds to the voice broadcast control instruction is determined. If the target application is a non-customized application, since the non-customized application can respond to the key operation on the vehicle computer, the voice broadcast control instruction can be converted into a media key event, and the media key event is sent to the non-customized application, so that the non-customized application performs the operation corresponding to the media key event. That is, the present invention achieves the purpose of voice control of non-customized applications by converting voice broadcast control instructions into media key events and controlling non-customized applications through media key events, thereby improving the intelligent control level of applications and improving user experience.
[0109] It should be noted that, for the working process of each module, sub-module and unit in this embodiment, please refer to the corresponding description in the above embodiment, which will not be repeated here.
[0110] An embodiment of the present application also provides an electronic device, including at least one processor and a memory connected to the processor, wherein:
[0111] The memory is used to store computer programs;
[0112] The processor is used to execute the computer program so that the electronic device can implement the above-mentioned application control method.
[0113] refer to Figure 7 As shown, it shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiment of the present application. The electronic device in the embodiment of the present application may include but is not limited to fixed terminals such as car computers, mobile phones, notebook computers, PDAs (personal digital assistants), PADs (tablet computers), desktop computers, etc. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0114] like Figure 7 As shown, the electronic device may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 to a random access memory (RAM) 603. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0115] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a memory card, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 An electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0116] A vehicle is provided in an embodiment of the present application, comprising the above-mentioned electronic device.
[0117] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions are executed on an electronic device, the electronic device implements any application control method provided in the embodiment of the present application.
[0118] A computer-readable storage medium is also provided in an embodiment of the present application. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement any application control method provided in the embodiment of the present application.
[0119] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An application control method, characterized in that: include: Receive the voice broadcast control command sent by the in-vehicle voice service, and determine the target application that responds to the voice broadcast control command; If the target application is a non-customized application, converting the voice control command into a media key event; The media key event is sent to the non-customized application, so that the non-customized application performs an operation corresponding to the media key event.
2. The application control method according to claim 1, characterized in that: Determining a target application that responds to the voice broadcast control command includes: Determine whether the audio focus is occupied; If occupied, determining the occupant of the audio focus, and using the occupant as the target application to respond to the voice broadcast control instruction; If it is not occupied, determine the target application that responds to the voice play control instruction based on the audio stream play history.
3. The application control method according to claim 2, characterized in that: Determining a target application that responds to the voice playback control instruction based on the audio stream playback history includes: Determine whether there is an audio stream playback history; If the audio stream playback history exists, determining the last application occupying the audio focus in the audio stream playback history; The determined application is used as a target application for responding to the voice broadcast control instruction.
4. The application control method according to claim 1, characterized in that: Converting the voice control command into a media key event includes: Determine the key corresponding to the voice control command; For the button, a media button event is obtained by encapsulating it in a media button format.
5. The application control method according to claim 1, characterized in that: Sending the media key event to the non-customized application includes: The media key event is sent to a native system service, so that the native system service forwards the media key event to the non-customized application.
6. The application control method according to claim 1, characterized in that: After sending the media key event to the non-customized application, the method further includes: Output the command response information to the in-vehicle voice service, so that the in-vehicle voice service outputs voice feedback information corresponding to the command response information.
7. The application control method according to claim 1, characterized in that: Also includes: If the target application is a customized application, encapsulate the voice broadcast control instruction into a control instruction that can be recognized by the customized application; The control instruction is sent to the customized application so that the customized application performs an operation corresponding to the control instruction.
8. An application control device, characterized in that: include: An application determination module, used to receive the voice broadcast control command sent by the vehicle voice service, and determine the target application that responds to the voice broadcast control command; A conversion module, used for converting the voice playback control instruction into a media key event if the target application is a non-customized application; The event sending module is used to send the media key event to the non-customized application, so that the non-customized application performs an operation corresponding to the media key event.
9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the application control method as described in any one of claims 1 to 7.
10. A vehicle, characterized in that: Comprising the electronic device as claimed in claim 9.