A voice buffer boundary control method, system and electronic device
Patent Information
- Application Number
- CN202611156310.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-31
- Publication Date
- 2026-09-22
AI Technical Summary
然而,这种方案存在一定的缺陷:无法适应链路状态的动态变化;在链路状态恶化时缓存保护能力不足;在链路恢复后仍维持过大的缓存深度,导致语音时延增加;缓存边界配置依赖经验,缺乏运行时自适应能力
[0014]本发明还提供了一种电子设备,具有这样的特征,包括:处理器、计算机可读存储介质和通信总线,计算机可读存储介质中存储有程序指令,程序指令被处理器执行时,能够实现上述任一项的语音缓存边界控制方法。
Smart Images

Figure CN122802589A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of voice buffering technology, specifically relating to a voice buffering boundary control method, system, and electronic device. Background Technology
[0002] With the development of technology, real-time voice communication technology based on packet-switched networks has been widely used. During voice communication, jitter buffers are typically used to cache voice data packets to mitigate the impact of network jitter and latency variations on voice playback. However, when this technology is applied to wireless networks or complex network environments, the network link state exhibits significant dynamic changes, requiring voice communication systems to dynamically balance low latency with high stability.
[0003] To address the aforementioned issues, existing technologies typically implement buffer control by fixing the minimum and maximum buffer boundaries of the jitter buffer. However, this approach has certain drawbacks: it cannot adapt to dynamic changes in link status; its buffer protection capability is insufficient when link status deteriorates; it maintains an excessively large buffer depth after link recovery, leading to increased voice latency; and its buffer boundary configuration relies on experience and lacks runtime adaptability. Summary of the Invention
[0004] This invention is made to solve the above-mentioned problems, and aims to provide a voice buffer boundary control method, system and electronic device.
[0005] This invention provides a voice buffer boundary control method, characterized by the following steps: acquiring link state information, which reflects network transmission quality; determining the boundary adjustment strategy for the minimum and maximum buffer boundaries of the jitter buffer based on changes in the link state information; and dynamically adjusting the minimum and maximum buffer boundaries based on the boundary adjustment strategy.
[0006] In one embodiment of the present invention, the link status information includes at least one of communication measurement information, voice data packet arrival statistics, and jitter buffer operation status information.
[0007] In one embodiment of the present invention, the minimum cache boundary and the maximum cache boundary satisfy a preset cooperative constraint relationship, which includes at least the maximum cache boundary being greater than or equal to the minimum cache boundary.
[0008] In one embodiment of the present invention, dynamic adjustment includes at least one of a gradual adjustment method and a graded adjustment method.
[0009] In one embodiment of the present invention, the working state of the jitter buffer is divided into multiple levels based on the link status information.
[0010] In one embodiment of the present invention, corresponding minimum cache boundaries and maximum cache boundaries are configured for different level states.
[0011] In one embodiment of the present invention, based on link state information, when the network transmission quality is good and the preset hold time or hysteresis condition is met, the minimum buffer boundary and the maximum buffer boundary are adjusted back.
[0012] In one embodiment of the present invention, dynamically adjusting the minimum cache boundary and the maximum cache boundary includes: based on link state information, when the network transmission quality deteriorates, increasing the minimum cache boundary and expanding the maximum cache boundary; when the network transmission quality improves, decreasing the minimum cache boundary and shrinking the maximum cache boundary.
[0013] The present invention also provides a voice buffer boundary control system, characterized by comprising: a link status acquisition module for acquiring link status information, the link status information being used to reflect network transmission quality; a boundary adjustment determination module for determining the boundary adjustment strategy of the minimum buffer boundary and the maximum buffer boundary of the jitter buffer based on changes in the link status information; and a boundary control module for dynamically adjusting the minimum buffer boundary and the maximum buffer boundary based on the boundary adjustment strategy.
[0014] The present invention also provides an electronic device having the features of including: a processor, a computer-readable storage medium and a communication bus, wherein the computer-readable storage medium stores program instructions, and when the program instructions are executed by the processor, they are capable of implementing the voice buffer boundary control method described above.
[0015] The role and effect of the invention: According to the voice buffer boundary control method, system, and electronic device of this invention, when the link state deteriorates, it can quickly sense changes in link state such as decreased signal quality and increased packet loss rate, and dynamically increase the buffer boundary of the jitter buffer, thereby improving anti-jitter capability and significantly improving voice playback continuity in link fluctuation scenarios. Simultaneously, after the link stabilizes, this invention can accurately identify and delay shrinking the buffer boundary, avoiding over-buffering and thus reducing voice latency in stable link scenarios. Ultimately, it achieves adaptive matching between the jitter buffer's buffering capacity and the complex and ever-changing link state. Attached Figure Description
[0016] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1This is the voice buffer boundary control system in the embodiments of the present invention.
[0018] Figure 2 This is a voice buffer boundary control method in an embodiment of the present invention.
[0019] Explanation of reference numerals in the attached figures: 100 - Voice buffer boundary control system; 101 - Link status acquisition module; 102 - Boundary adjustment judgment module; 103 - Boundary control module. Detailed Implementation
[0020] The technical solutions disclosed in this invention will be described in detail below with reference to specific embodiments.
[0021] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0022] It should be noted that the illustrations provided in this embodiment are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0023] In this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. Furthermore, the terms "first" and "second" are used only for descriptive and distinguishing purposes and should not be construed as indicating or implying relative importance.
[0024] To make the technical means, creative features, objectives and effects of the present invention easy to understand, the following embodiments, in conjunction with the accompanying drawings, provide a detailed description of a voice buffer boundary control method, system and electronic device of the present invention.
[0025] like Figures 1-2As shown, this application provides a voice buffer boundary control method, system, and electronic device, which can be applied to voice communication scenarios, especially real-time voice communication systems based on packet-switched networks. During real-time voice communication, voice data packets are transmitted through packet-switched networks and are inevitably affected by factors such as network latency, network jitter, out-of-order data packets, and packet loss. To combat network transmission impairments and ensure the continuity and smoothness of voice playback at the receiving end, a jitter buffer is typically set at the receiving end to buffer the received voice data packets and control their playback sequence. However, when voice communication is applied to wireless networks or complex network environments, the network link state exhibits significant dynamic changes. Traditional fixed configurations of the minimum and maximum buffer boundaries of the jitter buffer cannot adapt to the dynamic changes in the link state, easily leading to insufficient buffer protection when the link deteriorates, resulting in voice playback stuttering or interruption, or maintaining an excessively large buffer depth after the link recovers, causing an unnecessary increase in voice communication latency. To this end, this application provides a voice buffer boundary control method, system, and electronic device. By acquiring link status information that reflects network transmission quality, and dynamically adjusting the minimum and maximum buffer boundaries of the jitter buffer according to changes in the link status information, it can be widely applied to various real-time voice communication systems that have high requirements for voice communication latency, call continuity, and anti-network jitter capabilities. It is particularly suitable for wireless voice communication scenarios where the network environment changes significantly and a dynamic trade-off between low latency and high stability is required.
[0026] like Figure 1 As shown, the voice buffer boundary control system 100 provided in this application includes a link status acquisition module 101, a boundary adjustment determination module 102, and a boundary control module 103, which are used to execute the voice buffer boundary control method.
[0027] The link status acquisition module 101 is used to acquire link status information, which reflects the network transmission quality. The link status acquisition module 101 is responsible for interfacing with various information sources and completing data acquisition and preprocessing functions.
[0028] The boundary adjustment determination module 102 is used to determine the boundary adjustment strategy of the minimum and maximum buffer boundaries of the jitter buffer based on changes in link state information. The boundary adjustment determination module 102 may internally include state partitioning logic, state comparison logic, and strategy generation logic. As one implementation, the boundary adjustment determination module 102 can also be merged or work collaboratively with the statistical analysis module within the jitter buffer; only the boundary control logic needs to be adjusted to achieve the functionality of this invention.
[0029] The boundary control module 103 is used to dynamically adjust the minimum and maximum buffer boundaries based on the boundary adjustment strategy. The boundary control module 103 directly acts on the boundary parameters of the jitter buffer and is responsible for executing specific control mechanisms such as progressive adjustment, cooperative constraint checking, and adjustment frequency control.
[0030] It is worth noting that this invention does not impose specific limitations on the physical implementation and deployment location of the above modules. Each module can be a software module, a hardware module, or a combination of software and hardware. They can all be deployed within the same terminal device or distributed across different devices to work collaboratively. As an example, a portion of the functionality of the link state acquisition module 101 can be implemented in the wireless module driver layer, while the boundary adjustment determination module 102 and the boundary control module 103 are implemented in the voice engine of the application layer.
[0031] like Figure 2 As shown, the voice buffer boundary control system 100 of this application is implemented through a voice buffer boundary control method, which specifically includes the following steps: S1. Obtain link status information, which reflects the current network transmission quality. Step S1 is executed by the link status acquisition module 101. The multi-dimensional and comprehensive acquisition of link status information is the basis for subsequent accurate boundary adjustment determination. The sources of link status information are diverse; specifically, they may include, but are not limited to, at least one of communication measurement information, voice packet arrival statistics, and jitter buffer operation status information. By introducing multi-source information, this application can effectively improve the robustness and reliability of boundary adjustment determination, avoiding erroneous adjustment decisions due to errors or failures of a single information source.
[0032] It is worth noting that this application does not limit the specific method of obtaining link state information. As one implementation, link state information includes communication measurement information, which can be indicators reflecting the underlying network transmission quality actively acquired through network measurement protocols or tools, including but not limited to: round-trip time, one-way delay, delay jitter, packet loss rate, signal strength, signal-to-noise ratio, and channel quality indication. For example, in a wireless cellular network environment, the terminal can obtain the physical layer's reference signal received power or reference signal received quality as communication measurement information; in a wireless local area network environment, the terminal can obtain the received signal strength indication as communication measurement information.
[0033] As another implementation, link status information includes voice data packet arrival statistics, which are obtained by statistically analyzing the actual received voice data packets. This information can most directly reflect the true state of voice stream transmission. Voice data packet arrival statistics may include, but are not limited to: the number of consecutive packet losses, the statistical variance of data packet arrival intervals, the proportion of out-of-order data packets, and the data packet arrival rate. For example, when the statistical variance of data packet arrival intervals increases significantly over a continuous period of time or the number of consecutive packet losses exceeds a preset threshold, it indicates that the current link status has deteriorated or fluctuated more.
[0034] As another implementation, link state information includes the operational status information of the jitter buffer. The operational status of the jitter buffer itself can also serve as an important basis for reflecting link conditions and caching effectiveness. For example, the operational status information of the jitter buffer may include, but is not limited to: current buffer depth, buffer depth change trend, the difference between the rate at which data packets are extracted and played from the buffer and the rate at which data packets arrive, and the frequency of buffer underflow or overflow. For instance, if the jitter buffer frequently experiences buffer underflow, i.e., the buffer is empty when audio data needs to be played, it indicates that the current minimum buffer boundary may be insufficient to combat instantaneous network jitter and needs to be adjusted upwards.
[0035] As another implementation, to obtain a more comprehensive and accurate link status, the link status information can be determined by combining at least two of the aforementioned types of information. One example is combining the packet loss rate from communication measurement information and the number of consecutive packet losses from voice data packet arrival statistics; only when both indicate a deterioration in network transmission quality is the link determined to be in a weakened state. This multi-source fusion approach can effectively reduce the false positive rate and improve system stability.
[0036] S2. Based on changes in link state information, determine the boundary adjustment strategy for the minimum and maximum buffer boundaries of the jitter buffer. After obtaining the link state information, it is necessary to determine whether and how to adjust the boundaries of the jitter buffer based on its changes. It is worth noting that this application mainly bases the judgment on changes in link state rather than an absolute state value. The boundary adjustment process will only be triggered when the link state changes significantly enough, thereby avoiding frequent boundary adjustments due to small, instantaneous fluctuations in link state, which could cause system oscillations. Step S2 is executed by the boundary adjustment determination module 102. The boundary adjustment determination module 102 receives the link state information output by the link state acquisition module 101 and compares it with historical state information or a preset state threshold to determine the trend and magnitude of the link state change. Step S2 also includes the following sub-steps: S2-1. Based on link status information, classify the working state levels of the jitter buffer. In one embodiment, to achieve fine-grained management of the boundaries, this application classifies the working state into levels. Based on link status information, the working state of the jitter buffer is divided into multiple levels. As one example, three levels can be defined: Normal state, indicating good and stable network transmission quality, with network jitter and packet loss rate maintained at low levels; Weakened state, indicating decreased or increased network transmission quality, with significantly increased network jitter or packet loss rate; Severely weakened state, indicating a sharp deterioration in network transmission quality, with high packet loss or large latency bursts. It is worth noting that this application does not limit the specific number of levels or the classification criteria. The classification criteria can adopt preset threshold values, such as a first threshold, a second threshold, and a third threshold. When the packet loss rate in the communication measurement information is less than the first threshold and the jitter is less than the second threshold, it is determined to be in the Normal state; when any indicator exceeds the corresponding threshold, it is determined to be in the Weakened state; when the packet loss rate exceeds the higher third threshold, it is determined to be in the Severely Weakened state.
[0037] S2-2. Determine the boundary adjustment strategy corresponding to the current working state level. After clarifying the current working state level of the jitter buffer, the corresponding boundary adjustment strategy can be determined. The boundary adjustment strategy clarifies the adjustment direction and magnitude of the minimum and maximum buffer boundaries. This application configures corresponding minimum and maximum buffer boundaries for different level states. As one example, the normal state, weakened state, and severely weakened state can be mapped to different boundary combinations. This multi-state mapping method allows the buffer capacity to accurately match the link state level. When the boundary adjustment determination module 102 detects a change in link state information that causes a level transition in the working state of the jitter buffer, such as from the normal state to the weakened state, it determines that boundary adjustment needs to be performed and uses the boundary configuration of the target state as the boundary adjustment strategy for this operation.
[0038] S3. Dynamically adjust the minimum and maximum buffer boundaries based on the boundary adjustment strategy. After determining the boundary adjustment strategy in step S2, the specific dynamic adjustment operation can be executed. The core of dynamic adjustment is that the minimum and maximum buffer boundaries exist as runtime adjustable parameters, rather than fixed startup configurations. As one implementation method, dynamic adjustment can include adjustment direction and adjustment amount. When network transmission quality deteriorates, the minimum buffer boundary is increased and the maximum buffer boundary is expanded, thereby enhancing the jitter resistance of the jitter buffer and prioritizing the continuity of voice playback; when network transmission quality improves, the minimum buffer boundary is decreased and the maximum buffer boundary is shrunk to reduce unnecessary buffer depth and reduce end-to-end latency of voice communication. To ensure the smoothness of the adjustment process and system stability, this application also provides a variety of optimized adjustment mechanisms, which can be used individually or in combination, specifically including the following sub-steps: S3-1. Boundary adjustment is performed using a progressive or hierarchical adjustment method. As one implementation method, dynamic adjustment includes at least one of progressive and hierarchical adjustment methods. Progressive adjustment means that the boundary value does not jump to the target value in one step, but rather approaches the target value slowly in multiple small steps. For example, when the minimum buffer boundary needs to be adjusted from 20 milliseconds to 60 milliseconds, the adjustment can be performed in steps increasing by 5 milliseconds each time until the target value is reached. Hierarchical adjustment refers to dividing the change range of the boundary value into several levels, with each adjustment changing only one level. The progressive or hierarchical adjustment method in this application can effectively prevent frequent oscillations of the boundary due to link fluctuations, making the voice playback process smoother and avoiding new auditory discomfort introduced by sudden changes in buffer depth.
[0039] S3-2. Applying a backoff hysteresis and hold-time mechanism in boundary adjustment. When the link state recovers from an unstable weakened state or a severely weakened state to a stable normal state, immediately reverting the buffer boundary may cause the boundary to adjust back and forth due to the rapid deterioration of the link after a brief recovery. To avoid this back-and-forth adjustment, this application introduces a backoff hysteresis and hold-time mechanism. Based on link state information, when the network transmission quality is good and the preset hold-time or hysteresis conditions are met, the minimum and maximum buffer boundaries are backoff adjusted.
[0040] Specifically, when the boundary adjustment determination module 102 determines that the link status has improved and a boundary rollback operation is required, it does not immediately trigger the adjustment. First, a hold time can be set; the link status must remain stable in a normal state for a preset hold time, such as 5 or 10 seconds, before the rollback adjustment is actually performed. Second, a hysteresis condition can be set, for example, by setting the status determination threshold to hysteresis. When network transmission quality deteriorates and exceeds a lower threshold, it enters a weakened state, raising the boundary; conversely, when network transmission quality improves, it must exceed a higher threshold for better quality before returning to a normal state and triggering boundary rollback. Both methods effectively avoid frequent adjustments caused by link status fluctuations near critical points.
[0041] S3-3. During boundary adjustment, adhere to the cooperative constraint relationship between the minimum and maximum boundaries. During dynamic adjustment, ensure that the normal operation logic of the jitter buffer is not disrupted.
[0042] In one implementation, the minimum cache boundary and the maximum cache boundary satisfy a preset cooperative constraint relationship, which includes at least that the maximum cache boundary is greater than or equal to the minimum cache boundary. Furthermore, to allow for normal operation of cache operations, this cooperative constraint relationship may also require that the maximum cache boundary must be greater than the minimum cache boundary by a preset minimum difference. For example, the maximum cache boundary must always be 30 milliseconds greater than the minimum cache boundary. When the new boundary value calculated by the boundary adjustment strategy may violate this cooperative constraint relationship, the boundary control module 103 will automatically correct it. For example, if the instruction requires increasing the minimum cache boundary to 80 milliseconds, while the current maximum cache boundary is only 70 milliseconds, the cooperative constraint mechanism will force the maximum cache boundary to first synchronously increase to a value that satisfies the constraint relationship, such as 110 milliseconds, before performing the adjustment of the minimum cache boundary, thereby preventing the cache control logic from failing due to the minimum cache boundary being greater than or equal to the maximum cache boundary.
[0043] S4. To further improve system stability, the adjustment operation itself can be restricted from a time perspective by using an optional boundary adjustment frequency control mechanism. One implementation method is to limit the adjustment frequency of the buffer boundary to avoid frequent oscillations. A minimum adjustment interval can be set. Within a preset time period after a boundary adjustment action is completed, even if the link state changes drastically again, no new adjustment requests will be responded to. This prevents the voice buffer boundary control system 100 from becoming an unstable oscillation source when facing high-frequency fluctuating links. It is worth noting that in the method provided in this application, the dynamic adjustment of the minimum and maximum buffer boundaries is independent of the predicted link state. Therefore, this solution is based on the measurement and response to the current and historical link states, rather than on the prediction of future link states. This makes the entire control logic more robust, avoids the risk of misadjustment caused by inaccurate predictions, and enables reliable tracking of real changes in the link.
[0044] As a more specific application example of the above method steps S1~S4, the following explanation is based on a complete voice communication process. After a real-time voice call is established, the voice buffer boundary control system 100 on the terminal side starts working. First, step S1 is executed, the link status acquisition module 101 starts, and continuously collects data from multiple sources: on the one hand, it periodically reads communication measurement information such as reference signal received power and signal-to-noise ratio from the terminal's wireless module driver layer; on the other hand, it performs online statistics on the arriving real-time transmission protocol voice data packets, calculates the packet loss rate and data packet arrival interval jitter within a preset time window, and other voice data packet arrival statistics; at the same time, it also monitors the jitter buffer itself and obtains operating status information such as the current buffer depth. The link status acquisition module 101 integrates these raw or pre-processed information into unified link status information and transmits it to the boundary adjustment judgment module 102.
[0045] Subsequently, step S2 is executed. The boundary adjustment determination module 102 continuously receives link status information and determines the working status level of the jitter buffer accordingly. For example, initially, the network transmission quality is good, and the working status is normal. As the user moves, the signal deteriorates, and the boundary adjustment determination module 102 detects that the number of consecutive packet losses exceeds the first threshold and the signal-to-noise ratio is lower than the preset level. It then transitions the working status from the normal state to the weakened state. Based on this state change, the boundary adjustment determination module 102 queries the preset state-boundary mapping table to generate the current boundary adjustment strategy: increasing the minimum buffer boundary from 20 milliseconds to 60 milliseconds and expanding the maximum buffer boundary from 80 milliseconds to 160 milliseconds.
[0046] Finally, step S3 is executed. After receiving the boundary adjustment strategy, the boundary control module 103 begins dynamic adjustment. Considering smoothness, the boundary control module 103 adopts a gradual adjustment method, that is, the minimum cache boundary is adjusted gradually from 20 milliseconds to 60 milliseconds in 8 steps with a step size of 5 milliseconds; at the same time, the maximum cache boundary is also adjusted from 80 milliseconds to 160 milliseconds in 8 steps with a step size of 10 milliseconds. During this process, the cooperative constraint mechanism is in effect throughout, ensuring that the maximum cache boundary is always greater than the minimum cache boundary at any time during the adjustment. After a period of time, the user returns to the area with good signal, and the boundary adjustment determination module 102 detects that the link state has returned to normal, but it does not react immediately. Only when this normal state is maintained for 10 seconds does the boundary adjustment determination module 102 trigger the fallback boundary adjustment strategy, and the boundary control module 103 then gradually adjusts the minimum cache boundary and the maximum cache boundary back to a lower level.
[0047] This invention first designs the minimum and maximum buffer boundaries of the jitter buffer as runtime adjustable parameters, breaking the fixed configuration limitations of traditional solutions. Second, it establishes a closed-loop control process from link state perception and state change determination to dynamic boundary adjustment, realizing real-time adaptive matching between buffer capacity and link state. Finally, by comprehensively utilizing multiple mechanisms such as multi-source state driving, cooperative constraints, backoff hysteresis, gradual adjustment, and frequency control, it effectively solves the problems of oscillation, over-adjustment, and instability that may occur during dynamic adjustment, significantly improving the engineering practice value of the solution.
[0048] This invention significantly improves the continuity and jitter resistance of voice playback in scenarios with deteriorating link conditions. During real-time voice communication, when a user moves from an area with good signal to a signal dead zone, cell edge, or area with strong electromagnetic interference, the network transmission quality will significantly degrade. This is manifested in changes in link condition such as signal strength attenuation, reduced signal-to-noise ratio, increased packet loss rate, and increased statistical variance of packet arrival intervals. Traditional fixed-boundary solutions lack adaptability in such scenarios. The minimum and maximum buffer boundaries of the jitter buffer always maintain their initial configuration values, failing to provide sufficient buffer protection space for sudden network jitter. This easily leads to the jitter buffer being emptied, i.e., buffer underflow, resulting in stuttering, interrupted, or even dropped words in voice playback, severely impacting the call experience. The technical solution of this invention continuously monitors communication measurement information, voice packet arrival statistics, and the operating status information of the jitter buffer through the link condition acquisition module 101, enabling rapid and accurate perception of the deterioration trend of network transmission quality. After determining that the link status change meets preset conditions, the boundary adjustment judgment module 102 generates a corresponding boundary adjustment strategy in real time, driving the boundary control module 103 to dynamically adjust the minimum and maximum buffer boundaries of the jitter buffer. Specifically, this includes increasing the minimum buffer boundary to increase the amount of data that must be buffered before playback, and expanding the maximum buffer boundary to provide more ample buffer space. Through this mechanism, both the upper and lower limits of the jitter buffer's buffer depth are improved. Even when faced with severe network jitter or sudden packet loss, a certain amount of voice data to be played is still retained internally, thereby effectively absorbing transmission damage, maintaining the continuity and smoothness of voice playback, and avoiding call interruptions caused by instantaneous fluctuations in network transmission quality.
[0049] This invention effectively reduces end-to-end latency in voice communication after the link stabilizes. When a user moves from a signal dead zone or interference zone back to an area with good network coverage, the network transmission quality gradually recovers to normal levels, and data packet arrivals become more regular and stable. If the jitter buffer remains at the larger minimum and maximum buffer boundaries configured during the link deterioration period, it will lead to unnecessary buffer depth accumulation, causing voice data to remain in the buffer for too long, directly resulting in a meaningless increase in voice latency, affecting the naturalness of the dialogue and the interactive experience. Traditional fixed boundary schemes cannot detect the improvement in link status, and the buffer boundaries remain unchanged, failing to solve the problem of over-buffering after link recovery. The technical solution of this invention, after sensing the improvement in network transmission quality, does not immediately perform boundary back-off adjustment, but performs delayed confirmation through a preset hold time or hysteresis condition. Only when the network transmission quality remains stable in a normal state within the hold time, or when the link status information meets the hysteresis threshold specified by the hysteresis condition, will the boundary adjustment determination module 102 trigger the boundary adjustment strategy for back-off adjustment. Based on this, the boundary control module 103 gradually reduces the minimum buffer boundary and shrinks the maximum buffer boundary, so that the buffer depth of the jitter buffer falls back to a lower level that matches the current good link status. This ensures that unnecessary buffering can be released in a timely manner after the link recovers and stabilizes, minimizing voice latency and improving the real-time performance of the call.
[0050] This application also provides an electronic device that can be used to execute the aforementioned voice buffer boundary control method. The electronic device includes a processor, a computer-readable storage medium, and a communication bus. The computer-readable storage medium stores program instructions, which, when executed by the processor, can implement the voice buffer boundary control method of any of the aforementioned specific embodiments. The electronic device can be various terminal devices with voice communication capabilities, including, but not limited to: smartphones, tablets, laptops, in-vehicle terminals, smart speakers, IoT voice terminals, private network communication walkie-talkies, etc. The electronic device can also be a server device, serving as a network node for voice processing or forwarding.
[0051] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.
[0052] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.
Claims
1. A voice buffer boundary control method, characterized in that, Includes the following steps: Obtain link status information, which is used to reflect network transmission quality; Based on the changes in the link state information, determine the boundary adjustment strategy for the minimum and maximum buffer boundaries of the jitter buffer; Based on the boundary adjustment strategy, the minimum cache boundary and the maximum cache boundary are dynamically adjusted.
2. The method according to claim 1, characterized in that: The link status information includes at least one of communication measurement information, voice data packet arrival statistics, and the jitter buffer operation status information.
3. The method according to claim 1, characterized in that: The minimum cache boundary and the maximum cache boundary satisfy a preset cooperative constraint relationship, wherein the cooperative constraint relationship includes at least the maximum cache boundary being greater than or equal to the minimum cache boundary.
4. The method according to claim 1, characterized in that: The dynamic adjustment includes at least one of the following: a gradual adjustment method and a graded adjustment method.
5. The method according to claim 1, characterized in that, Also includes: Based on the link status information, the working status of the jitter buffer is divided into multiple levels.
6. The method according to claim 5, characterized in that, Also includes: Configure the corresponding minimum cache boundary and maximum cache boundary for different level states.
7. The method according to claim 1, characterized in that, Also includes: Based on the link state information, when the network transmission quality is good and the preset hold time or hysteresis condition is met, the minimum buffer boundary and the maximum buffer boundary are adjusted back.
8. The method according to claim 1, characterized in that, The dynamic adjustment of the minimum cache boundary and the maximum cache boundary includes: Based on the link state information, when the network transmission quality deteriorates, the minimum buffer boundary is increased and the maximum buffer boundary is expanded. When the network transmission quality improves, the minimum cache boundary is reduced and the maximum cache boundary is shrunk.
9. A voice buffer boundary control system, characterized in that, include: The link status acquisition module acquires link status information, which is used to reflect network transmission quality. The boundary adjustment determination module determines the boundary adjustment strategy for the minimum and maximum buffer boundaries of the jitter buffer based on the changes in the link status information. The boundary control module dynamically adjusts the minimum cache boundary and the maximum cache boundary based on the boundary adjustment strategy.
10. An electronic device, characterized in that, include: Processor, computer-readable storage medium, and communication bus, The computer-readable storage medium stores program instructions, which, when executed by the processor, enable the voice buffer boundary control method according to any one of claims 1 to 8.