Bit rate determination method, device, Bluetooth playback device and storage medium

By obtaining stability parameters from Bluetooth playback devices and calculating the target bitrate range, the problems of fixed bitrate transmission stability and poor sound quality of terminal devices are solved, achieving more accurate bitrate negotiation and more stable audio data transmission.

CN114698031BActive Publication Date: 2025-09-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011639479.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-31
Publication Date
2025-09-19
Estimated Expiration
2040-12-31

AI Technical Summary

Technical Problem

In the existing technology, when the terminal device transmits audio data at a fixed bit rate, it is not compatible with the stability and sound quality of the audio data transmission, resulting in poor transmission stability and poor sound quality. In addition, the influence of different users' bodies and Bluetooth antenna performance leads to inaccurate bit rate determination.

Method used

The Bluetooth playback device obtains the stability parameters of the current audio data transmission process, calculates the target bit rate range, and negotiates the audio data transmission bit rate with the terminal device during the next connection, reducing dependence on the terminal device's transmission environment and improving the accuracy of bit rate determination.

Benefits of technology

It improves the stability and sound quality of audio data transmission, reduces the impact of a fixed bit rate range, and enhances the accuracy of bit rate determination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114698031B_ABST
    Figure CN114698031B_ABST
Patent Text Reader

Abstract

This application belongs to the field of communications technology, and more specifically, relates to a method, apparatus, Bluetooth playback device, and storage medium for determining a bit rate. One method for determining a bit rate includes obtaining a stability parameter during the current audio data transmission process; and obtaining a target bit rate range based on the stability parameter, wherein the target bit rate range is used to negotiate the bit rate for audio data transmission the next time the Bluetooth playback device and a terminal device are connected. This application can improve the accuracy of bit rate determination.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and specifically to a method and apparatus for determining a bit rate, a Bluetooth playback device, and a storage medium. Background Art

[0002] With the rapid development of science and technology, communication technology has also advanced rapidly, leading to the increasing popularity of Bluetooth playback devices. A terminal device can connect to a Bluetooth playback device upon receiving a connection instruction from the device. Once connected, the Bluetooth playback device can receive and play audio data transmitted by the terminal device, providing user convenience. Summary of the Invention

[0003] The present invention provides a method, apparatus, Bluetooth playback device, and storage medium for determining a bit rate, which can improve the accuracy of bit rate determination. The technical solution of the present invention is as follows:

[0004] In a first aspect, an embodiment of the present application provides a method for determining a bit rate, which is applied to a Bluetooth playback device. The method includes:

[0005] Get the stability parameters of the current audio data transmission process;

[0006] A target bit rate range is obtained according to the stability parameter, and the target bit rate range is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device and the terminal device are connected next time.

[0007] In a second aspect, an embodiment of the present application provides a bit rate determination device, the device comprising:

[0008] A parameter acquisition unit, used to obtain stability parameters during the current audio data transmission process;

[0009] An information determination unit is used to obtain a target bit rate range according to the stability parameter, and the target bit rate range is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device and the terminal device are connected next time.

[0010] In a third aspect, a Bluetooth playback device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in any one of the first aspects when executing the computer program.

[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements any of the methods described above when executed by a processor.

[0012] In a fifth aspect, embodiments of the present application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps described in the first aspect of the embodiments of the present application. The computer program product may be a software installation package.

[0013] The beneficial effects of the technical solutions provided by some embodiments of the present application include at least:

[0014] In one or more embodiments of the present application, by obtaining the stability parameter during the current audio data transmission process, a target bit rate range can be obtained based on the stability parameter, and the target bit rate range is used to negotiate the bit rate for audio data transmission when the Bluetooth playback device and the terminal device are next connected. Therefore, the Bluetooth playback device can negotiate the target bit rate range for the next transmission of audio data based on the stability parameter during the current audio data transmission process, without obtaining the transmission environment of the terminal device. This can reduce the impact of different users' bodies and different Bluetooth antenna performance on audio data transmission, improve the accuracy of bit rate determination, reduce the impact of a fixed bit rate range on audio data transmission, improve the stability of audio data transmission, and improve the user's sound quality experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0016] Figure 1 A background diagram illustrating a method for determining a bit rate applied to an embodiment of the present application is shown;

[0017] Figure 2 A background diagram illustrating a method for determining a bit rate applied to an embodiment of the present application is shown;

[0018] Figure 3 A system architecture diagram showing a method for determining a bit rate applied to an embodiment of the present application;

[0019] Figure 4 A schematic diagram showing a flow chart of a method for determining a bit rate according to an embodiment of the present application;

[0020] Figure 5 A schematic diagram showing a flow chart of a method for determining a bit rate according to an embodiment of the present application;

[0021] Figure 6A schematic diagram illustrating an example of storing sampling parameters of a Bluetooth playback device according to an embodiment of the present application;

[0022] Figure 7 A flow chart showing a parameter level adjustment method according to an embodiment of the present application is shown;

[0023] Figure 8 A timing diagram showing a process of a method for determining a bit rate according to an embodiment of the present application is shown;

[0024] Figure 9 An example schematic diagram showing an interface of a terminal device according to an embodiment of the present application is shown;

[0025] Figure 10 An example schematic diagram showing an interface of a terminal device according to an embodiment of the present application is shown;

[0026] Figure 11 A schematic structural diagram of a bit rate determination device according to an embodiment of the present application is shown;

[0027] Figure 12 A schematic structural diagram of a bit rate determination device according to an embodiment of the present application is shown;

[0028] Figure 13 A schematic structural diagram of a bit rate determination device according to an embodiment of the present application is shown;

[0029] Figure 14 A schematic structural diagram of a Bluetooth playback device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0030] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of this application.

[0031] In the description of the present application, it should be understood that the terms "first", "second", etc. are used for descriptive purposes only and should not be understood as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise expressly provided and limited, "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character "three" generally indicates that the associated objects before and after are in an "or" relationship.

[0032] With the development of science and technology, there are more and more types of terminal devices, and the application functions that terminal devices can support are also increasing. Figure 1 A background diagram of a bit rate determination method applied to an embodiment of the present application is shown. The terminal device may support Bluetooth function. For example, the terminal device may use Bluetooth function to send audio data to a Bluetooth playback device so that the Bluetooth playback device can play the audio data, thereby improving the convenience of audio data playback and enhancing the user experience. Figure 1 As shown, when the terminal device transmits audio data to the Bluetooth playback device, the terminal device can obtain the bit rate range supported by the terminal device and the bit rate range supported by the Bluetooth playback device. That is, the Bluetooth playback device can send a fixed bit rate range to the terminal device. Based on the obtained bit rate range supported by the terminal device and the bit rate range supported by the Bluetooth playback device, the terminal device can select a fixed bit rate from a bit rate range as the bit rate for audio transmission, and transmit the audio data at the fixed bit rate. However, when the terminal device transmits audio data at a fixed bit rate, it cannot be compatible with the stability and sound quality of the audio data transmission. That is, when the terminal device transmits audio data at a fixed bit rate, when the Bluetooth performance of the terminal device is poor, the bit rate cannot be adjusted, and the bit rate determination is inaccurate, resulting in poor stability of audio data transmission and poor sound quality.

[0033] According to some embodiments, Figure 2 A background diagram showing a method for determining a bit rate applied to an embodiment of the present application is shown in FIG. Figure 2As shown, a terminal device can adjust the bitrate range based on the audio data transmission environment. When the terminal device determines that the audio data transmission environment does not meet preset environmental requirements, the terminal device can reduce the bitrate, reduce the amount of data transmitted via Bluetooth wireless, and improve the stability of audio data transmission. When the terminal device determines that the audio data transmission environment meets the preset environmental requirements, the terminal device can increase the bitrate, increase the amount of audio data transmitted, and improve the user's sound quality experience. For example, the terminal device can determine whether the audio data transmission environment meets the preset environmental requirements by detecting the audio data buffered in the terminal device. The audio data buffered in the terminal device refers to the audio data to be transmitted after the terminal device has encoded the audio data to be transmitted. When the audio data buffered in the terminal device exceeds the audio data buffering threshold, the terminal device can determine that the audio data transmission environment does not meet the preset environmental requirements. However, the bitrate is determined by the terminal device and can only be adjusted for a short period of time. Because different users' bodies and different Bluetooth antenna performance have different effects on the audio data transmission of Bluetooth playback devices, the bitrate is determined by the terminal device, resulting in inaccurate bitrate determination, which reduces the user experience.

[0034] According to some embodiments, Figure 3 A system architecture diagram of a code rate determination method applied to an embodiment of the present application is shown. Figure 3 As shown, the execution subject of the embodiment of the present application is a Bluetooth playback device. The Bluetooth playback device includes but is not limited to a Bluetooth module, a Bluetooth headset, a Bluetooth car-mounted device, a Bluetooth MP3 player (Moving Picture Experts Group Audio Layer-3), etc. The Bluetooth playback device includes a speaker. The terminal device refers to a device that transmits audio data with the Bluetooth playback device. The terminal device can be a terminal device with Bluetooth function, and the terminal device includes but is not limited to: a wearable device, a handheld device, a personal computer, a tablet computer, a car-mounted device, a smart phone, a computing device or other processing device connected to a wireless modem, etc. In different networks, the rate determination device can be called different names, such as: user equipment, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, cellular phone, cordless phone, personal digital assistant (PDA), fifth generation mobile communication technology (5G) network or rate determination device in future evolution network, etc.

[0035] According to some embodiments, the Bluetooth playback device can be connected to the terminal device via a network. The network is used to provide a communication link between the Bluetooth playback device and the terminal device. The network can include various connection types, such as wireless communication links, etc. It should be understood that Figure 3 The number of Bluetooth playback devices, networks, and terminal devices in the figure is merely illustrative. Depending on actual needs, any number of Bluetooth playback devices, networks, and terminal devices may be provided. For example, the terminal device may be a plurality of terminal devices, and the Bluetooth playback device may select one of the terminal devices for connection.

[0036] It is easy to understand that when the terminal device is connected to the Bluetooth playback device, the terminal device can obtain the bit rate range determined by the Bluetooth playback device based on the last connection with the terminal device. The terminal device can determine the bit rate of the current audio transmission based on the bit rate range and the bit rate range supported by the terminal itself, and transmit the current audio data at the bit rate. The Bluetooth playback device can obtain the stability parameter during the current audio data transmission process, and adjust the current parameter level to the target parameter level based on the stability parameter threshold and the stability parameter. The Bluetooth playback device can obtain the target bit rate range corresponding to the target parameter level in the bit rate mapping information, so that when connected to the terminal device, the target bit rate range is sent to the terminal device, and the target bit rate range is used to negotiate the bit rate for audio data transmission with the terminal device when connected to the terminal device next time. The embodiment of the present application provides a bit rate determination method that can improve the accuracy of bit rate determination.

[0037] The present application is described in detail below with reference to specific embodiments.

[0038] In one embodiment, Figure 4 As shown, a method for determining a bit rate is proposed. The method can be implemented by a computer program and can be run on a Bluetooth playback device based on an operating system. The computer program can be integrated into an application or run as an independent tool application.

[0039] Specifically, the code rate determination method includes:

[0040] S101, obtaining stability parameters during the current audio data transmission process;

[0041] According to some embodiments, audio data refers to audio data transmitted from a terminal device to a Bluetooth playback device when the Bluetooth playback device is connected to the terminal device. When the Bluetooth playback device receives the audio data, the Bluetooth playback device can play the audio data. The audio data does not specifically refer to a fixed audio data. For example, each time the terminal device is connected to the Bluetooth playback device, the terminal device can send audio data corresponding to the audio playback instruction to the Bluetooth playback device based on the audio playback instruction obtained from the user. The audio playback instruction includes but is not limited to a voice audio playback instruction, a click audio playback instruction, and a timed audio playback instruction.

[0042] It is easy to understand that the audio data transmission process refers to the process in which the Bluetooth playback device receives the audio data transmitted by the terminal device and plays the audio data when the terminal device is connected to the Bluetooth playback device. The current audio data transmission process refers to the process in which the Bluetooth playback device receives the audio data transmitted by the terminal device and plays the audio data when the terminal device is currently connected to the Bluetooth playback device. The current audio data transmission process does not specifically refer to a certain transmission process. For example, when the connection time point between the terminal device and the Bluetooth playback device is different, the audio data transmission process will also change accordingly. For example, the audio data transmission process can be the process of audio data transmission when the terminal device is connected to the Bluetooth playback device for the first time, or it can be the process of audio data transmission when the terminal device is connected to the Bluetooth playback device for the third time.

[0043] Optionally, the stability parameter refers to a parameter used to characterize the stability of audio data transmission during the current audio data transmission process. The stability parameter corresponds one-to-one to the audio data transmission process. The stability parameter is not a specific fixed parameter. When the audio data transmission process changes, the stability parameter during the audio data transmission process will also change accordingly.

[0044] According to some embodiments, when a Bluetooth playback device and a terminal device are connected, the Bluetooth playback device can obtain a stability parameter during audio data transmission. For example, when Bluetooth playback device A is connected to terminal device B, Bluetooth playback device A can obtain audio data transmitted by terminal device B and obtain a stability parameter during the audio data transmission. This stability parameter can be, for example, the a1 stability parameter.

[0045] S102: Obtain a target bit rate range according to the stability parameter. The target bit rate range is used to negotiate the bit rate for audio data transmission when the Bluetooth playback device and the terminal device are connected next time.

[0046] According to some embodiments, the bit rate refers to the number of bits transmitted per second during the audio data transmission process. The bit rate range is used to synchronize the audio data transmission bit rate with each other when the terminal device is connected to the Bluetooth playback device. The target bit rate range refers to the bit rate used to negotiate the audio data transmission when the Bluetooth playback device and the terminal device are connected next time, that is, the target bit rate range is used when the Bluetooth playback device and the terminal device are connected next time. The Bluetooth playback device can send the target bit rate range to the terminal device, and the terminal device can determine the bit rate of the audio data transmission based on the target bit rate range and the bit rate range supported by the terminal itself.

[0047] It is easy to understand that the target bit rate range does not specifically refer to a fixed bit rate range. For example, when the stability parameter changes, the target bit rate range will also change accordingly. For example, when the stability parameter is stability parameter a, the target bit rate range may be, for example, the a1 bit rate range. For example, when the stability parameter is stability parameter b, the target bit rate range may be, for example, the b1 bit rate range.

[0048] According to some embodiments, when the Bluetooth playback device obtains the stability parameter of the current audio data transmission process, the Bluetooth playback device can obtain the target bit rate range based on the stability parameter. The target bit rate range is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device is connected to the terminal device next time. When the Bluetooth playback device obtains the target bit rate range, the Bluetooth playback device can send the target bit rate range to the terminal device when it is connected to the terminal device next time, so that the terminal device can determine the bit rate of the next audio data transmission based on the target bit rate range and the bit rate range supported by the terminal device itself. When the Bluetooth playback device obtains the target bit rate range, the Bluetooth playback device can store the target bit rate range in the memory of the Bluetooth playback device.

[0049] It is easy to understand that the stability parameter obtained by the Bluetooth playback device can be, for example, the a1 stability parameter. The target bit rate range obtained by the Bluetooth playback device based on the a1 stability parameter can be, for example, the a2 bit rate range. When the Bluetooth playback device obtains the a2 bit rate range, it can send the target bit rate range a2 bit rate range to the terminal device when it next connects to the terminal device, so that the terminal device can determine the bit rate for the next audio data transmission based on the a2 bit rate range and the bit rate range supported by the terminal device itself. This bit rate can be, for example, the a222 bit rate.

[0050] Optionally, when the Bluetooth playback device obtains the target bit rate range corresponding to the stability parameter, the Bluetooth playback device may, for example, send the target bit rate range to the terminal device the next time it connects to the terminal device. Upon receiving the target bit rate range, the terminal device may, for example, transmit audio data at the median bit rate within the target bit rate range.

[0051] In one or more embodiments of the present application, by obtaining the stability parameter during the current audio data transmission process, a target bit rate range can be obtained based on the stability parameter, so that the bit rate of the audio data transmission can be negotiated when the Bluetooth playback device and the terminal device are next connected. Therefore, the Bluetooth playback device can negotiate the target bit rate range for audio data transmission based on the stability parameter during the audio data transmission process without obtaining the transmission environment of the terminal device. This can reduce the impact of different user bodies and different Bluetooth antenna performance on audio data transmission, improve the accuracy of bit rate determination, reduce the impact of a fixed bit rate range on audio data transmission, improve the stability of audio data transmission, and improve the user's sound quality experience.

[0052] See Figure 5 , which is a flow chart of a method for determining a code rate according to an embodiment of the present application. Figure 5 As shown, the method includes the following steps S201-S206.

[0053] S201, during the current audio data transmission process, obtaining parameter information within a plurality of unit time lengths;

[0054] According to some embodiments, a unit duration refers to a certain quantitative duration obtained from parameter information, and the unit duration does not specifically refer to a fixed duration. The unit duration can be set according to a duration setting instruction. The duration setting instruction may include but is not limited to a voice duration setting instruction, a click duration setting instruction, and a text duration setting instruction, etc. The unit duration is the duration included in the audio data transmission duration. "Several" refers to the number of unit durations included in the current audio data transmission process.

[0055] It is easy to understand that parameter information refers to parameter information corresponding to audio data. The parameter information includes at least one of the number of playback jams, the signal strength value, and the transmission interval duration of the audio data packet. The number of playback jams refers to the number of audio data jams within a unit time length when the Bluetooth playback device receives the audio data transmitted by the terminal device and plays the audio data. The information strength value refers to the strength value when the Bluetooth playback device receives the audio data transmitted by the terminal device. The transmission interval duration of an audio data packet refers to the transmission interval duration of two adjacent audio data packets within a unit time length. For example, the interval duration of an audio data packet can be the duration between the transmission time point of the first audio data packet and the transmission time point of the second audio data packet. The transmission interval duration of the audio data packet can be the mean value of the transmission interval duration of the audio data packets, or it can be the median value of the transmission interval duration of the audio data packets, etc.

[0056] When the Bluetooth playback device acquires parameter information, the Bluetooth playback device may acquire parameter information corresponding to the parameter information acquisition instruction according to the parameter information acquisition instruction. The parameter information acquisition instruction may, for example, acquire the number of playback freezes and the signal strength value.

[0057] According to some embodiments, during the audio data transmission process between the Bluetooth playback device and the terminal device, the Bluetooth playback device can obtain parameter information within a plurality of unit time lengths. The unit time length can be, for example, 1 minute. If the audio data transmission duration is 8 minutes, the Bluetooth playback device can obtain parameter information within 8 1-minute periods.

[0058] S202, obtaining a plurality of sampling parameters corresponding to the plurality of unit time lengths according to the parameter information within the plurality of unit time lengths and the weight coefficients corresponding to the parameter information;

[0059] According to some embodiments, the weight coefficient refers to a weight coefficient corresponding to the parameter information, and different parameter information corresponds to different weight coefficients. The weight coefficient can be set according to a coefficient setting instruction, and can also be adjusted according to a coefficient adjustment instruction.

[0060] It's easy to understand that the "sampling parameters" refer to sampling parameters corresponding to a number of unit durations, i.e., one sampling parameter corresponds to one unit duration. The sampling parameters are not specific to a fixed sampling parameter. If the parameter information obtained by the Bluetooth playback device changes within a unit duration, or if the weight coefficient corresponding to the parameter information changes, the sampling parameters will also change accordingly.

[0061] According to some embodiments, during audio data transmission, when a Bluetooth playback device obtains parameter information for a plurality of time units, the Bluetooth playback device may obtain a plurality of sampling parameters corresponding to the plurality of time units based on the parameter information for the plurality of time units and the weight coefficients corresponding to the parameter information. When the Bluetooth playback device obtains the sampling parameters corresponding to the plurality of time units, the Bluetooth playback device may obtain the sampling parameters based on a parameter calculation algorithm.

[0062] Optionally, the multiple unit time lengths may be, for example, Q1 unit time length, Q2 unit time length, Q3 unit time length, and Q4 unit time length. For example, when the parameter information within the multiple unit time lengths acquired by the Bluetooth playback device includes the number of playback freezes, the signal strength value, and the transmission interval duration of the audio data packet, the Bluetooth playback device may obtain the sampling parameters corresponding to the multiple unit time lengths according to formula (1).

[0063] S=K1N+K2(RR i )+K3(II v ) 2 (1)

[0064] Among them, S is the sampling parameter;

[0065] K1 is the weight coefficient corresponding to the number of playback freezes;

[0066] N is the number of playback freezes per unit time;

[0067] K2 is the weight coefficient corresponding to the signal strength value;

[0068] R is the signal strength value corresponding to unit time length;

[0069] R i is the standard value of signal strength;

[0070] K3 is the weight coefficient corresponding to the transmission interval of the audio data packet;

[0071] I is the transmission interval of the audio data packet corresponding to the unit duration;

[0072] I v The average transmission interval length of the audio data packets corresponding to the unit duration.

[0073] According to some embodiments, when the Bluetooth playback device obtains sampling parameters corresponding to several unit durations, the Bluetooth playback device can store the sampling parameters corresponding to the several unit durations in the memory of the Bluetooth playback device. For example, when the Bluetooth playback device obtains the q1 sampling parameter corresponding to the Q1 unit duration, the q2 sampling parameter corresponding to the Q2 unit duration, the q3 sampling parameter corresponding to the Q3 unit duration, and the q4 sampling parameter corresponding to the Q4 unit duration, the Bluetooth playback device can store the sampling parameters in the memory of the Bluetooth playback device. At this time, an example schematic diagram of the Bluetooth playback device storing sampling parameters can be as follows: Figure 6 As shown. The memory may be, for example, a memory for storing sampling parameters. The memory may be, for example, a non-volatile memory, which can maintain the sampling parameters during a power outage, thereby improving the accuracy of obtaining the second parameter level and, in turn, improving the accuracy of bit rate determination. The memory may be, for example, a FLASH memory.

[0074] S203, calculating a stability parameter during the current audio data transmission process according to a plurality of sampling parameters;

[0075] According to some embodiments, when a Bluetooth playback device obtains sampling parameters corresponding to several unit durations, the Bluetooth playback device can calculate the stability parameter of the current audio data transmission process based on the sampling parameters of the several unit durations. For example, when the Bluetooth playback device obtains the q1 sampling parameter corresponding to the Q1 unit duration, the q2 sampling parameter corresponding to the Q2 unit duration, the q3 sampling parameter corresponding to the Q3 unit duration, and the q4 sampling parameter corresponding to the Q4 unit duration, the Bluetooth playback device can calculate the average sampling parameter of the q1 sampling parameter corresponding to the Q1 unit duration, the q2 sampling parameter corresponding to the Q2 unit duration, the q3 sampling parameter corresponding to the Q3 unit duration, and the q4 sampling parameter corresponding to the Q4 unit duration, which can be, for example, the q5 sampling parameter. The Bluetooth playback device can set the q5 sampling parameter as the stability parameter of the current audio data transmission process.

[0076] According to some embodiments, when the Bluetooth playback device calculates the stability parameters of the current audio data transmission process based on a number of sampling parameters, the Bluetooth playback device can filter the several sampling parameters according to a preset method to obtain the filtered sampling parameters. The preset method may include but is not limited to a sampling parameter quantity threshold, a sampling parameter value threshold, etc. When the Bluetooth playback device obtains the filtered sampling parameters, the Bluetooth playback device can calculate the average sampling parameters of the filtered sampling parameters and use the average sampling parameters as the stability parameters of the current audio data transmission process. The screening of the sampling parameters by the Bluetooth playback device can reduce the impact of abnormal sampling parameters on the stability parameters, improve the accuracy of the stability parameters, and further improve the accuracy of the bit rate determination.

[0077] Optionally, when the Bluetooth playback device calculates the average sampling parameter of the filtered sampling parameters, the average sampling parameter includes but is not limited to arithmetic average sampling parameter, geometric average sampling parameter, square average sampling parameter, harmonic average sampling parameter, weighted average sampling parameter, etc.

[0078] It is easy to understand that when the Bluetooth playback device calculates the average sampling parameter of the filtered sampling parameters as the arithmetic average sampling parameter, the Bluetooth playback device can calculate the sum of the filtered sampling parameters and obtain the parameter number of the filtered sampling parameters. The Bluetooth playback device can divide the sum of the filtered sampling parameters by the parameter number of the filtered sampling parameters to obtain the arithmetic average sampling parameter.

[0079] It is easy to understand that when the Bluetooth playback device obtains the sampling parameters within 15 unit time lengths, the Bluetooth playback device can sort the sampling parameters within the 15 unit time lengths. For example, the Bluetooth playback device can sort the sampling parameters within the 15 unit time lengths in order from small to large parameter values, and filter out a preset number of 5 sampling parameters to obtain the filtered sampling parameters, that is, the terminal can obtain 10 sampling parameters. The Bluetooth playback device can calculate the average sampling parameter of the 10 filtered sampling parameters and use the average sampling parameter as the stability parameter during the current audio data transmission process.

[0080] S204, obtaining a current bit rate range, which is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device and the terminal device establish a current connection;

[0081] According to some embodiments, the current bit rate range is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device establishes the current connection with the terminal device. That is, when the Bluetooth playback device establishes the current connection with the terminal device, the Bluetooth playback device sends the current bit rate range to the terminal device, and the terminal device determines the bit rate of the current audio data transmission based on the current bit rate range and the bit rate range supported by the terminal itself. The current bit rate range does not specifically refer to a fixed bit rate range. When the stability parameters of the last audio data transmission before the Bluetooth playback device and the terminal device establish the current connection change, the current bit rate range determined by the Bluetooth playback device will also change accordingly.

[0082] S205, adjusting the current bit rate range according to the stability parameter to obtain a target bit rate range;

[0083] According to some embodiments, when the terminal obtains the current bit rate range, the Bluetooth playback device can adjust the current bit rate range based on the stability parameter to obtain a target bit rate range. For example, when the current bit rate range obtained by the Bluetooth playback device may be the e1 bit rate range, the Bluetooth playback device can adjust the e1 bit rate range based on the stability parameter to obtain a target bit rate range, such as the e2 bit rate range.

[0084] It is easy to understand that when the Bluetooth playback device adjusts the current bit rate range according to the stability parameter to obtain the target bit rate range, the Bluetooth playback device can obtain the current parameter level corresponding to the current bit rate range. When the Bluetooth playback device obtains the current parameter level and adjusts the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level, the Bluetooth playback device can obtain the bit rate range corresponding to the target parameter level in the bit rate mapping information, and use the bit rate range as the target bit rate range. When the Bluetooth playback device obtains the target bit rate range, the Bluetooth playback device can send the target bit rate range to the terminal device the next time it connects to the terminal device, so as to negotiate the bit rate of audio data transmission with the terminal device.

[0085] It is easy to understand that the rate mapping information refers to a set of parameter levels and the corresponding rate ranges. This rate mapping information does not specifically refer to fixed rate mapping information. This rate mapping information can change, for example, based on user information setting instructions. Such information setting instructions include, but are not limited to, voice information setting instructions, click information setting instructions, and timer information setting instructions.

[0086] According to some embodiments, before obtaining the bit rate range corresponding to the target parameter level in the bit rate mapping information, when the Bluetooth playback device obtains the parameter level and the bit rate range corresponding to the parameter level, the Bluetooth playback device can map and store the parameter level and the bit rate range corresponding to the parameter level in the bit rate mapping information. The bit rate mapping information can also be set when the Bluetooth playback device leaves the factory. By mapping and storing the parameter level and the bit rate range corresponding to the parameter level, the Bluetooth playback device can reduce the steps for obtaining the target bit rate range, reduce the time required to obtain the target bit rate range information, and improve the efficiency of determining the bit rate.

[0087] It's easy to understand that a parameter level can correspond to a bitrate range, which can be a single bitrate value or a range of bitrate values. For example, the bitrate range corresponding to the E1 parameter level can be the e1 bitrate value, and the bitrate range corresponding to the E1 parameter level can be the e11-e111 bitrate values, where the e111 bitrate value is greater than the e11 bitrate value. However, the bitrate range corresponding to a parameter level does not specifically refer to a fixed bitrate range. The bitrate range corresponding to a parameter level can be modified, for example, using a bitrate range adjustment instruction.

[0088] According to some embodiments, the parameter levels and the bit rate ranges corresponding to the parameter levels obtained by the Bluetooth playback device may be, for example, the E1 parameter level and the bit rate range e1 corresponding to the E1 parameter level, the E2 parameter level and the bit rate range e2 corresponding to the E2 parameter level, the E3 parameter level and the bit rate range e3 corresponding to the E3 parameter level, the E4 parameter level and the bit rate range e4 corresponding to the E4 parameter level, and the E5 parameter level and the bit rate range e5 corresponding to the E5 parameter level. The Bluetooth playback device may store the mapping between the parameter levels and the bit rate ranges corresponding to the parameter levels in the bit rate mapping information.

[0089] Optionally, the parameter level refers to the level corresponding to the bit rate range, and different bit rate ranges correspond to different parameter levels. The parameter level is used to indicate the level of the bit rate range. For example, the parameter level can be set in advance by the Bluetooth playback device according to the user's parameter level setting instruction. The current parameter level is the parameter level corresponding to the current bit rate range. Before audio data transmission, the Bluetooth playback device obtains the current parameter level corresponding to the current bit rate unit and the current bit rate range based on the last audio data transmission process. The current parameter level does not specifically refer to a fixed parameter level. When the last audio data transmission process changes, the current parameter level will also change accordingly. The target parameter level refers to the parameter level after the Bluetooth playback device adjusts the current parameter level. The target parameter level does not specifically refer to a fixed parameter level. When the stability parameter and the stability parameter threshold change, the target parameter level will also change accordingly.

[0090] It is easy to understand that the stability parameter threshold refers to the critical value of the stability parameter corresponding to the current parameter level. The stability parameter threshold refers to the parameter threshold corresponding to the current parameter level. The stability parameter threshold does not specifically refer to a fixed parameter threshold. The number of the stability parameter thresholds is at least one. The stability parameter threshold can, for example, change with changes in the current parameter level. For example, when the current parameter level is the C parameter level, the stability parameter threshold can, for example, be the C1 stability parameter threshold and the C2 stability parameter threshold. For example, when the current parameter level is the D parameter level, the stability parameter threshold can, for example, be the D1 stability parameter threshold and the D2 stability parameter threshold.

[0091] It is easy to understand that the current parameter level corresponding to the current bit rate range obtained by the Bluetooth playback device can be, for example, the E1 parameter level, and the target parameter level obtained by the Bluetooth playback device by adjusting the E1 parameter level according to the stability parameter threshold and the stability parameter can be, for example, the E2 parameter level. The target bit rate range corresponding to the second parameter level E2 parameter level obtained by the Bluetooth playback device in the bit rate mapping information can be, for example, the e2 bit rate range. When the Bluetooth playback device obtains the e2 bit rate range, the Bluetooth playback device can send the target bit rate range e2 bit rate range to the terminal device the next time it connects to the terminal device, so as to negotiate the bit rate of audio data transmission with the terminal device.

[0092] Optionally, when the Bluetooth playback device adjusts the current parameter level to obtain a target parameter level based on the stability parameter threshold and the stability parameter, the Bluetooth playback device may obtain the stability parameter threshold corresponding to the current parameter level. The stability parameter threshold includes an upper threshold and a lower threshold. The Bluetooth playback device may adjust the current parameter level to the target parameter level based on the relationship between the stability parameter and the stability parameter threshold.

[0093] It is easy to understand that the stability parameter thresholds obtained by the Bluetooth playback device may be, for example, the C1 stability parameter threshold and the C2 stability parameter threshold. The stability parameter obtained by the Bluetooth playback device may be, for example, the C3 stability parameter. When the Bluetooth playback device obtains a current parameter level, for example, the E1 parameter level, based on the stability parameter threshold and the stability parameter, the Bluetooth playback device may adjust the current parameter level E1 to a target parameter level E2, for example. The target parameter level obtained by the Bluetooth playback device may be, for example, the E2 parameter level.

[0094] According to some embodiments, when the Bluetooth playback device adjusts the current parameter level to the target parameter level based on the relationship between the stability parameter and the stability parameter threshold, the Bluetooth playback device can obtain the upper threshold and lower threshold of the stability parameter threshold. The upper threshold refers to the upper threshold corresponding to the current parameter level, and the lower threshold refers to the lower threshold corresponding to the current parameter level. The stability parameter between the upper threshold and the lower threshold is the stability parameter range corresponding to the current parameter level. When the Bluetooth playback device determines that the stability parameter is greater than the upper threshold, the Bluetooth playback device can use the first parameter level adjacent to the current parameter level as the target parameter level and adjust the current parameter level to the target parameter level. The lower threshold corresponding to the first parameter level is greater than the upper threshold of the current parameter level. When the Bluetooth playback device determines that the stability parameter is less than the lower threshold, the Bluetooth playback device can use the second parameter level adjacent to the current parameter level as the target parameter level and adjust the current parameter level to the target parameter level. The upper threshold corresponding to the second parameter level is less than the lower threshold of the current parameter level.

[0095] It is easy to understand that the upper threshold value obtained by the Bluetooth playback device may be, for example, the C1 stability parameter threshold value and the lower threshold value may be, for example, the C2 stability parameter threshold value. The stability parameter obtained by the Bluetooth playback device may be, for example, the C3 stability parameter. The current parameter level obtained by the Bluetooth playback device may be, for example, the E2 parameter level. When the Bluetooth playback device determines that the stability parameter C3 stability parameter is greater than the upper threshold value C1 stability parameter threshold value, the Bluetooth playback device may use the first parameter level E3 parameter level adjacent to the current parameter level E2 parameter level as the target parameter level. Among them, the lower threshold value corresponding to the E3 parameter level is greater than the upper threshold value of the E2 parameter level. When the Bluetooth playback device determines that the stability parameter C3 stability parameter is less than the lower threshold value C2 stability parameter threshold value, the Bluetooth playback device may use the second parameter level E1 parameter level adjacent to the current parameter level E2 parameter level as the target parameter level. The upper threshold value corresponding to the E1 parameter level is less than the lower threshold value E2 parameter level.

[0096] According to some embodiments, when a Bluetooth playback device adjusts a current parameter level to a target parameter level based on a relationship between a stability parameter and a stability parameter threshold, the Bluetooth playback device may obtain the current parameter level and a first parameter level and a second parameter level in a parameter level ranking. The Bluetooth playback device may obtain a first stability parameter threshold corresponding to the first parameter level and a second stability parameter threshold corresponding to the second parameter level. When the Bluetooth playback device obtains the stability parameter, the first stability parameter threshold, and the second stability parameter threshold during audio data transmission, the Bluetooth playback device may adjust the current parameter level based on the stability parameter, the first stability parameter threshold, and the second stability parameter threshold.

[0097] It is easy to understand that the first parameter level is one level higher than the current parameter level in the parameter level ranking, the second parameter level is one level lower than the current parameter level in the parameter level ranking, and the first stable parameter threshold is greater than the second stable parameter threshold. The first parameter level does not specifically refer to a fixed parameter level; when the current parameter level changes, the first parameter level will also change accordingly. The second parameter level also does not specifically refer to a fixed parameter level; when the current parameter level changes, the second parameter level will also change accordingly. For example, when the current parameter level is E2, the first parameter level can be, for example, E3, and the second parameter level can be, for example, E1. The first stable parameter threshold corresponding to the E3 parameter level can be, for example, the C3 stable parameter threshold, and the second stable parameter threshold corresponding to the E1 parameter level can be, for example, the C1 stable parameter threshold. The C3 stable parameter threshold is greater than the C1 stable parameter threshold. For example, when the current parameter level is E3, the first parameter level can be, for example, E4, and the second parameter level can be, for example, E2.

[0098] It is easy to understand that when the current parameter level is the E2 parameter level, the first parameter level may be, for example, the E3 parameter level, and the second parameter level may be, for example, the E1 parameter level. The first stability parameter threshold corresponding to the E3 parameter level may be, for example, the C3 stability parameter threshold, and the second stability parameter threshold corresponding to the E1 parameter level may be, for example, the C1 stability parameter threshold. The stability parameter in the current audio data transmission process calculated by the Bluetooth playback device based on the sampling parameters may be, for example, the q5 sampling parameter. When the Bluetooth playback device determines that the q5 sampling parameter is greater than the C3 stability parameter threshold, the Bluetooth playback device may adjust the current parameter level E2 parameter level to the first parameter level E3 parameter level.

[0099] According to some embodiments, parameter level sorting refers to a parameter level sorting obtained by sorting the parameter levels in a preset order. The preset order can be, for example, a high-to-low order or a low-to-high order. The preset order of this embodiment can be, for example, a low-to-high order. For example, when a Bluetooth playback device receives a sorting instruction that carries preset order information, the Bluetooth playback device can sort the parameter levels according to the preset order information carried by the sorting instruction.

[0100] According to some embodiments, the sorting instruction obtained by the Bluetooth playback device may be, for example, to sort the E1 parameter level, E4 parameter level, E6 parameter level, E5 parameter level, E2 parameter level, E3 parameter level, and E7 parameter level in descending order. The parameter level sorting obtained by the Bluetooth playback device may be, for example, the E1 parameter level, E2 parameter level, E3 parameter level, E4 parameter level, E5 parameter level, E6 parameter level, and E7 parameter level.

[0101] It is easy to understand that when the Bluetooth playback device adjusts the current parameter level to the target parameter level based on the relationship between the stability parameter and the stability parameter threshold, the Bluetooth playback device can first determine the relationship between the stability parameter and the upper threshold, and then determine the relationship between the stability parameter and the lower threshold. The Bluetooth playback device can also first determine the relationship between the stability parameter and the lower threshold, and then determine the relationship between the stability parameter and the upper threshold. The Bluetooth playback device can simultaneously determine the relationship between the stability parameter and the upper and lower thresholds. Figure 7 A flow chart of a parameter level adjustment method according to an embodiment of the present application is shown. In this embodiment, the Bluetooth playback device may first determine the relationship between the stability parameter and the upper threshold, and then determine the relationship between the stability parameter and the lower threshold.

[0102] It is easy to understand that when the current parameter level is the E2 parameter level, the first parameter level can be, for example, the E3 parameter level, and the second parameter level can be, for example, the E1 parameter level. The upper limit threshold corresponding to the E2 parameter level can be, for example, the C3 stable parameter threshold, and the lower limit threshold corresponding to the E2 parameter level can be, for example, the C1 stable parameter threshold. The stability parameter in the current audio data transmission process calculated by the Bluetooth playback device based on the sampling parameter can be, for example, the q5 sampling parameter. When the Bluetooth playback device determines that the q5 sampling parameter is greater than the C3 stable parameter threshold, the Bluetooth playback device can determine that the first parameter level E3 parameter level is the target parameter level, and the Bluetooth playback device can adjust the current parameter level E2 parameter level to the first parameter level E3 parameter level. When the Bluetooth playback device determines that the q5 sampling parameter is less than the C1 stable parameter threshold, the Bluetooth playback device can determine that the second parameter level E1 parameter level is the target parameter level, and the Bluetooth playback device can adjust the current parameter level E2 parameter level to the second parameter level E1 parameter level. When the Bluetooth playback device determines that the q5 sampling parameter is less than the C3 stable parameter threshold and greater than the C1 stable parameter threshold, the Bluetooth playback device can determine that the current parameter level E2 parameter level is the target parameter level, and the Bluetooth playback device may not adjust the current parameter level.

[0103] According to some embodiments, when the Bluetooth playback device determines the target bit rate range based on the stability parameter and the stability parameter threshold, the Bluetooth playback device can determine the stability parameter based on the current stability parameter and the historical stability parameter, and determine the target bit rate range. Among them, the current stability parameter is the parameter of the Bluetooth playback device currently connected to the terminal device for the audio data transmission process. That is, the Bluetooth playback device can correspond to one stability parameter when it is connected to the terminal device once and performs one audio transmission. When the Bluetooth playback device determines the stability parameter of the current audio data transmission process based on the current stability parameter and the historical stability parameter, the Bluetooth playback device can determine the target bit rate range based on the stability parameter and the stability parameter threshold.

[0104] It is easy to understand that the current stability parameter obtained by the Bluetooth playback device may be, for example, the w1 stability parameter, and the historical stability parameters obtained by the Bluetooth playback device may be, for example, the w2 stability parameter, the w3 stability parameter, and the w4 stability parameter. The Bluetooth playback device may, for example, calculate the average stability parameter of the w1 stability parameter, the w2 stability parameter, the w3 stability parameter, and the w4 stability parameter, and determine the target bitrate range based on the average stability parameter and the stability parameter threshold.

[0105] According to some embodiments, Figure 8A flow chart of a method for determining a bit rate according to an embodiment of the present application is shown. When a terminal device is connected to a Bluetooth playback device, the terminal device can, for example, transmit audio data to the Bluetooth playback device at the current bit rate. The Bluetooth playback device can obtain a stability parameter during audio data transmission. The Bluetooth playback device can adjust the current parameter level to a target parameter level based on the stability parameter and the stability parameter threshold. The Bluetooth playback device can obtain a target bit rate range corresponding to the target parameter level in the bit rate mapping information. When the Bluetooth playback device obtains the target bit rate range, the Bluetooth playback device can store the target bit rate range.

[0106] S206: When the Bluetooth playback device is connected to the terminal device next time, the target bit rate range is sent to the terminal device to negotiate the bit rate of audio data transmission.

[0107] According to some embodiments, after the Bluetooth playback device obtains a target bitrate range based on the stability parameter, the next time the Bluetooth playback device and the terminal device are connected, the Bluetooth playback device may send the target bitrate range to the terminal device to negotiate the bitrate for audio data transmission. Upon receiving the target bitrate range, the terminal device may determine the bitrate for audio data transmission based on the target bitrate range and the bitrate range supported by the terminal itself.

[0108] It is easy to understand that the target bit rate range obtained by the Bluetooth playback device can be, for example, the e2 bit rate range. The Bluetooth playback device can store the target bit rate range in the Bluetooth playback device's memory. When the Bluetooth playback device is connected to the terminal device next time, the Bluetooth playback device can send the target bit rate range e2 bit rate range to the terminal device. When the terminal device receives the target bit rate range, the terminal device can also determine the bit rate for audio data transmission based on the received target bit rate range e2 bit rate range and the terminal device's own bit rate range, thereby improving the stability of audio data transmission while improving the user's sound quality experience.

[0109] According to some embodiments, when the terminal device obtains the target bit rate range sent by the Bluetooth playback device, the terminal device can directly transmit the audio data at the bit rate of the preset position in the target bit rate range. The terminal device can generate a prompt message, which can be, for example, the target bit rate range sent by the Bluetooth playback device, and whether to transmit the audio data at the bit rate of the preset position. For example, the terminal device can display the prompt message. At this time, the example schematic diagram of the terminal device interface can be as follows: Figure 9 When the terminal device receives the confirmation instruction of the prompt information, the terminal device can transmit the audio data at the bit rate of the preset position.

[0110] Optionally, when the Bluetooth playback device is connected to the terminal device next time, for example, the terminal device may receive a connection instruction with the Bluetooth playback device. The connection instruction includes but is not limited to a voice connection instruction, a click connection instruction, and a timed connection instruction. For example, when the terminal device receives a click connection instruction, the terminal device may send a connection request to the Bluetooth playback device corresponding to the click instruction. At this time, an example diagram of the terminal device interface may be as follows: Figure 10 When the terminal device receives the confirmation instruction from the Bluetooth playback device, the terminal device can be connected to the Bluetooth playback device.

[0111] According to some embodiments, when the terminal device connected to the Bluetooth playback device changes, the Bluetooth playback device can re-acquire the stability parameters during the audio data transmission process and re-determine the target bit rate range. Therefore, the bit rate determination method of the embodiment of the present application can be used in scenarios where the terminal device connected to the Bluetooth playback device changes.

[0112] In one or more embodiments of the present application, by obtaining parameter information within a number of unit time lengths during the current audio data transmission process, a number of sampling parameters corresponding to the number of unit time lengths can be obtained based on the parameter information within the number of unit time lengths and the weight coefficients corresponding to the parameter information, and the stability parameters during the current audio data transmission process are calculated based on the sampling parameters. This can improve the accuracy of sampling parameter acquisition, improve the accuracy of stability parameter acquisition, and thus improve the accuracy of target rate range determination. Secondly, the current parameter level corresponding to the current rate range is obtained, and the current parameter level is adjusted according to the stability parameter threshold and the stability parameter to obtain the target parameter level. This can improve the accuracy of parameter level adjustment, and thus improve the accuracy of target rate range determination. Finally, the rate range corresponding to the target parameter level is obtained from the rate mapping information as the target rate range. The target rate range is used to negotiate the rate of audio data transmission when the Bluetooth playback device and the terminal device are next connected. Therefore, the rate acquisition step is reduced, the rate of audio data transmission can be adjusted, and the transmission environment of the terminal device does not need to be obtained. This can reduce the impact of different user bodies and different Bluetooth antenna performance on audio data transmission, improve the accuracy of rate acquisition, improve the stability of audio data transmission, and improve the user's sound quality experience.

[0113] The following will be combined with the Figure 11-13 , the code rate determination device provided in the embodiment of the present application is introduced in detail. Figure 11-13 The code rate determination device shown is used to execute the present application Figure 4-10 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 4-10 The embodiment shown.

[0114] See Figure 11 , which shows a schematic diagram of the structure of the bit rate determination device according to an embodiment of the present application. The bit rate determination device 1100 can be implemented as all or part of the user terminal through software, hardware, or a combination of both.

[0115] According to some embodiments, the bit rate determination device 1100 includes a parameter acquisition unit 1101 and an information determination unit 1102, which are specifically configured to:

[0116] The parameter acquisition unit 1101 is used to obtain the stability parameter of the current audio data transmission process;

[0117] The range acquisition unit 1102 is configured to acquire a target bit rate range according to the stability parameter. The target bit rate range is used to negotiate the bit rate for audio data transmission when the Bluetooth playback device and the terminal device are next connected.

[0118] According to some embodiments, Figure 12 FIG. 1 is a schematic diagram showing the structure of a bit rate determination device according to an embodiment of the present application. Figure 12 As shown, the range acquisition unit 1102 includes a bit rate range acquisition subunit 1112 and a range adjustment subunit 1122. The range acquisition unit 1102 is configured to acquire the target bit rate range according to the stability parameter:

[0119] The range information acquisition subunit 1112 is used to obtain the current bit rate range, which is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device and the terminal device establish the current connection;

[0120] The information adjustment subunit 1122 is configured to adjust the current bit rate range according to the stability parameter to obtain a target bit rate range.

[0121] According to some embodiments, the range adjustment subunit 1122 is configured to adjust the current bit rate range according to the stability parameter to obtain the target bit rate range, specifically to:

[0122] Get the current parameter level corresponding to the current bitrate range;

[0123] Adjust the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level;

[0124] The bit rate range corresponding to the target parameter level is obtained from the bit rate mapping information as the target bit rate range.

[0125] According to some embodiments, the range adjustment subunit 1122 is configured to adjust the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level, specifically to:

[0126] Get the stable parameter threshold corresponding to the current parameter level. The stable parameter threshold includes the upper threshold and the lower threshold.

[0127] The current parameter level is adjusted to the target parameter level according to the relationship between the stability parameter and the stability parameter threshold.

[0128] According to some embodiments, the range adjustment subunit 1122 is configured to adjust the current parameter level to the target parameter level based on the relationship between the stability parameter and the stability parameter threshold, specifically to:

[0129] When the stability parameter is greater than the upper threshold, the first parameter level adjacent to the current parameter level is used as the target parameter level, and the lower threshold corresponding to the first parameter level is greater than the upper threshold of the current parameter level;

[0130] When the stability parameter is less than the lower threshold, the second parameter level adjacent to the current parameter level is used as the target parameter level, and the upper threshold corresponding to the second parameter level is less than the lower threshold of the current parameter level.

[0131] According to some embodiments, the bit rate determination apparatus 1100 further includes a range sending unit 1103, configured to send the target bit rate range to the terminal device when the Bluetooth playback device connects to the terminal device next time, so as to negotiate the bit rate for audio data transmission.

[0132] According to some embodiments, Figure 13 FIG. 1 is a schematic diagram showing the structure of a bit rate determination device according to an embodiment of the present application. Figure 13 As shown, the parameter acquisition unit 1101 includes a parameter information acquisition subunit 1111, a parameter acquisition subunit 1121 and a parameter calculation subunit 1131. The parameter acquisition unit 1101 is used to obtain the stability parameter during the audio data transmission process:

[0133] The parameter information acquisition subunit 1111 is used to acquire parameter information within a plurality of time units during the current audio data transmission process; the parameter information includes at least one of the number of playback pauses, the signal strength value, and the transmission interval of the audio data packet;

[0134] The parameter acquisition subunit 1121 is used to acquire a plurality of sampling parameters corresponding to the plurality of unit time lengths according to the parameter information within the plurality of unit time lengths and the weight coefficients corresponding to the parameter information;

[0135] The parameter calculation subunit 1131 is configured to calculate a stability parameter in the current audio data transmission process according to a plurality of sampling parameters.

[0136] According to some embodiments, the parameter calculation subunit 1131 is configured to calculate the stability parameter in the current audio data transmission process based on a plurality of sampling parameters, specifically to:

[0137] Filtering a number of sampling parameters according to a preset method to obtain filtered sampling parameters;

[0138] The average sampling parameter of the filtered sampling parameters is calculated, and the average sampling parameter is used as a stability parameter in the current audio data transmission process.

[0139] In one or more embodiments of the present application, by obtaining the stability parameter during the current audio data transmission process, a target bit rate range can be obtained based on the stability parameter, and the target bit rate range is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device and the terminal device are next connected. Therefore, the bit rate determination device can negotiate the bit rate of audio data transmission based on the stability parameter during the audio data transmission process without obtaining the transmission environment of the terminal device. This can reduce the impact of different users' bodies and different Bluetooth antenna performance on audio data transmission, improve the accuracy of bit rate acquisition, improve the stability of audio data transmission, and improve the user's sound quality experience.

[0140] See Figure 14 , is a schematic diagram of the structure of a Bluetooth playback device provided in an embodiment of the present application. Figure 14 As shown, the Bluetooth playback device 1400 may include: at least one processor 1401 , at least one network interface 1404 , a user interface 1403 , a memory 1405 , and at least one communication bus 1402 .

[0141] The communication bus 1402 is used to implement the connection and communication between these components.

[0142] The user interface 1403 may include a speaker, and the optional user interface 1403 may also include a standard wired interface or a wireless interface.

[0143] The network interface 1404 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0144] The processor 1401 may include one or more processing cores. The processor 1401 utilizes various interfaces and circuits to connect various components within the Bluetooth playback device 1400. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 1405, and accessing data stored in the memory 1405, the processor 1401 performs various functions and processes data within the Bluetooth playback device 1400. Optionally, the processor 1401 may be implemented using at least one of the following hardware forms: a digital signal processing (DSP), a field-programmable gate array (FPGA), or a programmable logic array (PLA). The processor 1401 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. The CPU primarily processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content displayed on the display; and the modem handles wireless communications. It is understood that the modem may not be integrated into the processor 1401 and may be implemented as a separate chip.

[0145] Among them, the memory 1405 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 1405 includes a non-transitory computer-readable storage medium. The memory 1405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 1405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 1405 may also be optionally at least one storage device located away from the aforementioned processor 1401. As Figure 14 As shown, the memory 1405 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application for determining a bit rate.

[0146] exist Figure 14In the Bluetooth playback device 1400 shown, the user interface 1403 is mainly used to provide an input interface for the user and obtain user input data; and the processor 1401 can be used to call the bit rate determination application stored in the memory 1405 and specifically perform the following operations:

[0147] Get the stability parameters of the current audio data transmission process;

[0148] The target bit rate range is obtained based on the stability parameter. The target bit rate range is used to negotiate the bit rate for audio data transmission when the Bluetooth playback device and the terminal device are next connected.

[0149] According to some embodiments, when the processor 1401 is configured to obtain a target bit rate range according to a stability parameter, the following operations are specifically performed:

[0150] Get the current bitrate range, which is used to negotiate the audio data transmission bitrate when the Bluetooth playback device establishes the current connection with the terminal device;

[0151] The current bitrate range is adjusted according to the stability parameter to obtain the target bitrate range.

[0152] According to some embodiments, when the processor 1401 is configured to adjust the current bit rate range according to the stability parameter to obtain the target bit rate range, the following operations are specifically performed:

[0153] Get the current parameter level corresponding to the current bitrate range;

[0154] Adjust the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level;

[0155] The bit rate range corresponding to the target parameter level is obtained from the bit rate mapping information as the target bit rate range.

[0156] According to some embodiments, when the processor 1401 is configured to adjust the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level, the processor 1401 specifically performs the following operations:

[0157] Get the stable parameter threshold corresponding to the current parameter level. The stable parameter threshold includes the upper threshold and the lower threshold.

[0158] The current parameter level is adjusted to the target parameter level according to the relationship between the stability parameter and the stability parameter threshold.

[0159] According to some embodiments, when the processor 1401 is configured to adjust the current parameter level to the target parameter level according to the relationship between the stability parameter and the stability parameter threshold, the following operations are specifically performed:

[0160] When the stability parameter is greater than the upper threshold, the first parameter level adjacent to the current parameter level is used as the target parameter level, and the lower threshold corresponding to the first parameter level is greater than the upper threshold of the current parameter level;

[0161] When the stability parameter is less than the lower threshold, the second parameter level adjacent to the current parameter level is used as the target parameter level, and the upper threshold corresponding to the second parameter level is less than the lower threshold of the current parameter level.

[0162] According to some embodiments, the processor 1401 is further configured to specifically perform the following operations:

[0163] When the Bluetooth playback device connects to the terminal device next time, the target bit rate range is sent to the terminal device to negotiate the bit rate of audio data transmission.

[0164] According to some embodiments, when the processor 1401 is configured to obtain a stability parameter during audio data transmission, the following operations are specifically performed:

[0165] During the current audio data transmission process, parameter information within a plurality of time units is obtained; the parameter information includes at least one of the number of playback pauses, the signal strength value, and the transmission interval of the audio data packet;

[0166] Obtaining a plurality of sampling parameters corresponding to the plurality of unit time lengths according to the parameter information within the plurality of unit time lengths and the weight coefficients corresponding to the parameter information;

[0167] The stability parameter of the current audio data transmission process is calculated based on a plurality of sampling parameters.

[0168] According to some embodiments, when the processor 1401 is configured to calculate a stability parameter in a current audio data transmission process based on a plurality of sampling parameters, the following operations are specifically performed:

[0169] Filtering a number of sampling parameters according to a preset method to obtain filtered sampling parameters;

[0170] The average sampling parameter of the filtered sampling parameters is calculated, and the average sampling parameter is used as a stability parameter in the current audio data transmission process.

[0171] In one or more embodiments of the present application, by obtaining the stability parameter during the current audio data transmission process, a target bit rate range can be obtained based on the stability parameter, and the target bit rate range is used to negotiate the bit rate for audio data transmission when the Bluetooth playback device and the terminal device are next connected. Therefore, the Bluetooth playback device can negotiate the bit rate for audio data transmission based on the stability parameter during the audio data transmission process without obtaining the transmission environment of the terminal device. This can reduce the impact of different users' bodies and different Bluetooth antenna performance on audio data transmission, improve the accuracy of bit rate acquisition, improve the stability of audio data transmission, and improve the user's sound quality experience.

[0172] The present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above method. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a microdrive, a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0173] An embodiment of the present application further provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute some or all of the steps of any one of the bit rate determination methods described in the above method embodiments.

[0174] Those skilled in the art will clearly understand that the technical solution of the present application can be implemented with the help of software and / or hardware. "Unit" and "module" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0175] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

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

[0177] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the units is merely a logical function division. In actual implementation, there may be other division methods, 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 service interface, and the indirect coupling or communication connection of the device or unit can be electrical or other forms.

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

[0179] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0180] 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 memory. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, including a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0181] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0182] The above is only an exemplary embodiment of the present disclosure and cannot be used to limit the scope of the present disclosure. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure herein, those skilled in the art will easily think of other embodiments of the present disclosure. This application is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not recorded in the present disclosure. The description and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A method for determining a bit rate, applied to a Bluetooth playback device, characterized in that: The method comprises: Get the stability parameters of the current audio data transmission process; Obtaining a target bit rate range according to the stability parameter, wherein the target bit rate range is used to negotiate a bit rate for audio data transmission when the Bluetooth playback device and the terminal device are next connected; The obtaining of the stability parameter during the current audio data transmission process includes: During the current audio data transmission process, parameter information within a plurality of time units is obtained; the parameter information includes at least one of the number of playback pauses, the signal strength value, and the transmission interval of the audio data packet; Acquire a plurality of sampling parameters corresponding to the plurality of unit time lengths according to the parameter information within the plurality of unit time lengths and the weight coefficients corresponding to the parameter information; Filtering the plurality of sampling parameters according to a preset method to obtain filtered sampling parameters; Calculating an average sampling parameter of the filtered sampling parameters, and using the average sampling parameter as a stability parameter during the current audio data transmission process; The obtaining a target bit rate range according to the stability parameter includes: Obtaining a current bit rate range, where the current bit rate range is used to negotiate a bit rate for audio data transmission when the Bluetooth playback device and the terminal device establish a current connection; Obtaining the current parameter level corresponding to the current bit rate range; Adjusting the current parameter level according to the stability parameter threshold and the stability parameter to obtain a target parameter level; The bit rate range corresponding to the target parameter level is obtained from the bit rate mapping information as the target bit rate range.

2. The method according to claim 1, characterized in that The adjusting the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level includes: Obtaining a stable parameter threshold corresponding to the current parameter level, the stable parameter threshold including an upper threshold and a lower threshold; The current parameter level is adjusted to the target parameter level according to a relationship between the stability parameter and the stability parameter threshold.

3. The method according to claim 2, characterized in that The adjusting the current parameter level to the target parameter level according to the relationship between the stability parameter and the stability parameter threshold comprises: When the stability parameter is greater than the upper threshold, a first parameter level adjacent to the current parameter level is used as the target parameter level, and the lower threshold corresponding to the first parameter level is greater than the upper threshold of the current parameter level; When the stability parameter is less than the lower threshold, a second parameter level adjacent to the current parameter level is used as the target parameter level, and the upper threshold corresponding to the second parameter level is less than the lower threshold of the current parameter level.

4. The method according to claim 1, wherein The method further comprises: When the Bluetooth playback device is connected to the terminal device next time, the target bit rate range is sent to the terminal device to negotiate the bit rate of audio data transmission.

5. A bit rate determination device, characterized in that: Applied to a Bluetooth playback device, the device comprises: A parameter acquisition unit, used to obtain stability parameters during the current audio data transmission process; an information determining unit, configured to obtain a target bit rate range according to the stability parameter, wherein the target bit rate range is used to negotiate a bit rate for audio data transmission when the Bluetooth playback device and the terminal device are next connected; The parameter acquisition unit is specifically configured to: acquire parameter information within a plurality of unit time lengths during the current audio data transmission process; the parameter information includes at least one of the number of playback freezes, a signal strength value, and a transmission interval duration of an audio data packet; acquire a plurality of sampling parameters corresponding to the plurality of unit time lengths based on the parameter information within the plurality of unit time lengths and a weight coefficient corresponding to the parameter information; filter the plurality of sampling parameters according to a preset method to obtain filtered sampling parameters; calculate an average sampling parameter of the filtered sampling parameters, and use the average sampling parameter as a stability parameter during the current audio data transmission process; The information determination unit is specifically used to: obtain a current bit rate range, which is used to negotiate the bit rate of audio data transmission when the Bluetooth playback device establishes a current connection with the terminal device; obtain a current parameter level corresponding to the current bit rate range; adjust the current parameter level according to a stability parameter threshold and the stability parameter to obtain a target parameter level; and obtain the bit rate range corresponding to the target parameter level in the bit rate mapping information as the target bit rate range.

6. A Bluetooth playback device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When a processor executes the computer program, the method according to any one of claims 1 to 4 is implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Sound quality adjustment method and system, main unit end and storage medium

    CN107170460A

  • Data transmission method, data transmission apparatus, computer device and storage medium

    CN108769805A

  • Bit-rate optimization method, apparatus, electronic device, and storage medium

    CN109041024A