A connection optimization system and method for intelligent audio

By conducting detailed analysis and optimization of the network connection of smart audio, the problem of unstable network connection of smart audio is solved, and more stable network connection and smoother audio playback are achieved.

CN119497120BActive Publication Date: 2025-04-08SHENZHEN ZUNTE DIGITAL CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510068085.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-16
Publication Date
2025-04-08
Estimated Expiration
2045-01-16

AI Technical Summary

Technical Problem

The existing technology lacks effective analysis and response mechanisms in the network connection of smart audio, and cannot accurately determine the root cause of the problem, resulting in unstable network connections and affecting the smoothness and stability of audio playback.

Method used

By obtaining the resource request and reception time between the smart speaker and the server, performing numerical analysis to determine whether there is a problem with the network connection. If there are problems, build a waiting time ratio sequence, analyze the changing trend of network delay, and scan the surrounding channels through the wireless network module, draw a channel distribution map, analyze the overlap between the interfering channel and the connected channel and the signal strength, obtain the connection interference value, and reasonably adjust the connection channel.

Benefits of technology

It effectively reduces audio lag and interrupt problems caused by network fluctuations, enhances the reliability and stability of smart audio network connections, and improves the smoothness of audio playback and user playback experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119497120B_ABST
    Figure CN119497120B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of connection optimization, and specifically discloses a connection optimization system and method for smart speakers, including: analyzing the time when the smart speaker sends a resource request to a server and receives the request to determine whether there is a problem with the network connection; if there is a problem, further analyzing the waiting time ratio sequence to determine the response monitoring time, thereby determining whether the playback is stuck; when the playback is stuck and the audio may not be played to the end, scanning the wireless network channel, calculating the interference channel related parameters and connection interference values, and determining whether there is interference in the wireless network; if there is interference, sorting the connection interference values ​​of the available channels, and adjusting the smart speaker connection channel to achieve optimization. The present invention also provides a connection optimization system for smart speakers, as well as a computer device and storage medium for implementing the method, and the above steps effectively improve the network connection performance and playback stability of the smart speaker.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of connection optimization, and in particular to a connection optimization system and method for smart speakers. Background Art

[0002] In the current context of widespread use of smart devices, smart speakers have been integrated into the lives of many users, but there are still significant defects in network connection performance.

[0003] Existing technologies lack effective analysis and response mechanisms when analyzing abnormalities in the network connection of smart speakers, and cannot accurately determine the root cause of the problem, nor can they conduct in-depth analysis and processing of key factors such as response waiting time and channel interference. In terms of channel selection, existing technologies cannot fully consider the actual conditions of the surrounding wireless network channels, causing smart speakers to frequently encounter signal interference, affecting the smoothness and stability of audio playback.

[0004] The existing technology also has defects in further judging whether the audio can be played completely and taking effective optimization measures for network interference. When facing channel interference, it cannot comprehensively analyze the intensity and impact range of the interference source, and cannot reasonably select channels with less interference for switching, thus failing to effectively ensure the continuous and stable playback of smart speakers. If the wireless network module of the smart speaker is used to conduct a comprehensive scan of the surrounding channels and draw a detailed channel distribution map, by analyzing the overlap and signal strength of the interference channel and the connection channel, and using scientific calculation methods to obtain the connection interference value, and then reasonably adjusting the connection channel of the smart speaker, it can significantly improve the stability of the network connection and the smoothness of the audio playback, and enhance the user's smart speaker playback experience.

[0005] To this end, the present invention provides a connection optimization system and method for smart speakers. Summary of the invention

[0006] The purpose of the present invention is to provide a connection optimization system and method for smart speakers to solve the problems in the above background.

[0007] The purpose of the present invention can be achieved through the following technical solutions:

[0008] In a first aspect, a connection optimization method for a smart speaker includes:

[0009] Step 1: Obtain the resource request time and resource receiving time sent by the smart speaker to the server through the network and perform numerical analysis to determine whether there is a problem with the network connection of the smart speaker;

[0010] Step 2: If there is a problem with the network connection of the smart speaker, perform numerical analysis on the waiting time difference and the waiting time threshold to obtain the waiting time ratio t i , construct the waiting time ratio sequence Ti , analyze the changing trend of the waiting time ratio sequence to obtain the response monitoring time, and based on the response monitoring time, determine whether there is a risk of freezing in the playback of the smart speaker;

[0011] Step 3: If there is a risk of freezing in the playback of the smart speaker, establish an audio dynamic analysis model to determine whether the audio can be played to completion when there is a risk of freezing in the smart speaker;

[0012] Step 4: If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network to which the smart speaker is connected is analyzed to determine whether there is interference with the wireless network to which the smart speaker is connected;

[0013] Step 5. If there is interference in the wireless network to which the smart speaker is connected, obtain the available channels of the smart speaker, sort and analyze the connection interference values ​​of the available channels, obtain the available channel set, and adjust the connection channel of the smart speaker according to the order of the elements in the available channel set to optimize the connection of the smart speaker.

[0014] In a second aspect, a connection optimization system for a smart speaker includes:

[0015] Connection analysis module: obtains the resource request time and resource receiving time sent by the smart speaker to the server through the network and performs numerical analysis to determine whether there is a problem with the network connection of the smart speaker;

[0016] Risk assessment module: If there is a problem with the network connection of the smart speaker, perform numerical analysis on the waiting time difference and the waiting time threshold to obtain the waiting time ratio ti, construct the waiting time ratio sequence Ti, analyze the changing trend of the waiting time ratio sequence to obtain the response monitoring time, and judge whether there is a risk of freezing in the playback of the smart speaker based on the response monitoring time;

[0017] Dynamic analysis module: If there is a risk of freezing when playing the smart speaker, an audio dynamic analysis model is established to determine whether the audio can be played to completion when there is a risk of freezing when playing the smart speaker;

[0018] Interference determination module: If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network to which the smart speaker is connected is analyzed to determine whether there is interference with the wireless network to which the smart speaker is connected;

[0019] Connection optimization module: If there is interference in the wireless network to which the smart speaker is connected, obtain the available channels of the smart speaker, sort and analyze the connection interference values ​​of the available channels, obtain the available channel set, and adjust the connection channel of the smart speaker according to the order of the elements in the available channel set to achieve connection optimization of the smart speaker.

[0020] Beneficial effects of the present invention:

[0021] (1) By accurately obtaining the resource request and reception time between the smart speaker and the server and performing numerical analysis, potential problems in the network connection can be discovered. In complex network environments, such as home or office scenarios where multiple devices are connected to Wi-Fi at the same time, the smart speaker can quickly determine the network status based on this method. When an abnormality is found in the network connection, a waiting time ratio sequence is further constructed to analyze the changing trend of network delay in detail, so that targeted measures can be taken in a timely manner; effectively reducing audio freezes and interruptions caused by network fluctuations, enhancing the reliability and stability of the smart speaker network connection, and ensuring the user experience during the use of the smart speaker.

[0022] (2) When faced with the risk of freezing and the inability to fully play the audio, the wireless network module of the smart speaker is used to comprehensively scan the surrounding channels and draw a channel distribution map. By accurately analyzing the overlap and signal strength of the interference channel and the connection channel, the connection interference value is obtained, and the available channels are reasonably sorted and selected accordingly. For example, in an environment where there are multiple interference sources in the 2.4GHz frequency band, channels with less interference can be identified, allowing the smart speaker to switch to the optimal channel for connection. This connection optimization method can effectively reduce the impact of channel interference on audio playback and improve the smoothness of audio playback. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The present invention will be further described below in conjunction with the accompanying drawings.

[0024] Figure 1 is a flow chart of a connection optimization method for a smart speaker of the present invention;

[0025] Figure 2 It is a module diagram of a connection optimization system for smart speakers in the present invention;

[0026] Figure 3 It is a structural diagram of a computer device of the present invention. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] Embodiment 1

[0029] See also Figure 1 As shown, the present invention is a connection optimization method for smart speakers, comprising:

[0030] Step 1: Obtain the resource request time and resource receiving time sent by the smart speaker to the server through the network and perform numerical analysis to determine whether there is a problem with the network connection of the smart speaker;

[0031] Based on the streaming media playback state, within the detection cycle, obtain the resource request time and resource receiving time sent by the smart speaker to the server through the network;

[0032] The resource request time and the resource receiving time are processed as the difference to obtain the response waiting time;

[0033] The response waiting time is subtracted from the waiting threshold time to obtain the waiting time difference;

[0034] Compare the waiting time difference with the time difference threshold to determine whether there is a problem with the network connection of the smart speaker;

[0035] It should be noted that the server sends the audio data to be played by the streaming media in segments, and transmits it from the server to the data buffer area of ​​the smart speaker via the network. The smart speaker decodes and plays the audio data in the data buffer area. By analyzing the response waiting time of the smart speaker, an analysis basis can be provided for the subsequent optimization of the smart speaker connection. The time difference threshold is set by professional and technical personnel in this field based on experience;

[0036] If the waiting time difference is higher than the time difference threshold, it indicates that there is a problem with the network connection of the smart speaker;

[0037] If the waiting time difference is lower than the time difference threshold, then there is no problem with the network connection of the Surface Smart Speaker for the time being;

[0038] Step 2: If there is a problem with the network connection of the smart speaker, perform numerical analysis on the waiting time difference and the waiting time threshold to obtain the waiting time ratio t i , construct the waiting time ratio sequence T i , analyze the changing trend of the waiting time ratio sequence to obtain the response monitoring time, and based on the response monitoring time, determine whether there is a risk of freezing in the playback of the smart speaker;

[0039] If there is a problem with the network connection of the smart speaker, the waiting time difference is compared with the time difference threshold to obtain the waiting time ratio;

[0040] Get the waiting time ratio within multiple detection cycles, use the waiting time ratio as a data element, and construct a waiting time ratio sequence T i , ,i represents the number of each detection monitoring cycle, and n is the total number of monitoring cycles;

[0041] Use the autocorrelation function ACF to calculate the autocorrelation coefficient ACF(k) of the waiting time ratio series under different lag coefficients k;

[0042] By formula: Get the autocorrelation coefficient ACF(k) under different lag coefficients k, where , the value range of k is [1,n-1];

[0043] It should be noted that ACF analysis can obtain the autocorrelation coefficient of the waiting time ratio series at different lag orders; for a stationary time series, as the lag order k increases, the autocorrelation coefficient will fluctuate around 0.

[0044] Draw the change curve of the autocorrelation function ACF in a two-dimensional rectangular coordinate system, with the lag coefficient k as the X-axis and the autocorrelation coefficient ACF (k) as the Y-axis, and draw the change curve of the lag coefficient k and the autocorrelation coefficient ACF (k);

[0045] Calculate the mean of ACF(k) within the range of lag coefficient k=[n / 3,n]. If ACF(k) is lower than the stable threshold, it means that the trend of the waiting time ratio series is stable. Otherwise, the trend of the waiting time ratio series is fluctuating.

[0046] It should be noted that the stability threshold is set by professionals in this field;

[0047] If the changing trend of the waiting time ratio sequence is stable, calculate the mean of the waiting time ratio sequence, obtain the response waiting time corresponding to the mean of the waiting time ratio sequence, and mark it as the response monitoring time;

[0048] If the change trend of the waiting time ratio sequence is fluctuating, obtain the maximum value of the waiting time ratio sequence, and obtain the response waiting time corresponding to the maximum value of the waiting time ratio sequence as the response monitoring time;

[0049] Based on the response monitoring time, the audio playback bit rate of the smart speaker is obtained, and the audio playback bit rate is multiplied by the response monitoring time to obtain the audio consumption bytes;

[0050] Get the audio playback bytes of the smart speaker buffer and get the audio buffer bytes;

[0051] If the audio buffer bytes are lower than the audio consumption bytes, it indicates that there is a risk of lag in the playback of the smart speaker;

[0052] If the audio buffer bytes are higher than the audio consumption bytes, it means that there is no risk of lag in the playback of the smart speaker;

[0053] The technical solution of this implementation is: obtain the resource request time and resource receiving time sent by the smart speaker to the server through the network and perform numerical analysis to determine whether there is a problem with the network connection of the smart speaker. If there is a problem with the network connection of the smart speaker, perform numerical analysis on the waiting time difference and the waiting time threshold to obtain the waiting time ratio t i , construct the waiting time ratio sequence T i , analyze the changing trend of the waiting time ratio sequence, and obtain the response monitoring time. Based on the response monitoring time, it is judged whether there is a risk of lag in the playback of the smart speaker, which is conducive to timely discovering the playback problems of the smart speaker and providing data judgment basis for the connection optimization of the smart speaker.

[0054] Embodiment 2

[0055] like Figure 1 As shown, a connection optimization method for a smart speaker also includes:

[0056] Step 3: If there is a risk of freezing in the playback of the smart speaker, establish an audio dynamic analysis model to determine whether the audio can be played to completion when there is a risk of freezing in the smart speaker;

[0057] If there is a risk of freezing during playback of the smart speaker, establish an audio dynamic analysis model to predict whether the audio has been played completely when the smart speaker is at risk of freezing.

[0058] Specifically, the dynamic analysis model is constructed as follows:

[0059] The time when the smart speaker has a risk of jamming during playback is marked as jamming monitoring time t;

[0060] Get the remaining bytes in the smart speaker buffer at the jamming detection time t and mark it as B(t);

[0061] Mark the expected security byte of the smart speaker buffer as Ya;

[0062] Based on the integral-differential control principle, the control function u(t) is constructed;

[0063] By formula: , construct the control function u(t), where K p , K i , K d They are 0.78, 0.95, and 0.46 respectively;

[0064] It should be noted that Indicates the difference between the expected security bytes and the remaining bytes in the actual buffer. If the difference is larger, The larger the value, the larger the control quantity u(t) will be. It represents the accumulation of the difference between the expected safety bytes and the actual remaining bytes in the buffer over a period of time. Even if the current accumulation of the difference is small, it exists and has an accumulation trend over a period of time. The integral term will gradually increase the control amount u(t), obtain the jam monitoring time t, and the byte filling rate R(t) of the network to the buffer;

[0065] Based on the control function u(t), the adjusted byte filling rate R(t) is marked as R1(t);

[0066] The adjusted byte filling rate R1(t) is obtained by the formula: R1(t)=R(t)+u(t);

[0067] Construct the dynamic update equation, B1(t+Δt)=B(t)+R1(t)*Δt-r*Δt;

[0068] Where r is the audio playback bit rate, and Δt is the change in time;

[0069] It should be noted that in the dynamic update equation, B(t) is the amount of remaining bytes in the buffer at the jamming monitoring time t, R1(t)*Δt represents the amount of data added to the buffer by the network within time t, which depends on the adjusted byte filling rate R1(t) and the time interval t; r*Δt is the amount of data consumed by audio playback in the same time. Since the audio playback bit rate is r, the corresponding amount of data will be consumed after Δt. The formula reflects how the amount of data in the buffer changes dynamically under the combined effect of network filling and audio playback consumption, providing a data basis for subsequent judgment of whether the audio can be played to completion;

[0070] By formula: , obtain the amount of data Q filled in the remaining playback time;

[0071] If Q+B(t)≥L, it is determined that the audio can be played to completion when the smart speaker is at risk of freezing;

[0072] If Q+B(t)<L, it is determined that when the smart speaker is at risk of freezing, the audio cannot be played to completion;

[0073] Where L is the remaining audio bytes played by the smart speaker;

[0074] Step 4: If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network to which the smart speaker is connected is analyzed to determine whether there is interference with the wireless network to which the smart speaker is connected;

[0075] If the smart speaker is at risk of freezing and the audio cannot be played to completion, in some embodiments, the wireless network module of the smart speaker is used to scan the wireless network channels in the surrounding environment of the smart speaker;

[0076] It should be noted that a wireless network channel refers to a specific frequency range used to transmit data in a wireless network. If there are multiple wireless networks using the same or adjacent channels around, the signals will interfere with each other, causing network congestion and performance degradation.

[0077] Based on the wireless network channels obtained by scanning, a channel distribution diagram is drawn in a two-dimensional rectangular coordinate system with the channel frequency as the X-axis and the signal reception strength as the Y-axis;

[0078] Get the wireless network channel to which the smart speaker is connected when the smart speaker is at risk of freezing, and get the connection channel;

[0079] In the obtained channel distribution map, the wireless network channels that overlap with the connection channels are marked as interference channels;

[0080] It should be noted that in the 2.4GHz frequency band, the bandwidth of each channel is 20MHz or 22MHz, and there are frequency overlaps between some channels. When the channels used by other wireless networks intersect with the connection channels of smart speakers in the frequency range, overlap will occur; in addition, devices such as Bluetooth and wireless mice also use the 2.4Ghz frequency band;

[0081] Obtain the channel frequency width where the interference channel overlaps the connection channel to obtain the channel interference width;

[0082] The interference width of the channel is processed by ratio processing with the width of the connection channel to obtain the interference width ratio, and the interference width ratio of all interference channels is obtained. The interference width ratio of each interference channel is marked as Gr m , m is the number of the interference channel, m=1,2,...,z, z is the total number of interference channels;

[0083] Obtain the signal strength of the interference channel, make a difference between the signal strength of the interference signal and the signal strength of the connection channel, and take the absolute value to obtain the interference strength difference;

[0084] The interference intensity difference is processed as a ratio with respect to the signal intensity of the connection channel to obtain an interference intensity ratio;

[0085] Obtain the interference intensity ratio of all interference channels and mark the interference intensity ratio of each interference channel as Gq m , m is the number of the interference channel, m=1,2,...,z, z is the total number of interference channels;

[0086] Based on the interference intensity ratio Gq m , interference width ratio Gr m Calculate the connection interference value Lg;

[0087] By formula: , the connection interference value Lg is obtained, w1, w2 are 0.561, 0.439, c, d are 1.25, 1.69 respectively;

[0088] Compare the connection interference value Lg with the connection interference threshold to determine whether there is interference in the wireless network to which the smart speaker is connected;

[0089] If the connection interference value Lg is higher than the connection interference threshold, it indicates that there is interference in the wireless network to which the smart speaker is connected;

[0090] If the connection interference value Lg is lower than the connection interference threshold, it indicates that the connection interference value Lg of the wireless network to which the smart speaker is connected is within the expected range, but it is still necessary to continuously monitor the change of the connection interference value;

[0091] Step 5: If there is interference in the wireless network to which the smart speaker is connected, obtain the available channels of the smart speaker, sort and analyze the connection interference values ​​of the available channels to obtain an available channel set, and adjust the connection channel of the smart speaker according to the order of the elements in the available channel set to optimize the connection of the smart speaker;

[0092] If there is interference in the wireless network to which the smart speaker is connected, obtain other channels sent by the wireless router to which the smart speaker is connected, and obtain multiple available channels;

[0093] Obtain the interference width ratio and interference strength ratio of each available channel to the corresponding interference channel, and calculate the connection interference value Lg of each available channel m ;

[0094] Connect all available channels to interfere with Lg m Arrange them in ascending order to construct a set of available channels;

[0095] Smart speakers connect interference values ​​Lg according to the available channel set m Select the connection interference value Lg in order from small to large m The corresponding available channel adjusts the connection channel to an available channel;

[0096] If there is no problem with the network connection of the smart speaker after the connection channel is adjusted, or if there is no risk of lag in the smart speaker, the connection optimization of the smart speaker is completed;

[0097] If the network connection of the smart speaker still has problems after adjusting the connection channel, but when the smart speaker is at risk of freezing, it is predicted that the audio can be played to completion, then the connection optimization of the smart speaker is completed;

[0098] If the smart speaker is at risk of freezing after adjusting the connection channel, and the audio is predicted to not be played to the end, continue to adjust the available channel for the smart speaker to connect;

[0099] The technical solution of this embodiment is: if there is a risk of freezing in the playback of the smart speaker, an audio dynamic analysis model is established to determine whether the audio can be played to completion when the smart speaker is at risk of freezing. If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network connected to the smart speaker is analyzed to determine whether there is interference in the wireless network connected to the smart speaker. If there is interference in the wireless network connected to the smart speaker, the available channels of the smart speaker are obtained, the connection interference values ​​of the available channels are sorted and analyzed to obtain a set of available channels, and the connection channels of the smart speaker are adjusted according to the order of the elements in the set of available channels to achieve connection optimization of the smart speaker.

[0100] Embodiment 3

[0101] like Figure 2 As shown, a connection optimization system for a smart speaker includes:

[0102] Connection analysis module: obtains the resource request time and resource receiving time sent by the smart speaker to the server through the network and performs numerical analysis to determine whether there is a problem with the network connection of the smart speaker;

[0103] Risk assessment module: If there is a problem with the network connection of the smart speaker, the waiting time difference and the waiting time threshold are numerically analyzed to obtain the waiting time ratio t i , construct the waiting time ratio sequence T i , analyze the changing trend of the waiting time ratio sequence to obtain the response monitoring time, and based on the response monitoring time, determine whether there is a risk of freezing in the playback of the smart speaker;

[0104] Dynamic analysis module: If there is a risk of freezing when playing the smart speaker, an audio dynamic analysis model is established to determine whether the audio can be played to completion when there is a risk of freezing when playing the smart speaker;

[0105] Interference determination module: If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network to which the smart speaker is connected is analyzed to determine whether there is interference with the wireless network to which the smart speaker is connected;

[0106] Connection optimization module: If there is interference in the wireless network to which the smart speaker is connected, obtain the available channels of the smart speaker, sort and analyze the connection interference values ​​of the available channels, obtain the available channel set, and adjust the connection channel of the smart speaker according to the order of the elements in the available channel set to achieve connection optimization of the smart speaker;

[0107] Embodiment 4

[0108] Reference Figure 3The embodiment of the present invention further provides a computer device 3, comprising: a memory 302 and a processor 301 and a computer program 303 stored in the memory 302. When the computer program 303 is executed on the processor 301, a connection optimization method for an intelligent speaker as described in any one of the above methods is implemented.

[0109] The computer device 3 may be a computing device such as a desktop computer, a notebook, a palm computer, a cloud server, etc. The computer device 3 may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art will understand.

[0110] Figure 3 It is only an example of computer device 3 and does not constitute a limitation on computer device 3. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0111] The processor 301 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0112] In some embodiments, the memory 302 may be an internal storage unit of the computer device 3, such as a hard disk or memory of the computer device 3. In other embodiments, the memory 302 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 3. Further, the memory 302 may also include both an internal storage unit and an external storage device of the computer device 3. The memory 302 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 302 may also be used to temporarily store data that has been output or is to be output.

[0113] Embodiment 5

[0114] An embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, a connection optimization method for an intelligent speaker as described in any one of the above methods is implemented.

[0115] In this embodiment, 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 present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, USB flash drive, mobile hard disk, disk or optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0117] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0118] In the embodiments disclosed in the present application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0121] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A connection optimization method for smart speakers, characterized in that: include Step 1: Obtain the resource request time and resource receiving time sent by the smart speaker to the server through the network and perform numerical analysis to determine whether there is a problem with the network connection of the smart speaker; Step 2: If there is a problem with the network connection of the smart speaker, perform numerical analysis on the waiting time difference and the waiting time threshold to obtain the response monitoring time and determine whether there is a risk of freezing in the playback of the smart speaker; The method for determining whether the playback of the smart speaker has a risk of freezing is as follows: Draw the variation curve of the autocorrelation function ACF in a two-dimensional rectangular coordinate system, and draw the variation curve of the lag coefficient k and the autocorrelation coefficient ACF (k); Calculate the mean value of ACF(k) within the preset range of the lag coefficient. If ACF(k) is lower than the stable threshold, it means that the change trend of the waiting time ratio series is stable. Otherwise, the change trend of the waiting time ratio series is fluctuating. If the changing trend of the waiting time ratio sequence is stable, calculate the mean of the waiting time ratio sequence, obtain the response waiting time corresponding to the mean of the waiting time ratio sequence, and mark it as the response monitoring time; If the change trend of the waiting time ratio sequence is fluctuating, obtain the maximum value of the waiting time ratio sequence, and obtain the response waiting time corresponding to the maximum value of the waiting time ratio sequence as the response monitoring time; Based on the response monitoring time, the audio playback bit rate of the smart speaker is obtained, and the audio playback bit rate is multiplied by the response monitoring time to obtain the audio consumption bytes; Get the audio playback bytes of the smart speaker buffer and get the audio buffer bytes; If the audio buffer bytes are lower than the audio consumption bytes, it indicates that there is a risk of lag in the playback of the smart speaker; Step 3: If there is a risk of freezing in the playback of the smart speaker, establish an audio dynamic analysis model to determine whether the audio can be played to completion when there is a risk of freezing in the smart speaker; Step 4: If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network to which the smart speaker is connected is analyzed to determine whether there is interference with the wireless network to which the smart speaker is connected; Step 5: If there is interference in the wireless network to which the smart speaker is connected, obtain the available channels of the smart speaker, build an available channel set, adjust the connection channel of the smart speaker, and optimize the connection of the smart speaker.

2. The method for optimizing the connection of an intelligent speaker according to claim 1, characterized in that: The method for determining whether there is a problem with the network connection of the smart speaker is as follows: Obtain the resource request time and resource receiving time sent by the smart speaker to the server through the network; The resource request time and the resource receiving time are processed as the difference to obtain the response waiting time; The response waiting time is subtracted from the waiting threshold time to obtain the waiting time difference; If the waiting time difference is higher than the time difference threshold, it indicates that there is a problem with the network connection of the smart speaker.

3. The method for optimizing the connection of an intelligent speaker according to claim 1, characterized in that: The autocorrelation function is obtained as follows: If there is a problem with the network connection of the smart speaker, the waiting time difference is compared with the time difference threshold to obtain the waiting time ratio; Get the waiting time ratio within multiple detection cycles, use the waiting time ratio as a data element, and construct a waiting time ratio sequence T i , ,i represents the number of each detection monitoring cycle, and n is the total number of monitoring cycles; Use the autocorrelation function ACF to calculate the autocorrelation coefficient ACF(k) of the waiting time ratio series under different lag coefficients k; By formula: Get the autocorrelation coefficient ACF(k) under different lag coefficients k, where , the value range of k is [1,n-1].

4. The method for optimizing the connection of an intelligent speaker according to claim 1, characterized in that: The judgment of whether the predicted audio has been played is as follows: Get the jam monitoring time t and the network's byte filling rate R(t) into the buffer; Based on the control function u(t), the adjusted byte filling rate R(t) is marked as R1(t); The adjusted byte filling rate R1(t) is obtained by the formula: R1(t)=R(t)+u(t); Construct a dynamic update equation, B1(t+Δt)=B(t)+R1(t)*Δt-r*Δt, where r is the audio playback bit rate and Δt is the change in time; Wherein, B(t) is the amount of remaining bytes in the buffer of the smart speaker at the jamming monitoring time t; By formula: , obtain the amount of data Q filled in the remaining playback time; If Q+B(t)≥L, it is determined that the audio can be played to completion when the smart speaker is at risk of freezing, and L is the number of remaining audio bytes played by the smart speaker.

5. The method for optimizing the connection of an intelligent speaker according to claim 4, characterized in that: The control function u(t) is obtained as follows: The time when the smart speaker has a risk of jamming during playback is marked as jamming monitoring time t; Get the remaining bytes in the smart speaker buffer at the jamming detection time t and mark it as B(t); The expected security byte of the smart speaker buffer is marked as Ya, and the control function u(t) is constructed based on the integral-derivative control principle; By formula: , construct the control function u(t), where K p , K i , K d is the preset scale factor.

6. The method for optimizing the connection of an intelligent speaker according to claim 1, characterized in that: The method for determining whether there is interference in the wireless network connected to the smart speaker is as follows: By analyzing the wireless channel of the wireless network connected to the smart speaker, the interference intensity ratio Gq is obtained. m , interference width ratio Gr m Calculate the connection interference value Lg, where m is the number of the interference channel, m=1, 2, ..., z, and z is the total number of interference channels; Based on the interference intensity ratio Gq m , interference width ratio Gr m Calculate the connection interference value Lg; By formula: , obtain the connection interference value Lg, w1, w2, c, d are preset proportional coefficients; If the connection interference value Lg is higher than the connection interference threshold, it indicates that there is interference in the wireless network to which the smart speaker is connected.

7. The method for optimizing the connection of an intelligent speaker according to claim 6, characterized in that: The wireless channel of the wireless network connected to the smart speaker is analyzed, and the interference intensity is higher than Gq m The way to obtain is: If the smart speaker is at risk of freezing and the audio cannot be played to completion, in some embodiments, the wireless network module of the smart speaker is used to scan the wireless network channels in the surrounding environment of the smart speaker; Draw a channel distribution map based on the wireless network channels obtained by scanning; Get the wireless network channel to which the smart speaker is connected when the smart speaker is at risk of freezing, and get the connection channel; In the obtained channel distribution map, the wireless network channels that overlap with the connection channels are marked as interference channels; Obtain the channel frequency width where the interference channel overlaps the connection channel to obtain the channel interference width; The interference width of the channel is processed by ratio processing with the width of the connection channel to obtain the interference width ratio, and the interference width ratio of all interference channels is obtained. The interference width ratio of each interference channel is marked as Gr m , m is the number of the interference channel, m=1,2,...,z, z is the total number of interference channels; The interference width ratio Gr m The way to obtain is: Obtain the signal strength of the interference channel, make a difference between the signal strength of the interference signal and the signal strength of the connection channel, and take the absolute value to obtain the interference strength difference; The interference intensity difference is processed as a ratio with respect to the signal intensity of the connection channel to obtain an interference intensity ratio; Obtain the interference intensity ratio of all interference channels and mark the interference intensity ratio of each interference channel as Gq m , m is the number of the interference channel, m=1,2,...,z, z is the total number of interference channels.

8. The method for optimizing the connection of an intelligent speaker according to claim 1, characterized in that: The connection optimization of the smart speaker is implemented as follows: Obtain other channels sent by the wireless router to which the smart speaker is connected, and obtain multiple available channels; Obtain the interference width ratio and interference strength ratio of each available channel to the corresponding interference channel, and calculate the connection interference value Lg of each available channel m , connect all available channels to interfere with Lg m Arrange them in ascending order to construct a set of available channels; Smart speakers connect interference values ​​Lg according to the available channel set m Select the connection interference value Lg in order from small to large m The available channel corresponding to the minimum value adjusts the connection channel to the available channel; If there is no problem with the network connection of the smart speaker after the connection channel is adjusted, or if there is no risk of lag in the smart speaker, the connection optimization of the smart speaker is completed; If the network connection of the smart speaker still has problems after adjusting the connection channel, but when the smart speaker is at risk of freezing, it is predicted that the audio can be played to completion, then the connection optimization of the smart speaker is completed; If the smart speaker is at risk of freezing after adjusting the connection channel, and it is predicted that the audio cannot be played to completion, continue to adjust the available channel for the smart speaker to be connected.

9. A connection optimization system for smart speakers, characterized in that: Includes the following modules: Connection analysis module: obtains the resource request time and resource receiving time sent by the smart speaker to the server through the network and performs numerical analysis to determine whether there is a problem with the network connection of the smart speaker; Risk assessment module: If there is a problem with the network connection of the smart speaker, a numerical analysis is performed on the waiting time difference and the waiting time threshold to determine whether there is a risk of freezing in the playback of the smart speaker; The method for determining whether the playback of the smart speaker has a risk of freezing is as follows: Draw the variation curve of the autocorrelation function ACF in a two-dimensional rectangular coordinate system, and draw the variation curve of the lag coefficient k and the autocorrelation coefficient ACF (k); Calculate the mean value of ACF(k) within the preset range of the lag coefficient. If ACF(k) is lower than the stable threshold, it means that the change trend of the waiting time ratio series is stable. Otherwise, the change trend of the waiting time ratio series is fluctuating. If the changing trend of the waiting time ratio sequence is stable, calculate the mean of the waiting time ratio sequence, obtain the response waiting time corresponding to the mean of the waiting time ratio sequence, and mark it as the response monitoring time; If the change trend of the waiting time ratio sequence is fluctuating, obtain the maximum value of the waiting time ratio sequence, and obtain the response waiting time corresponding to the maximum value of the waiting time ratio sequence as the response monitoring time; Based on the response monitoring time, the audio playback bit rate of the smart speaker is obtained, and the audio playback bit rate is multiplied by the response monitoring time to obtain the audio consumption bytes; Get the audio playback bytes of the smart speaker buffer and get the audio buffer bytes; If the audio buffer bytes are lower than the audio consumption bytes, it indicates that there is a risk of lag in the playback of the smart speaker; Dynamic analysis module: If there is a risk of freezing when playing the smart speaker, an audio dynamic analysis model is established to determine whether the audio can be played to completion when there is a risk of freezing when playing the smart speaker; Interference determination module: If the smart speaker is at risk of freezing, the predicted audio cannot be played to completion, and the wireless channel of the wireless network to which the smart speaker is connected is analyzed to determine whether there is interference with the wireless network to which the smart speaker is connected; Connection optimization module: If there is interference in the wireless network to which the smart speaker is connected, obtain the available channels of the smart speaker, adjust the connection channel of the smart speaker, and optimize the connection of the smart speaker.

Citation Information

Patent Citations

  • Jamming prediction method, data processing method and related devices

    CN112566152A

  • Link control method and electronic equipment

    CN117666453A