Audio control method, electronic device and medium
By responding to audio operations between the car terminal and the mobile terminal, and issuing corresponding instructions to control the audio application, the problem of association between the car and the mobile phone audio application is solved, and the association between the music playback control interface on the car and the mobile phone audio application is realized, improving the Convenience and reliability of control.
Patent Information
- Application Number
- CN202110737052.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-30
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-06-30
AI Technical Summary
The existing technology cannot associate the music playback control interface on the car with the audio application currently displayed on the mobile phone. As a result, when the user changes audio applications on the mobile phone, the car cannot flexibly control the converted application.
By responding to the audio pause and playback operations between the car terminal and the mobile terminal, and issuing corresponding instructions to control the current and switched audio applications, the association between the music playback control interface on the car and the audio application currently displayed on the mobile phone is realized, without the need to introduce Or design new buttons.
It realizes the association between the music playback control interface on the car and the audio application currently displayed on the mobile phone. The user can flexibly control the transformed audio application, which improves the convenience and reliability of control.
Smart Images

Figure CN115550501B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile phone and vehicle computer interconnection, and in particular to an audio control method, electronic equipment and medium. Background Art
[0002] Smart Car Connect is an industry alliance built based on the needs of various scenarios of mobile phone-car machine interconnection, in order to promote the interconnection and interoperability between cars and mobile terminals and improve user experience. After the mobile phone and car machine (car control system) are connected through BLE (Bluetooth Low Energy), USB (Universal Serial Bus), WiFi (mobile hotspot) and other protocols, the content on the mobile phone can be projected to the car screen, such as projecting the mobile phone navigation information to the car screen. At the same time, when the mobile phone calls, the interface waiting to answer will also be displayed on the car screen.
[0003] For certain types of applications, such as music applications, the existing technical solutions only send the audio stream from the mobile phone to the car screen, while the control of music, such as play / pause, previous song / next song, is implemented on the car computer through the local interface, and the interface of the music application will not be projected to the car screen. When a user opens multiple audio applications on the mobile phone and an application starts playing audio, even if the application has been switched to the background, the control interface on the car computer can only control the application that is playing audio, and cannot control the new application currently displayed in the foreground.
[0004] In view of this, the present invention is proposed. Summary of the invention
[0005] The object of the present invention is to provide an audio control method, an electronic device and a medium, so as to achieve the effect of associating the music playback control interface on the vehicle computer with the audio application currently displayed on the mobile phone.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides an audio control method, applicable to a vehicle side, the method comprising:
[0008] In response to an audio pause operation input to the local audio application interface, an audio pause instruction is issued to pause the audio emitted by the current audio application;
[0009] In response to an audio playback operation input to the local audio application interface, an audio playback instruction is issued to play the audio emitted by the switched audio application;
[0010] Among them, the current audio application is an audio application that is currently playing audio on the mobile terminal; the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio.
[0011] In a second aspect, the present invention provides an audio control method applicable to a mobile terminal, the method comprising:
[0012] Respond to the audio pause command sent by the vehicle end and control the current audio application to pause the audio;
[0013] In response to the switched audio application being started or called to the foreground, the switched audio application is controlled to obtain the audio focus;
[0014] Respond to the audio playback command issued by the vehicle end and control the switched audio application to play the audio;
[0015] Among them, the current audio application is an audio application that is currently playing audio on the mobile terminal; the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio.
[0016] In a third aspect, the present invention provides an audio control method, comprising:
[0017] In response to an audio pause operation input to the local audio application interface, an audio pause instruction is issued to pause the audio emitted by the current audio application;
[0018] Respond to the audio pause command sent by the vehicle end and control the current audio application to pause the audio;
[0019] In response to the switched audio application being started or called to the foreground, the switched audio application is controlled to obtain the audio focus;
[0020] In response to an audio playback operation input to the local audio application interface, an audio playback instruction is issued to play the audio emitted by the switched audio application;
[0021] Respond to the audio playback command issued by the vehicle end and control the switched audio application to play the audio;
[0022] Among them, the current audio application is an audio application that is currently playing audio on the mobile terminal; the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio.
[0023] In a fourth aspect, the present invention provides an electronic device, comprising:
[0024] at least one processor, and a memory communicatively coupled to at least one of the processors;
[0025] The memory stores instructions that can be executed by at least one of the processors, and the instructions are executed by at least one of the processors so that at least one of the processors can perform the above method.
[0026] In a fifth aspect, the present invention provides a medium having computer instructions stored thereon, wherein the computer instructions are used to enable the computer to execute the above method.
[0027] Compared with the prior art, the present invention has the following beneficial effects:
[0028] An audio control method provided by the present invention is applicable to the vehicle side. It first responds to the audio pause operation input to the local audio application interface, and issues an audio pause instruction to pause the audio emitted by the current audio application. It is simple and convenient, and effectively utilizes the relevant key operations on the existing local audio application interface. There is no need to introduce or design new keys (which can be physical keys or virtual keys) to pause the audio emitted by the current audio application; then responds to the audio play operation input to the local audio application interface, and issues an audio play instruction to play the audio emitted by the switched audio application. Similar to the above, there is no need to introduce or design new keys. The issued audio play instruction can be directly used to control the switched audio application to emit audio. This method can associate the music playback control interface (i.e., the local audio application interface) on the vehicle computer with the audio application currently displayed on the mobile phone (i.e., the switched audio application). When the user changes the audio application on the mobile phone, the vehicle side can control the changed application, which is flexible and reliable.
[0029] Another audio control method provided by the present invention is suitable for a mobile terminal. First, it responds to an audio pause command issued by the vehicle terminal and controls the current audio application to pause the audio. At this time, the audio channel of the mobile terminal is not occupied. After the switched audio application is started or called to the foreground, the switched audio application can obtain the audio focus (only the application that obtains the audio focus can play audio). Then, after receiving the audio play command issued by the vehicle terminal, the switched audio application can be controlled to play the audio. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0031] Figure 1 is a flow chart of the audio control method provided in Example 1;
[0032] Figure 2is a flow chart of the audio control method provided in Example 2;
[0033] Figure 3 is a flow chart of the audio control method provided in Example 3;
[0034] Figure 4 This is a typical interactive schematic diagram of the audio control method provided in Example 3;
[0035] Figure 5 It is a schematic diagram of the structure of the electronic device provided in Example 4. DETAILED DESCRIPTION
[0036] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0037] It should be noted that the "application" in this embodiment is also called APP (Application), and audio applications refer to applications that can play audio, such as QQ Music, NetEase Music, Kuwo Music, Himalaya, Qingting FM, Lazy Listening to Books, etc.
[0038] Example 1
[0039] Figure 1 1 is a flow chart of an audio control method provided by this embodiment, and this embodiment is applicable to the audio control of a vehicle after the vehicle is started. The method can be executed by an audio control device, which can be composed of software and / or hardware and is generally integrated in an electronic device.
[0040] like Figure 1 As shown, this embodiment provides an audio control method, which is applicable to a vehicle end, and the method includes:
[0041] S110. In response to an audio pause operation input to a local audio application interface, an audio pause instruction is issued to pause the audio emitted by the current audio application.
[0042] Among them, "car side" is also called vehicle terminal or car machine. "Local audio application interface" refers to the application interface downloaded to the car side for controlling the operation of the audio of the car machine and the operation of the audio application of the mobile terminal. The local audio application interface can be set with physical keys or virtual keys for controlling the audio, such as the previous song, next song, pause, play, etc. The specific design form of the above physical keys and virtual keys can be selected from any existing one, and this embodiment does not impose any special restrictions on this. "Audio pause operation" refers to the operation for pausing the audio performed on the local audio application interface. The operation can be manually input by the user (such as pressing the above physical key or virtual key) to the local audio application interface, or it can be input by the user through other instructions (such as voice or gesture, etc.) to the local audio application interface. For example, when voice input is used, the microphone on the car side collects the user's voice, and after parsing the semantics of the voice, the physical key or virtual key of the corresponding function on the local audio application interface is controlled to generate an operation corresponding to the semantics. The use of gesture input is similar to the use of voice input. The camera can be used to collect user gestures, and the rest will not be repeated. "Audio pause instruction" refers to the instruction issued by the car side that can instruct the mobile terminal to pause the audio. "Current audio application" refers to the audio application that is currently playing audio on the mobile terminal.
[0043] This step responds to the audio pause operation input into the local audio application interface and issues an audio pause command to pause the audio emitted by the current audio application. It is simple and convenient, and effectively utilizes the relevant key operations on the existing local audio application interface. There is no need to introduce or design new keys (which can be physical keys or virtual keys) to pause the audio emitted by the current audio application.
[0044] S120: In response to an audio play operation input to the local audio application interface, an audio play instruction is issued to play the audio emitted by the switched audio application.
[0045] Among them, "audio playback operation" refers to the operation for playing audio on the local audio application interface. The operation can be manually input by the user (such as pressing the above-mentioned physical button or virtual button) to the local audio application interface, or it can be input by the user through other instructions (such as voice or gesture, etc.) to the local audio application interface. The case of using voice input or gesture input is similar to that in the aforementioned S110, and will not be repeated here. "Audio playback instruction" refers to an instruction issued by the vehicle end that can instruct the audio playback of the mobile end. "Switched audio application" is an audio application that is started or called to the foreground by the mobile end when the current audio application is playing audio; wherein, the foreground refers to a page facing the user and shown to the user.
[0046] This step responds to the audio playback operation input into the local audio application interface, and issues an audio playback instruction to play the audio emitted by the switched audio application. Similar to the above, there is no need to introduce or design new buttons. The issued audio playback instruction can be directly used to control the switched audio application to emit audio.
[0047] It should be noted that the methods of "issuing an audio pause command" and "issuing an audio play command" mentioned in the above steps are determined based on the protocol connecting the mobile terminal and the vehicle terminal. For example, if the mobile terminal and the vehicle terminal are connected using the BLE protocol, the method of issuance is Bluetooth.
[0048] The above method can associate the music playback control interface on the car computer (i.e., the local audio application interface) with the audio application currently displayed on the mobile phone (i.e., the switched audio application). When the user changes the audio application on the mobile phone, the car end can control the changed application, which is flexible and reliable.
[0049] Furthermore, before the audio pause operation input to the local audio application interface is responded to and the audio pause instruction is issued to pause the audio emitted by the current audio application, it also includes:
[0050] Respond to the audio screen projection service request and start the local audio application interface.
[0051] The local audio application interface is started in response to an audio screen projection service request.
[0052] Optionally, responding to the audio screen projection service request and starting the local audio application interface includes: responding to the audio screen projection service request, obtaining the service data in the service request, and starting the local audio application interface.
[0053] Preferably, responding to the audio screen projection service request and starting the local audio application interface includes:
[0054] Respond to the audio screen projection service request and obtain the service type in the service request;
[0055] Determine whether the service type is an audio service, and if so, start a local audio application interface.
[0056] Among them, "audio screen projection service request" refers to the information requesting the projection of audio to the vehicle, including service data and service type. "Service data" refers to the data stream of the projection service, such as audio stream, video stream, etc. "Service type" refers to the type of the required projection service, such as audio, video, etc.
[0057] This preferred implementation first obtains the service type in the service request after responding to the audio screen projection service request. If the service type is determined to be an audio service, the local audio application interface is started. If the service type is determined not to be an audio service, the local audio application interface is not started. This method can avoid the situation where the local audio application interface is mistakenly opened when non-audio services are projected.
[0058] Furthermore, before responding to the audio screen projection service request and starting the local audio application interface, it also includes: responding to the connection request issued by the mobile terminal and establishing a connection with the mobile terminal. As for the specific method of establishing the connection, any one of the existing BLE connection, USB connection or WiFi connection can be selected.
[0059] The audio control device for executing the above-mentioned audio control method includes: an audio pause instruction issuing module, which is used to respond to an audio pause operation input into a local audio application interface, and issue an audio pause instruction to pause the audio emitted by the current audio application; an audio play instruction issuing module, which is used to respond to an audio play operation input into the local audio application interface, and issue an audio play instruction to play the audio emitted by the switched audio application; wherein the current audio application is an audio application that is currently playing audio on the mobile terminal; and the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio.
[0060] Furthermore, the device also includes: a local audio application interface startup module, which is used to respond to the audio projection service request and start the local audio application interface; a first connection module, which is used to respond to the connection request issued by the mobile terminal and establish a connection with the mobile terminal.
[0061] Furthermore, the local audio application interface startup module is also used to respond to the audio projection service request, obtain the service type in the service request; determine whether the service type is an audio service, and if so, start the local audio application interface.
[0062] Furthermore, the first connection module is, for example, a BLE module, a USB module or a WiFi module.
[0063] Example 2
[0064] Figure 2 is a flow chart of another audio control method provided by this embodiment. This embodiment is applicable to the audio control of a mobile terminal (referring to a mobile Internet terminal, excluding the vehicle machine, such as a smart phone, tablet computer, etc.) after the vehicle machine is started. The method can be executed by an audio control device, which can be composed of software and / or hardware and is generally integrated in an electronic device.
[0065] like Figure 2As shown, this embodiment provides an audio control method, which is applicable to a mobile terminal, and the method includes:
[0066] S210, responding to the audio pause instruction sent by the vehicle end, controlling the current audio application to pause the audio.
[0067] Preferably, responding to the audio pause instruction issued by the vehicle end and controlling the current audio application to pause the audio includes:
[0068] Responding to an audio pause instruction sent by the vehicle end, parsing the audio pause instruction;
[0069] According to the parsed audio pause instruction, the current audio application is controlled to pause the audio.
[0070] The preferred implementation first parses the audio pause instruction into an instruction recognizable by the mobile terminal, and then controls the current audio application to pause the audio according to the parsed audio pause instruction.
[0071] S220: In response to the switched audio application being started or called to the foreground, control the switched audio application to obtain audio focus.
[0072] Among them, "audio focus" refers to the focus that must be obtained when the mobile terminal plays audio. Only audio applications that obtain audio focus can play audio.
[0073] After S210, the current audio application has paused the audio, and the audio channel is released. At this time, S220 directly controls the switched audio application to obtain the audio focus, and the switched audio application can play the audio after further obtaining the play instruction. It should also be noted that the switched audio application is actually monitoring in real time whether the audio channel is occupied. This is mainly because the occurrence time 1 of "issuing the audio pause instruction" on the vehicle side and the occurrence time 2 of "the switched audio application is started or called to the foreground" on the mobile side are not in a strict order. It is possible that time 1 occurs before, at the same time, or after time 2. When time 1 occurs after time 2, the current audio on the mobile side has not been paused. Even if the switched audio application is started or called to the foreground, the car computer is still playing the previous audio. When the switched audio monitors that the audio channel is released (which proves that the current audio has been paused), it obtains the audio focus.
[0074] S230, responding to the audio playback instruction sent by the vehicle end, and controlling the switched audio application to play the audio.
[0075] Preferably, the responding to the audio playing instruction issued by the vehicle end and controlling the switched audio application to play the audio comprises:
[0076] Responding to the audio playback instruction sent by the vehicle end, parsing the audio playback instruction;
[0077] According to the parsed audio playing instruction, the switched audio application is controlled to play the audio.
[0078] Similar to S210, this preferred implementation first parses the audio playback instruction into an instruction recognizable by the mobile terminal, and then controls the current audio application to play audio according to the parsed audio playback instruction.
[0079] Among them, the current audio application is an audio application that is currently playing audio on the mobile terminal; the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio.
[0080] The above audio control method is applicable to the mobile terminal. First, it responds to the audio pause command issued by the vehicle terminal and controls the current audio application to pause the audio. At this time, the audio channel of the mobile terminal is not occupied. After the switched audio application is started or called to the foreground, the switched audio application can obtain the audio focus (only the application that obtains the audio focus can play audio). Then, after receiving the audio play command issued by the vehicle terminal, the switched audio application can be controlled to play audio.
[0081] Furthermore, before responding to the audio pause instruction sent by the vehicle end and controlling the current audio application to pause the audio, the method further includes:
[0082] An audio screen projection service request is issued, wherein the service request includes a service type.
[0083] In this embodiment, an audio screen projection service request must be issued first, and then the screen projection on the vehicle can be realized, and the local audio application interface on the vehicle can control the audio application on the mobile terminal. The service request can be issued through any relevant protocol of BLE, USB or WiFi.
[0084] Furthermore, before the audio projection service request is issued and the service request includes the service type, it also includes: issuing a connection request to establish a connection with the vehicle. Regarding the specific method of establishing the connection, any one of the existing BLE connection, USB connection or WiFi connection can be selected.
[0085] The audio control device for executing the above-mentioned audio control method includes: a pause audio control module, which is used to respond to the audio pause instruction issued by the vehicle end and control the current audio application to pause the audio; an audio focus acquisition module, which is used to respond to the switched audio application being started or called to the foreground and control the switched audio application to obtain the audio focus; a play audio control module, which is used to respond to the audio play instruction issued by the vehicle end and control the switched audio application to play the audio; wherein the current audio application is an audio application that is currently playing audio on the mobile end; the switched audio application is an audio application that is started or called to the foreground by the mobile end when the current audio application is playing audio.
[0086] Furthermore, the device also includes: an audio screen projection service request issuing module, which is used to issue an audio screen projection service request, and the service request includes a service type; a second connection module, which is used to issue a connection request to establish a connection with the vehicle end.
[0087] Furthermore, the pause audio control module is also used to respond to an audio pause instruction issued by the vehicle end, parse the audio pause instruction; and control the current audio application to pause the audio according to the parsed audio pause instruction.
[0088] Furthermore, the audio playback control module is also used to respond to the audio playback instruction issued by the vehicle end, parse the audio playback instruction; and control the switched audio application to play audio according to the parsed audio playback instruction.
[0089] Furthermore, the second connection module is, for example, a BLE module, a USB module or a WiFi module.
[0090] Example 3
[0091] Figure 3 This is a flow chart of another audio control method provided by this embodiment. This embodiment is applicable to the audio interactive control between the mobile terminal (referring to a mobile Internet terminal, such as a smart phone, tablet computer, etc.) and the vehicle terminal after the vehicle computer is started.
[0092] like Figure 3 As shown, this embodiment provides an audio control method, the method comprising:
[0093] S310: In response to an audio pause operation input to a local audio application interface, an audio pause instruction is issued to pause the audio emitted by the current audio application.
[0094] S320, responding to the audio pause instruction sent by the vehicle end, and controlling the current audio application to pause the audio.
[0095] S330: In response to the switched audio application being started or called to the foreground, the switched audio application is controlled to obtain audio focus.
[0096] S340: In response to an audio play operation input to the local audio application interface, an audio play instruction is issued to play the audio emitted by the switched audio application.
[0097] S350, responding to the audio playback instruction sent by the vehicle end, and controlling the switched audio application to play the audio.
[0098] S310 and S340 are executed by the vehicle side, and S320, S330 and S350 are executed by the mobile side.
[0099] Among them, the current audio application is an audio application that is currently playing audio on the mobile terminal; the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio.
[0100] Figure 4 It is a typical interactive diagram of the above-mentioned audio control method. For example, when the mobile phone 100 is connected to the car computer 200 using BLE300, the mobile phone 100 starts QQ Music. At this time, the local audio application interface is started on the car computer 200, and the local audio application interface can be used to control QQ Music. When the car computer 200 responds to the audio pause operation input into the local audio application interface, it issues an audio pause instruction to pause the audio emitted by QQ Music; the mobile phone 100 responds to the audio pause instruction issued by the car computer 200 to control QQ Music to pause the audio; the mobile phone 100 responds to NetEase Music being started or called to the foreground, and controls NetEase Music to obtain the audio focus; the car computer 200 responds to the audio play operation input into the local audio application interface, and issues an audio play instruction to play the audio emitted by NetEase Music; the mobile phone 100 responds to the audio play instruction issued by the car computer 200 to control NetEase Music to play audio.
[0101] Example 4
[0102] like Figure 5 As shown, this embodiment provides an electronic device, including:
[0103] at least one processor; and
[0104] a memory communicatively connected to at least one of the processors; wherein,
[0105] The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors to enable at least one of the processors to perform the above method. At least one processor in the electronic device can perform the above method, and thus has at least the same advantages as the above method.
[0106] Optionally, the electronic device also includes an interface for connecting various components, including a high-speed interface and a low-speed interface. Various components are interconnected using different buses and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on a memory to display the graphical information of a GUI (Graphical User Interface) on an external input / output device (such as a display device coupled to an interface). In other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 201 is taken as an example.
[0107] The memory 202 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the audio control method in the embodiment of the present invention. The processor 201 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 202, that is, implementing the above-mentioned audio control method.
[0108] The memory 202 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 202 may further include a memory remotely arranged relative to the processor 201, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0109] The electronic device may further include: an input device 203 and an output device 204. The processor 201, the memory 202, the input device 203 and the output device 204 may be connected via a bus or other means. Figure 5 The example of connecting through bus is taken in the following.
[0110] The input device 203 can receive input digital or character information, and the output device 204 can include a display device, an auxiliary lighting device (e.g., LED), and a tactile feedback device (e.g., a vibration motor), etc. The display device can include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some embodiments, the display device can be a touch screen.
[0111] Example 5
[0112] This embodiment provides a medium on which computer instructions are stored, and the computer instructions are used to enable the computer to execute the above method. The computer instructions on the medium are used to enable the computer to execute the above method, and thus have at least the same advantages as the above method.
[0113] The medium in the present invention may adopt any combination of one or more computer-readable media. The medium may be a computer-readable signal medium or a computer-readable storage medium. The medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of the medium (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, the medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device.
[0114] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0115] The program code contained on the medium can be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
[0116] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this application can be executed in parallel, sequentially or in different orders, as long as the expected results of the technical solution disclosed in this application can be achieved, and this document is not limited here.
[0118] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. An audio control method, It is characterized in that Applicable to a mobile terminal, the method includes: Sending an audio screen projection service request, wherein the service request includes a service type; Respond to the audio pause command sent by the vehicle end and control the current audio application to pause the audio; In response to the switched audio application being started or called to the foreground, the switched audio application is controlled to obtain the audio focus; In response to an audio playback instruction issued by the vehicle end, control the switched audio application to play audio; the audio playback instruction is issued by the vehicle end in response to an audio playback operation input into the local audio application interface to play the audio emitted by the switched audio application; Among them, the current audio application is the audio application that is currently playing audio on the mobile terminal; the switched audio application is the audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio, and the mobile terminal start or call is generated based on the user's operation of changing the audio application on the mobile terminal.
2. The audio control method according to claim 1, wherein the response to the audio pause instruction issued by the vehicle end controls the current audio application to pause the audio include: Responding to an audio pause instruction sent by the vehicle end, parsing the audio pause instruction; According to the parsed audio pause instruction, the current audio application is controlled to pause the audio.
3. The audio control method according to claim 1 or 2, wherein the audio playing instruction issued by the vehicle side is responded to and the switched audio application is controlled to play the audio include: Responding to the audio playback instruction sent by the vehicle end, parsing the audio playback instruction; According to the parsed audio playing instruction, the switched audio application is controlled to play the audio.
4. An audio control method, It is characterized in that include: The mobile terminal sends an audio screen projection service request, wherein the service request includes a service type; The vehicle end responds to the audio projection service request and obtains the service type in the service request; Determine whether the service type is an audio service, and if so, start a local audio application interface; In response to an audio pause operation input to the local audio application interface, an audio pause instruction is issued to pause the audio emitted by the current audio application; The mobile terminal responds to the audio pause command sent by the vehicle terminal and controls the current audio application to pause the audio; In response to the switched audio application being started or called to the foreground, the switched audio application is controlled to obtain the audio focus; The vehicle side responds to the audio playback operation input into the local audio application interface and issues an audio playback instruction to play the audio emitted by the switched audio application; The mobile terminal responds to the audio playback command issued by the vehicle terminal and controls the switched audio application to play the audio; Among them, the current audio application is an audio application that is currently playing audio on the mobile terminal; the switched audio application is an audio application that is started or called to the foreground by the mobile terminal when the current audio application is playing audio, and the mobile terminal start or call is based on the user's operation of changing the audio application on the mobile terminal, and the time of issuing the audio pause instruction is at the same time or after the time of the switching of the audio application.
5. An electronic device, It is characterized in that include: at least one processor, and a memory communicatively coupled to at least one of the processors; The memory stores instructions executable by at least one of the processors, and the instructions are executed by at least one of the processors so that the at least one processor can execute the method described in any one of claims 1 to 3 or the method described in claim 4.
6. A medium, It is characterized in that The medium stores computer instructions, and the computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 3 or the method according to claim 4.
Citation Information
Patent Citations
Mobile terminal, onboard device, control method, and control program
CN105519083A
Play switching method and device and computer readable storage medium
CN112559044A
Audio management method and device and computer storage medium
CN112637412A
