Method for controlling multi-audio playing, electronic equipment and storage medium

By identifying and processing the overlapping sound sources of the main audio and ambient audio in the vehicle, the problem of audio interference in the vehicle is solved, and stable and clear audio playback is achieved.

CN118760413AActive Publication Date: 2024-10-11ZHEJIANG ZEEKR INTELLIGENT TECH CO LTD +1
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410916455.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-10-11
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

In a vehicle, when main audio and ambient audio are played at the same time, the overlap of sound sources in the two causes interference, affecting the clarity and stability of the audio.

Method used

By identifying the sound components in the main audio and ambient audio, if overlapping sound sources are detected, the ambient audio or its overlapping sound sources will be stopped to avoid interference and ensure clear playback of the main audio.

Benefits of technology

It effectively avoids interference between main audio and ambient audio, ensures audio stability and user experience, and meets the need to play main audio and ambient audio at the same time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760413A_ABST
    Figure CN118760413A_ABST
Patent Text Reader

Abstract

The present specification provides a method for controlling multi-audio playback, an electronic device, and a storage medium, the method being applied to a vehicle, comprising: in a case where the vehicle simultaneously plays a main audio and an atmosphere audio, identifying a main audio sound component included in the main audio and an atmosphere sound component included in the atmosphere audio; and if at least one part of the main audio sound component is overlapped with at least one part of the atmosphere sound component, stopping playing the atmosphere audio or stopping playing the overlapped atmosphere sound component in the atmosphere audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of audio playback technology, and in particular to a method, electronic device and storage medium for controlling multi-audio playback. Background Art

[0002] With the development of automotive electronic technology, the entertainment systems of vehicles are becoming increasingly rich and diverse. Modern vehicles are usually equipped with advanced audio systems, which can not only play main audio (such as music, radio, etc.), but also provide ambient audio (such as natural sounds, white noise, etc.) to enhance the driving experience. Ambient audio aims to create a comfortable auditory environment, usually including natural sounds such as birdsong, running water and wind, which can help drivers and passengers relax and reduce driving fatigue. However, some background sound components in the main audio, such as radio or music, may also contain similar sound sources. For example, some natural bird sounds are added as background sound effects to the singing of the music being played. When these overlap with the bird sounds in the ambient audio played at the same time, interference will occur between the main audio and the ambient audio, resulting in confusion of the sound of the main audio and affecting its normal playback. Summary of the invention

[0003] To overcome the problems existing in the related art, this specification provides a method for controlling multi-audio playback, an electronic device and a storage medium.

[0004] According to a first aspect of an embodiment of this specification, a method for controlling multi-audio playback is provided, and the method is applied to a vehicle, and specifically can be applied to an application for managing vehicle audio installed in a vehicle system, and the application can be deployed in the vehicle's cockpit domain; or can also be applied to the vehicle system itself (in this case, the vehicle system is used to manage the vehicle audio). The method includes:

[0005] In a case where the vehicle simultaneously plays a main audio and an ambient audio, identifying a main audio sound component included in the main audio and an ambient sound component included in the ambient audio;

[0006] If at least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component, the ambient audio is stopped from being played or the overlapping ambient sound component in the ambient audio is stopped from being played.

[0007] According to a second aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing processor-executable instructions; wherein the processor is configured to implement the steps of the method for controlling multi-audio playback as described in the first aspect above.

[0008] According to a third aspect of an embodiment of the present disclosure, a non-volatile computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method for controlling multi-audio playback as described in the first aspect above are implemented.

[0009] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0010] In an embodiment of the present specification, when the vehicle plays the main audio and the ambient audio at the same time, the main audio sound component is identified from the main audio and the ambient sound component is identified from the ambient audio; if at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the ambient audio is stopped from being played or the overlapping ambient sound component in the ambient audio is stopped from being played. It can be seen that when the main audio and the ambient audio are played at the same time, by identifying the main audio sound component from the main audio and identifying the ambient sound component from the ambient audio, the system can detect whether the two contain overlapping sound components. Once these overlapping sound components are detected, the system can stop playing the ambient audio or stop playing the overlapping ambient sound components in the ambient audio, thereby avoiding the interference of the overlapping sound components in the ambient audio to the main audio. If the two do not contain overlapping sound components, the main audio and the ambient audio can be played normally. This not only meets the user's need to play the main audio and the ambient audio at the same time, but also solves the mutual interference problem caused by the same sound source during the simultaneous playback of the main audio and the ambient audio.

[0011] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 1 The flowchart of a method for controlling multi-audio playback according to an exemplary embodiment of the present specification is shown.

[0014] Figure 2 It is a flowchart of another method for controlling multi-audio playback according to an exemplary embodiment of the present specification.

[0015] Figure 3 It is a schematic diagram of determining overlapping ambient sound components according to an exemplary embodiment of the present specification.

[0016] Figure 4 It is a block diagram of an electronic device according to an exemplary embodiment of the present specification.

[0017] Figure 5 It is a block diagram of a device for controlling multi-audio playback according to an exemplary embodiment of the present specification. DETAILED DESCRIPTION

[0018] Next, the embodiments of this specification are described in detail.

[0019] like Figure 1 As shown, Figure 1 1 is a flowchart of a method for controlling multi-audio playback according to an exemplary embodiment of the present specification, the method being applied to a vehicle, comprising steps 101-102:

[0020] Step 101: When the vehicle is playing main audio and ambient audio simultaneously, identifying a main audio sound component included in the main audio and an ambient sound component included in the ambient audio.

[0021] Step 102: If at least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component, stop playing the ambient audio or stop playing the overlapping ambient sound component in the ambient audio.

[0022] Main audio specifically refers to the multimedia audio of the vehicle audio system. Main audio includes but is not limited to the following objects: Music playback: music played through the vehicle audio system, such as songs played through the radio, CD or streaming media applications. Video playback: video sound played through the vehicle multimedia device. This manual does not impose any restrictions on the main audio type.

[0023] The main audio usually contains core sound components and background sound components. Among them, the core sound component is the main content of the main audio, contains important information or entertainment elements, and is the part that users need to hear and understand clearly. For example, the lyrics in music. The background sound component is the auxiliary sound or environmental sound effect that exists in the main audio. Although these sound components are not the core part of the main information, they can enhance the realism of the audio content or increase the richness of the audio. For example, the background sound in music, such as the slight sound of wind or the sound of birds, makes the sound more natural and not harsh.

[0024] Ambient audio refers to the background sounds used in the vehicle audio system to create a comfortable and pleasant environment. This type of audio usually does not contain necessary driving information, but is intended to enhance the overall comfort and experience of driving. Ambient audio includes but is not limited to the following objects: Natural sounds: such as birds singing, running water, wind, etc., which can provide relaxing background sounds during driving. White noise: used to cover unnecessary external noise and improve the quietness of the car. Music or ambient music: soft background music is played to create a relaxing atmosphere, but it is not the main content that the user focuses on listening. Simulated in-car sound effects: such as simulating the sound of an electric car engine to enhance the driving experience.

[0025] Ambient audio usually includes a primary ambient sound component (also known as a "sound bed") and a secondary ambient sound component. The primary ambient sound component is the main sound element used to create a specific auditory environment or atmosphere. These sound components are the main body of the ambient audio and directly affect the user's auditory experience. The secondary ambient sound component is a secondary sound element in the ambient audio, which plays a supplementary and supporting role, enhancing or enriching the overall auditory experience. These sound components are not the main content of the ambient audio, but they increase the layering and realism of the audio. For example, in an ambient audio containing bird sounds and flowing water sounds, the primary ambient sound component is the sound of flowing water, which runs through the entire audio playback process and is the main sound felt by the user, directly determining the theme of the ambient audio. The secondary ambient sound component is the bird sound, which appears intermittently during the entire audio playback process, and plays a role in supporting and enhancing the primary ambient sound component. The secondary ambient sound component may include one or more sound sources, wherein each sound source in the secondary ambient sound component corresponds to a specific sound element in the secondary ambient sound component. For example, the secondary ambient sound component may include different sound elements such as bird sounds, frog sounds, and cicada sounds.

[0026] When the main audio and ambient audio are played at the same time, if the main audio and the ambient audio contain the same sound source, interference and conflict between the audio will occur. For example, when playing the human voice in the music, some natural bird sounds are also added to the music as background sound effects. When these background sound effects overlap with the bird sounds in the ambient sound component of the ambient audio, the sounds of the same sound source of the main audio and the ambient audio will interfere with each other, affecting the user's listening experience.

[0027] In order to solve the above problem, the embodiments of the present specification identify the main audio sound component from the main audio and the ambient sound component from the ambient audio. When it is detected that the two contain the same sound source, that is, at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the ambient audio can be stopped from playing or the overlapping ambient sound components in the ambient audio can be stopped to avoid interference of the overlapping sound sources in the ambient audio to the main audio, thereby ensuring the clarity and stability of the main audio.

[0028] In one embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be captured in real time for real-time detection, and the main audio sound component contained in the current main audio segment can be identified. When it is detected that at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the playback of the ambient audio can be stopped until the main audio playback ends, and when the audio playback device switches to the next main audio playback, the playback of the ambient audio can be resumed.

[0029] In another embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be captured in real time for real-time detection, and the main audio sound components contained in the current main audio segment can be identified. When it is detected that at least a part of the main audio sound components overlaps with at least a part of the ambient sound components, the playback of the overlapping ambient sound components in the ambient audio can be stopped until the playback of the main audio ends, and when the audio playback device switches to the next main audio playback, the normal playback of the ambient audio can be restored.

[0030] In one embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be intercepted in real time for real-time detection, the main audio sound component contained in the current main audio segment can be identified, and when it is detected whether at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the ambient audio can be stopped from playing within a preset time after the current moment. If, during the real-time detection of the main audio signal within the preset time, it is not detected again that at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the ambient audio can be resumed after the preset time.

[0031] In another embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be intercepted in real time for real-time detection, the main audio sound component contained in the current main audio segment can be identified, and when it is detected that at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the playback of the overlapping ambient sound component in the ambient audio can be stopped within a preset time after the current moment. If during the real-time detection of the main audio signal within the preset time, it is not detected again that at least a part of the main audio sound component overlaps with at least a part of the ambient sound component, the playback of the overlapping ambient sound component in the ambient audio can be resumed after the preset time.

[0032] If the ambient sound components of a certain ambient audio include insect sounds and running water sounds, in the process of playing the ambient audio, the running water sound as the main ambient sound component runs through the entire playback process, while the insect sound appears intermittently as the secondary ambient sound component. At this time, even if the main audio sound component in the main audio played simultaneously with it does not contain the running water sound, since the running water sound runs through the entire playback process as the main ambient sound component, its continuous existence is easy to cover up or interfere with the sound information in the main audio, resulting in unclear transmission of the sound information of the main audio. For example, the continuous running water sound will cover up the details in the main audio, making it difficult to hear the sound of the main audio clearly. As a secondary ambient sound component, the insect sound appears intermittently, and the duration of each sound is short. Since the insect sound appears intermittently and the duration of each sound is short, when it appears, it mainly supplements the overall atmosphere of the audio and has less interference with the main audio.

[0033] In response to the above problems, Figure 2 As shown, this specification proposes another method for controlling multi-audio playback, including steps 201-202:

[0034] Step 201: When the vehicle plays the main audio and the ambient audio simultaneously, only the secondary ambient sound component of the ambient audio is played, and the main audio sound component is identified from the main audio.

[0035] Step 202: If at least a portion of the primary audio sound component overlaps with at least a portion of the secondary ambient sound component, stop playing the ambient audio or stop playing the overlapping ambient sound component in the ambient audio.

[0036] In the scenario where the main audio and the ambient audio are played simultaneously, the embodiment of the present specification only plays the secondary ambient sound component of the ambient audio instead of the main ambient sound component of the ambient audio, thereby avoiding the continuous interference of the main ambient sound component in the ambient audio to the main audio. At the same time, in order to further avoid the interference problem of the secondary ambient sound component and the main audio on the main audio due to containing the same sound source, the embodiment of the present specification identifies the main audio sound component from the main audio, and stops playing the ambient audio or stops playing the overlapping ambient sound component in the ambient audio when at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component. It can be understood that if the secondary ambient sound component and the main audio do not contain the same sound source, the secondary ambient sound component of the main audio and the ambient audio can be played simultaneously.

[0037] In one embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be captured in real time for real-time detection, and the main audio sound component contained in the current main audio segment can be identified. When it is detected that at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component, the playback of the ambient audio can be stopped until the main audio playback ends, and when the audio playback device switches to the next main audio playback, the playback of the secondary ambient sound component of the ambient audio can be resumed.

[0038] In another embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be captured in real time for real-time detection, and the main audio sound component contained in the current main audio segment can be identified. When it is detected that at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component, the playback of the overlapping secondary ambient sound component in the ambient audio can be stopped until the playback of the main audio ends, and when the audio playback device switches to the next main audio playback, the normal playback of the secondary ambient sound component of the ambient audio can be restored.

[0039] In one embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be intercepted in real time for real-time detection, the main audio sound component contained in the current main audio segment can be identified, and when it is detected whether at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component, the secondary ambient sound component of the ambient audio can be stopped from playing within a preset time after the current moment. If during the real-time detection process within the preset time, it is not detected again that at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component, the secondary ambient sound component of the ambient audio can be resumed after the preset time.

[0040] In another embodiment, during the entire playback process of the main audio, before the audio signal is transmitted to the playback device, the main audio segment to be played can be intercepted in real time for real-time detection, the main audio sound component contained in the current main audio segment can be identified, and when it is detected that at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component, the playback of the overlapping secondary ambient sound component in the ambient audio can be stopped within a preset time after the current moment. If during the real-time detection process within the preset time, it is not detected again that at least a part of the main audio sound component overlaps with at least a part of the secondary ambient sound component, the playback of the overlapping secondary ambient sound component in the ambient audio can be resumed after the preset time.

[0041] In one embodiment, in order to play only the secondary ambient sound component of the ambient audio, the main ambient sound component in the ambient audio can be filtered in real time when playing the ambient audio. By filtering the main ambient sound component in the ambient audio in real time, only the secondary ambient sound component is retained for playback.

[0042] In another embodiment, a corresponding ambient audio copy can be set for each ambient audio, and the ambient audio copy only contains the secondary ambient sound component. When the main audio and the ambient audio are played at the same time, the ambient audio copy containing only the secondary ambient sound component is selected for playing. By pre-creating an audio copy containing only the secondary ambient sound component, the complexity of real-time audio separation processing and the waste of computing resources are reduced. Optionally, the original ambient audio or its copy can be dynamically selected for playing according to actual conditions. For example, when it is detected that the main audio and the ambient audio are playing at the same time, it is automatically switched to a copy containing only the secondary ambient sound component; when it is detected that only the ambient audio is playing, the complete ambient audio is resumed for playing.

[0043] In one embodiment, the main audio sound component includes a core sound component and a background sound component. Since the core sound component of the main audio is mainly human voice, it hardly overlaps with the sound source of the ambient audio, while the part containing the same sound source as the ambient audio generally appears in the background sound component of the main audio, and most of the main audio sound component is composed of the core sound component. Therefore, when determining whether the main audio sound component contains the same sound source as the ambient audio, it is possible to ignore the judgment of whether there is a sound source overlap between the core sound component of the main audio and the ambient sound component of the ambient audio, and only judge whether there is a sound source overlap between the background sound component of the main audio and the ambient sound component of the ambient audio, so as to improve computing efficiency.

[0044] Specifically, when the vehicle plays the main audio and the ambient audio at the same time, the background sound components contained in the main audio are identified. When at least a part of the identified background sound components overlaps with at least a part of the ambient sound components, the ambient audio is stopped from playing or the overlapping ambient sound components in the ambient audio are stopped from playing.

[0045] In one embodiment, in order to obtain the background sound component of the main audio and the ambient sound component of the ambient audio, the main audio signal of the main audio outputted by the vehicle system can be captured at the first audio output interface thereof, and the captured main audio signal can be separated and processed based on the audio separation model to separate the background sound component therefrom. Also, the ambient audio signal of the ambient audio outputted by the vehicle system can be captured at the second audio output interface thereof, and the captured ambient audio signal can be separated and processed based on the audio separation model to separate the ambient sound component therefrom.

[0046] In order to achieve the purpose of capturing the main audio signal of the main audio and the ambient audio signal of the ambient audio. Specifically, a high-sensitivity first audio capture device and a second audio capture device can be configured at the first audio output interface and the second audio output interface of the vehicle system, respectively, so as to capture the main audio signal output by the first audio output interface through the first audio capture device and the ambient audio signal output by the second audio output interface through the second audio capture device. Of course, audio capture devices connected to the first audio output interface and the second audio output interface, respectively, can also be configured to capture the main audio signal and the ambient audio signal output by the first audio output interface and the second audio output interface, respectively, in parallel.

[0047] In terms of separating sound components from audio signals, taking the main audio signal as an example, the main audio signal of the main audio is captured by an audio capture device, and the main audio signal captured in real time is input into the audio separation model, and the time-frequency masking technology is used to separate the background sound components from the main audio according to the masking value of the audio separation model. Similarly, for the ambient audio signal, the ambient audio signal of the ambient audio can also be captured by an audio capture device, and the ambient audio signal captured in real time is input into the audio separation model, and the time-frequency masking technology is used to separate the ambient sound components from the ambient audio according to the masking value of the audio separation model.

[0048] Regarding the method of separating the target sound components from the audio, the same audio separation model can be used to separate the background sound components of the main audio and the ambient sound components of the ambient audio. Specifically, by using a diverse sound data set containing main audio types and ambient audio types, a general audio separation model is trained so that it can identify and separate various background sound components of the main audio and ambient sound components of the ambient audio from the input audio. The above-mentioned general audio separation model can be used to separate the background sound components of the main audio, as well as to separate the ambient sound components of the ambient audio. Therefore, the resources for storing the model can be reduced, making it easier to deploy it on the vehicle side. Furthermore, a multi-task learning strategy can be introduced into the model so that it can process the tasks of the main audio and the ambient audio in parallel, thereby improving processing efficiency.

[0049] Of course, different audio separation models can also be used to separate the background sound components of the main audio and the ambient sound components of the ambient audio. Specifically, each audio separation model is designed as a structure that is optimized specifically for a specific type of audio. For example, one model can be trained and optimized specifically for the ability to separate background sound components in the main audio, while another model can be trained and optimized specifically for the ability to separate secondary ambient sound components in the ambient audio, so that each model focuses on the task of separating specific types of sound components of specific audio, and the model parameters and architecture can be adjusted specifically for different types of audio signals to ensure better separation effects.

[0050] The model architecture of the audio separation model involved in the above-mentioned embodiments may be a model architecture such as Wave-U-net, U-net or CNN network, etc. This specification does not limit the model architecture of the model.

[0051] After identifying the main audio sound component from the main audio and identifying the ambient sound component from the ambient audio, it may be determined whether at least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component by:

[0052] In one embodiment, if Figure 3 As shown, the main audio sound features corresponding to each sound source are extracted from the main audio sound component 31, and the ambient sound features corresponding to each sound source are extracted from the ambient sound component 32. For example, if the main audio sound component includes different sound sources such as human voice, violin sound, guitar sound and wind sound, the main audio sound features characterizing the characteristics of each sound source can be extracted from the main audio sound component 31. Similarly, the same processing is performed on the ambient sound component 32, which will not be repeated here. Specifically, the main audio sound component 31 can be separated into different independent sound sources based on the non-negative matrix decomposition algorithm, and the main audio sound features used to characterize the characteristics of the sound source can be extracted from the separated independent sound sources. For example, the main audio sound features can be represented by spectrum peaks, MFCC coefficients, etc. Similarly, the same processing can be used for the ambient sound component 32, which will not be repeated here.

[0053] In this embodiment, for any ambient audio stored locally on the vehicle terminal, the ambient sound features of the ambient audio can be pre-stored in the ambient sound feature library. When the main audio and the ambient audio are played at the same time, the main audio segment to be played can be intercepted in real time before the main audio signal is transmitted to the external playback device. The main audio segment can be a 20-millisecond audio signal frame as the main audio sound component 31 to be detected. The main audio sound features corresponding to each sound source in the main audio sound component 31 are extracted, and compared with the ambient sound features of the currently playing ambient audio obtained from the ambient sound feature library to determine whether the main audio played in the current time period exists in a sound source that overlaps with the ambient audio. Of course, for the ambient audio played online on the vehicle terminal, the same method as the main audio signal can be used. Before the ambient audio signal is transmitted to the external device, the ambient audio segment to be played can be intercepted. The ambient audio segment can be a 20-millisecond audio signal frame as the ambient sound component 31 to be detected.

[0054] After extracting the main audio sound features and the ambient sound features, the sound source similarity between each main audio sound feature and each ambient sound feature can be calculated. For example, for any main audio sound feature i, the sound source similarity between the main audio sound feature i and all ambient sound features extracted from the ambient sound component 32 can be calculated, and the ambient sound feature whose sound source similarity with any main audio sound feature is greater than the similarity threshold is determined, and the ambient sound component corresponding to the ambient sound feature is stopped from playing.

[0055] As described in the above-mentioned embodiment, the core sound component 331 in the main audio sound component 31 hardly overlaps with the sound source of the ambient sound component 32. Therefore, there is no need to calculate the sound source similarity between the core sound component 331 and the ambient sound component 32. Even if the main ambient sound component 341 in the ambient sound component 32 does not overlap with the main audio sound component 31, its continuous interference to the main audio will also affect the user's auditory experience. Therefore, when the main audio and ambient audio are played at the same time, the main ambient sound component can be filtered, and there is no need to calculate the sound source similarity between the main ambient sound component 341 and the main audio sound component 31.

[0056] Therefore, in one embodiment, the core sound component 331 and the background sound component 332 can be determined from the main audio sound component 31, and the main ambient sound component 341 and the secondary ambient sound component 342 can be determined from the ambient sound component 32. The main audio sound features corresponding to each sound source are extracted from the background sound component 332, and the ambient sound features corresponding to each sound source are extracted from the secondary ambient sound component 342. If there is an ambient sound feature whose similarity with any main audio sound feature is greater than the similarity threshold, the ambient sound component corresponding to the ambient sound feature is stopped from being played. For the main ambient sound component of the ambient audio, the main ambient sound component can be kept from being played while the main audio and the ambient audio are being played simultaneously.

[0057] In addition, this specification also proposes another way to determine whether at least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component:

[0058] Determine the main audio sound source category corresponding to each sound source in the main audio sound component, and determine the ambient audio sound source category corresponding to each sound source in the ambient sound component; if there is an ambient audio sound source category that belongs to the same sound source category as any main audio sound source category, stop playing the ambient sound component corresponding to the ambient audio sound source category.

[0059] Specifically, different sound sources are separated from the main audio sound components using sound source separation algorithms such as non-negative matrix factorization (NMF) and independent component analysis (ICA). For each separated sound source, a pre-trained machine learning model can be used to identify the main audio sound source category to which the sound source belongs. Similarly, different sound sources are separated from the ambient sound components using sound source separation algorithms such as non-negative matrix factorization (NMF) and independent component analysis (ICA). For each separated sound source, a pre-trained machine learning model can be used to identify the ambient audio sound source category to which the sound source belongs. If there is an ambient audio sound source category that belongs to the same sound source category as any main audio sound source category, the ambient sound component corresponding to the ambient audio sound source category is stopped from playing.

[0060] For example, assuming that it is identified that the main audio sound source category of the main audio sound component includes guitar sound, flowing water sound and bird singing, and the ambient audio sound source category of the ambient sound component includes bird singing and wind sound, it can be determined that the main audio sound component and the ambient sound component contain the same sound source category (bird singing), then the playing of the ambient sound component corresponding to the ambient audio sound source category (bird singing) is stopped.

[0061] In one embodiment, in a scenario where the main audio and the ambient audio are played simultaneously, the theme to which the main audio belongs can be identified, and the ambient audio matching the theme can be played.

[0062] Specifically, the ambient audio can be divided into different categories according to different themes when constructing the ambient audio library. For example, the ambient audio can be divided into categories such as "natural ambient sound", "urban ambient sound" and "leisure music sound". For the divided ambient audio categories, the matching rules of the theme of each main audio and the category of the ambient audio are defined. For example, the theme "driving instructions" matches "natural ambient sound" (such as wind sound, bird sound, etc.). The theme "music playback" matches "urban ambient sound" (such as street noise, cafe background sound, etc.). According to the theme to which the main audio being played belongs, the ambient audio in the matching ambient audio category is selected for playback. Among them, in order to identify the theme to which the main audio belongs, the main audio can be converted into text, and the theme to which the main audio belongs can be determined by analyzing the text content. For example, for an audio clip of music playback: "The next song "Song A" will be played". By converting the audio clip into the text "The next song "Song A" will be played", and then extracting keywords such as "to be played" and "next", the theme category of the main audio is determined to be "music playback" based on semantic analysis.

[0063] In the embodiments of this specification, by matching the main audio theme with the corresponding ambient audio, a harmonious audio environment can be created to enhance the auditory experience of driving and riding. For example, music combined with natural ambient sound can reduce driving stress and enhance concentration.

[0064] Corresponding to the embodiments of the aforementioned method, this specification also provides embodiments of a device and a terminal to which it is applied.

[0065] like Figure 4 As shown, Figure 4 It is a structural diagram of an electronic device 400 shown in this specification according to an exemplary embodiment. At the hardware level, the device 400 includes a processor 402, an internal bus 404, a network interface 406, a memory 408 and a non-volatile memory 410, and of course may also include hardware required for other services. One or more embodiments of this specification can be implemented based on software, such as the processor 402 reading the corresponding computer program from the non-volatile memory 410 into the memory 408 and then running it. Of course, in addition to the software implementation, one or more embodiments of this specification do not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic module, but can also be hardware or logic devices.

[0066] like Figure 5 As shown, Figure 5 This is a device for controlling multi-audio playback according to an exemplary embodiment of the present specification. The device 500 can be applied to Figure 4The electronic device shown in the figure is used to implement the technical solution of this specification. The device 500 is applied to a vehicle and includes:

[0067] A component identification module 502, configured to identify a main audio sound component included in the main audio and an ambient sound component included in the ambient audio when the vehicle plays the main audio and the ambient audio simultaneously;

[0068] The first play mode control module 504 is used to stop playing the ambient audio or stop playing the overlapping ambient sound component in the ambient audio if at least a part of the main audio sound component overlaps with at least a part of the ambient sound component.

[0069] The main audio sound component includes a background sound component, and the component identification module 502 is specifically used to identify the background sound component included in the main audio. The first play mode control module 504 is specifically used to identify that at least a part of the background sound component overlaps with at least a part of the ambient sound component.

[0070] The main audio is output through the first audio output interface of the vehicle system, and the ambient audio is output through the second audio output interface of the vehicle system. The component identification module 502 is specifically used to capture the main audio signal of the main audio through the first audio output interface, and separate the main audio signal based on the audio separation model to separate the background sound component therefrom; and / or capture the ambient audio signal of the ambient audio through the second audio output interface, and separate the ambient audio signal based on the audio separation model to separate the ambient sound component therefrom.

[0071] The first playback mode control module 504 is specifically used to determine the main audio sound features corresponding to each sound source in the main audio sound component, and determine the ambient sound features corresponding to each sound source in the ambient sound component; if there is an ambient sound feature whose similarity with any main audio sound feature is greater than a similarity threshold, stop playing the ambient sound component corresponding to the ambient sound feature; or, determine the main audio source category corresponding to each sound source in the main audio sound component, and determine the ambient audio source category corresponding to each sound source in the ambient sound component; if there is an ambient audio source category that belongs to the same sound source category as any main audio source category, stop playing the ambient sound component corresponding to the ambient audio source category.

[0072] The ambient sound feature library pre-stores the ambient sound features of various ambient audios, and the first play mode control module 504 is specifically used to obtain the ambient sound features of the target ambient audio from the ambient sound feature library.

[0073] The ambient audio includes a primary ambient sound component and a secondary ambient sound component. The device 500 further includes a second play mode control module 506 for playing the secondary ambient sound component of the ambient audio while playing the primary audio and the ambient audio simultaneously.

[0074] The second play mode control module 506 is specifically used to play the ambient audio copy containing only the secondary ambient sound component; or, when playing the ambient audio, filter the primary ambient sound component in the ambient audio in real time.

[0075] The first play mode control module 504 is specifically used to identify the theme to which the main audio belongs, and play the ambient audio matching the theme.

[0076] The first playback mode control module 504 is specifically used to stop playing the ambient audio or stop playing the overlapping ambient sound components in the ambient audio within a preset duration; or, stop playing the ambient audio or stop playing the overlapping ambient sound components in the ambient audio until the main audio playback ends.

[0077] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, which will not be repeated here.

[0078] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. Ordinary technicians in this field can understand and implement it without paying creative work.

[0079] The present specification also provides a computer-readable storage medium having a computer program stored thereon, and when the program is executed by a processor, the steps of any of the aforementioned methods for controlling multi-audio playback provided by the present disclosure are implemented.

[0080] Specifically, computer-readable media suitable for storing computer program instructions and data include all forms of non-volatile memory, media and memory devices, including, for example, semiconductor memory devices (such as EPROM, EEPROM and flash memory devices), magnetic disks (such as internal hard disks or removable disks), magneto-optical disks, and CD ROM and DVD-ROM disks.

Claims

1. A method for controlling multi-audio playback, characterized in that: The method is applied to a vehicle and comprises: In a case where the vehicle simultaneously plays a main audio and an ambient audio, identifying a main audio sound component included in the main audio and an ambient sound component included in the ambient audio; If at least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component, the ambient audio is stopped from being played or the overlapping ambient sound component in the ambient audio is stopped from being played.

2. The method according to claim 1, characterized in that The main audio sound component includes a background sound component, The identifying the main audio sound component contained in the main audio includes: identifying the background sound component contained in the main audio; At least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component, including: at least a portion of the identified background sound component overlaps with at least a portion of the ambient sound component.

3. The method according to claim 2, characterized in that The main audio is output through the first audio output interface of the vehicle system, and the ambient audio is output through the second audio output interface of the vehicle system. The identifying the background sound component from the main audio comprises: capturing a main audio signal of the main audio through the first audio output interface, and performing separation processing on the main audio signal based on an audio separation model to separate the background sound component therefrom; and / or, The identifying of the ambient sound component from the ambient audio includes: capturing the ambient audio signal of the ambient audio through the second audio output interface, and performing separation processing on the ambient audio signal based on an audio separation model to separate the ambient sound component therefrom.

4. The method according to claim 1, characterized in that Determining that at least a portion of the main audio sound component overlaps with at least a portion of the ambient sound component, and stopping playing the overlapping ambient sound component in the ambient audio, comprises: Determine the main audio sound features corresponding to each sound source in the main audio sound component, and determine the ambient sound features corresponding to each sound source in the ambient sound component; if there is an ambient sound feature whose similarity with any main audio sound feature is greater than a similarity threshold, stop playing the ambient sound component corresponding to the ambient sound feature; or, Determine the main audio sound source category corresponding to each sound source in the main audio sound component, and determine the ambient audio sound source category corresponding to each sound source in the ambient sound component; if there is an ambient audio sound source category that belongs to the same sound source category as any main audio sound source category, stop playing the ambient sound component corresponding to the ambient audio sound source category.

5. The method according to claim 4, characterized in that The ambient sound feature library pre-stores the ambient sound features of various ambient audios, and the step of determining the ambient sound features corresponding to each sound source in the ambient sound component includes: Acquire the ambient sound features of the target ambient audio from the ambient sound feature library.

6. The method according to claim 1, characterized in that The ambient audio includes a primary ambient sound component and a secondary ambient sound component, and the method further includes: When the main audio and the ambient audio are played simultaneously, the secondary ambient sound component of the ambient audio is played.

7. The method according to claim 6, characterized in that The secondary ambient sound component of playing the ambient audio includes: playing a copy of the ambient audio containing only the secondary ambient sound component; or, When playing the ambient audio, the main ambient sound component in the ambient audio is filtered in real time.

8. The method according to claim 1, characterized in that In a case where the vehicle simultaneously plays the main audio and the ambient audio, playing the ambient audio includes: The theme to which the main audio belongs is identified, and the ambient audio matching the theme is played.

9. The method according to claim 1, characterized in that: The stopping of playing the ambient audio or stopping of playing the ambient sound component overlapped in the ambient audio includes: Stop playing the ambient audio or the overlapping ambient sound components in the ambient audio within a preset time period; or, Stop playing the ambient audio or stop playing the overlapping ambient sound components in the ambient audio until the main audio finishes playing.

10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Vehicle-mounted system and sound control method thereof

    CN102774321A

  • Method, device, storage medium and electronic equipment for regulating volume

    CN108377414A

  • Audio distribution method and device for vehicle

    CN109254751A

  • Method, system, and computer readable medium for providing audio data to device

    CN117714775A

  • Audio sound calming device

    JP2007019980A