Audio playing method, device and equipment and computer readable storage medium
By determining the audio applications and peripherals, and using the audio mapping table and mixing strategy table, the problem of difficult audio isolation in the car is solved, and the audio isolation and playback effects of multiple users using different audio applications at the same time are achieved.
Patent Information
- Application Number
- CN202410625862.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-20
- Publication Date
- 2024-09-10
AI Technical Summary
In a car environment used by many people, it is difficult to isolate the audio in the car, which affects the listening of different audio users.
By determining the audio application and corresponding audio peripherals to which the audio to be played belongs, and using the preset audio mapping table and mixing strategy table, different audio applications can be played corresponding to different audio peripherals, thus solving the problem of difficult audio isolation in the car.
It enables multiple users to listen to audio through different audio peripherals when using different audio applications at the same time, improving the isolation effect and user experience of audio playback in the car.
Smart Images

Figure CN118626040A
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of audio processing technology, and specifically to an audio playback method, device, equipment and computer-readable storage medium. Background Art
[0002] At present, with the increase in the number of families with two children, the popularity of three-row family cars is also increasing. When two children are in the same car, one may want to listen to audio, such as a story, while the other may want to watch cartoons. At this time, the audio in the car overlaps, affecting the listening of users with different audios, and it is very difficult to isolate the audio in the car. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention provide an audio playback method, apparatus, device and computer-readable storage medium, which are used to solve the problem of in-vehicle audio isolation difficulties existing in the prior art.
[0004] According to one aspect of an embodiment of the present invention, there is provided an audio playback method, the method comprising:
[0005] Determine a first audio application to which the audio to be played belongs;
[0006] Determine, according to the first audio application, a first audio peripheral device for playing the audio;
[0007] The audio to be played is played through the first audio peripheral device.
[0008] In an optional manner, determining the first audio peripheral device for playing the audio according to the first audio application includes:
[0009] Get the preset audio mapping table;
[0010] The preset audio mapping table is searched for a first audio channel corresponding to the first audio application, and a first audio peripheral corresponding to the first audio channel is searched.
[0011] In an optional manner, playing the audio to be played by using the first audio peripheral device includes:
[0012] Transmitting the audio to be played from the first audio application to the first audio channel, and then transmitting it to the first audio peripheral device through the first audio channel;
[0013] The audio to be played is converted into sound for playback through the first audio peripheral.
[0014] In an optional manner, before determining the first audio peripheral device for playing the audio according to the first audio application, the method further includes:
[0015] In the case of identifying that the movie viewing mode is turned on, determining a target screen associated with the movie viewing mode, and determining a second audio application included in the target screen;
[0016] The second audio peripheral corresponding to the second audio application in the preset audio mapping table is modified to the associated peripheral of the target screen to obtain a viewing mode mapping table.
[0017] In an optional manner, before determining the target audio peripheral device for playing the audio according to the first audio application, the method further includes:
[0018] Get configuration modification instructions;
[0019] According to the configuration modification instruction, the first audio peripheral in the preset audio mapping table is modified to a third audio peripheral.
[0020] In an optional manner, the method further includes:
[0021] When a new audio application is identified, a policy update request is sent to the cloud platform, and a configuration file fed back by the cloud platform based on the policy update request is received;
[0022] A new mapping relationship of the new audio application is established according to the configuration file to update the preset audio mapping table.
[0023] In an optional manner, the method further includes:
[0024] When it is identified that there are multiple audios to be played by the target audio peripheral, determine the first audio applications to which the audios to be played belong;
[0025] Using each of the first audio applications as an index, searching in a preset mixing strategy table of the target audio peripheral device to obtain a target mixing strategy;
[0026] The audios to be played are mixed and output based on the target mixing strategy.
[0027] According to another aspect of an embodiment of the present invention, there is provided an audio playback device, comprising:
[0028] A first determining module, used to determine a first audio application to which the audio to be played belongs;
[0029] A second determining module, configured to determine a first audio peripheral device for playing the audio according to the first audio application;
[0030] The playing module is used to play the audio to be played through the first audio peripheral.
[0031] According to another aspect of an embodiment of the present invention, there is provided an audio playback device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;
[0032] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the audio playing method as described above.
[0033] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables an audio playback device / apparatus to perform the operation of the audio playback method described above.
[0034] The embodiment of the present invention first determines the first audio application to which the audio to be played belongs, and the first audio application is the source of the audio to be played; then, based on the first audio application, determines the first audio peripheral device of the audio to be played, and the first audio peripheral device is the carrier of the audio to be played. The carrier of the audio to be played is distinguished at the application level, so that different audio applications can correspond to different peripheral devices for playback; the audio to be played is played through the first audio peripheral device, and the first audio peripheral device can be set in different areas of the vehicle, and different playback forms such as speakers and headphones can be used. Therefore, even if multiple users use different first audio applications at the same time, since the corresponding first audio peripheral devices are different, the users can listen to the audio through different first audio peripheral devices, thereby solving the problem of difficult audio isolation in the car.
[0035] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0037] Figure 1 A schematic diagram showing a flow chart of a first embodiment of an audio playback method provided by the present invention;
[0038] Figure 2 A schematic diagram of a preset audio mapping representation of a first embodiment of the audio playing method provided by the present invention is shown;
[0039] Figure 3 A schematic diagram showing a flow chart of a second embodiment of the audio playback method provided by the present invention;
[0040] Figure 4 A schematic flow chart of a third embodiment of the audio playback method provided by the present invention is shown;
[0041] Figure 5 A schematic flow chart of a fourth embodiment of the audio playback method provided by the present invention is shown;
[0042] Figure 6 A schematic flow chart of a fifth embodiment of the audio playback method provided by the present invention is shown;
[0043] Figure 7 A schematic structural diagram of an embodiment of an audio playback device provided by the present invention is shown;
[0044] Figure 8 A structural schematic diagram of an embodiment of an audio playback device provided by the present invention is shown. DETAILED DESCRIPTION
[0045] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0046] Figure 1 FIG. 1 is a flow chart showing a first embodiment of an audio playback method of the present invention, wherein the method is executed by an audio playback device. Figure 1 As shown, the method comprises the following steps:
[0047] Step 110: Determine a first audio application to which the audio to be played belongs.
[0048] This embodiment can be applied to the scenario of controlling the audio in the vehicle cabin space. With the improvement of the intelligence of vehicles, the entertainment activities that users can perform in the vehicle cabin space are becoming more and more abundant, and to meet more needs of users, it is necessary to rely on certain hardware facilities, such as display screens. In addition to the conventional central control screen, there are also screens such as the co-pilot screen and the rear screen to meet the needs of passengers at different positions in the vehicle cabin.
[0049] Audio to be played refers to audio that is ready to be played to form sound heard by the user, and is presented in the form of an audio signal. Audio applications refer to applications that can control the audio hardware in the vehicle to play audio, including various music applications, audio applications, and video applications. Users can operate audio applications to restore audio files to audio signals, and then convert them into sounds that can be heard by the human ear through a series of processes such as signal conversion and amplification. The first audio application refers to the audio application to which the audio to be played belongs.
[0050] In an optional manner, the vehicle cabin includes multiple display screens, each corresponding to a different host and controlled separately, and the user can use various applications installed in the host by operating the display screen. When the user has an audio listening demand, the first audio application can be used to play the audio. The first audio application can generate an audio playback request after receiving the audio playback instruction, and process the audio file to be played and restore it to an audio signal, and the first audio application is determined by the information in the audio playback request.
[0051] Step 120: Determine a first audio peripheral device for playing the audio according to the first audio application.
[0052] Audio peripherals refer to hardware that can achieve audio playback by generating sound waves through vibration, including speakers, sound boxes, headphones and other forms. The first audio peripheral refers to the audio peripheral corresponding to the first audio application, and the audio to be played is played through the first audio peripheral. The first audio peripheral is determined according to the first audio application, and the user operates the first audio application, and the audio to be played from the first audio application is played from the first audio peripheral. When there are multiple channels of audio to be played in the same host at the same time, different audio to be played comes from different first audio applications, and can be played through different first audio peripherals.
[0053] In an optional manner, a mapping relationship between installed audio applications and audio peripherals is pre-stored. Each audio application has a corresponding audio peripheral. When the number of audio peripherals is sufficient, a single audio application corresponds to a single audio peripheral, or multiple audio applications can share one audio peripheral. Audio applications that share audio peripherals are installed on different hosts, thereby reducing the probability of a single audio peripheral playing multiple channels of audio to be played at the same time.
[0054] In an optional manner, step 120 includes:
[0055] Step 1201: Obtain a preset audio mapping table.
[0056] The preset audio mapping table refers to a mapping table that stores the mapping relationship between audio applications, audio channels, and audio peripherals. An audio channel refers to a channel for transmitting the audio to be played. An audio application can be regarded as the source of the audio to be played, and an audio peripheral is a carrier that converts the audio to be played into the sound to be heard. The audio channel can be regarded as a bridge between the two.
[0057] Figure 2 is a schematic diagram of a feasible preset audio mapping table in this embodiment. Figure 2In the figure, the direction of the arrow indicates the signal flow of the audio to be played. The arrow connects the two ends of the mapping relationship, starting from the audio application, mapping to the audio channel, and then to the audio peripheral. A sufficient number of audio channels can be set in the vehicle so that a single audio application can correspond to a single audio channel, or multiple audio applications can use a single audio channel. A single audio channel can correspond to a single audio peripheral, and multiple audio channels can also correspond to a single audio peripheral.
[0058] In an optional manner, the preset audio mapping table is configured according to the user's demands for the audio peripherals when using the audio application. The user's usage demands can be clarified through data collection, and the user's preferences for using audio peripherals in different scenarios can be learned, and the preset audio mapping table in different scene modes can be configured according to the preferences in different scenarios.
[0059] It is understandable that when each display screen is controlled by its own host, the display screen also contains some audio channels for use by the audio applications installed in the host to which it belongs. The preset audio mapping table also takes this into account for configuration, so that the correspondence between audio applications and audio channels is more reasonable.
[0060] Step 1202: Searching the preset audio mapping table for a first audio channel corresponding to the first audio application, and searching for a first audio peripheral corresponding to the first audio channel.
[0061] The preset audio mapping table stores the mapping relationship between audio applications and audio channels, and between audio channels and audio peripherals. The location of the first audio application is found in the preset audio mapping table, and the corresponding first audio channel and first audio peripheral can be found through the above mapping relationship. Figure 2 According to the preset audio mapping table shown, if the first audio application is QQ Music, the first audio channel corresponding to the first audio application is found to be channel 1, and the first audio peripheral corresponding to the first audio channel is the in-car speaker.
[0062] The preset audio mapping table can be configured based on user demands and the actual audio channel situation, and serves as the basis for determining the first audio peripheral corresponding to the first audio application. It clarifies the direction of the signal flow of the audio to be played, and improves the user's listening experience while achieving in-car audio isolation.
[0063] The audio peripherals in the vehicle include rear-seat Bluetooth headsets and co-driver Bluetooth headsets. This type of audio peripheral is a pluggable peripheral. In an optional manner, for the pluggable peripheral, a default playback peripheral is provided for the corresponding audio application when the peripheral is not plugged in. A feasible configuration is shown in Table 1 below.
[0064] Table 1
[0065] Default Configuration Using the screen Peripherals used for audio QQ Music Central control screen Headrest Speaker QQ Music Passenger screen In-car speakers QQ Music Rear screen In-car speakers, rear Bluetooth headset 1 Tencent Video Central control screen In-car speakers Tencent Video Passenger screen In-car speakers, co-pilot Bluetooth headset Tencent Video Rear screen In-car speakers, rear Bluetooth headset 2 navigation Central control screen Headrest Speaker …… …… ……
[0066] In Table 1, for the QQ Music application on the rear screen, when the rear Bluetooth headset 1 is not plugged in, the default playback peripheral is the in-car speaker. When the rear Bluetooth headset 1 is plugged in, the rear Bluetooth headset 1 is used as the default playback peripheral.
[0067] Step 130: Play the audio to be played through the first audio peripheral device.
[0068] The first audio peripheral can be regarded as a peripheral dedicated to the audio to be played of the first audio application. The audio to be played from the first audio application is played through the first audio peripheral and heard by the user. The audio file of the audio to be played is restored to an audio signal after decoding and decompression, and the audio signal is converted and amplified to reach the first audio peripheral for playback.
[0069] In an optional manner, step 130 includes:
[0070] Step 1301: Transmit the audio to be played from the first audio application to the first audio channel, and then transmit it to the first audio peripheral device through the first audio channel.
[0071] According to the configuration of the preset audio mapping table, the transmission path of the audio to be played is determined, and according to the transmission path, the audio to be played is transmitted from the first audio application to the first audio channel, and then transmitted to the first audio peripheral through the first audio channel.
[0072] Step 1302: Convert the audio to be played into sound for playback through the first audio peripheral.
[0073] The audio to be played is transmitted in the form of an audio signal at the hardware layer, wherein after signal conversion and amplification, the first audio peripheral restores the audio signal to a sound wave, which is transmitted in the medium so that it can be heard by the human ear. Depending on the type of the first audio application, the audio to be played can be in pure audio form or in audio and video form.
[0074] The embodiment of the present invention first determines the first audio application to which the audio to be played belongs, and the first audio application is the source of the audio to be played; then, based on the first audio application, determines the first audio peripheral device of the audio to be played, and the first audio peripheral device is the carrier of the audio to be played. The carrier of the audio to be played is distinguished at the application level, so that different audio applications can correspond to different peripheral devices for playback; the audio to be played is played through the first audio peripheral device, and the first audio peripheral device can be set in different areas of the vehicle, and different playback forms such as speakers and headphones can be used. Therefore, even if multiple users use different first audio applications at the same time, since the corresponding first audio peripheral devices are different, the users can listen to the audio through different first audio peripheral devices, thereby solving the problem of difficult audio isolation in the car.
[0075] Figure 3 FIG. 2 is a flow chart showing a second embodiment of the audio playback method of the present invention, wherein the method is executed by an audio playback device. Figure 3 As shown, the method comprises the following steps:
[0076] Step 210: When it is recognized that the movie viewing mode is turned on, determine a target screen associated with the movie viewing mode, and determine a second audio application included in the target screen.
[0077] The viewing mode refers to the mode set for users to watch movie scenes using the display screen. For both the co-pilot screen and the rear screen, the viewing mode can be turned on to provide users with an immersive viewing experience. The viewing mode may also include the co-pilot viewing mode and the rear viewing mode. The target screen refers to the display screen that controls the viewing mode. If the co-pilot viewing mode is turned on, the target screen is the co-pilot screen. If the rear viewing mode is turned on, the target screen is the rear screen. The second audio application refers to the audio application contained in the target screen. It can be understood that different audio applications can be installed in different display host computers, and the number of second audio applications can be multiple.
[0078] In an optional manner, whether the viewing mode is turned on is identified by monitoring whether a viewing mode turn-on instruction is received. The user can control the turning on of the viewing mode by operating the display screen interface. The target screen is determined by the type of viewing mode, and the applications in the host to which the target screen belongs are scanned to determine the second audio application therein.
[0079] Step 220: Modify the second audio peripheral corresponding to the second audio application in the preset audio mapping table to the associated peripheral of the target screen to obtain a viewing mode mapping table.
[0080] The second audio peripheral is a peripheral corresponding to the second audio application. An associated peripheral refers to a pre-set peripheral connected to the target screen. In order to provide users with an immersive viewing experience, the associated peripherals can be set to headphones, which are peripherals with a strong sense of privacy for listening. For example, the associated peripherals of the co-pilot screen are set to co-pilot Bluetooth headphones. The viewing mode mapping table refers to a mapping table used as a basis for determining audio peripherals in viewing mode. When the viewing mode is turned on, the viewing mode mapping table can be used instead of the preset audio mapping table.
[0081] In an optional method, the co-pilot viewing mode is turned on. At this time, all audio applications played on the co-pilot screen do not use the in-car speakers but use the co-pilot Bluetooth headset, including when the co-pilot Bluetooth headset is taken off. Some preset audio mapping tables can be modified to the contents shown in Table 2 below.
[0082] Table 2
[0083] Passenger car viewing mode Using the screen Peripherals used for audio QQ Music Passenger screen Co-pilot Bluetooth headset Tencent Video Passenger screen Co-pilot Bluetooth headset navigation Central control screen Headrest Speaker …… …… ……
[0084] On this basis, the audio mixing strategy in the movie viewing mode can also be set, requiring that only the video is played in the co-pilot's Bluetooth headset, so the audio mixing strategy can also be modified as shown in Table 3 below.
[0085] Table 3
[0086] Co-pilot Bluetooth headset Tencent Video QQ Music Pause, play on the other end Huawei Music Pause, play on the other end …… ……
[0087] In this embodiment, the audio peripherals and mixing strategies can be adjusted according to the viewing mode. Compared with audio playback in ordinary scenarios, it is more conducive to providing users with an immersive viewing experience and avoiding audio interference from other peripherals.
[0088] Figure 4 FIG. 4 is a flow chart showing a third embodiment of the audio playback method of the present invention, which is executed by an audio playback device. Figure 4 As shown, the method comprises the following steps:
[0089] Step 310: Obtain configuration modification instructions.
[0090] Configuration modification instructions refer to instructions for modifying the audio playback strategy configured in the preset audio mapping table. The audio playback strategy can be regarded as a strategy for selecting audio channels and audio peripherals for audio playback based on the audio application. A method for modifying the audio playback strategy based on software functions or cloud configuration is provided. In an optional method, a policy modification interface is provided on the display screen, and the user can operate the policy modification interface to generate configuration modification instructions.
[0091] Step 320: According to the configuration modification instruction, modify the first audio peripheral in the preset audio mapping table to a third audio peripheral.
[0092] The third audio peripheral refers to other audio peripherals except the first audio peripheral, which can be determined according to the configuration modification instruction that the user wants to modify to become a peripheral corresponding to the first audio application. In the preset audio mapping table, for each first audio application, there is a unique first audio peripheral pointed to. The first audio application has a display screen to which it belongs, and the audio channel of the display screen can be pre-set, so the mapping between the first audio application and the first audio channel is relatively more stable. It is also possible to modify the peripheral corresponding to the first audio application to the third audio peripheral according to the peripheral information in the configuration modification instruction.
[0093] In this embodiment, the audio playing strategy reflected in the preset audio mapping table is supported to be modified to adapt to the change of user demand, which reflects the high flexibility of the playing strategy configuration.
[0094] Figure 5 FIG. 4 is a flowchart of a fourth embodiment of an audio playback method of the present invention, which is executed by an audio playback device. Figure 5 As shown, the method comprises the following steps:
[0095] Step 410: When a new audio application is identified, a policy update request is sent to the cloud platform, and a configuration file fed back by the cloud platform based on the policy update request is received.
[0096] A newly added audio application refers to an audio application that does not have a mapping relationship in the preset audio mapping table. A cloud platform refers to a platform that can communicate with the vehicle. A policy update request refers to a request to update the audio policy configuration for a newly added audio application. A configuration file refers to a file issued by the cloud platform for the vehicle to update the audio policy configuration.
[0097] The number of audio applications included in the preset audio mapping table is limited, and audio channels that are not mapped to audio applications can be reserved in the vehicle for configuration with new audio applications to meet the requirements for scalability. New audio applications can be downloaded through the application market. The cloud platform and the vehicle agree on a recognizable application name, which can be the software package name seen in the system, combined with the combination of the screen where the new audio application is located to identify the application.
[0098] Step 420: Establish a new mapping relationship of the new audio application according to the configuration file to update the preset audio mapping table.
[0099] The newly added mapping relationship refers to the mapping relationship between the newly added audio application and the audio channel and audio peripheral. The configuration file contains audio playback strategy information, which provides a basis for the configuration of the audio channel and audio peripheral of the newly added audio application. After the newly added mapping relationship is established, in the preset audio mapping table, the newly added audio application can be mapped to the audio channel and audio peripheral configured for it, and a new audio playback strategy is added.
[0100] In this embodiment, a new mapping relationship is established for a new audio application by sending a configuration file from the cloud platform. When a user uses the new audio application to play audio, the audio peripherals can be configured at the application level, and the audio configuration strategy has good scalability.
[0101] Figure 6 FIG. 5 is a flowchart of a fifth embodiment of an audio playback method of the present invention, which is executed by an audio playback device. Figure 6 As shown, the method comprises the following steps:
[0102] Step 510: when it is identified that there are multiple audios to be played by the first audio peripheral, determine the first audio applications to which the audios to be played belong.
[0103] Multiple first audio applications may be mapped to the same first audio peripheral, that is, multiple channels of audio to be played are played from the same first audio peripheral, and the user's listening experience can be improved by mixing. The audio to be played received by the first audio peripheral can be monitored, and when the audio signals of multiple channels of audio to be played are identified, the first audio applications as the audio source can be determined.
[0104] Step 520: Using each of the first audio applications as an index, search in the preset mixing strategy table of the first audio peripheral device to obtain a target mixing strategy.
[0105] The preset mixing strategy table refers to a strategy table used for the case where the first audio peripheral simultaneously outputs multiple audio signals. Each audio peripheral can set a different preset mixing strategy table. The target mixing strategy refers to a strategy for mixing processing followed when the first audio peripheral simultaneously outputs multiple audio signals. The first audio peripheral adjusts the output audio signal according to the target mixing strategy.
[0106] In an optional manner, the preset mixing strategy table of the in-vehicle speaker is shown in Table 4 below.
[0107] Table 4
[0108]
[0109]
[0110] In Table 4, the behavior is application A, the column is application B, and the corresponding cross grid indicates the mixing strategy when application A and application B are played together. NA indicates no data. Taking the phone as an example, when the phone and Tencent Video are played together, the target mixing strategy is to mix the audio and lower the volume of Tencent Video.
[0111] Step 530: Mix and output each of the to-be-played audios based on the target mixing strategy.
[0112] The first audio peripheral can process one of the multiple audios to be played according to the target mixing strategy, such as directly pausing the playback or mixing it with other audios to be played, and can also adjust the volume to ensure the user's listening experience of one of the audios to be played.
[0113] In an optional manner, both the preset audio mapping table and the preset mixing strategy table can be pre-configured in the vehicle, and the two strategies are configured when the user uses the vehicle to play audio. The preset mixing strategy table can also refer to the steps in the above embodiment to modify and update the strategy and synchronize with the preset audio mapping table.
[0114] In this embodiment, multiple audios to be played are played using the same audio peripheral device, and mixing processing can be performed according to a preset mixing strategy table, thereby further improving the user's audio playback experience.
[0115] Figure 7 FIG. 2 is a schematic diagram showing the structure of an embodiment of an audio playback device of the present invention. Figure 7 As shown, the device 700 includes: a first determination module 710 , a second determination module 720 and a playing module 730 .
[0116] A first determining module 710, configured to determine a first audio application to which the audio to be played belongs;
[0117] A second determining module 720 is used to determine the first audio peripheral device for playing the audio according to the first audio application;
[0118] The playing module 730 is used to play the audio to be played through the first audio peripheral.
[0119] In an optional manner, the second determining module 720 is further configured to:
[0120] Get the preset audio mapping table;
[0121] The preset audio mapping table is searched for a first audio channel corresponding to the first audio application, and a first audio peripheral corresponding to the first audio channel is searched.
[0122] In an optional manner, the playing module 730 is further configured to:
[0123] Transmitting the audio to be played from the first audio application to the first audio channel, and then transmitting it to the first audio peripheral device through the first audio channel;
[0124] The audio to be played is converted into sound for playback through the first audio peripheral.
[0125] In an optional manner, the apparatus 700 further includes a first modifying module, configured to:
[0126] In the case of identifying that the movie viewing mode is turned on, determining a target screen associated with the movie viewing mode, and determining a second audio application included in the target screen;
[0127] The second audio peripheral corresponding to the second audio application in the preset audio mapping table is modified to the associated peripheral of the target screen to obtain a viewing mode mapping table.
[0128] In an optional manner, the apparatus 700 further includes a second modifying module, configured to:
[0129] Get configuration modification instructions;
[0130] According to the configuration modification instruction, the first audio peripheral in the preset audio mapping table is modified to a third audio peripheral.
[0131] In an optional manner, the apparatus 700 further includes an establishing module, configured to:
[0132] When a new audio application is identified, a policy update request is sent to the cloud platform, and a configuration file fed back by the cloud platform based on the policy update request is received;
[0133] A new mapping relationship of the new audio application is established according to the configuration file to update the preset audio mapping table.
[0134] In an optional manner, the apparatus 700 further includes a mixing module, which is used to:
[0135] When it is identified that there are multiple audios to be played by the first audio peripheral, determine the first audio applications to which the audios to be played belong;
[0136] Using each of the first audio applications as an index, searching in a preset mixing strategy table of the first audio peripheral device to obtain a target mixing strategy;
[0137] The audios to be played are mixed and output based on the target mixing strategy.
[0138] The embodiment of the present invention first determines the first audio application to which the audio to be played belongs, and the first audio application is the source of the audio to be played; then, based on the first audio application, determines the first audio peripheral device of the audio to be played, and the first audio peripheral device is the carrier of the audio to be played. The carrier of the audio to be played is distinguished at the application level, so that different audio applications can correspond to different peripheral devices for playback; the audio to be played is played through the first audio peripheral device, and the first audio peripheral device can be set in different areas of the vehicle, and different playback forms such as speakers and headphones can be used. Therefore, even if multiple users use different first audio applications at the same time, since the corresponding first audio peripheral devices are different, the users can listen to the audio through different first audio peripheral devices, thereby solving the problem of difficult audio isolation in the car.
[0139] Figure 8 The schematic diagram of the structure of the embodiment of the audio playback device of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the audio playback device.
[0140] like Figure 8 As shown, the audio playback device may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .
[0141] The processor 802, the communication interface 804, and the memory 806 communicate with each other via a communication bus 808. The communication interface 804 is used to communicate with other devices such as a client or other server network elements. The processor 802 is used to execute a program 810, which can specifically execute the relevant steps in the above-mentioned embodiment of the audio playback method.
[0142] Specifically, the program 810 may include program code including computer executable instructions.
[0143] The processor 802 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiment of the present invention. The one or more processors included in the audio playback device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0144] The memory 806 is used to store the program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0145] Program 810 can be specifically called by processor 802 to enable the audio playback device to perform the following operations:
[0146] Determine a first audio application to which the audio to be played belongs;
[0147] Determine, according to the first audio application, a first audio peripheral device for playing the audio;
[0148] The audio to be played is played through the first audio peripheral device.
[0149] In an optional manner, the program 810 is called by the processor 802 to enable the audio playback device to perform the following operations:
[0150] Get the preset audio mapping table;
[0151] The preset audio mapping table is searched for a first audio channel corresponding to the first audio application, and a first audio peripheral corresponding to the first audio channel is searched.
[0152] In an optional manner, the program 810 is called by the processor 802 to enable the audio playback device to perform the following operations:
[0153] Transmitting the audio to be played from the first audio application to the first audio channel, and then transmitting it to the first audio peripheral device through the first audio channel;
[0154] The audio to be played is converted into sound for playback through the first audio peripheral.
[0155] In an optional manner, the program 810 is called by the processor 802 to enable the audio playback device to perform the following operations:
[0156] In the case of identifying that the movie viewing mode is turned on, determining a target screen associated with the movie viewing mode, and determining a second audio application included in the target screen;
[0157] The second audio peripheral corresponding to the second audio application in the preset audio mapping table is modified to the associated peripheral of the target screen to obtain a viewing mode mapping table.
[0158] In an optional manner, the program 810 is called by the processor 802 to enable the audio playback device to perform the following operations:
[0159] Get configuration modification instructions;
[0160] According to the configuration modification instruction, the first audio peripheral in the preset audio mapping table is modified to a third audio peripheral.
[0161] In an optional manner, the program 810 is called by the processor 802 to enable the audio playback device to perform the following operations:
[0162] When a new audio application is identified, a policy update request is sent to the cloud platform, and a configuration file fed back by the cloud platform based on the policy update request is received;
[0163] A new mapping relationship of the new audio application is established according to the configuration file to update the preset audio mapping table.
[0164] In an optional manner, the program 810 is called by the processor 802 to enable the audio playback device to perform the following operations:
[0165] When it is identified that there are multiple audios to be played by the first audio peripheral, determine the first audio applications to which the audios to be played belong;
[0166] Using each of the first audio applications as an index, searching in a preset mixing strategy table of the first audio peripheral device to obtain a target mixing strategy;
[0167] The audios to be played are mixed and output based on the target mixing strategy.
[0168] The embodiment of the present invention first determines the first audio application to which the audio to be played belongs, and the first audio application is the source of the audio to be played; then, based on the first audio application, determines the first audio peripheral device of the audio to be played, and the first audio peripheral device is the carrier of the audio to be played. The carrier of the audio to be played is distinguished at the application level, so that different audio applications can correspond to different peripheral devices for playback; the audio to be played is played through the first audio peripheral device, and the first audio peripheral device can be set in different areas of the vehicle, and different playback forms such as speakers and headphones can be used. Therefore, even if multiple users use different first audio applications at the same time, since the corresponding first audio peripheral devices are different, the users can listen to the audio through different first audio peripheral devices, thereby solving the problem of difficult audio isolation in the car.
[0169] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on an audio playback device / apparatus, the audio playback device / apparatus executes the audio playback method in any of the above method embodiments.
[0170] The executable instructions may be specifically used to enable the audio playback device / apparatus to perform the following operations:
[0171] Determine a first audio application to which the audio to be played belongs;
[0172] Determine, according to the first audio application, a first audio peripheral device for playing the audio;
[0173] The audio to be played is played through the first audio peripheral device.
[0174] In an optional manner, the executable instruction enables the audio playback device / apparatus to perform the following operations:
[0175] Get the preset audio mapping table;
[0176] The preset audio mapping table is searched for a first audio channel corresponding to the first audio application, and a first audio peripheral corresponding to the first audio channel is searched.
[0177] In an optional manner, the executable instruction enables the audio playback device / apparatus to perform the following operations:
[0178] Transmitting the audio to be played from the first audio application to the first audio channel, and then transmitting it to the first audio peripheral device through the first audio channel;
[0179] The audio to be played is converted into sound for playback through the first audio peripheral.
[0180] In an optional manner, the executable instruction enables the audio playback device / apparatus to perform the following operations:
[0181] In the case of identifying that the movie viewing mode is turned on, determining a target screen associated with the movie viewing mode, and determining a second audio application included in the target screen;
[0182] The second audio peripheral corresponding to the second audio application in the preset audio mapping table is modified to the associated peripheral of the target screen to obtain a viewing mode mapping table.
[0183] In an optional manner, the executable instruction enables the audio playback device / apparatus to perform the following operations:
[0184] Get configuration modification instructions;
[0185] According to the configuration modification instruction, the first audio peripheral in the preset audio mapping table is modified to a third audio peripheral.
[0186] In an optional manner, the executable instruction enables the audio playback device / apparatus to perform the following operations:
[0187] When a new audio application is identified, a policy update request is sent to the cloud platform, and a configuration file fed back by the cloud platform based on the policy update request is received;
[0188] A new mapping relationship of the new audio application is established according to the configuration file to update the preset audio mapping table.
[0189] In an optional manner, the executable instruction enables the audio playback device / apparatus to perform the following operations:
[0190] When it is identified that there are multiple audios to be played by the first audio peripheral, determine the first audio applications to which the audios to be played belong;
[0191] Using each of the first audio applications as an index, searching in a preset mixing strategy table of the first audio peripheral device to obtain a target mixing strategy;
[0192] The audios to be played are mixed and output based on the target mixing strategy.
[0193] The embodiment of the present invention first determines the first audio application to which the audio to be played belongs, and the first audio application is the source of the audio to be played; then, based on the first audio application, determines the first audio peripheral device of the audio to be played, and the first audio peripheral device is the carrier of the audio to be played. The carrier of the audio to be played is distinguished at the application level, so that different audio applications can correspond to different peripheral devices for playback; the audio to be played is played through the first audio peripheral device, and the first audio peripheral device can be set in different areas of the vehicle, and different playback forms such as speakers and headphones can be used. Therefore, even if multiple users use different first audio applications at the same time, since the corresponding first audio peripheral devices are different, the users can listen to the audio through different first audio peripheral devices, thereby solving the problem of difficult audio isolation in the car.
[0194] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system or other device. In addition, the embodiments of the present invention are not directed to any particular programming language.
[0195] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.
[0196] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.
[0197] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
Claims
1. An audio playback method, characterized in that: The method comprises: Determine a first audio application to which the audio to be played belongs; Determine, according to the first audio application, a first audio peripheral device for playing the audio; The audio to be played is played through the first audio peripheral device.
2. The method according to claim 1, characterized in that The step of determining the first audio peripheral device for playing the audio according to the first audio application includes: Get the preset audio mapping table; The preset audio mapping table is searched for a first audio channel corresponding to the first audio application, and a first audio peripheral corresponding to the first audio channel is searched.
3. The method according to claim 2, characterized in that Playing the to-be-played audio through the first audio peripheral device includes: Transmitting the audio to be played from the first audio application to the first audio channel, and then transmitting it to the first audio peripheral device through the first audio channel; The audio to be played is converted into sound for playback through the first audio peripheral.
4. The method according to claim 2, characterized in that: Before determining the first audio peripheral device to play the audio according to the first audio application, the method further includes: In the case of identifying that the movie viewing mode is turned on, determining a target screen associated with the movie viewing mode, and determining a second audio application included in the target screen; The second audio peripheral corresponding to the second audio application in the preset audio mapping table is modified to the associated peripheral of the target screen to obtain a viewing mode mapping table.
5. The method according to claim 2, characterized in that: Before determining the target audio peripheral device for the audio to be played according to the first audio application, the method further includes: Get configuration modification instructions; According to the configuration modification instruction, the first audio peripheral in the preset audio mapping table is modified to a third audio peripheral.
6. The method according to claim 2, characterized in that The method further comprises: When a new audio application is identified, a policy update request is sent to the cloud platform, and a configuration file fed back by the cloud platform based on the policy update request is received; A new mapping relationship of the new audio application is established according to the configuration file to update the preset audio mapping table.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: When it is identified that there are multiple audios to be played by the first audio peripheral, determine the first audio applications to which the audios to be played belong; Using each of the first audio applications as an index, searching in a preset mixing strategy table of the first audio peripheral device to obtain a target mixing strategy; The audios to be played are mixed and output based on the target mixing strategy.
8. An audio playback device, characterized in that: The device comprises: A first determining module, used to determine a first audio application to which the audio to be played belongs; A second determining module, configured to determine a first audio peripheral device for playing the audio according to the first audio application; The playing module is used to play the audio to be played through the first audio peripheral.
9. An audio playback device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the audio playback method as described in any one of claims 1-7.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the audio playback device / apparatus, the audio playback device / apparatus performs the operation of the audio playback method according to any one of claims 1 to 7.
