Sound area configuration method and device, equipment and storage medium
By automatically detecting the vehicle audio acquisition channel and dynamically adjusting the sound area recognition algorithm, the problem of the vehicle sound area cannot be expanded and the voice function abnormality caused by microphone abnormality is solved, and the stability and flexibility of the vehicle voice function are achieved.
Patent Information
- Application Number
- CN202510093789.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-06
AI Technical Summary
The vehicle's voice area cannot be expanded by installing a microphone, and once a microphone is abnormal, the voice function will also be abnormal.
By automatically detecting the audio acquisition channel in the vehicle, the available acquisition channel is determined, and the sound area identification algorithm is switched according to the number and number of available channels to achieve dynamic adjustment of sound area configuration.
Ensure that the vehicle's voice function can still function normally even if there is an abnormal microphone, and that the newly connected microphone can be recognized and used normally when accessing a new microphone.
Smart Images

Figure CN119928748A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle configuration technology, and in particular to a sound zone configuration method, device, equipment and storage medium. Background Art
[0002] With the development of vehicle technology, voice control functions are generally installed in vehicles. In order to avoid the abuse of voice control, the vehicle generally locks the sound zone so that voice commands are detected only in specific areas, ensuring that only passengers in the designated area can issue commands, thereby improving the privacy and security of the interaction.
[0003] Currently, the sound zones in vehicles are often fixed when the vehicle leaves the factory and cannot be increased or reduced later. The sound zone configuration cannot be improved by adding microphones, and the number of sound zones is generally the same as the number of on-board microphones. Once a microphone is abnormal, its voice function cannot be guaranteed to be used normally. Summary of the invention
[0004] The main purpose of this application is to provide a sound zone configuration method, device, equipment and storage medium, aiming to solve the technical problems in related technologies that the vehicle sound zone cannot be expanded by adding microphones, and once a microphone is abnormal, the voice function will also be abnormal.
[0005] To achieve the above object, the present application proposes a sound zone configuration method, which is applied to a vehicle, wherein a plurality of microphone interfaces are provided in the vehicle, and the microphone interfaces correspond one to one with audio collection channels;
[0006] The method comprises:
[0007] Control the vehicle audio device to play the preset audio and determine the collection channel to be detected;
[0008] Obtain the channel audio signal corresponding to each collection channel to be detected in the vehicle;
[0009] Determine an available acquisition channel according to the channel audio signal;
[0010] Determining a sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels;
[0011] The vehicle is configured with a sound zone based on the sound zone recognition algorithm to provide voice services to users.
[0012] Optionally, determining an available acquisition channel according to the channel audio signal includes:
[0013] Determine whether there is an unavailable channel in the to-be-detected acquisition channel according to the channel audio signal;
[0014] If there is no unavailable channel, the acquisition channel to be detected is used as an available acquisition channel;
[0015] If there is an unavailable channel and the unavailable channel has been marked, the other acquisition channels to be detected except the unavailable channel will be regarded as available channels;
[0016] If there is an unavailable channel but it is not marked, the unavailable channel is marked and the process returns to the step of controlling the vehicle audio device to play the preset audio and determining the acquisition channel to be detected.
[0017] Optionally, determining whether there is an unavailable channel in the to-be-detected acquisition channel according to the channel audio signal includes:
[0018] Get the audio volume corresponding to each channel audio signal;
[0019] If there is a collection channel to be detected whose corresponding audio volume is less than or equal to the detection threshold, it is determined that there is an unavailable channel.
[0020] Optionally, determining whether there is an unavailable channel in the to-be-detected acquisition channel according to the channel audio signal includes:
[0021] Respectively identify the audio signals of each channel to obtain audio data and / or audio text corresponding to the audio signals of each channel;
[0022] Comparing the audio data and / or audio text corresponding to the audio signals of each channel with the preset audio and / or the audio text corresponding to the preset audio, respectively, to determine the audio similarity corresponding to the audio signals of each channel;
[0023] If there is a channel audio signal whose corresponding audio similarity is less than a preset similarity threshold, it is determined that there is an unavailable channel.
[0024] Optionally, determining the sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels includes:
[0025] Detect whether all available acquisition channels have been marked as connected to microphones;
[0026] If there is an available acquisition channel that is not marked with a connected microphone, obtain the marked channel;
[0027] Determine a quantity interval according to the number of channels of the marked channels and the number of channels of the available acquisition channels, and determine a number combination method according to the channel numbers of the marked channels and the channel numbers of the available acquisition channels;
[0028] Searching for at least one available algorithm in a preset algorithm library based on the quantity interval and the number combination;
[0029] A vocal range identification algorithm is selected from the available algorithms.
[0030] Optionally, controlling the vehicle audio device to play preset audio and determining a collection channel to be detected includes:
[0031] Control the vehicle audio device to play the preset audio and obtain the playback volume;
[0032] If the playback volume is less than or equal to the preset recognition threshold, the audio collection channel corresponding to the microphone interface to which the microphone is connected is used as the collection channel to be detected;
[0033] If the playback volume is greater than a preset recognition threshold, all audio collection channels in the vehicle are used as collection channels to be detected.
[0034] Optionally, after configuring the vehicle's sound zone based on the sound zone recognition algorithm to provide voice service to the user, the method further comprises:
[0035] After the sound zone is configured, the collected user voice data is recognized based on the sound zone recognition algorithm to obtain the user voice command;
[0036] Detecting whether the user voice command exists in the available command list corresponding to the voice zone recognition algorithm;
[0037] If so, searching the available command list for the control target corresponding to the user voice command;
[0038] The control target is controlled according to the user voice command.
[0039] In addition, to achieve the above-mentioned purpose, the present application also provides a sound zone configuration device, which is applied to a vehicle, wherein a plurality of microphone interfaces are provided in the vehicle, and the microphone interfaces correspond one to one with the audio collection channels;
[0040] The device comprises:
[0041] A control module, used to control the vehicle audio device to play the preset audio and determine the collection channel to be detected;
[0042] An acquisition module is used to acquire channel audio signals corresponding to each collection channel to be detected in the vehicle;
[0043] A detection module, used to determine an available acquisition channel according to the channel audio signal;
[0044] A determination module, used to determine a sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels;
[0045] A configuration module is used to configure the sound zone of the vehicle based on the sound zone recognition algorithm to provide voice services for users.
[0046] In addition, to achieve the above-mentioned purpose, the present application also provides a sound zone configuration device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sound zone configuration method as described above.
[0047] In addition, to achieve the above-mentioned purpose, the present application also provides a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the sound zone configuration method as described above are implemented.
[0048] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the sound zone configuration method described above are implemented.
[0049] One or more technical solutions proposed in this application have at least the following technical effects:
[0050] Since the audio collection channels in the vehicle can be automatically detected, the vehicle's sound zones can be configured based on the detection results, and the sound zone recognition algorithm used in the vehicle can be switched, it can ensure that even if there is an abnormality with the microphone, the vehicle's voice function can still operate normally. Moreover, when a new microphone is connected according to actual needs, the voice function can also recognize and use the newly connected microphone normally. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0052] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0053] Figure 1 A flowchart of the first embodiment of the method for configuring the audio zone of the present application is provided;
[0054] Figure 2 A schematic diagram of a microphone interface reservation according to an embodiment of the present application;
[0055] Figure 3 A flowchart of the second embodiment of the method for configuring the audio zone of the present application is provided;
[0056] Figure 4 This is a schematic diagram of the module structure of the sound zone configuration device according to an embodiment of the present application;
[0057] Figure 5 It is a schematic diagram of the device structure of the hardware operating environment involved in the audio zone configuration method in the embodiment of the present application.
[0058] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0059] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0060] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0061] Based on this, the embodiment of the present application provides a method for configuring a sound zone, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the audio zone configuration method of the present application.
[0062] In this embodiment, the audio zone configuration method is applied to a vehicle, and a plurality of microphone interfaces are provided in the vehicle, and the microphone interfaces correspond to the audio collection channels one by one;
[0063] For ease of understanding, now combined Figure 2 This is for illustration only, but not for limitation. Figure 2 A schematic diagram is reserved for the microphone interface of this embodiment, such as Figure 2 As shown, four microphone interfaces can be pre-set in the vehicle hardware, and each microphone interface corresponds to an audio collection channel. After the microphone interface is connected to the microphone, audio can be collected through the microphone, and the collected recording signal can be transmitted based on the audio collection channel, and then summarized to obtain user voice data;
[0064] It is understandable that based on this, even if the vehicle is only equipped with two sound zones (such as the main driver's sound zone and the co-driver's sound zone) when it leaves the factory, only two microphone interfaces are used. When necessary in the future, users can purchase microphones on their own and connect the microphones to the car computer through the microphone interfaces.
[0065] The method for configuring the sound zone includes steps S10 to S50:
[0066] Step S10: Control the vehicle audio device to play the preset audio and determine the collection channel to be detected.
[0067] It should be noted that the executor of this embodiment can be the vehicle itself or a sound zone configuration device arranged in the vehicle. The sound zone configuration device can be a controller arranged in the vehicle, such as an ECU controller, or other devices that can achieve the same or similar functions. This embodiment is not limited to this. In this embodiment and the following embodiments, the sound zone configuration method of this application is described by taking the sound zone configuration device as an example.
[0068] It should be noted that in order to ensure that the voice function in the vehicle is not affected when some microphones in the vehicle are damaged, and at the same time to ensure that the vehicle can recognize the newly installed microphone, it is necessary to ensure that it can detect whether each microphone in the vehicle can collect volume normally. In order to facilitate detection, the on-board audio device in the vehicle can be controlled to play preset audio.
[0069] Among them, the vehicle audio device can be a vehicle speaker, or other similar equipment, which is not limited in this embodiment. In order to avoid unnecessary processing and resource consumption, step S10 can be executed only when the user needs it. For example: after the user turns on the automatic detection / automatic identification of the microphone function and the car computer is turned on and wakes up the voice application for the first time, step S10 and subsequent steps are executed.
[0070] In actual use, since not every microphone interface may be connected to a microphone device, it is not necessary to detect all audio collection channels every time during detection. In order to avoid unnecessary detection, when controlling the vehicle-mounted audio playback device to play preset audio, the collection channel to be detected can be determined according to actual needs.
[0071] Among them, the collection channel to be detected can be set by the vehicle user. For example, if the user chooses to detect the main driver's sound zone and the co-driver's sound zone, the audio collection channels corresponding to the main driver's microphone interface and the co-driver's microphone interface of the main driver's sound zone can be used as the collection channel to be detected.
[0072] In a specific implementation, since the volume used for playing the preset audio may be different when performing different levels of detection, on this basis, the acquisition channel to be detected may not be determined in a preset manner, but may be determined by the playback volume when the preset audio is played. In this case, step S10 in this embodiment may include:
[0073] Control the vehicle audio device to play the preset audio and obtain the playback volume;
[0074] If the playback volume is less than or equal to the preset recognition threshold, the audio collection channel corresponding to the microphone interface to which the microphone is connected is used as the collection channel to be detected;
[0075] If the playback volume is greater than a preset recognition threshold, all audio collection channels in the vehicle are used as collection channels to be detected.
[0076] It should be noted that when detecting the audio collection channels corresponding to some microphone interfaces that are known to have microphones connected, since it is already known that a microphone is connected, it is actually sufficient to only detect whether it can receive sound normally. In this case, the volume of the preset audio can be lower.
[0077] If a comprehensive test is performed, that is, all audio collection channels are tested, it is not only necessary to test the reception, but also the reception effect or noise, etc. At this time, it is necessary to ensure the comprehensiveness and accuracy of the reception. At this time, the volume of the preset audio needs to be higher.
[0078] Based on this, it is possible to determine which audio collection channels need to be detected by the playback volume when the preset audio is played, that is, determine the collection channels to be detected.
[0079] The preset recognition threshold may be pre-set by a manager of the audio zone configuration device; the marked audio collection channel may be an audio collection channel corresponding to a microphone interface to which a microphone has been connected.
[0080] In actual use, if the playback volume is less than or equal to the preset recognition threshold, it means that a relatively low volume is used for testing at this time. Therefore, the audio collection channel corresponding to the microphone interface connected to the microphone can be used as the collection channel to be tested;
[0081] If the playback volume is greater than the preset recognition threshold, it means that a larger volume is used for testing, that is, a comprehensive test is performed. Therefore, all audio collection channels in the vehicle can be used as collection channels to be tested.
[0082] Step S20: Acquire the channel audio signals corresponding to each collection channel to be detected in the vehicle.
[0083] In actual use, in order to detect whether each audio collection channel can be used normally, that is, to determine whether the microphone connected to the microphone interface corresponding to the audio collection channel can collect audio data normally, the channel audio signal corresponding to each collection channel to be detected can be obtained.
[0084] The channel audio signal corresponding to the collection channel to be detected may be an audio signal generated by collecting audio data through a microphone connected to a microphone interface corresponding to the collection channel to be detected when playing preset audio.
[0085] Step S30: determining available acquisition channels according to the channel audio signals.
[0086] In actual use, by detecting the channel audio signal, it is possible to determine whether each acquisition channel to be detected can be used normally, thereby determining the available acquisition channels.
[0087] Step S40: determining a sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels.
[0088] It should be noted that the algorithms required for processing different sound zones are actually different. In order to ensure that the voice function of the vehicle is not affected when some microphones in the vehicle are damaged, and at the same time ensure that the vehicle can recognize the newly installed microphone, after determining the available acquisition channels, the channel number of the available acquisition channels and the sound zone recognition algorithm corresponding to the channel number can be found in the preset algorithm library.
[0089] Among them, the preset algorithm library can include a variety of sound zone recognition algorithms corresponding to different sound zones, which are related algorithms for recognizing and processing voice commands in the sound zones. If necessary, it can be a batch of algorithms, which can also be called a sound zone recognition algorithm library.
[0090] For example, assuming there are 4 audio acquisition channels, the channel numbers are 1, 2, 3, and 4, which correspond to the main driver's sound zone, the co-driver's sound zone, the main driver's rear sound zone (i.e. the sound zone corresponding to the rear area behind the main driver's seat), and the co-driver's rear sound zone (i.e. the sound zone corresponding to the rear area behind the co-driver's seat). At this time, the following correspondence can be achieved:
[0091] If the available channel is the audio acquisition channel with channel number 1, the main driver's effective single-tone zone, the sound zone recognition algorithm is the main driver's single-tone zone algorithm, and the audio data of channel 1 is collected for recognition processing;
[0092] If the available channel is the audio acquisition channel with channel number 2, the co-pilot effective single-tone zone, the sound zone recognition algorithm is the co-pilot single-tone zone algorithm, and the audio data of 2 channels is collected for recognition processing;
[0093] If the available channels are audio acquisition channels with channel numbers 1 and 2, then the driver and co-driver have effective dual audio zones, and the audio zone recognition algorithm is the driver and co-driver audio zone algorithm, which collects audio data from channels 1 and 2 for recognition processing;
[0094] If the available channels are audio acquisition channels with channel numbers 1 or 2, and 3 or 4, then the front and rear row dual sound zones, the sound zone recognition algorithm is the front and rear row sound zone algorithm, and the audio data of channels 1 or 2, and 3 or 4 are collected for recognition processing;
[0095] If the available channels are any three audio acquisition channels with channel numbers 1, 2, 3, and 4, then the three-zone audio zone recognition algorithm is the three-zone audio zone algorithm;
[0096] If the available channels are audio acquisition channels numbered 1, 2, 3 and 4, then there are four sound zones, and the sound zone recognition algorithm is a four-sound zone algorithm, which collects audio data of channels 1-4 for recognition processing.
[0097] Among them, voice wake-up and recognition should give priority to ensuring the performance of the main driver. The sound zone recognition algorithm in the preset algorithm library is set based on this. For example, taking the co-driver single sound zone algorithm as an example, when this algorithm is used, it is generally because the main driver's microphone is damaged and invalid. Different preprocessing methods should be used for the audio collected from the co-driver, such as changing the audio gain to better identify the main driver's information. The relevant parameters of the preprocessing method can be calibrated in advance by the developer based on the main driver's pronunciation and the co-driver's microphone reception before the vehicle leaves the factory.
[0098] In a specific implementation, since a newly connected microphone may also be detected during detection, in order to reasonably select a sound zone recognition algorithm, step S40 in this embodiment may include:
[0099] Detect whether all available acquisition channels have been marked as connected to microphones;
[0100] If there is an available acquisition channel that is not marked with a connected microphone, obtain the marked channel;
[0101] Determine a quantity interval according to the number of channels of the marked channels and the number of channels of the available acquisition channels, and determine a number combination method according to the channel numbers of the marked channels and the channel numbers of the available acquisition channels;
[0102] Searching for at least one available algorithm in a preset algorithm library based on the quantity interval and the number combination;
[0103] A vocal range identification algorithm is selected from the available algorithms.
[0104] It should be noted that the marked channels are available collection channels that have been marked to be connected to the microphone. If there are available collection channels that are not marked to be connected to the microphone, it means that a new microphone has been connected to the vehicle at this time. However, the user may not need to use the newly connected microphone for voice recognition at this time. Based on this, it is necessary to avoid reasonably selecting the voice zone recognition algorithm.
[0105] In actual use, in order to reasonably select a sound zone recognition algorithm, it is necessary to obtain all available sound zone recognition algorithms after the new microphone is connected. Therefore, the quantity interval can be determined according to the number of channels of the marked channels and the number of channels of the available acquisition channels, as well as the channel numbers of the marked channels and the channel numbers of the available acquisition channels to determine the number combination method. After that, the available algorithms can be searched in the preset algorithm library according to the quantity interval and the number combination method, so as to obtain at least one available algorithm.
[0106] For example: assuming there are 4 audio acquisition channels, the channel numbers are 1, 2, 3, and 4. Currently, the available acquisition channels are 1, 2, and 4, and 1 and 2 have been marked as connected to the microphone. At this time, the marked channels are 1 and 2. Therefore, the quantity interval can be determined to be [2,3]. The numbering combinations include 1, 2, 1 and 2, as well as 1 and 3, 2 and 3, 1 and 2 and 3. At this time, the available algorithms obtained include: driver's seat single-tone zone algorithm, co-driver's seat single-tone zone algorithm, driver and co-driver's seat zone algorithm, front and rear row zone algorithm, and three-zone algorithm.
[0107] In a specific implementation, the available algorithms may be displayed to the vehicle user to facilitate the user's selection, and then the sound zone recognition algorithm may be selected from the available algorithms according to the user's selection.
[0108] For example: after determining that the available algorithms include the driver's seat single-tone zone algorithm, the co-driver's seat single-tone zone algorithm, the driver and co-driver's seat sound zone algorithm, the front and rear row sound zone algorithm, and the three-zone algorithm, a display interface can be generated to display the available algorithms in the display interface. Each option can correspond to an available algorithm. After that, the user can make a selection in the display interface, and the sound zone configuration device can determine the sound zone recognition algorithm based on the selection.
[0109] In actual use, the sound zone configuration device may also make a selection according to a preset strategy. For example, a user generally wishes to use microphone access. Based on this, the algorithm with the most corresponding sound zones among the available algorithms may be selected as the sound zone recognition algorithm.
[0110] Step S50: configuring the vehicle's sound zone based on the sound zone recognition algorithm to provide voice service to the user.
[0111] It should be noted that after the sound zone recognition algorithm is determined, the sound zone can be configured for the vehicle so that the sound zone recognition algorithm is used to process the audio data collected by the voice function.
[0112] In actual use, there may be an algorithm flag in the vehicle, which indicates which algorithm the vehicle should use when performing voice functions. At this time, the sound zone configuration of the vehicle can be to modify the value of the algorithm flag to the flag value corresponding to the acquired sound zone recognition algorithm.
[0113] In a specific implementation, in order to prevent the voice command from being abused, after step S50 in this embodiment, the following steps may be further included:
[0114] After the sound zone is configured, the collected user voice data is recognized based on the sound zone recognition algorithm to obtain the user voice command;
[0115] Detecting whether the user voice command exists in the available command list corresponding to the voice zone recognition algorithm;
[0116] If so, searching the available command list for the control target corresponding to the user voice command;
[0117] The control target is controlled according to the user voice command.
[0118] It should be noted that after the voice zone configuration, the available voice zones may change. Based on this, the associated parts will also change. This process may include changes in feedback words. For example, there are directional feedback words such as "driver, co-driver" in the dual-tone zone of driver and co-driver, which need to be deleted or changed in the single-tone zone.
[0119] At the same time, the direction or execution target of the command execution will also change. For example: the user's voice command is "open the window", the main driver's window will be opened in the dual-tone zone, triple-tone zone or quadruple-tone zone; the front window will be opened in the dual-tone zone for the front and rear rows; all windows will be opened in the single-tone zone.
[0120] Based on the above changes, the administrator of the sound zone configuration device can set a corresponding available instruction list for the sound zone recognition algorithm. The available instruction list may include available voice instructions and the target to be controlled when the voice instructions are executed.
[0121] Based on this, after the collected user sound data is recognized based on the voice zone recognition algorithm and the user voice command is obtained, it is necessary to first detect whether the user voice command exists in the available command list corresponding to the voice zone recognition algorithm. If so, the control target corresponding to the user voice command can be further searched in the available command list. Finally, the control target can be controlled according to the user voice command.
[0122] The present embodiment provides a sound zone configuration method, which can automatically detect the audio collection channels in the vehicle, configure the sound zones of the vehicle according to the detection results, and switch the sound zone recognition algorithm used in the vehicle to ensure that even if there is an abnormality in the microphone, the voice function of the vehicle can still operate normally, and when a new microphone is connected according to actual needs, the voice function can also normally recognize and use the newly connected microphone.
[0123] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , step S30 includes steps S301 to S304:
[0124] Step S301: determining whether there is an unavailable channel in the to-be-detected acquisition channels according to the channel audio signal.
[0125] It should be noted that after obtaining the channel audio signal, monitoring is performed based on the channel audio signal to determine whether the microphone corresponding to the collection channel to be detected can receive sound normally, and whether each collection channel to be detected can be used normally, thereby determining whether there is an unavailable channel.
[0126] In a specific implementation, whether the audio collection channel is available may be determined based on whether the sound can be normally received. In this case, step S301 in this embodiment may include:
[0127] Get the audio volume corresponding to each channel audio signal;
[0128] If there is a collection channel to be detected whose corresponding audio volume is less than or equal to the detection threshold, it is determined that there is an unavailable channel.
[0129] It should be noted that if the audio volume corresponding to the channel audio signal is less than the detection threshold, it means that the volume collected by the collection channel to be detected is too small and cannot be collected normally. The collection channel to be detected can be regarded as an unavailable channel. Therefore, it can be determined that there is an unavailable channel.
[0130] The detection threshold may be pre-set by the administrator of the sound zone configuration device, for example, the detection threshold may be set to 0;
[0131] Of course, weak sound reception (i.e. the collected volume is too low and almost imperceptible) can actually also be judged as collection abnormality. In this case, the detection threshold can also be set to a smaller positive number, such as 3dB.
[0132] In a specific implementation, the similarity between the collected audio data and the played audio may also be detected to determine whether the audio collection channel is available. In this case, step S301 in this embodiment may include:
[0133] Respectively identify the audio signals of each channel to obtain audio data and / or audio text corresponding to the audio signals of each channel;
[0134] Comparing the audio data and / or audio text corresponding to the audio signals of each channel with the preset audio and / or the audio text corresponding to the preset audio, respectively, to determine the audio similarity corresponding to the audio signals of each channel;
[0135] If there is a channel audio signal whose corresponding audio similarity is less than a preset similarity threshold, it is determined that there is an unavailable channel.
[0136] It should be noted that when the microphone is abnormal, noise may occur during sound reception. If noise occurs, it will inevitably lead to a large difference between its audio data and the preset audio played. Based on this, the audio data corresponding to the audio signal of each channel can be compared with the preset audio respectively, so as to obtain the audio similarity corresponding to the audio signal of each channel.
[0137] The audio similarity corresponding to the channel audio signal may be the similarity between the audio data corresponding to the channel audio signal and the played preset audio.
[0138] In practical applications, the audio data corresponding to the channel audio signal and the preset audio can be converted into the frequency domain respectively, and the spectral features of the two in the frequency domain are compared to determine the similarity of the corresponding spectral features of the two, and the similarity is used as the audio similarity.
[0139] In actual use, if the audio similarity corresponding to the channel audio signal is less than the preset similarity threshold, it means that the similarity between the audio data corresponding to the channel audio signal and the preset audio is very low. It can be determined that there is an abnormality, which affects the sound reception. Therefore, the collection channel to be detected corresponding to the channel audio signal can be regarded as an unavailable channel. At this time, it can be determined that there is an unavailable channel.
[0140] The preset similarity threshold may be pre-set by a manager of the audio zone configuration device, for example, the preset similarity threshold may be set to 90%.
[0141] In specific applications, spectral filtering can also be used to determine whether there is an unavailable channel. For example, based on the spectral characteristics corresponding to the preset audio, a filter is used to filter the spectral characteristics of the audio data corresponding to the channel audio signal, and the remaining part is used as noise data. Then, the sound pressure or volume corresponding to the noise data is obtained. If the sound pressure or volume is greater than a preset value, the to-be-detected acquisition channel corresponding to the channel audio signal is determined as an unavailable channel.
[0142] Of course, if the audio playback volume is loud, the recognition accuracy of text recognition will be higher. At this time, you can also try to perform text recognition on the channel audio signals to determine the audio text corresponding to each channel audio signal. After that, compare the audio text with the audio text corresponding to the preset audio, and use the text matching degree in the comparison process as the audio similarity.
[0143] Of course, in actual use, the above-mentioned methods can be combined according to actual needs, for example: simultaneously identifying the audio data and audio text corresponding to the channel audio signal, and then comparing the audio data and audio text corresponding to the channel audio signal with the preset audio and the audio text corresponding to the preset audio, respectively, so as to determine the similarity of the spectral features and the text matching degree, and then, combining the similarity of the spectral features and the text matching degree to comprehensively generate the audio similarity, and then judging based on the audio similarity to determine whether there is an unavailable channel.
[0144] When comprehensively generating the audio similarity, an averaging or weighted summing method may be used. Of course, other methods, such as product methods, may also be used according to actual needs, and this embodiment does not limit this.
[0145] Step S302: If there is no unavailable channel, the acquisition channel to be detected is used as an available acquisition channel.
[0146] In actual use, if there is no unavailable channel, it means that all the acquisition channels to be detected can be used normally at this time. Therefore, all the acquisition channels to be detected can be used as available acquisition channels.
[0147] Step S303: If there are unavailable channels and the unavailable channels have been marked, other acquisition channels to be detected except the unavailable channels are used as available channels.
[0148] In actual use, if there is an unavailable channel, it means that there is an acquisition channel to be detected that cannot be used normally. Therefore, it is necessary to further detect whether the channel was available before, that is, it can be detected whether the unavailable channel has been marked. If the unavailable channel has been marked, it means that the audio acquisition channel has been marked as possibly abnormal before. After further detection, it still cannot be used normally. Therefore, it can be determined that the unavailable channel cannot be used normally. At this time, other acquisition channels to be detected except the unavailable channel can be used as available channels.
[0149] Step S304: if there is an unavailable channel but the unavailable channel is not marked, the unavailable channel is marked and the process returns to the step of controlling the vehicle audio device to play the preset audio and determining the acquisition channel to be detected.
[0150] In actual use, in order to minimize false detection, multiple detections can be performed before determining an audio acquisition channel. If an unavailable channel is detected but not marked, it means that this is the first time that the audio acquisition channel has been detected to be unavailable. This may be due to microphone damage, or it may be due to driver uninstallation or the microphone being connected for the first time and the driver not being installed properly, resulting in it being unusable. In order to avoid false judgment, the unavailable channel can be marked, and the process of controlling the vehicle audio device to play the preset audio and determining the steps for the acquisition channel to be detected can be performed at least once more.
[0151] For example, to avoid misjudgment, the unavailable channel can be marked, and the channel can be checked again when the voice application is woken up next time. The process can then return to controlling the vehicle audio device to play the preset audio and determine the acquisition channel to be detected.
[0152] In actual applications, when determining whether there is an unavailable channel through multiple detections, the multiple detection methods may be the same, for example, using volume judgment twice in succession, or using audio similarity judgment twice in succession.
[0153] Of course, different judgment methods may also be used. For example, when the audio similarity is used to judge the presence of an abnormality during the first detection, it is marked. Thereafter, the volume is judged for the marked channel.
[0154] This embodiment provides a method for configuring sound zones. When an unavailable channel is detected, it does not directly determine that it is abnormal, but instead marks it and returns to re-detect it. This avoids the situation where the microphone is temporarily unusable due to special factors, reduces false detections, improves detection accuracy, and ensures that the sound zone configuration can be performed reasonably.
[0155] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the sound zone configuration method of the present application. More simple transformations based on this technical concept are all within the protection scope of the present application.
[0156] The present application also provides a sound zone configuration device, which is applied to a vehicle, wherein a plurality of microphone interfaces are provided in the vehicle, and the microphone interfaces correspond one-to-one to the audio collection channels;
[0157] Please refer to Figure 4 , the sound zone configuration device comprises:
[0158] The control module 10 is used to control the vehicle audio device to play the preset audio and determine the collection channel to be detected;
[0159] An acquisition module 20 is used to acquire channel audio signals corresponding to each collection channel to be detected in the vehicle;
[0160] A detection module 30, configured to determine an available acquisition channel according to the channel audio signal;
[0161] A determination module 40, configured to determine a sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels;
[0162] The configuration module 50 is used to configure the sound zone of the vehicle based on the sound zone recognition algorithm to provide voice service for the user.
[0163] The sound zone configuration device provided by the present application adopts the sound zone configuration method in the above embodiment, which can solve the technical problem that the sound zone of the vehicle in the related art cannot be expanded by adding a microphone, and once a microphone is abnormal, the voice function will also be abnormal. Compared with the prior art, the beneficial effects of the sound zone configuration device provided by the present application are the same as the beneficial effects of the sound zone configuration method provided by the above embodiment, and other technical features in the sound zone configuration device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0164] The present application provides a sound zone configuration device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the sound zone configuration method in the above-mentioned embodiment 1.
[0165] Reference below Figure 5 , which shows a schematic diagram of the structure of a sound zone configuration device suitable for implementing the embodiment of the present application. The sound zone configuration device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The illustrated sound zone configuration device is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0166] like Figure 5As shown, the sound zone configuration device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the sound zone configuration device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the sound zone configuration device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a sound zone configuration device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0167] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0168] The sound zone configuration device provided by the present application adopts the sound zone configuration method in the above embodiment, which can solve the technical problem that the sound zone of the vehicle in the related art cannot be expanded by adding a microphone, and once a microphone is abnormal, the voice function will also be abnormal. Compared with the prior art, the beneficial effects of the sound zone configuration device provided by the present application are the same as the beneficial effects of the sound zone configuration method provided by the above embodiment, and other technical features in the sound zone configuration device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0169] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0170] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0171] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for configuring the sound zones in the above-mentioned embodiment.
[0172] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0173] The computer-readable storage medium may be included in the sound zone configuration device; or may exist independently without being assembled into the sound zone configuration device.
[0174] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the sound zone configuration device, the sound zone configuration device: controls the vehicle audio device to play preset audio and determines the collection channel to be detected; obtains the channel audio signal corresponding to each collection channel to be detected in the vehicle; determines the available collection channel according to the channel audio signal; determines the sound zone recognition algorithm according to the channel number and channel number of the available collection channel; and configures the sound zone of the vehicle based on the sound zone recognition algorithm to provide voice services to users.
[0175] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0176] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0177] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0178] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned sound zone configuration method, and can solve the technical problems that the sound zone of a vehicle in the related art cannot be expanded by adding a microphone, and once a microphone is abnormal, the voice function will also be abnormal. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the sound zone configuration method provided by the above-mentioned embodiment, and will not be repeated here.
[0179] The present application also provides a computer program product, including a computer program, wherein when the computer program is executed by a processor, the steps of the above-mentioned sound zone configuration method are implemented.
[0180] The computer program product provided by the present application can solve the technical problem that the vehicle sound zone cannot be expanded by adding microphones in the related art, and once a microphone is abnormal, the voice function will also be abnormal. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the sound zone configuration method provided by the above embodiment, which will not be repeated here.
[0181] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for configuring a sound zone, characterized in that: Applied to a vehicle, the vehicle is provided with a plurality of microphone interfaces, and the microphone interfaces correspond one to one with the audio collection channels; The method comprises: Control the vehicle audio device to play the preset audio and determine the collection channel to be detected; Obtain the channel audio signal corresponding to each collection channel to be detected in the vehicle; Determine an available acquisition channel according to the channel audio signal; Determining a sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels; The vehicle is configured with a sound zone based on the sound zone recognition algorithm to provide voice services to users.
2. The method for configuring a sound zone according to claim 1, wherein: The determining of the available acquisition channel according to the channel audio signal comprises: Determine whether there is an unavailable channel in the to-be-detected acquisition channel according to the channel audio signal; If there is no unavailable channel, the acquisition channel to be detected is used as an available acquisition channel; If there is an unavailable channel and the unavailable channel has been marked, the other acquisition channels to be detected except the unavailable channel will be regarded as available channels; If there is an unavailable channel but it is not marked, the unavailable channel is marked and the process returns to the step of controlling the vehicle audio device to play the preset audio and determining the acquisition channel to be detected.
3. The method for configuring the sound zone according to claim 2, wherein: The determining, according to the channel audio signal, whether there is an unavailable channel in the to-be-detected acquisition channel comprises: Get the audio volume corresponding to each channel audio signal; If there is a collection channel to be detected whose corresponding audio volume is less than or equal to the detection threshold, it is determined that there is an unavailable channel.
4. The method for configuring the sound zone according to claim 2, wherein: The determining, according to the channel audio signal, whether there is an unavailable channel in the to-be-detected acquisition channel comprises: Respectively identify the audio signals of each channel to obtain audio data and / or audio text corresponding to the audio signals of each channel; Comparing the audio data and / or audio text corresponding to the audio signals of each channel with the preset audio and / or the audio text corresponding to the preset audio, respectively, to determine the audio similarity corresponding to the audio signals of each channel; If there is a channel audio signal whose corresponding audio similarity is less than a preset similarity threshold, it is determined that there is an unavailable channel.
5. The method for configuring the sound zones according to claim 1, wherein: The step of determining the sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels comprises: Detect whether all available acquisition channels have been marked as connected to microphones; If there is an available acquisition channel that is not marked with a connected microphone, obtain the marked channel; Determine a quantity interval according to the number of channels of the marked channels and the number of channels of the available acquisition channels, and determine a number combination method according to the channel numbers of the marked channels and the channel numbers of the available acquisition channels; Searching for at least one available algorithm in a preset algorithm library based on the quantity interval and the number combination; A vocal range identification algorithm is selected from the available algorithms.
6. The method for configuring the sound zones according to claim 1, wherein: The controlling the vehicle audio device to play the preset audio and determining the collection channel to be detected includes: Control the vehicle audio device to play the preset audio and obtain the playback volume; If the playback volume is less than or equal to the preset recognition threshold, the audio collection channel corresponding to the microphone interface to which the microphone is connected is used as the collection channel to be detected; If the playback volume is greater than a preset recognition threshold, all audio collection channels in the vehicle are used as collection channels to be detected.
7. The method for configuring a sound zone according to any one of claims 1 to 6, characterized in that: After configuring the vehicle's sound zone based on the sound zone recognition algorithm to provide voice service to the user, the method includes: After the sound zone is configured, the collected user voice data is recognized based on the sound zone recognition algorithm to obtain the user voice command; Detecting whether the user voice command exists in the available command list corresponding to the voice zone recognition algorithm; If so, searching the available command list for the control target corresponding to the user voice command; The control target is controlled according to the user voice command.
8. A sound zone configuration device, characterized in that: Applied to a vehicle, the vehicle is provided with a plurality of microphone interfaces, and the microphone interfaces correspond one to one with the audio collection channels; The device comprises: A control module, used to control the vehicle audio device to play the preset audio and determine the collection channel to be detected; An acquisition module is used to acquire channel audio signals corresponding to each collection channel to be detected in the vehicle; A detection module, used to determine an available acquisition channel according to the channel audio signal; A determination module, used to determine a sound zone recognition algorithm according to the number of channels and channel numbers of the available acquisition channels; A configuration module is used to configure the sound zone of the vehicle based on the sound zone recognition algorithm to provide voice services for users.
9. A sound zone configuration device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the sound zone configuration method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the sound zone configuration method according to any one of claims 1 to 7 are implemented.