Audio control method and device, equipment and storage medium

By obtaining the location and environmental information of the audio equipment, adjusting the status, and judging the playback group, autonomous control and point-to-point communication of the audio equipment are realized, which solves the scalability and flexibility problems of the existing audio control system and improves the stability and stability of the system. efficiency.

CN118866005APending Publication Date: 2024-10-29LINKPLAY TECHNOLOGY INC NANJING
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410806948.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing audio control systems rely on centralized controllers, which results in limited scalability and flexibility of the system. In addition, the system cannot work properly when the controller fails, resulting in large communication overhead and high complexity.

Method used

By obtaining the location information and environment detection information of the audio device, adjust the audio status information, determine whether the device belongs to the same playback group, achieve audio status synchronization based on point-to-point communication, autonomously control the audio device, and generate playback strategies to achieve decentralized multi-audio playback .

Benefits of technology

It achieves autonomous control of audio equipment, reduces dependence on the central controller, improves the scalability and flexibility of the system, avoids system crashes caused by controller failure, and reduces communication overhead.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118866005A_ABST
    Figure CN118866005A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent audio, and discloses an audio control method, device and equipment and a storage medium, which are used for expandability and flexibility of a system where audio equipment is located. The audio control method comprises the steps that first position information, first audio state information and environment detection information of the audio device and second position information and second audio state information of other audio devices are obtained, and the second audio state information is audio state information adjusted through the corresponding environment detection information; and adjusting the first audio state information based on the environment detection information to obtain third audio state information, and if a target audio device belonging to the same playing group as the audio device exists based on the first position information, the second position information, the second audio state information and the third audio state information, sending the target audio device to the audio device. And if yes, determining an audio playing strategy according to the second audio state information and the third audio state information of the target audio equipment, and playing the audio data based on the audio playing strategy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent audio technology, and in particular to an audio control method, device, equipment and storage medium. Background Art

[0002] Existing audio control usually adopts centralized control, with a dedicated controller to uniformly manage all audio devices. The controller is responsible for issuing control instructions to the audio devices, including specifying audio sources, grouping playback, synchronizing volume, etc. The centralized control method of multiple audios is highly dependent on the controller. Once the controller fails, the entire system will not work properly. In addition, centralized control requires the controller to communicate frequently with all audio devices, which increases the system complexity and communication overhead. In addition, due to the lack of autonomous control capabilities of the audio devices themselves, the scalability and flexibility of the system are limited. Summary of the invention

[0003] The present invention provides an audio control method, device, equipment and storage medium to solve the problem that the scalability and flexibility of the system are limited due to the lack of autonomous control capability of the audio device itself.

[0004] A first aspect of the present invention provides an audio control method, including: obtaining first position information, first audio status information and environment detection information of the current audio device, as well as second position information and second audio status information of other audio devices, wherein the second audio status information is audio status information adjusted by the corresponding environment detection information; adjusting the first audio status information based on the environment detection information to obtain third audio status information; judging whether there is a target audio device belonging to the same playback group as the current audio device based on the first position information, the second position information, the second audio status information and the third audio status information; if there is a target audio device belonging to the same playback group as the current audio device, determining an audio playback strategy according to the second audio status information and the third audio status information of the target audio device; and playing audio data based on the audio playback strategy.

[0005] In a feasible implementation, when the environmental detection information includes light intensity and noise data, adjusting the first audio state information based on the environmental detection information to obtain the third audio state information includes: determining an intensity level corresponding to the light intensity; determining a noise level corresponding to the noise data; determining a target adjustment parameter of the audio device based on the intensity level and the noise level and referring to a preset audio state adjustment rule; and adjusting the first audio state information based on the target adjustment parameter to obtain the third audio state information.

[0006] In a feasible implementation, determining the intensity level of the light intensity includes: converting the light intensity into a light intensity value, and inputting the light intensity value into a preset fuzzy controller; based on preset fuzzy rules, fuzzifying the light intensity value through the fuzzy controller to obtain a target element corresponding to the light intensity value in a preset fuzzy set; and determining the intensity level corresponding to the light intensity based on the target element.

[0007] In a feasible implementation, determining the noise level of the noise data includes: extracting features from the noise data to obtain feature information; calculating based on the feature information and a preset noise type probability model to obtain a noise type corresponding to the noise data; and based on the noise type, determining the noise level corresponding to the noise data through a preset power-level noise control curve.

[0008] In a feasible implementation, the target adjustment parameter of the audio device is determined based on the intensity level and the noise level and with reference to a preset audio state adjustment rule, including: querying a first adjustment parameter corresponding to the intensity level; querying a second adjustment parameter corresponding to the noise level; and determining the target adjustment parameter of the audio device by combining the first adjustment parameter and the second adjustment parameter.

[0009] In a feasible implementation manner, the determining whether there is a target audio device belonging to the same playback group as the current audio device based on the first position information, the second position information, the second audio status information, and the third audio status information includes: determining whether the current audio device is in a normal state based on the third audio status information; if the current audio device is in a normal state, determining whether there is a first audio device belonging to the same area as the current audio device based on the first position information and the second position information; if there is a first audio device belonging to the same area as the current audio device, eliminating the abnormal audio device based on the second audio status information of the first audio device, and obtaining the target audio device belonging to the same playback group as the current audio device.

[0010] In a feasible implementation manner, the determining whether there is a first audio device belonging to the same area as the current audio device based on the first location information and the second location information includes: obtaining a first room identifier in the first location information and a second room identifier in the second location information; determining whether there is a target second room identifier consistent with the first room identifier in the second room identifier; if there is a target second room identifier consistent with the first room identifier, extracting the audio device corresponding to the target second room identifier to obtain the first audio device.

[0011] In a feasible implementation, determining the audio playback strategy based on the second audio status information and the third audio status information of the target audio device includes: extracting key indicators from the second audio status information and the third audio status information of the target audio device; and determining the audio playback strategy based on the key indicators, wherein the audio playback strategy includes volume, sound effect, timbre and playback mode.

[0012] In a feasible implementation, the playing of audio data based on the audio playback strategy includes: receiving a user playback instruction, determining the audio data to be played and a timestamp based on the user playback instruction; and playing the audio data according to the audio playback strategy based on the timestamp.

[0013] In a feasible implementation, the playing of audio data based on the audio playback strategy includes: obtaining the music listening history, behavior patterns and scenario preferences of users of each audio device; generating a recommended playlist based on the music listening history, the behavior patterns and the scenario preferences; randomly selecting audio data from the recommended playlist, and playing the audio data based on the audio playback strategy.

[0014] In a feasible implementation, after playing the audio data based on the audio playback strategy, it also includes: when the audio device belonging to the same playback group changes, regenerating the audio playback strategy of the audio device to obtain a new audio playback strategy; playing the audio data based on the new audio playback strategy.

[0015] In a feasible implementation, before regenerating the audio playback strategy of the audio device and obtaining a new audio playback strategy, it also includes: real-time monitoring of the playback status of audio devices belonging to the same playback group; judging whether there is a faulty audio device based on the playback status; when the faulty audio device exists, removing the faulty audio device from the corresponding playback group, and determining whether the audio devices belonging to the same playback group have changed.

[0016] A second aspect of the present invention provides an audio control device, comprising: an acquisition module, used to acquire first position information, first audio state information and environment detection information of the present audio device, and second position information and second audio state information of other audio devices, wherein the second audio state information is the audio state information adjusted by the corresponding environment detection information; an adjustment module, used to adjust the first audio state information based on the environment detection information to obtain third audio state information; a first judgment module, used to judge whether there is a target audio device belonging to the same playback group as the present audio device based on the first position information, the second position information, the second audio state information and the third audio state information; a determination module, used to determine an audio playback strategy according to the second audio state information and the third audio state information of the target audio device if there is a target audio device belonging to the same playback group as the present audio device; and a first playback module, used to play audio data based on the audio playback strategy.

[0017] In a feasible implementation, the adjustment module includes: a first determination unit, used to determine the intensity level corresponding to the light intensity; a second determination unit, used to determine the noise level corresponding to the noise data; a third determination unit, used to determine the target adjustment parameters of the audio device based on the intensity level and the noise level, with reference to preset audio state adjustment rules; an adjustment unit, used to adjust the first audio state information based on the target adjustment parameters to obtain third audio state information.

[0018] In a feasible implementation, the first determination unit is specifically used to: convert the light intensity into a light intensity value, and input the light intensity value into a preset fuzzy controller; based on preset fuzzy rules, fuzzify the light intensity value through the fuzzy controller to obtain a target element corresponding to the light intensity value in a preset fuzzy set; and determine the intensity level corresponding to the light intensity based on the target element.

[0019] In a feasible implementation, the second determination unit is specifically used to: perform feature extraction on the noise data to obtain feature information; perform calculations based on the feature information and a preset noise type probability model to obtain a noise type corresponding to the noise data; and based on the noise type, determine a noise level corresponding to the noise data through a preset power-level noise control curve.

[0020] In a feasible implementation, the third determination unit is specifically used to: query the first adjustment parameter corresponding to the intensity level; query the second adjustment parameter corresponding to the noise level; and determine the target adjustment parameter of the audio device by combining the first adjustment parameter and the second adjustment parameter.

[0021] In a feasible implementation manner, the first judgment module includes: a first judgment unit, configured to judge whether the audio device is in a normal state based on the third audio state information; a second judgment unit, configured to judge whether there is a first audio device belonging to the same area as the audio device based on the first position information and the second position information if the audio device is in a normal state; and an elimination unit, configured to eliminate abnormal audio devices based on the second audio state information of the first audio device if there is a first audio device belonging to the same area as the audio device, so as to obtain a target audio device belonging to the same playback group as the audio device.

[0022] In a feasible implementation manner, the second judgment unit is specifically used to: obtain the first room identifier in the first location information and the second room identifier in the second location information; determine whether there is a target second room identifier consistent with the first room identifier in the second room identifier; if there is a target second room identifier consistent with the first room identifier, extract the audio device corresponding to the target second room identifier to obtain the first audio device.

[0023] In a feasible implementation, the determination module is specifically used to: extract key indicators from the second audio status information and the third audio status information of the target audio device; perform analysis based on the key indicators to determine an audio playback strategy, wherein the audio playback strategy includes volume, sound effects, timbre and playback mode.

[0024] In a feasible implementation manner, the first playback module is specifically used to: receive a user playback instruction, determine the audio data to be played and a timestamp based on the user playback instruction; and play the audio data according to the audio playback strategy based on the timestamp.

[0025] In a feasible implementation, the first playback module is further specifically used to: obtain the music listening history, behavior patterns and situational preferences of users of each audio device; generate a recommended playlist based on the music listening history, the behavior patterns and the situational preferences; randomly select audio data from the recommended playlist, and play the audio data based on the audio playback strategy.

[0026] In a feasible implementation, the audio control device also includes: a regeneration module, which is used to regenerate the audio playback strategy of the audio device when the audio device belonging to the same playback group changes, and obtain a new audio playback strategy; a second playback module, which is used to play audio data based on the new audio playback strategy.

[0027] In a feasible implementation, the audio control device also includes: a monitoring module, which is used to monitor the playback status of audio devices belonging to the same playback group in real time; a second judgment module, which is used to judge whether there is a faulty audio device based on the playback status; and a processing module, which is used to remove the faulty audio device from the corresponding playback group when the faulty audio device exists, and determine whether the audio devices belonging to the same playback group have changed.

[0028] A third aspect of the present invention provides an audio device, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the audio device executes the above-mentioned audio control method.

[0029] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned audio control method.

[0030] In the technical solution provided by the present invention, the first position information, the first audio state information and the environment detection information of the present audio device, as well as the second position information and the second audio state information of other audio devices are obtained, wherein the second audio state information is the audio state information adjusted by the corresponding environment detection information; the first audio state information is adjusted based on the environment detection information to obtain the third audio state information; based on the first position information, the second position information, the second audio state information and the third audio state information, it is determined whether there is a target audio device belonging to the same playback group as the present audio device; if there is a target audio device belonging to the same playback group as the present audio device, an audio playback strategy is determined according to the second audio state information and the third audio state information of the target audio device; and audio data is played based on the audio playback strategy. In the embodiment of the present invention, the audio device is autonomously controlled, does not rely on the central controller, and synchronizes the audio state information and playback with other audio devices based on a point-to-point communication method, thereby realizing a decentralized multi-audio playback method and improving the scalability and flexibility of the system to which the audio device belongs. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of an embodiment of an audio control method in an embodiment of the present invention;

[0032] Figure 2 A schematic diagram of another embodiment of the audio control method in an embodiment of the present invention;

[0033] Figure 3 A schematic diagram of an embodiment of an audio control device in an embodiment of the present invention;

[0034] Figure 4 is a schematic diagram of another embodiment of the audio control device in the embodiment of the present invention;

[0035] Figure 5 FIG. 1 is a schematic diagram of an embodiment of an audio device in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The embodiments of the present invention provide an audio control method, apparatus, device and storage medium, which improve the scalability and flexibility of the system to which the audio device belongs.

[0037] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the audio control method in the embodiment of the present invention includes:

[0039] 101. Obtain first position information, first audio state information, and environment detection information of the audio device, and second position information and second audio state information of other audio devices, where the second audio state information is audio state information adjusted according to the corresponding environment detection information;

[0040] The audio device can obtain the coordinate information of the audio device through a positioning function, and determine the area or room to which the audio device belongs based on the coordinate information of the audio device, thereby obtaining the first position information, and the area or room carries an area identifier or a room identifier.

[0041] The environmental detection information may be one or more types of information, such as light intensity or noise data, or light intensity and noise data, wherein the light intensity of the environment may be detected in real time by a built-in light sensor, and the noise data of the environment may be captured by a microphone.

[0042] The audio devices are connected to each other through point-to-point communication, and each audio device can directly obtain information of other audio devices. In this embodiment, the audio device can obtain the second position information and second audio status information corresponding to other audio devices through the established connection.

[0043] 102. Adjust the first audio state information based on the environment detection information to obtain third audio state information;

[0044] The light intensity is preprocessed, including denoising, filtering and smoothing to improve the accuracy and reliability of the data. The preprocessed light intensity is converted into a corresponding intensity value, and based on the intensity value, a query is performed in a preset light intensity level classification table to determine the light intensity level to which the intensity value belongs, and a first adjustment parameter is determined based on the light intensity level. The first adjustment parameter may include volume, sound effect, timbre, etc.

[0045] The noise data is preprocessed, and the preprocessing includes filtering and smoothing. Filtering can remove frequency components irrelevant to the audio signal, such as DC components and high-frequency noise. Smoothing can reduce the impact of random errors and outliers. Feature extraction is performed on the preprocessed noise data to obtain feature information, which includes noise level, spectrum distribution, energy distribution, etc. The feature information is input into the corresponding analysis model to obtain the noise level. The second adjustment parameter is determined based on the noise level, and the second adjustment parameter includes volume, sound effect and timbre, etc.

[0046] In this embodiment, the first audio state information can be adjusted based on the first adjustment parameter, can be adjusted based on the second adjustment parameter, or can be adjusted by combining the first adjustment parameter information and the second adjustment parameter information to obtain the third audio state information.

[0047] 103. Based on the first position information, the second position information, the second audio state information, and the third audio state information, determining whether there is a target audio device that belongs to the same playback group as the current audio device;

[0048] Based on the first position information and the second position information, a first audio device in the same area or room as the current audio device is determined, and a first safety state is extracted from the third audio state information. If the first safety state is normal, the second safety state is extracted from the second audio state information of the first audio device, and the first audio device with a second safety state of normal is determined as a target audio device belonging to the same playback group as the current audio device.

[0049] 104. If there is a target audio device that belongs to the same playback group as the current audio device, determine an audio playback strategy according to the second audio state information and the third audio state information of the target audio device;

[0050] The first key indicator is extracted from the second audio status information of the target audio device, the second key indicator is extracted from the third audio status information, and the audio playback strategy is determined by combining the first key indicator and the second key indicator. Key indicators include volume, sound effect, timbre and playback mode, etc. For example, if the target audio device includes a first target audio device and a second target audio device, the corresponding first key indicator is extracted from the second audio status information of the first target audio device and the second target audio device respectively to obtain the first key indicator corresponding to the first target audio device and the first key indicator corresponding to the second target audio device. If the first key indicator corresponding to the first target audio device includes a volume of 50%, a sound effect of MP3 sound effect, a soft timbre, and a playback mode of random playback; the first key indicator corresponding to the second target audio device includes a volume of 60%, a sound effect of MP3 sound effect, a textured timbre, and a playback mode of random playback; the second key indicator corresponding to this audio device includes a volume is 70%, the sound effect is digital sound effect, the timbre is bright, and the playback mode is random playback; the target volume can be 60%, target volume = (50% + 60% + 70%) / 3 = 60%; since the MP3 sound effect accounts for the highest proportion among the three sound effects in the same playback group, the MP3 sound effect is determined as the target sound effect; since the three timbres in the same playback group are different, one of the timbres can be selected as the target sound effect at will, so the target sound effect can be soft, textured or bright; since the three playback modes in the same playback group are all random playback, random playback is determined as the target playback mode; in summary, the audio playback strategy is that the volume is 60%, the sound effect is MP3 sound effect, the timbre is soft, textured or bright, and the playback mode is random playback.

[0051] 105. Play the audio data based on the audio playback strategy.

[0052] In an embodiment of the present invention, by obtaining the first position information, the first audio state information and the environment detection information of the audio device, and the second position information and the second audio state information of other audio devices, the second audio state information is the audio state information adjusted by the corresponding environment detection information, the first audio state information is adjusted based on the environment detection information to obtain the third audio state information, based on the first position information, the second position information, the second audio state information and the third audio state information, it is determined whether there is a target audio device belonging to the same playback group as the audio device, if there is a target audio device belonging to the same playback group as the audio device, an audio playback strategy is determined according to the second audio state information and the third audio state information of the target audio device, and audio data is played based on the audio playback strategy, so that autonomous control of the audio device is realized, which does not rely on the central controller, and synchronization of audio state information and playback is realized with other audio devices based on a point-to-point communication method, thereby realizing a decentralized multi-audio playback method and improving the scalability and flexibility of the system to which the audio device belongs.

[0053] See also Figure 2 Another embodiment of the audio control method in the embodiment of the present invention includes:

[0054] 201. Acquire first position information, first audio state information, and environment detection information of the current audio device, and second position information and second audio state information of other audio devices, where the second audio state information is audio state information adjusted according to the corresponding environment detection information;

[0055] 202. When the environment detection information includes light intensity and noise data, determine an intensity level corresponding to the light intensity;

[0056] The light intensity is converted into a light intensity value, and the light intensity value is input into a preset fuzzy controller; based on a preset fuzzy rule, the light intensity value is fuzzified through the fuzzy controller to obtain a target element corresponding to the light intensity value in a preset fuzzy set; and the intensity level corresponding to the light intensity is determined based on the target element.

[0057] The light intensity is converted into a digital signal, and the digital signal is input into a preset digital model to obtain a corresponding light intensity value. The fuzzy rule can be defined as follows: if the light intensity value is less than a first preset value, the light intensity is determined to belong to the "weak light" set; if the light intensity value is not less than the first preset value and the light intensity value is not greater than a second preset value, the light intensity is determined to belong to the "medium light" set; if the light intensity is greater than the second preset value, the light intensity is determined to belong to the "strong light" set.

[0058] 203. Determine a noise level corresponding to the noise data;

[0059] Feature extraction is performed on the noise data to obtain feature information; calculation is performed based on the feature information and a preset noise type probability model to obtain the noise type corresponding to the noise data; based on the noise type, the noise level corresponding to the noise data is determined through a preset power-level noise control curve.

[0060] For each noise type, one or more power-level noise control curves are preset. The power-level noise control curve despises the mapping relationship between noise level and noise grade. The shape and parameters of the curve can be adjusted according to actual needs and application scenarios.

[0061] The noise data is denoised, filtered and standardized to obtain target noise data. The characteristic information of the target noise data is extracted through Fourier transform, wavelet transform, statistics and other methods. The characteristic information includes time domain characteristics, frequency domain characteristics and statistical characteristics. The characteristic information is input into a preset noise type probability model to obtain the noise type. The corresponding power-level noise control curve is selected according to the noise type, and the characteristic information is used as input to determine the position of the noise data on the power-level noise control curve through search or interpolation methods, thereby obtaining the noise level corresponding to the noise data.

[0062] 204. Determine a target adjustment parameter of the audio device according to the intensity level and the noise level and with reference to a preset audio state adjustment rule;

[0063] A first adjustment parameter corresponding to the intensity level is queried; a second adjustment parameter corresponding to the noise level is queried; and a target adjustment parameter of the audio device is determined by combining the first adjustment parameter and the second adjustment parameter.

[0064] 205. Adjust the first audio state information based on the target adjustment parameter to obtain third audio state information;

[0065] 206. Based on the first position information, the second position information, the second audio state information, and the third audio state information, determine whether there is a target audio device that belongs to the same playback group as the current audio device;

[0066] Based on the third audio status information, it is determined whether the audio device is in a normal state; if the audio device is in a normal state, it is determined whether there is a first audio device belonging to the same area as the audio device based on the first position information and the second position information; if there is a first audio device belonging to the same area as the audio device, the abnormal audio device is eliminated based on the second audio status information of the first audio device, and a target audio device belonging to the same playback group as the audio device is obtained.

[0067] The execution steps of determining whether there is a first audio device belonging to the same area as the audio device based on the first location information and the second location information are: obtaining the first room identifier in the first location information and the second room identifier in the second location information; determining whether there is a target second room identifier consistent with the first room identifier in the second room identifier; if there is a target second room identifier consistent with the first room identifier, extracting the audio device corresponding to the target second room identifier to obtain the first audio device.

[0068] The first safety status information is extracted from the third audio status information. If the first safety status information is displayed as 1, it is determined that the audio device is in a normal state. If the first safety status information is displayed as 0, it is determined that the audio device is in an abnormal state. The location information of each audio device includes a corresponding room identifier. The room identifier can be represented by one or more of numbers, letters and symbols. For example, the room identifier can be 1, 2, 3, 4. If the first room identifier in the first location information is 1, when it is identified that there is a first audio device with a second room identifier of 1 in other audio devices, it is determined that the first audio device and the audio device belong to the same room.

[0069] 207. If there is a target audio device that belongs to the same playback group as the current audio device, determine an audio playback strategy according to the second audio state information and the third audio state information of the target audio device;

[0070] Extract key indicators from the second audio status information and the third audio status information of the target audio device; analyze based on the key indicators to determine the audio playback strategy, which includes volume, sound effect, timbre and playback mode.

[0071] 208. Play the audio data based on the audio playback strategy.

[0072] By receiving a user play instruction, the audio data to be played and a timestamp can be determined based on the user play instruction; and based on the timestamp, the audio data can be played according to an audio play strategy.

[0073] When the playing of the audio data is based on the time stamp, the current time is compared with the time stamp to determine the playing of the audio data.

[0074] It is also possible to obtain the music listening history, behavior patterns and situational preferences of users of each audio device; generate a recommended playlist based on the music listening history, behavior patterns and situational preferences; randomly select audio data from the recommended playlist, and play the audio data based on the audio playback strategy.

[0075] Through the SDK or API of the audio device, the user's playback records are collected regularly to obtain the user's music listening history, which includes the ID of the song played, the playing time, the number of times played, etc. The playback records are analyzed based on the time series analysis method to obtain the user's behavior pattern, which includes the frequency of listening to songs, the length of listening to songs, etc. The user's situational preferences are collected through user surveys, questionnaires, etc., and the situational preferences include environmental noise, mood, activity type, etc. Using the content-based recommendation algorithm, according to the music listening history, behavior pattern and situational preferences, songs similar to the user's preferences are searched from the music library, and the songs are arranged according to the user's listening habits to obtain a recommended playlist.

[0076] After playing the audio data based on the audio playback strategy, it also includes: real-time monitoring of the playback status of audio devices belonging to the same playback group; judging whether there is a faulty audio device based on the playback status; when there is a faulty audio device, removing the faulty audio device from the corresponding playback group, and determining whether the audio devices belonging to the same playback group have changed; when the audio devices belonging to the same playback group have changed, regenerating the audio playback strategy of the audio device to obtain a new audio playback strategy; and playing the audio data based on the new audio playback strategy.

[0077] Since the audio devices in each playback group are adjusted based on the audio status information of all audio devices, when the audio devices in the playback group change, it is necessary to regenerate the audio playback strategy based on all the changed audio devices. The audio device changes include reducing the audio devices in the playback group and increasing the audio devices in the playback group.

[0078] The playback status of the audio device can be analyzed to determine whether there is a device failure. Fault judgment can be based on a variety of conditions, such as no response for a long time, abnormal playback progress, abnormal volume, etc. Thresholds can also be set. When a status indicator exceeds the threshold, it is judged as a fault. Once a faulty device is detected, the device is immediately removed from the playback group.

[0079] In an embodiment of the present invention, by acquiring first position information, first audio state information and environment detection information of the present audio device, and second position information and second audio state information of other audio devices, the second audio state information is the audio state information adjusted by the corresponding environment detection information, determining the intensity level corresponding to the light intensity, determining the noise level corresponding to the noise data, determining the target adjustment parameter of the present audio device according to the intensity level and the noise level and referring to a preset audio state adjustment rule, adjusting the first audio state information based on the target adjustment parameter to obtain third audio state information, judging whether there is a target audio device belonging to the same playback group as the present audio device based on the first position information, the second position information, the second audio state information and the third audio state information, if there is a target audio device belonging to the same playback group as the present audio device, determining an audio playback strategy according to the second audio state information and the third audio state information of the target audio device, and playing audio data based on the audio playback strategy, autonomous control of the audio device is realized without relying on a central controller, and synchronization of audio state information and playback is realized with other audio devices based on a point-to-point communication mode, thereby realizing a decentralized multi-audio playback method and improving the scalability and flexibility of the system to which the audio device belongs.

[0080] The above describes the audio control method in the embodiment of the present invention. The following describes the audio control device in the embodiment of the present invention. Figure 3 , an embodiment of the audio control device in the embodiment of the present invention includes:

[0081] An acquisition module 301 is used to acquire first position information, first audio state information and environment detection information of the audio device, and second position information and second audio state information of other audio devices, where the second audio state information is audio state information adjusted according to the corresponding environment detection information;

[0082] An adjustment module 302, configured to adjust the first audio state information based on the environment detection information to obtain third audio state information;

[0083] A first determination module 303 is used to determine whether there is a target audio device belonging to the same playback group as the current audio device based on the first position information, the second position information, the second audio state information and the third audio state information;

[0084] The determination module 304 is used to determine the audio playback strategy according to the second audio state information and the third audio state information of the target audio device if there is a target audio device belonging to the same playback group as the current audio device;

[0085] The first playing module 305 is used to play the audio data based on the audio playing strategy.

[0086] In an embodiment of the present invention, by obtaining the first position information, the first audio state information and the environment detection information of the audio device, and the second position information and the second audio state information of other audio devices, the second audio state information is the audio state information adjusted by the corresponding environment detection information, the first audio state information is adjusted based on the environment detection information to obtain the third audio state information, based on the first position information, the second position information, the second audio state information and the third audio state information, it is determined whether there is a target audio device belonging to the same playback group as the audio device, if there is a target audio device belonging to the same playback group as the audio device, an audio playback strategy is determined according to the second audio state information and the third audio state information of the target audio device, and audio data is played based on the audio playback strategy, so that autonomous control of the audio device is realized, which does not rely on the central controller, and synchronization of audio state information and playback is realized with other audio devices based on a point-to-point communication method, thereby realizing a decentralized multi-audio playback method and improving the scalability and flexibility of the system to which the audio device belongs.

[0087] See also Figure 4 Another embodiment of the audio control device in the embodiment of the present invention includes:

[0088] An acquisition module 301 is used to acquire first position information, first audio state information and environment detection information of the audio device, and second position information and second audio state information of other audio devices, where the second audio state information is audio state information adjusted according to the corresponding environment detection information;

[0089] An adjustment module 302, configured to adjust the first audio state information based on the environment detection information to obtain third audio state information;

[0090] A first determination module 303 is used to determine whether there is a target audio device belonging to the same playback group as the current audio device based on the first position information, the second position information, the second audio state information and the third audio state information;

[0091] The determination module 304 is used to determine the audio playback strategy according to the second audio state information and the third audio state information of the target audio device if there is a target audio device belonging to the same playback group as the current audio device;

[0092] The first playing module 305 is used to play the audio data based on the audio playing strategy.

[0093] Optionally, the adjustment module 302 includes:

[0094] A first determining unit 3021 is used to determine an intensity level corresponding to the light intensity;

[0095] A second determining unit 3022, configured to determine a noise level corresponding to the noise data;

[0096] The third determining unit 3023 is used to determine the target adjustment parameter of the audio device according to the intensity level and the noise level and with reference to the preset audio state adjustment rule;

[0097] The adjusting unit 3024 is configured to adjust the first audio state information based on the target adjustment parameter to obtain third audio state information.

[0098] Optionally, the first determining unit 3021 may be specifically configured to:

[0099] The light intensity is converted into a light intensity value, and the light intensity value is input into a preset fuzzy controller; based on a preset fuzzy rule, the light intensity value is fuzzified through the fuzzy controller to obtain a target element corresponding to the light intensity value in a preset fuzzy set; and the intensity level corresponding to the light intensity is determined based on the target element.

[0100] Optionally, the second determining unit 3022 may be specifically configured to:

[0101] Feature extraction is performed on the noise data to obtain feature information; calculation is performed based on the feature information and a preset noise type probability model to obtain the noise type corresponding to the noise data; based on the noise type, the noise level corresponding to the noise data is determined through a preset power-level noise control curve.

[0102] Optionally, the third determining unit 3023 may be specifically configured to:

[0103] A first adjustment parameter corresponding to the intensity level is queried; a second adjustment parameter corresponding to the noise level is queried; and a target adjustment parameter of the audio device is determined by combining the first adjustment parameter and the second adjustment parameter.

[0104] Optionally, the first judging module 303 includes:

[0105] The first judging unit 3031 is used to judge whether the audio device is in a normal state based on the third audio state information;

[0106] The second determining unit 3032 is configured to determine whether there is a first audio device in the same area as the audio device based on the first location information and the second location information if the audio device is in a normal state;

[0107] The elimination unit 3033 is used to eliminate the abnormal audio device based on the second audio state information of the first audio device if there is a first audio device belonging to the same area as the current audio device, and obtain the target audio device belonging to the same playback group as the current audio device.

[0108] Optionally, the second judgment unit may be specifically configured to:

[0109] Obtain a first room identifier in the first location information and a second room identifier in the second location information; determine whether there is a target second room identifier consistent with the first room identifier in the second room identifier; if there is a target second room identifier consistent with the first room identifier, extract the audio device corresponding to the target second room identifier to obtain the first audio device.

[0110] Optionally, the determination module 304 may be specifically configured to:

[0111] Extract key indicators from the second audio status information and the third audio status information of the target audio device; analyze based on the key indicators to determine the audio playback strategy, which includes volume, sound effect, timbre and playback mode.

[0112] Optionally, the first playing module 305 may be specifically used for:

[0113] By receiving a user's play instruction, the audio data to be played and the timestamp are determined based on the user's play instruction; based on the timestamp, the audio data is played according to the audio play strategy.

[0114] Optionally, the first playing module 305 may also be specifically used for:

[0115] Obtain the music listening history, behavior patterns and situational preferences of users of each audio device; generate a recommended playlist based on the music listening history, behavior patterns and situational preferences; randomly select audio data from the recommended playlist and play the audio data based on the audio playback strategy.

[0116] Optionally, the audio control device further comprises:

[0117] A regeneration module 306, used for regenerating the audio playback strategy of the audio device when the audio device belonging to the same playback group changes, and obtaining a new audio playback strategy;

[0118] The second playing module 307 is used to play the audio data based on the new audio playing strategy.

[0119] Optionally, the audio control device further comprises:

[0120] Monitoring module 308, used for real-time monitoring of the playing status of audio devices belonging to the same playing group;

[0121] A second determination module 309 is used to determine whether there is a faulty audio device based on the playback status;

[0122] The processing module 310 is used to, when there is a faulty audio device, remove the faulty audio device from the corresponding play group and determine that the audio devices belonging to the same play group are changed.

[0123] In an embodiment of the present invention, by acquiring first position information, first audio state information and environment detection information of the present audio device, and second position information and second audio state information of other audio devices, the second audio state information is the audio state information adjusted by the corresponding environment detection information, determining the intensity level corresponding to the light intensity, determining the noise level corresponding to the noise data, determining the target adjustment parameter of the present audio device according to the intensity level and the noise level and referring to a preset audio state adjustment rule, adjusting the first audio state information based on the target adjustment parameter to obtain third audio state information, judging whether there is a target audio device belonging to the same playback group as the present audio device based on the first position information, the second position information, the second audio state information and the third audio state information, if there is a target audio device belonging to the same playback group as the present audio device, determining an audio playback strategy according to the second audio state information and the third audio state information of the target audio device, and playing audio data based on the audio playback strategy, autonomous control of the audio device is realized without relying on a central controller, and synchronization of audio state information and playback is realized with other audio devices based on a point-to-point communication mode, thereby realizing a decentralized multi-audio playback method and improving the scalability and flexibility of the system to which the audio device belongs.

[0124] above Figure 3 and Figure 4 The audio control apparatus in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The audio device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0125] See also Figure 5 As shown, the audio device includes a processor 500 and a memory 501 . The memory 501 stores machine executable instructions that can be executed by the processor 500 . The processor 500 executes the machine executable instructions to implement the above audio method.

[0126] Further, Figure 5 The audio device shown further includes a bus 502 and a communication interface 503 , and the processor 500 , the communication interface 503 and the memory 501 are connected via the bus 502 .

[0127] Among them, the memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), for example, at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which can be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. can be used. The bus 502 can be an ISA bus, a PCI bus or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0128] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 500. The above processor 500 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor to be executed, or a combination of hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501 , and the processor 500 reads the information in the memory 501 and completes the method steps of the above-mentioned embodiment in combination with its hardware.

[0129] The present invention also provides an audio device, wherein the computer device comprises a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the audio control method in the above-mentioned embodiments.

[0130] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the audio control method.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0133] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An audio control method, characterized in that: The audio control method comprises: Acquire first position information, first audio state information, and environment detection information of the audio device, and second position information and second audio state information of other audio devices, where the second audio state information is audio state information adjusted by the corresponding environment detection information; Adjust the first audio state information based on the environment detection information to obtain third audio state information; Based on the first position information, the second position information, the second audio state information, and the third audio state information, determining whether there is a target audio device that belongs to the same playback group as the current audio device; If there is a target audio device that belongs to the same playback group as the current audio device, determining an audio playback strategy according to the second audio state information and the third audio state information of the target audio device; The audio data is played based on the audio playing strategy.

2. The audio control method according to claim 1, characterized in that: When the environment detection information includes light intensity and noise data, adjusting the first audio state information based on the environment detection information to obtain third audio state information includes: Determining an intensity level corresponding to the light intensity; Determining a noise level corresponding to the noise data; According to the intensity level and the noise level, and with reference to a preset audio state adjustment rule, determining a target adjustment parameter of the audio device; The first audio state information is adjusted based on the target adjustment parameter to obtain third audio state information.

3. The audio control method according to claim 2, characterized in that: Determining the intensity level of the illumination intensity includes: Converting the light intensity into a light intensity value, and inputting the light intensity value into a preset fuzzy controller; Based on a preset fuzzy rule, the light intensity value is fuzzified by the fuzzy controller to obtain a target element corresponding to the light intensity value in a preset fuzzy set; An intensity level corresponding to the illumination intensity is determined based on the target element.

4. The audio control method according to claim 2, characterized in that: The determining the noise level of the noise data comprises: Performing feature extraction on the noise data to obtain feature information; Calculating according to the characteristic information and a preset noise type probability model to obtain a noise type corresponding to the noise data; Based on the noise type, a noise level corresponding to the noise data is determined by a preset power-level noise control curve.

5. The audio control method according to claim 2, characterized in that: The step of determining the target adjustment parameter of the audio device according to the intensity level and the noise level and referring to a preset audio state adjustment rule includes: Querying a first adjustment parameter corresponding to the intensity level; Querying a second adjustment parameter corresponding to the noise level; The first adjustment parameter and the second adjustment parameter are combined to determine a target adjustment parameter of the audio device.

6. The audio control method according to claim 1, characterized in that: The determining, based on the first position information, the second position information, the second audio state information, and the third audio state information, whether there is a target audio device that belongs to the same playback group as the current audio device includes: Determining whether the audio device is in a normal state based on the third audio state information; If the audio device is in a normal state, determining whether there is a first audio device in the same area as the audio device based on the first location information and the second location information; If there is a first audio device belonging to the same area as the current audio device, the abnormal audio device is eliminated based on the second audio state information of the first audio device to obtain a target audio device belonging to the same playback group as the current audio device.

7. The audio control method according to claim 6, characterized in that: The determining whether there is a first audio device belonging to the same area as the current audio device based on the first location information and the second location information includes: Acquire a first room identifier in the first location information and a second room identifier in the second location information; Determine whether there is a target second room identifier that is consistent with the first room identifier in the second room identifier; If there is a target second room identifier that is consistent with the first room identifier, an audio device corresponding to the target second room identifier is extracted to obtain the first audio device.

8. The audio control method according to claim 1, characterized in that: The determining the audio playback strategy according to the second audio state information and the third audio state information of the target audio device includes: extracting key indicators from the second audio state information and the third audio state information of the target audio device; An analysis is performed based on the key indicators to determine an audio playback strategy, wherein the audio playback strategy includes volume, sound effect, timbre and playback mode.

9. The audio control method according to claim 1, characterized in that: The playing of audio data based on the audio playing strategy includes: Receiving a user playback instruction, and determining the audio data to be played and a timestamp based on the user playback instruction; Based on the timestamp, the audio data is played according to the audio playing strategy.

10. The audio control method according to claim 1, characterized in that: The playing of audio data based on the audio playing strategy includes: Obtain the music listening history, behavior patterns and situational preferences of users of each audio device; Generate a recommended playlist based on the music listening history, the behavior pattern and the situational preference; Audio data is randomly selected from the recommended playlist, and the audio data is played based on the audio playback strategy.

11. The audio control method according to claim 1, characterized in that: After playing the audio data based on the audio playing strategy, the method further includes: When an audio device belonging to the same playback group is changed, the audio playback strategy of the audio device is regenerated to obtain a new audio playback strategy; The audio data is played based on the new audio playing strategy.

12. The audio control method according to claim 11, characterized in that: Before regenerating the audio playback strategy of the audio device to obtain a new audio playback strategy, the method further includes: Real-time monitoring of the playback status of audio devices belonging to the same playback group; Determining whether there is a faulty audio device based on the playback status; When the malfunctioning audio device exists, the malfunctioning audio device is removed from the corresponding play group, and it is determined that the audio devices belonging to the same play group are changed.

13. An audio control device, characterized in that: The audio control device comprises: an acquisition module, used to acquire first position information, first audio state information and environment detection information of the audio device, and second position information and second audio state information of other audio devices, where the second audio state information is audio state information adjusted by the corresponding environment detection information; an adjustment module, configured to adjust the first audio state information based on the environment detection information to obtain third audio state information; A first judging module, configured to judge whether there is a target audio device belonging to the same playback group as the current audio device based on the first position information, the second position information, the second audio state information and the third audio state information; a determination module, configured to determine an audio playback strategy according to the second audio state information and the third audio state information of the target audio device if there is a target audio device belonging to the same playback group as the current audio device; The first playing module is used to play the audio data based on the audio playing strategy.

14. An audio device, characterized in that: The audio device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the audio device to execute the audio control method according to any one of claims 1 to 12.

15. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the audio control method according to any one of claims 1 to 12 is implemented.