[go: up one dir, main page]

CN115240719A - Cache capacity determination method, device, Bluetooth playback device and storage medium - Google Patents

Cache capacity determination method, device, Bluetooth playback device and storage medium Download PDF

Info

Publication number
CN115240719A
CN115240719A CN202110444012.3A CN202110444012A CN115240719A CN 115240719 A CN115240719 A CN 115240719A CN 202110444012 A CN202110444012 A CN 202110444012A CN 115240719 A CN115240719 A CN 115240719A
Authority
CN
China
Prior art keywords
parameter
audio data
sampling
stability
level
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110444012.3A
Other languages
Chinese (zh)
Other versions
CN115240719B (en
Inventor
刘行
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110444012.3A priority Critical patent/CN115240719B/en
Publication of CN115240719A publication Critical patent/CN115240719A/en
Application granted granted Critical
Publication of CN115240719B publication Critical patent/CN115240719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/10537Audio or video recording
    • G11B2020/10546Audio or video recording specifically adapted for audio data
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/1062Data buffering arrangements, e.g. recording or playback buffers
    • G11B2020/1075Data buffering arrangements, e.g. recording or playback buffers the usage of the buffer being restricted to a specific kind of data
    • G11B2020/10759Data buffering arrangements, e.g. recording or playback buffers the usage of the buffer being restricted to a specific kind of data content data

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application belongs to the technical field of computers, and particularly relates to a cache capacity determination method and device, a Bluetooth playing device and a storage medium. The cache capacity determining method is applied to Bluetooth playing equipment and comprises the following steps: acquiring sampling parameters of audio data transmission within historical sampling duration; if the number of the sampling parameters is larger than or equal to a number threshold, acquiring stability parameters of audio data transmission in the historical sampling duration based on the sampling parameters; and acquiring a target cache capacity according to the stability parameter, wherein the target cache capacity is the cache capacity of audio data when the Bluetooth playing device is connected with the terminal device next time. By adopting the method and the device, the accuracy and the efficiency of determining the cache capacity can be improved while the consumption of test resources is reduced.

Description

缓存容量确定方法、装置、蓝牙播放设备及存储介质Cache capacity determination method, device, Bluetooth playback device and storage medium

技术领域technical field

本申请属于计算机技术领域,具体而言,涉及一种缓存容量确定方法、装置、蓝牙播放设备及存储介质。The present application belongs to the field of computer technology, and in particular, relates to a cache capacity determination method, device, Bluetooth playback device and storage medium.

背景技术Background technique

随着科学技术的发展,通信技术也得到了飞速发展,使得蓝牙播放设备的普及率越来越高。终端设备可以在接收到蓝牙播放设备的连接指令时,与蓝牙播放设备进行连接。当蓝牙播放设备和终端设备连接时,蓝牙播放设备可以接收终端设备传输的音频数据,并播放该音频数据,以方便用户的使用。With the development of science and technology, communication technology has also developed rapidly, making the popularity of Bluetooth playback devices higher and higher. The terminal device can connect with the Bluetooth playback device when receiving the connection instruction from the Bluetooth playback device. When the Bluetooth playback device and the terminal device are connected, the Bluetooth playback device can receive the audio data transmitted by the terminal device, and play the audio data, so as to facilitate the use of the user.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种缓存容量确定方法、装置、蓝牙播放设备及存储介质,可以在减少测试资源的耗费的同时提高缓存容量确定的准确性和效率。本申请实施例的技术方案如下:The embodiments of the present application provide a method, device, Bluetooth playback device, and storage medium for determining a cache capacity, which can improve the accuracy and efficiency of determining the cache capacity while reducing the consumption of test resources. The technical solutions of the embodiments of the present application are as follows:

第一方面,本申请实施例提供一种缓存容量确定方法,应用于蓝牙播放设备,所述方法包括:In a first aspect, an embodiment of the present application provides a method for determining a cache capacity, which is applied to a Bluetooth playback device, and the method includes:

在历史采样时长内,获取音频数据传输的采样参数;Obtain the sampling parameters of audio data transmission within the historical sampling duration;

若所述采样参数的数量大于或者等于数量阈值,则基于所述采样参数获取所述历史采样时长内音频数据传输的稳定性参数;If the quantity of the sampling parameters is greater than or equal to the quantity threshold, obtain the stability parameter of the audio data transmission within the historical sampling duration based on the sampling parameters;

根据所述稳定性参数获取目标缓存容量,所述目标缓存容量为所述蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。A target buffer capacity is obtained according to the stability parameter, where the target buffer capacity is the buffer capacity of audio data when the Bluetooth playback device and the terminal device are next connected.

第二方面,本申请实施例提供一种缓存容量确定装置,所述装置包括:In a second aspect, an embodiment of the present application provides an apparatus for determining a cache capacity, and the apparatus includes:

采样参数获取单元,用于在历史采样时长内,获取音频数据传输的采样参数;a sampling parameter obtaining unit, used for obtaining sampling parameters of audio data transmission within the historical sampling duration;

稳定性参数获取单元,用于若所述采样参数的数量大于或者等于数量阈值,则基于所述采样参数获取所述历史采样时长内音频数据传输的稳定性参数;a stability parameter obtaining unit, configured to obtain the stability parameter of audio data transmission within the historical sampling duration based on the sampling parameter if the quantity of the sampling parameter is greater than or equal to a quantity threshold;

缓存容量获取单元,用于根据所述稳定性参数获取目标缓存容量,所述目标缓存容量为所述蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。A buffer capacity acquisition unit, configured to acquire a target buffer capacity according to the stability parameter, where the target buffer capacity is the buffer capacity of audio data when the Bluetooth playback device and the terminal device are next connected.

第三方面,一种蓝牙播放设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一方面任一项所述的方法。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, where the processor implements the first aspect when executing the computer program The method of any one.

第四方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, implements any of the methods described above.

第五方面,本申请实施例提供一种计算机程序产品,其中,上述计算机程序产品包括存储计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the program as described in the first embodiment of the present application. Some or all of the steps described in an aspect. The computer program product may be a software installation package.

本申请一些实施例提供的技术方案带来的有益效果至少包括:The beneficial effects brought by the technical solutions provided by some embodiments of the present application include at least:

在本申请一个或多个实施例中,通过在历史采样时长内,获取音频数据传输的采样参数,若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数,根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。因此,只有在采样参数的数量大于或者等于数量阈值时,才基于稳定性参数动态的确定目标缓存容量,无需进行大量的测试确定固定缓存容量,减少测试资源耗费较高的情况,可以减少测试资源的耗费,同时,无需每次音频数据播放后对传输情况进行识别,可以减少缓存容量的调节的滞后性,可以兼顾音频数据传输过程中的延时性和抗干扰性,可以在减少测试资源的耗费的同时提高缓存容量确定的准确性和效率。In one or more embodiments of the present application, by acquiring the sampling parameters of audio data transmission within the historical sampling duration, if the number of sampling parameters is greater than or equal to the number threshold, the sampling parameters of the audio data transmission in the historical sampling duration are acquired based on the sampling parameters The stability parameter is to obtain the target cache capacity according to the stability parameter, and the target cache capacity is the cache capacity of the audio data when the Bluetooth playback device and the terminal device are next connected. Therefore, only when the number of sampling parameters is greater than or equal to the number threshold, the target cache capacity can be dynamically determined based on the stability parameters. There is no need to perform a large number of tests to determine the fixed cache capacity, which can reduce the high consumption of test resources and reduce test resources. At the same time, there is no need to identify the transmission situation after each audio data playback, which can reduce the lag in the adjustment of the buffer capacity, and can take into account the delay and anti-interference in the audio data transmission process, which can reduce the amount of test resources. At the same time, the accuracy and efficiency of cache capacity determination are improved.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。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 accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示出应用于本申请实施例的一种缓存容量确定方法的背景示意图;1 shows a schematic background diagram of a method for determining a cache capacity applied to an embodiment of the present application;

图2示出应用于本申请实施例的一种码率确定方法的背景示意图;FIG. 2 shows a schematic background diagram of a method for determining a code rate applied to an embodiment of the present application;

图3示出应用于本申请实施例的一种缓存容量确定方法的系统架构图;3 shows a system architecture diagram of a method for determining a cache capacity applied to an embodiment of the present application;

图4示出本申请实施例的一种缓存容量确定方法的流程示意图;4 shows a schematic flowchart of a method for determining a cache capacity according to an embodiment of the present application;

图5示出本申请实施例的一种缓存容量确定方法的流程示意图;5 shows a schematic flowchart of a method for determining a cache capacity according to an embodiment of the present application;

图6示出本申请实施例一种蓝牙播放设备存储采样参数的举例示意图;6 shows an example schematic diagram of a Bluetooth playback device storing sampling parameters according to an embodiment of the present application;

图7示出本申请实施例一种参数级别调整方法的流程示意图;FIG. 7 shows a schematic flowchart of a parameter level adjustment method according to an embodiment of the present application;

图8示出本申请实施例的一种蓝牙播放设备界面的举例示意图;8 shows a schematic diagram of an example of an interface of a Bluetooth playback device according to an embodiment of the present application;

图9示出本申请实施例的一种缓存容量确定装置的结构示意图;FIG. 9 shows a schematic structural diagram of an apparatus for determining a cache capacity according to an embodiment of the present application;

图10示出本申请实施例的一种缓存容量确定装置的结构示意图;FIG. 10 shows a schematic structural diagram of an apparatus for determining a cache capacity according to an embodiment of the present application;

图11示出本申请实施例的一种缓存容量确定装置的结构示意图;11 shows a schematic structural diagram of an apparatus for determining a cache capacity according to an embodiment of the present application;

图12示出本申请实施例的一种蓝牙播放设备的结构示意图。FIG. 12 shows a schematic structural diagram of a Bluetooth playback device according to an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅为本申请实施例的一部分,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

在本申请的描述中,需要理解的是,术语“第一”、“第二”等仅用于描述目的,而不能理解为指示或暗示相对重要性。在本申请的描述中,需要说明的是,除非另有明确的规定和限定,“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。此外,在本申请的描述中,除非另有说明,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In the description of the present application, it should be understood that the terms "first", "second" and the like are used for descriptive purposes only, and should not be construed as indicating or implying relative importance. In the description of the present application, it should be noted that, unless otherwise expressly specified and defined, "including" and "having" and any modifications thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific situations. Also, in the description of the present application, unless otherwise specified, "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship.

随着科学技术的发展,终端设备的种类越来越多,终端设备可以支持的应用功能也越来越多。图1示出应用于本申请实施例的一种缓存容量确定方法的背景示意图。终端设备可以支持蓝牙功能。例如终端设备可以使用蓝牙功能将音频数据发送至蓝牙播放设备,以便蓝牙播放设备可以播放该音频数据,提高音频数据播放的方便性,提升用户的使用体验。如图1所示,蓝牙播放设备中设置有固定缓存容量。该蓝牙播放设备例如可以是蓝牙手表。当蓝牙播放设备与终端设备建立连接之后,蓝牙播放设备可以在接收到终端发送的音频数据时,将接收到的音频数据缓存至该固定缓存容量对应的缓存区域。当蓝牙播放设备检测到缓存区域缓存的音频数据缓存完成时,蓝牙播放设备可以输出该音频数据。With the development of science and technology, there are more and more types of terminal devices, and more and more application functions that terminal devices can support. FIG. 1 shows a schematic background diagram of a method for determining a cache capacity applied to an embodiment of the present application. The terminal device may support the Bluetooth function. For example, the terminal device can use the Bluetooth function to send audio data to the Bluetooth playback device, so that the Bluetooth playback device can play the audio data, which improves the convenience of audio data playback and improves the user experience. As shown in Figure 1, a fixed buffer capacity is set in the Bluetooth playback device. The Bluetooth playback device can be, for example, a Bluetooth watch. After the Bluetooth playback device establishes a connection with the terminal device, the Bluetooth playback device may buffer the received audio data in a buffer area corresponding to the fixed buffer capacity when receiving the audio data sent by the terminal. When the Bluetooth playback device detects that the buffering of the audio data buffered in the buffer area is completed, the Bluetooth playback device can output the audio data.

易于理解的是,当蓝牙播放设备设置固定缓存容量时,当该固定缓存容量较大时,音频数据的播放延时比较高。当该固定缓存容量较小时,音频数据的传输稳定性较差。因此用户需要进行大量的测试确定固定缓存容量,以使固定缓存容量可以兼顾音频数据播放延时性和传输稳定性,导致测试资源耗费较高。It is easy to understand that when the Bluetooth playback device sets a fixed buffer capacity, when the fixed buffer capacity is large, the playback delay of the audio data is relatively high. When the fixed buffer capacity is small, the transmission stability of the audio data is poor. Therefore, users need to perform a large number of tests to determine the fixed buffer capacity, so that the fixed buffer capacity can take into account the audio data playback delay and transmission stability, resulting in high test resource consumption.

根据一些实施例,图2示出应用于本申请实施例的一种缓存容量确定方法的背景示意图。如图2所示,蓝牙播放设备可以基于音频数据播放后的传输环境对缓存容量范围进行调整。当蓝牙播放设备确定音频数据的当前传输环境不符合预设环境要求时,蓝牙播放设备可以增加音频数据的缓冲量,缓存较多的音频数据以便提高音频数据传输的稳定性。例如蓝牙播放设备到音频数据传输不稳定时,可以增加缓存数据,提高音频数据传输的稳定性。当蓝牙播放设备确定音频数据的当前传输环境符合预设环境要求时,终端设备可以减少音频数据的缓冲量,降低音频数据的播放延时,提高用户的音质体验。蓝牙播放设备到音频数据传输较稳定时,可以减小缓存数据,可以提供更好的延时体验。当时蓝牙播放设备基于当前传输环境对缓存容量进行调解时,不能确定缓存容量的具体容量值,并且每次播放音频数据后才识别传输情况,不能对大量的数据进行分析,导致缓存容量的调节比较滞后,使得缓存容量确定的准确性和效率较低。According to some embodiments, FIG. 2 shows a schematic background diagram of a method for determining a cache capacity applied to an embodiment of the present application. As shown in FIG. 2 , the Bluetooth playback device can adjust the buffer capacity range based on the transmission environment after the audio data is played. When the Bluetooth playback device determines that the current transmission environment of the audio data does not meet the preset environmental requirements, the Bluetooth playback device can increase the buffering amount of the audio data, and buffer more audio data to improve the stability of the audio data transmission. For example, when the transmission of audio data from a Bluetooth playback device is unstable, buffer data can be added to improve the stability of audio data transmission. When the Bluetooth playback device determines that the current transmission environment of the audio data meets the preset environment requirements, the terminal device can reduce the buffering amount of the audio data, reduce the playback delay of the audio data, and improve the user's sound quality experience. When the transmission of audio data from the Bluetooth playback device is relatively stable, the buffered data can be reduced, which can provide a better delay experience. At that time, when the Bluetooth playback device adjusted the buffer capacity based on the current transmission environment, the specific capacity value of the buffer capacity could not be determined, and the transmission status was only identified after each audio data was played, and a large amount of data could not be analyzed, resulting in the adjustment and comparison of the buffer capacity. Lag, making cache capacity determination less accurate and efficient.

根据一些实施例,图3示出应用于本申请实施例的一种缓存容量确定方法的系统架构图。如图3所示,本申请实施例的执行主体是蓝牙播放设备。该蓝牙播放设备包括但不限于蓝牙模块、蓝牙耳机、蓝牙车载、蓝牙MP3播放器(Moving Picture Experts GroupAudio Layer-3)等。该蓝牙播放设备包括扬声器。终端设备是指与蓝牙播放设备进行音频数据传输的设备,该终端设备可以是具有蓝牙功能的终端设备,该终端设备包括但不限于:可穿戴设备、手持设备、个人电脑、平板电脑、车载设备、智能手机、计算设备或连接到无线调制解调器的其它处理设备等。在不同的网络中缓存容量确定装置可以叫做不同的名称,例如:用户设备、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置、蜂窝电话、无绳电话、个人数字处理(personal digital assistant,PDA)、第五代移动通信技术(5th generation mobilenetworks,5G)网络或未来演进网络中的缓存容量确定装置等。According to some embodiments, FIG. 3 shows a system architecture diagram of a cache capacity determination method applied to an embodiment of the present application. As shown in FIG. 3 , 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 vehicle, a Bluetooth MP3 player (Moving Picture Experts Group Audio Layer-3), and the like. The Bluetooth playback device includes a speaker. A terminal device refers to a device that performs audio data transmission with a Bluetooth playback device. The terminal device can be a terminal device with Bluetooth function. The terminal device includes but is not limited to: wearable devices, handheld devices, personal computers, tablet computers, and vehicle-mounted devices. , smartphone, computing device, or other processing device connected to a wireless modem, etc. The cache capacity determination device may be called by different names in different networks, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile equipment, user terminal, terminal, Buffer size determination in wireless communication devices, user agents or user equipment, cellular telephones, cordless telephones, personal digital assistants (PDAs), 5th generation mobile networks (5G) networks or future evolved networks device etc.

根据一些实施例,蓝牙播放设备可以通过网络和终端设备连接。网络用以在蓝牙播放设备和终端设备之间提供通信链路。网络可以包括各种连接类型,例如无线通信链路等。应该理解,图3中的蓝牙播放设备、网络和终端设备的数目仅仅是示意性的。根据现实需要,可以具有任意数目的蓝牙播放设备、网络和终端设备。比如终端设备可以是多个终端设备,蓝牙播放设备可以选择其中一个终端设备进行连接,以便可以接收该终端设备发送的音频数据,并播放该音频数据。According to some embodiments, the Bluetooth playback device can be connected to the terminal device through a network. The network is used to provide a communication link between the Bluetooth playback device and the terminal device. A network may include various connection types, such as wireless communication links, and the like. It should be understood that the numbers of Bluetooth playback devices, networks and terminal devices in FIG. 3 are only illustrative. According to actual needs, there can be any number of Bluetooth playback devices, networks and terminal devices. For example, the terminal device may be multiple terminal devices, and the Bluetooth playback device may select one of the terminal devices for connection, so as to receive the audio data sent by the terminal device and play the audio data.

下面结合具体的实施例对本申请进行详细说明。The present application will be described in detail below with reference to specific embodiments.

在一个实施例中,如图4所示,特提出了一种缓存容量确定方法,该方法可依赖于计算机程序实现,可运行于基于具有音频播放功能的蓝牙播放设备上。该计算机程序可集成在应用中,也可作为独立的工具类应用运行。In one embodiment, as shown in FIG. 4 , a buffer capacity determination method is proposed, which can be implemented by relying on a computer program, and can be run on a Bluetooth playback device with an audio playback function. The computer program can be integrated into an application or run as a stand-alone utility application.

具体的,该缓存容量确定方法包括:Specifically, the cache capacity determination method includes:

S101,在历史采样时长内,获取音频数据传输的采样参数;S101, obtaining sampling parameters for audio data transmission within the historical sampling duration;

根据一些实施例,采样时长是指蓝牙播放设备获取音频数据传输的采样参数的时长,该采样时长并不特指某一固定采样时长。例如当蓝牙播放设备接收到针对采样时长的修改指令时,蓝牙播放设备可以基于该时长修改指令对采样时长进行修改。该时长修改指令包括但不限于语音时长修改指令、点击时长修改指令、文字时长修改指令等等。该时长修改指令还可以是用户在终端设备输入且由终端设备发送至蓝牙播放设备的修改指令。According to some embodiments, the sampling duration refers to the duration during which the Bluetooth playback device obtains the sampling parameters for audio data transmission, and the sampling duration does not specifically refer to a certain fixed sampling duration. For example, when the Bluetooth playback device receives a modification instruction for the sampling duration, the Bluetooth playback device may modify the sampling duration based on the duration modification instruction. The duration modification instruction includes, but is not limited to, a voice duration modification instruction, a click duration modification instruction, a text duration modification instruction, and the like. The duration modification instruction may also be a modification instruction input by the user at the terminal device and sent by the terminal device to the Bluetooth playback device.

易于理解的是,历史采样时长是指当前连接结束之前的采样时长。该历史采样时长可以基于用户的时长设置指令确定。It is easy to understand that the historical sampling duration refers to the sampling duration before the current connection ends. The historical sampling duration may be determined based on a user's duration setting instruction.

根据一些实施例,音频数据是指蓝牙播放设备与终端连接时,由终端传输至蓝牙播放设备的音频数据。蓝牙播放设备接收到该音频数据时,蓝牙播放设备可以播放该音频数据。该音频数据并不特指某一固定音频数据。例如每次终端和蓝牙播放设备连接时,终端可以基于获取到的用户的音频播放指令,发送与该音频播放指令对应的音频数据至蓝牙播放设备。该音频播放指令包括但不限于语音音频播放指令、点击音频播放指令和定时音频播放指令等。According to some embodiments, the audio data refers to audio data transmitted from the terminal to the Bluetooth playback device when the Bluetooth playback device is connected to the terminal. 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 certain fixed audio data. For example, every time the terminal is connected to the Bluetooth playback device, the terminal may send audio data corresponding to the audio playback instruction to the Bluetooth playback device based on the acquired audio playback instruction of the user. The audio playback instructions include but are not limited to voice audio playback instructions, click audio playback instructions, and timing audio playback instructions.

易于理解的是,音频数据传输是指当终端与蓝牙播放设备连接时,蓝牙播放设备接收终端传输的音频数据并播放该音频数据的过程。该音频数据传输并不特指某一传输过程,即该音频数据传输例如可以是终端设备和蓝牙播放设备在历史采样时长内多次连接进行音频数据传输的过程,还可以是终端设备和蓝牙播放设备在历史采样时长内连接一次进行音频数据传输的过程。It is easy to understand that audio data transmission refers to a process in which the Bluetooth playback device receives audio data transmitted by the terminal and plays the audio data when the terminal is connected to the Bluetooth playback device. The audio data transmission does not specifically refer to a certain transmission process, that is, the audio data transmission can be, for example, a process in which a terminal device and a Bluetooth playback device are connected multiple times for audio data transmission within a historical sampling period, or a terminal device and a Bluetooth playback device. The process of connecting a device once for audio data transmission within the historical sampling period.

可选的,采样参数是指在在历史采样时长内,所有音频数据传输中进行采样得到的参数。该采样参数并不特指固定采样参数。当历史采样时长发生变化时,该采样参数也会相应变化。当音频数据传输发生变化时,该采样参数也会相应变化。Optionally, the sampling parameters refer to parameters obtained by sampling in all audio data transmissions within the historical sampling duration. The sampling parameter does not specifically refer to a fixed sampling parameter. When the historical sampling duration changes, the sampling parameters will also change accordingly. When the audio data transmission changes, the sampling parameter also changes accordingly.

根据一些实施例,当蓝牙播放设备确定与终端设备下一次连接时音频数据的缓存容量时,蓝牙播放设备可以在历史采样时长内,获取音频数据传输的采样参数。According to some embodiments, when the Bluetooth playback device determines the buffer capacity of the audio data when connecting with the terminal device next time, the Bluetooth playback device can obtain the sampling parameters of audio data transmission within the historical sampling duration.

S102,若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数;S102, if the number of sampling parameters is greater than or equal to the number threshold, obtain stability parameters of audio data transmission within the historical sampling duration based on the sampling parameters;

根据一些实施例,采样参数的数量是指在历史采样时长内,蓝牙播放设备获取的音频数据传输的采样参数的个数。该采样参数的数量并不特指某一固定数量。例如,当历史采样时长发生变化时,该采样参数的数量也会相应变化。当音频数据传输发生变化时,该采样参数的数量也会相应变化。According to some embodiments, the number of sampling parameters refers to the number of sampling parameters of audio data transmission acquired by the Bluetooth playback device within the historical sampling duration. The number of sampling parameters does not specifically refer to a fixed number. For example, when the historical sampling duration changes, the number of the sampling parameters also changes accordingly. When the audio data transmission changes, the number of this sampling parameter changes accordingly.

可选的,数量阈值是指与采样参数的数量对应的临界值。该数量阈值并不特指某一个固定数值。该数量阈值例如可以基于用户的阈值修改指令进行修改。该数量阈值例如还可以和历史采样时长呈正相关,即历史采样时长越长,该数量阈值的数值越大。Optionally, the quantity threshold refers to a critical value corresponding to the quantity of sampling parameters. The quantity threshold does not specifically refer to a fixed value. The quantity threshold may be modified, for example, based on a user's threshold modification instruction. For example, the quantity threshold may also be positively correlated with the historical sampling duration, that is, the longer the historical sampling duration, the larger the numerical value of the quantity threshold.

易于理解的是,稳定性参数用于表示音频数据传输中的稳定性。其中,稳定性参数是与音频数据传输是一一对应的。该稳定性参数并不特指某一个固定参数。当音频数据传输发生变化时,该音频数据传输的稳定性参数也会相应变化。It is easy to understand that the stability parameter is used to represent the stability in the transmission of audio data. Among them, the stability parameter is in one-to-one correspondence with audio data transmission. The stability parameter does not specifically refer to a fixed parameter. When the audio data transmission changes, the stability parameter of the audio data transmission also changes accordingly.

根据一些实施例,当蓝牙播放设备确定与终端设备下一次连接时音频数据的缓存容量时,蓝牙播放设备可以在历史采样时长内,获取音频数据传输的采样参数。当蓝牙播放设备获取到音频数据传输的采样参数时,蓝牙播放设备可以获取采样参数的数量。当蓝牙播放设备获取到采样参数的数量时,蓝牙播放设备可以检测采样参数的数量是否大于数量阈值。若蓝牙播放设备确定采样参数的数量大于数量阈值时,蓝牙播放设备可以基于该采样参数获取音频数据传输的稳定性参数。According to some embodiments, when the Bluetooth playback device determines the buffer capacity of the audio data when connecting with the terminal device next time, the Bluetooth playback device can obtain the sampling parameters of audio data transmission within the historical sampling duration. When the Bluetooth playback device acquires the sampling parameters for audio data transmission, the Bluetooth playback device can acquire the number of sampling parameters. When the Bluetooth playback device obtains the number of sampling parameters, the Bluetooth playback device can detect whether the number of sampling parameters is greater than the number threshold. If the Bluetooth playback device determines that the number of sampling parameters is greater than the number threshold, the Bluetooth playback device may obtain the stability parameter of audio data transmission based on the sampling parameters.

S103,根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。S103: Obtain a target buffer capacity according to the stability parameter, where the target buffer capacity is the buffer capacity of audio data when the Bluetooth playback device and the terminal device are next connected.

根据一些实施例,根据一些实施例,缓存容量用于表示蓝牙播放设备与终端设备设备连接时音频数据的缓存容量。该缓存容量对应的缓存区域用于缓存蓝牙播放设备接收到的音频数据。缓存容量的大小会影响缓存音频数据的数据量。缓存容量越大蓝牙播放设备可以缓存的音频数据的数据量越多。According to some embodiments, according to some embodiments, the buffer capacity is used to represent the buffer capacity of audio data when the Bluetooth playback device is connected with the terminal device. The buffer area corresponding to the buffer capacity is used to buffer the audio data received by the Bluetooth playback device. The size of the buffer capacity affects the amount of data buffered for audio data. The larger the buffer capacity is, the more the audio data can be buffered by the Bluetooth playback device.

易于理解的是,目标缓存容量为蓝牙播放设备与终端设备设备下一次连接时音频数据的缓存容量。该目标缓存容量并不特指某一固定缓存容量。当蓝牙播放设备得到的稳定性参数发生变化时,该目标缓存容量也会相应变化。It is easy to understand that the target buffer capacity is the buffer capacity of the audio data when the Bluetooth playback device and the terminal device are next connected. The target cache size does not specifically refer to a fixed cache size. When the stability parameter obtained by the Bluetooth playback device changes, the target cache capacity also changes accordingly.

根据一些实施例,若蓝牙播放设备确定采样参数的数量大于数量阈值时,蓝牙播放设备可以基于该采样参数获取音频数据传输的稳定性参数。当蓝牙播放设备获取到音频数据传输的稳定性参数时,蓝牙播放设备可以根据音频数据传输的稳定性参数获取目标容量,即蓝牙播放设备可以根据音频数据传输的稳定性参数确定蓝牙播放设备与终端设备设备下一次连接时音频数据的缓存容量。According to some embodiments, if the Bluetooth playback device determines that the number of sampling parameters is greater than the number threshold, the Bluetooth playback device may acquire a stability parameter of audio data transmission based on the sampling parameters. When the Bluetooth playback device obtains the stability parameter of audio data transmission, the Bluetooth playback device can obtain the target capacity according to the stability parameter of audio data transmission, that is, the Bluetooth playback device can determine the Bluetooth playback device and the terminal according to the stability parameter of audio data transmission. The buffer capacity of audio data when the device is next connected.

在本申请一个或多个实施例中,通过在历史采样时长内,获取音频数据传输的采样参数,若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数,根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。因此,只有在采样参数的数量大于或者等于数量阈值时,才基于稳定性参数动态的确定目标缓存容量,无需进行大量的测试确定固定缓存容量,减少测试资源耗费较高的情况,可以减少测试资源的耗费,同时,无需每次音频数据播放后对传输情况进行识别,可以减少缓存容量的调节的滞后性,可以兼顾音频数据传输过程中的延时性和抗干扰性,可以在减少测试资源的耗费的同时提高缓存容量确定的准确性和效率。其次,在终端设备发生变化时,蓝牙播放设备可以重新确定目标缓存容量,可以兼顾与不同终端设备连接时使用不同码率时的稳定性。In one or more embodiments of the present application, by acquiring the sampling parameters of audio data transmission within the historical sampling duration, if the number of sampling parameters is greater than or equal to the number threshold, the sampling parameters of the audio data transmission in the historical sampling duration are acquired based on the sampling parameters The stability parameter is to obtain the target cache capacity according to the stability parameter, and the target cache capacity is the cache capacity of the audio data when the Bluetooth playback device and the terminal device are next connected. Therefore, only when the number of sampling parameters is greater than or equal to the number threshold, the target cache capacity can be dynamically determined based on the stability parameters. There is no need to perform a large number of tests to determine the fixed cache capacity, which can reduce the high consumption of test resources and reduce test resources. At the same time, there is no need to identify the transmission situation after each audio data playback, which can reduce the lag in the adjustment of the buffer capacity, and can take into account the delay and anti-interference in the audio data transmission process, which can reduce the amount of test resources. At the same time, the accuracy and efficiency of cache capacity determination are improved. Secondly, when the terminal device changes, the Bluetooth playback device can re-determine the target cache capacity, and can take into account the stability of using different bit rates when connecting with different terminal devices.

请参见图5,为本申请实施例提供了一种缓存容量确定方法的流程示意图。如图5所示,本发明实施例从蓝牙播放设备侧阐述缓存容量确定方法的具体流程,该方法包括以下S201-S204。Referring to FIG. 5 , a schematic flowchart of a method for determining a cache capacity is provided in an embodiment of the present application. As shown in FIG. 5 , an embodiment of the present invention describes a specific process of a method for determining a buffer capacity from the side of a Bluetooth playback device, and the method includes the following S201-S204.

S201,在历史采样时长内,获取音频数据传输的采样参数;S201, obtaining sampling parameters for audio data transmission within the historical sampling duration;

具体过程如上所述,此处不再赘述。The specific process is as described above and will not be repeated here.

根据一些实施例,音频数据传输可以包括至少一个音频数据传输过程。其中,一个音频数据传输过程可以是一个音频文件传输过程,还可以是蓝牙播放设备和终端设备连接一次进行音频数据传输的整个过程。According to some embodiments, the audio data transfer may include at least one audio data transfer process. Wherein, an audio data transmission process may be an audio file transmission process, and may also be an entire process of audio data transmission performed by connecting a Bluetooth playback device and a terminal device once.

根据一些实施例,当蓝牙播放设备在历史采样时长内,获取音频数据传输的采样参数时,蓝牙播放设备可以在历史采样时长内,获取音频数据传输在若干个单位时长内的参数信息。该参数信息包括播放卡顿次数、信号强度值、音频数据包的传输间隔时长和音频数据包的重传率中至少一个。根据若干个单位时长内的参数信息和参数信息对应的权重系数,蓝牙播放设备可以获取若干个单位时长对应的若干个采样参数。According to some embodiments, when the Bluetooth playback device acquires the sampling parameters of audio data transmission within the historical sampling duration, the Bluetooth playback device may acquire parameter information of the audio data transmission within several unit durations within the historical sampling duration. The parameter information includes at least one of the number of times of playback freezes, a signal strength value, a transmission interval length of an audio data packet, and a retransmission rate of the audio data packet. According to the parameter information in several unit durations and the weight coefficients corresponding to the parameter information, the Bluetooth playback device can acquire several sampling parameters corresponding to several unit durations.

易于理解的是,单位时长是指参数信息获取的某一定量时长,该单位时长并不特指某一固定时长。该单位时长可以根据时长设置指令进行设置。该时长设置指令包括但不限于语音时长设置指令、点击时长设置指令和文字时长设置指令等等。该单位时长为音频数据传输时长中包括的时长。若干个是指当前音频数据传输过程中包括的单位时长的数量。It is easy to understand that the unit duration refers to a certain quantitative duration of parameter information acquisition, and the unit duration does not specifically refer to a certain fixed duration. The unit duration can be set according to the duration setting instruction. The duration setting instructions include, but are not limited to, voice duration setting instructions, click duration setting instructions, text duration setting instructions, and the like. The unit duration is the duration included in the audio data transmission duration. The number refers to the number of unit durations included in the current audio data transmission process.

可选的,播放卡顿次数是指上一次音频数据传输过程中,蓝牙播放设备在接收到终端设备传输的音频数据并播放该音频数据时,音频数据在单位时长内的卡顿次数。信息强度值是指上一次音频数据传输过程中,蓝牙播放设备接收终端设备传输的音频数据时的强度值。音频数据包的传输间隔时长是指在上一次音频数据传输过程中,单位时长内相邻两个音频数据包的传输间隔时长。例如音频数据包的间隔时长可以是第一个音频数据包的传输时间点和第二音频数据包的传输时间点的之间的时长。该音频数据包的传输间隔时长可以是音频数据包的传输间隔时长的均值,还可以是音频数据包的传输间隔时长的中值等。音频数据包的重传率是指上一次音频数据传输过程中,重传的音频数据包占所有传输的音频数据包的概率。Optionally, the number of times the playback freezes refers to the number of times the audio data freezes within a unit time when the Bluetooth playback device receives the audio data transmitted by the terminal device and plays the audio data during the last audio data transmission. The information strength value refers to the strength value when the Bluetooth playback device receives the audio data transmitted by the terminal device during the last audio data transmission process. The transmission interval duration of an audio data packet refers to the transmission interval duration of two adjacent audio data packets within a unit duration in the last audio data transmission process. For example, the interval duration of the audio data packets may 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 packets may be an average value of the transmission interval durations of the audio data packets, or may be a median value of the transmission interval durations of the audio data packets, or the like. The retransmission rate of audio data packets refers to the probability that the retransmitted audio data packets account for all transmitted audio data packets during the last audio data transmission process.

根据一些实施例,权重系数是指与参数信息对应的权重系数,不同的参数信息对应不同的权重系数。该权重系数可以是根据系数设置指令设置的,还可以根据系数调整指令进行调整。According to some embodiments, the weight coefficient refers to a weight coefficient corresponding to parameter information, and different parameter information corresponds to different weight coefficients. The weight coefficient may be set according to the coefficient setting instruction, and may also be adjusted according to the coefficient adjustment instruction.

易于理解的是,若干个采样参数是指与若干个单位时长对应的采样参数,即一个单位时长对应一个采样参数。该采样参数并不特指某一固定采样参数。当单位时长内,蓝牙播放设备获取到的参数信息发生变化或参数信息对应的权重系数发生变化时,该采样参数也会发生相应变化。It is easy to understand that several sampling parameters refer to sampling parameters corresponding to several unit durations, that is, one sampling parameter corresponding to one unit duration. The sampling parameter does not specifically refer to a fixed sampling parameter. When the parameter information obtained by the Bluetooth playback device changes or the weight coefficient corresponding to the parameter information changes within a unit time, the sampling parameter will also change accordingly.

可选的,若干个单位时长例如可以是Q1单位时长、Q2单位时长、Q3单位时长和Q4单位时长。例如当蓝牙播放设备获取到的若干个单位时长内的参数信息包括播放卡顿次数、信号强度值和音频数据包的传输间隔时长时,蓝牙播放设备可以根据公式(1)得到若干个单位时长对应的采样参数。Optionally, the several unit durations may be, for example, Q1 unit duration, Q2 unit duration, Q3 unit duration, and Q4 unit duration. For example, when the parameter information obtained by the Bluetooth playback device in several unit durations includes the number of playback freezes, the signal strength value and the transmission interval duration of the audio data packets, the Bluetooth playback device can obtain several unit durations according to formula (1). sampling parameters.

S=K1N+K2(R-RI)+K3(I-IV)2 (1)S=K 1 N+K 2 (RR I )+K 3 (II V ) 2 (1)

其中,S为采样参数;Among them, S is the sampling parameter;

K1为播放卡顿次数对应的权重系数;K 1 is the weight coefficient corresponding to the number of times of playback freezes;

N为单位时长内播放卡顿次数;N is the number of freezes played within a unit time;

K2为信号强度值对应的权重系数;K 2 is the weight coefficient corresponding to the signal strength value;

R为单位时长对应的信号强度值;R is the signal strength value corresponding to the unit duration;

Ri为信号强度值的标准值;R i is the standard value of the signal strength value;

K3为音频数据包的传输间隔时长对应的权重系数;K 3 is the weight coefficient corresponding to the transmission interval duration of the audio data packet;

I为单位时长对应的音频数据包的传输间隔时长;I is the transmission interval duration of the audio data packet corresponding to the unit duration;

Iv为单位时长对应的音频数据包的传输间隔时长的平均值。I v is the average value of the transmission interval duration of the audio data packets corresponding to the unit duration.

易于理解的是,例如当蓝牙播放设备获取到的若干个单位时长内的参数信息包括播放卡顿次数、信号强度值、音频数据包的传输间隔时长和音频数据包的重传率时,蓝牙播放设备可以根据公式(2)得到若干个单位时长对应的采样参数。It is easy to understand that, for example, when the parameter information obtained by the Bluetooth playback device in several units of time includes the number of playback freezes, the signal strength value, the transmission interval of audio data packets, and the retransmission rate of audio data packets, Bluetooth playback The device can obtain sampling parameters corresponding to several unit durations according to formula (2).

S=K1N+K2(R-RI)+K3(I-IV)2+K4A (2)S=K 1 N+K 2 (RR I )+K 3 (II V ) 2 +K 4 A (2)

其中,S为采样参数;Among them, S is the sampling parameter;

K1为播放卡顿次数对应的权重系数;K 1 is the weight coefficient corresponding to the number of times of playback freezes;

N为单位时长内播放卡顿次数;N is the number of freezes played within a unit time;

K2为信号强度值对应的权重系数;K 2 is the weight coefficient corresponding to the signal strength value;

R为单位时长对应的信号强度值;R is the signal strength value corresponding to the unit duration;

Ri为信号强度值的标准值;R i is the standard value of the signal strength value;

K3为音频数据包的传输间隔时长对应的权重系数;K 3 is the weight coefficient corresponding to the transmission interval duration of the audio data packet;

I为单位时长对应的音频数据包的传输间隔时长;I is the transmission interval duration of the audio data packet corresponding to the unit duration;

Iv为单位时长对应的音频数据包的传输间隔时长的平均值;I v is the average value of the transmission interval duration of the audio data packet corresponding to the unit duration;

K4为音频数据包的重传率对应的权重系数;K 4 is the weight coefficient corresponding to the retransmission rate of the audio data packet;

A为单位时长对应的音频数据包的重传率。A is the retransmission rate of the audio data packet corresponding to the unit duration.

S202,若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数;S202, if the quantity of sampling parameters is greater than or equal to the quantity threshold, obtain stability parameters of audio data transmission within the historical sampling duration based on the sampling parameters;

具体过程如上所述,此处不再赘述。The specific process is as described above and will not be repeated here.

根据一些实施例,若采样参数的数量大于或者等于数量阈值,则蓝牙播放设备基于采样参数获取历史采样时长内音频数据传输的稳定性参数。具体的,若采样参数的数量大于或者等于数量阈值,蓝牙播放设备可以根据预设方式对若干个采样参数进行筛选,得到筛选后的采样参数。当蓝牙播放设备得到筛选后的采样参数时,蓝牙播放设备可以计算筛选后的采样参数的平均采样参数,并将平均采样参数作为历史采样时长内音频数据传输的稳定性参数。According to some embodiments, if the number of sampling parameters is greater than or equal to the number threshold, the Bluetooth playback device acquires stability parameters of audio data transmission within the historical sampling duration based on the sampling parameters. Specifically, if the number of sampling parameters is greater than or equal to the number threshold, the Bluetooth playback device may filter several sampling parameters according to a preset method to obtain filtered sampling parameters. When the Bluetooth playback device obtains the filtered sampling parameters, the Bluetooth playback device can calculate the average sampling parameter of the filtered sampling parameters, and use the average sampling parameter as the stability parameter of audio data transmission within the historical sampling duration.

根据一些实施例,图6示出本申请实施例一种蓝牙播放设备存储采样参数的举例示意图。如图6所示,当蓝牙播放设备获取到Q1单位时长对应的q1采样参数、Q2单位时长对应的q2采样参数、Q3单位时长对应的q3采样参数和Q4单位时长对应的q4采样参数时,蓝牙播放设备可以计算得到Q1单位时长对应的q1采样参数、Q2单位时长对应的q2采样参数、Q3单位时长对应的q3采样参数和Q4单位时长对应的q4采样参数的平均采样参数例如可以是q5采样参数。蓝牙播放设备可以将q5采样参数设置为历史采样时长内音频数据传输的稳定性参数。According to some embodiments, FIG. 6 shows an example schematic diagram of a Bluetooth playback device storing sampling parameters according to an embodiment of the present application. As shown in Figure 6, when the Bluetooth playback device obtains the q1 sampling parameters corresponding to the Q1 unit duration, the q2 sampling parameters corresponding to the Q2 unit duration, the q3 sampling parameters corresponding to the Q3 unit duration, and the q4 sampling parameters corresponding to the Q4 unit duration, the Bluetooth The 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, for example, it can be the q5 sampling parameter. . The Bluetooth playback device can set the q5 sampling parameter as the stability parameter of audio data transmission within the historical sampling duration.

可选的,当蓝牙播放设备计算得到的筛选后的采样参数的平均采样参数,该平均采样参数包括但不限于算术平均采样参数、几何平均采样参数、平方平均采样参数、调和平均采样参数、加权平均采样参数等。Optionally, when the Bluetooth playback device calculates the average sampling parameters of the filtered sampling parameters, the average sampling parameters include but are not limited to arithmetic mean sampling parameters, geometric mean sampling parameters, square mean sampling parameters, harmonic mean sampling parameters, weighted mean sampling parameters Average sampling parameters, etc.

易于理解的是,当蓝牙播放设备计算筛选后的采样参数的平均采样参数为算术平均采样参数时,蓝牙播放设备可以计算筛选后的采样参数的总和,并获取筛选后的采样参数的参数数量。蓝牙播放设备可以将筛选后的采样参数的总和除以筛选后的采样参数的参数数量得到算术平均采样参数。It is easy to understand that when the average sampling parameter of the filtered sampling parameters calculated by the Bluetooth playback device is an arithmetic average sampling parameter, the Bluetooth playback device can calculate the sum of the filtered sampling parameters, and obtain the number of parameters of the filtered sampling parameters. The Bluetooth playback device may divide the sum of the filtered sampling parameters by the number of parameters of the filtered sampling parameters to obtain the arithmetic average sampling parameter.

易于理解的是,当蓝牙播放设备获取到15个单位时长内的采样参数时,蓝牙播放设备可以对15个单位时长内的采样参数进行排序。例如蓝牙播放设备可以按照参数值由小到大的顺序对15个单位时长内的采样参数进行排序,并筛选掉预设数量5个的采样参数,得到筛选后的采样参数,即终端可以得到10个采样参数。蓝牙播放设备可以计算筛选后的10个采样参数的平均采样参数,并将平均采样参数作为当前音频数据传输过程中的稳定性参数。It is easy to understand that when the Bluetooth playback device obtains the sampling parameters within 15 unit durations, the Bluetooth playback device can sort the sampling parameters within the 15 unit durations. For example, the Bluetooth playback device can sort the sampling parameters within 15 units of time in the order of parameter values from small to large, and filter out the preset number of five sampling parameters to obtain the filtered sampling parameters, that is, the terminal can get 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 in the current audio data transmission process.

S203,获取当前缓存容量;S203, obtain the current cache capacity;

根据一些实施例,当前缓存容量为蓝牙播放设备与终端设备当前连接时音频数据的缓存容量。该当前缓存容量可以是蓝牙播放设备基于用户的容量设置指令设置的,还可以是蓝牙播放设备在当前连接时的历史采样时长之前由蓝牙播放设备确定的。该当前缓存容量并不特指某一固定缓存容量。当蓝牙播放设备接收到用户的容量修改指令时,蓝牙播放设备可以修改当前缓存容量。例如还可以是蓝牙播放设备确定当前当前缓存容量的历史采样时长发生变化时,该当前缓存容量也会相应变化。According to some embodiments, the current buffer capacity is the buffer capacity of audio data when the Bluetooth playback device and the terminal device are currently connected. The current cache capacity may be set by the Bluetooth playback device based on a user's capacity setting instruction, or may be determined by the Bluetooth playback device before the historical sampling duration when the Bluetooth playback device is currently connected. The current cache capacity does not specifically refer to a fixed cache capacity. When the Bluetooth playback device receives the user's capacity modification instruction, the Bluetooth playback device can modify the current cache capacity. For example, when the Bluetooth playback device determines that the historical sampling duration of the current cache capacity changes, the current cache capacity also changes accordingly.

易于理解的是,蓝牙耳机和智能手机当前连接时,蓝牙耳机获取到的当前缓存容量例如可以是5Mb。It is easy to understand that when the Bluetooth headset and the smartphone are currently connected, the current cache capacity obtained by the Bluetooth headset may be, for example, 5Mb.

S204,根据稳定性参数对当前缓存容量进行调整得到目标缓存容量。S204: Adjust the current cache capacity according to the stability parameter to obtain the target cache capacity.

根据一些实施例,当蓝牙播放设备获取到当前缓存容量时,蓝牙播放设备可以根据稳定性参数对当前缓存容量进行调整得到目标缓存容量。According to some embodiments, when the Bluetooth playback device obtains the current cache capacity, the Bluetooth playback device may adjust the current cache capacity according to the stability parameter to obtain the target cache capacity.

根据一些实施例,当蓝牙播放设备根据稳定性参数对当前缓存容量进行调整得到目标缓存容量时,蓝牙播放设备可以获取当前缓存容量对应的当前参数级别。当蓝牙播放设备获取到当前参数级别时,蓝牙播放设备可以获取稳定参数阈值。蓝牙播放设备可以根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别,并在容量映射信息中获取目标参数级别对应的缓存容量作为目标缓存容量。According to some embodiments, when the Bluetooth playback device adjusts the current cache capacity according to the stability parameter to obtain the target cache capacity, the Bluetooth playback device can obtain the current parameter level corresponding to the current cache capacity. When the Bluetooth playback device obtains the current parameter level, the Bluetooth playback device can obtain the stable parameter threshold. The Bluetooth playback device can adjust the current parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level, and obtain the buffer capacity corresponding to the target parameter level in the capacity mapping information as the target buffer capacity.

易于理解的是,当前参数级别是指蓝牙播放设备和终端设备当前连接进行音频数据传输时的当前缓存容量对应的参数级别。当前参数级别并不特指某一固定参数级别。当当前缓存容量发生变化时,该当前参数级别也会相应变化。It is easy to understand that the current parameter level refers to the parameter level corresponding to the current buffer capacity when the Bluetooth playback device and the terminal device are currently connected for audio data transmission. The current parameter level does not specifically refer to a fixed parameter level. When the current cache capacity changes, the current parameter level also changes accordingly.

可选的,稳定参数阈值是指与参数级别对应的参数阈值。该稳定参数阈值例如可以是各个参数级别对应的参数阈值。该稳定参数阈值并不特指某一固定参数阈值。该稳定参数阈值的数量为至少一个。该稳定参数阈值可以例如可以随着参数级别的变化而变化。Optionally, the stable parameter threshold refers to a parameter threshold corresponding to the parameter level. The stable parameter threshold may be, for example, a parameter threshold corresponding to each parameter level. The stable parameter threshold does not specifically refer to a fixed parameter threshold. The number of stabilization parameter thresholds is at least one. The stable parameter threshold may, for example, vary as the parameter level changes.

易于理解的是,例如,当当前参数级别为C参数级别时,该稳定参数阈值例如可以是C1稳定参数阈值和C2稳定参数阈值,其中,C1稳定参数阈值小于C2稳定参数阈值。例如当前参数级别为D参数级别时,该稳定参数阈值例如可以是D1稳定参数阈值、D2稳定参数阈值和D3稳定参数阈值其中,D1稳定参数阈值小于D2稳定参数阈值,D2稳定参数阈值小于D3稳定参数阈值。It is easy to understand that, for example, when the current parameter level is the C parameter level, the stable parameter threshold may be, for example, a C1 stable parameter threshold and a C2 stable parameter threshold, wherein the C1 stable parameter threshold is smaller than the C2 stable parameter threshold. For example, when the current parameter level is the D parameter level, the stable parameter threshold may be, for example, the D1 stable parameter threshold, the D2 stable parameter threshold, and the D3 stable parameter threshold, where the D1 stable parameter threshold is smaller than the D2 stable parameter threshold, and the D2 stable parameter threshold is smaller than the D3 stable parameter threshold. parameter threshold.

易于理解的是,目标参数级别是指蓝牙播放设备对当前参数级别调整后的参数级别。该目标参数级别并不特指某一固定参数级别。当稳定性参数和稳定参数阈值发生变化时,该目标参数级别也会相应变化。其中,目标参数级别可以和当前参数级别相差至少一个参数级别。例如目标参数级别可以在参数级别排序中比当前参数级别高一级,目标参数级别可以在参数级别排序中比当前参数级别高三级。It is easy to understand that the target parameter level refers to the parameter level adjusted by the Bluetooth playback device to 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 also changes accordingly. The target parameter level may differ from the current parameter level by at least one parameter level. For example, the target parameter level may be one level higher than the current parameter level in the parameter level sorting, and the target parameter level may be three levels higher than the current parameter level in the parameter level sorting.

可选的,容量映射信息是指包括参数级别和参数级别对应的缓存容量的集合。该容量映射信息并不特指某一固定容量映射信息。该容量映射信息例如可以随着用户的信息设置指令而变。该信息设置指令包括但不限于语音信息设置指令、点击信息设置指令和定时信息设置指令等等。Optionally, the capacity mapping information refers to a set including a parameter level and a cache capacity corresponding to the parameter level. The capacity mapping information does not specifically refer to a certain fixed capacity mapping information. The capacity mapping information may, for example, change with the user's information setting instruction. The information setting instructions include, but are not limited to, voice information setting instructions, click information setting instructions, timing information setting instructions, and the like.

根据一些实施例,当蓝牙播放设备确定音频数据播放的稳定性较差时,蓝牙播放设备可以加大音频数据缓冲,即蓝牙播放设备可以增加缓存容量,以便提高音频数据播放的稳定性。当蓝牙播放设备确定音频数据播放的稳定性较好时,蓝牙播放设备可以减少音频数据缓冲,即蓝牙播放设备可以减少缓存容量,以便降低音频数据播放的延时。因此容量映射信息中包括的参数级别和参数级别对应的缓存容量可以呈负相关,即参数级别越高,参数级别对应的缓存容量越小。According to some embodiments, when the Bluetooth playback device determines that the audio data playback stability is poor, the Bluetooth playback device can increase the audio data buffer, that is, the Bluetooth playback device can increase the buffer capacity to improve the audio data playback stability. When the Bluetooth playback device determines that the playback stability of the audio data is good, the Bluetooth playback device can reduce the audio data buffering, that is, the Bluetooth playback device can reduce the buffer capacity so as to reduce the delay of the audio data playback. Therefore, the parameter level included in the capacity mapping information and the cache capacity corresponding to the parameter level may be negatively correlated, that is, the higher the parameter level, the smaller the cache capacity corresponding to the parameter level.

易于理解的是,当蓝牙播放设备仅对当前参数级别调整一级时,减少缓存容量调整过大使得缓存容量不稳定的情况,可以提高缓存容量调整的稳定性。例如蓝牙耳机和智能手机当前连接时,蓝牙耳机获取到的当前缓存容量例如可以是5Mb和音频数据传输的稳定性参数例如可以是0.7。蓝牙耳机获取到的当前缓存容量对应的当前参数级别例如可以是E3参数级别。当蓝牙播放设备获取到当前参数级别时,蓝牙播放设备可以获取稳定参数阈值。该稳定参数阈值例如可以是E1参数级别对应的稳定性参数阈值为0.5,E2参数级别对应的稳定性参数阈值为0.65,E3参数级别对应的稳定性参数阈值为0.8,E4参数级别对应的稳定性参数阈值为0.9。蓝牙播放设备可以根据稳定参数阈值和稳定性参数对当前参数级别E3参数级别进行调整得到目标参数级别为E2参数级别。It is easy to understand that, when the Bluetooth playback device only adjusts the current parameter level by one level, the stability of the adjustment of the cache capacity can be improved by reducing the situation that the cache capacity is too large to make the cache capacity unstable. For example, when the Bluetooth headset and the smartphone are currently connected, the current buffer capacity obtained by the Bluetooth headset may be, for example, 5Mb and the stability parameter of audio data transmission may be, for example, 0.7. The current parameter level corresponding to the current cache capacity obtained by the Bluetooth headset may be, for example, the E3 parameter level. When the Bluetooth playback device obtains the current parameter level, the Bluetooth playback device can obtain the stable parameter threshold. The stability parameter threshold may be, for example, the stability parameter threshold corresponding to the E1 parameter level is 0.5, the stability parameter threshold corresponding to the E2 parameter level is 0.65, the stability parameter threshold corresponding to the E3 parameter level is 0.8, and the stability parameter corresponding to the E4 parameter level is 0.8. The parameter threshold is 0.9. The Bluetooth playback device can adjust the current parameter level E3 parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level as the E2 parameter level.

易于理解的是,蓝牙耳机的容量映射信息例如可以是E1参数级别对应的缓存容量为15Mb,E2参数级别对应的缓存容量为10Mb,E3参数级别对应的缓存容量为5Mb,E4参数级别对应的缓存容量为2Mb。因此蓝牙耳机在容量映射信息中获取E2参数级别对应的缓存容量10Mb作为目标缓存容量。It is easy to understand that the capacity mapping information of the Bluetooth headset can be, for example, the cache capacity corresponding to the E1 parameter level is 15Mb, the cache capacity corresponding to the E2 parameter level is 10Mb, the cache capacity corresponding to the E3 parameter level is 5Mb, and the cache capacity corresponding to the E4 parameter level is The capacity is 2Mb. Therefore, the Bluetooth headset obtains a cache capacity of 10Mb corresponding to the E2 parameter level in the capacity mapping information as the target cache capacity.

易于理解的是,当蓝牙播放设备可以根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别,可以对当前参数级别调整多级,即目标参数级别和当前参数级别可以相差多个参数级别。当蓝牙播放设备获取到目标容量等级时,蓝牙播放设备可以在容量映射信息中获取目标参数级别对应的缓存容量作为目标缓存容量,可以提高缓存容量确定的准确性。It is easy to understand that when the Bluetooth playback device can adjust the current parameter level according to the stability parameter threshold and stability parameter to obtain the target parameter level, the current parameter level can be adjusted in multiple levels, that is, the target parameter level and the current parameter level can be different by more than one level. parameter level. When the Bluetooth playback device obtains the target capacity level, the Bluetooth playback device can obtain the cache capacity corresponding to the target parameter level in the capacity mapping information as the target cache capacity, which can improve the accuracy of the determination of the cache capacity.

可选的,例如蓝牙耳机和智能手机当前连接时,蓝牙耳机获取到的当前缓存容量例如可以是5Mb和音频数据传输的稳定性参数例如可以是0.4。蓝牙耳机获取到的当前缓存容量对应的当前参数级别例如可以是E3参数级别。当蓝牙播放设备获取到当前参数级别时,蓝牙播放设备可以获取稳定参数阈值。该稳定参数阈值例如可以是E1参数级别对应的稳定性参数阈值为0.5,E2参数级别对应的稳定性参数阈值为0.65,E3参数级别对应的稳定性参数阈值为0.8,E4参数级别对应的稳定性参数阈值为0.9。蓝牙播放设备可以根据稳定参数阈值和稳定性参数对当前参数级别E3参数级别进行调整得到目标参数级别为E1参数级别。Optionally, for example, when the Bluetooth headset and the smartphone are currently connected, the current buffer capacity obtained by the Bluetooth headset may be, for example, 5Mb and the stability parameter of audio data transmission may be, for example, 0.4. The current parameter level corresponding to the current cache capacity obtained by the Bluetooth headset may be, for example, the E3 parameter level. When the Bluetooth playback device obtains the current parameter level, the Bluetooth playback device can obtain the stable parameter threshold. The stability parameter threshold may be, for example, the stability parameter threshold corresponding to the E1 parameter level is 0.5, the stability parameter threshold corresponding to the E2 parameter level is 0.65, the stability parameter threshold corresponding to the E3 parameter level is 0.8, and the stability parameter corresponding to the E4 parameter level is 0.8. The parameter threshold is 0.9. The Bluetooth playback device can adjust the current parameter level E3 parameter level according to the stability parameter threshold and the stability parameter to obtain the target parameter level as the E1 parameter level.

易于理解的是,蓝牙耳机的容量映射信息例如可以是E1参数级别对应的缓存容量为15Mb,E2参数级别对应的缓存容量为10Mb,E3参数级别对应的缓存容量为5Mb,E4参数级别对应的缓存容量为2Mb。因此蓝牙耳机在容量映射信息中获取E1参数级别对应的缓存容量15Mb作为目标缓存容量。It is easy to understand that the capacity mapping information of the Bluetooth headset can be, for example, the cache capacity corresponding to the E1 parameter level is 15Mb, the cache capacity corresponding to the E2 parameter level is 10Mb, the cache capacity corresponding to the E3 parameter level is 5Mb, and the cache capacity corresponding to the E4 parameter level is The capacity is 2Mb. Therefore, the Bluetooth headset obtains the cache capacity of 15Mb corresponding to the E1 parameter level in the capacity mapping information as the target cache capacity.

根据一些实施例,当蓝牙播放设备根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别时,蓝牙播放设备可以在参数级别排序中获取当前参数级别、第一参数级别和第二参数级别。当蓝牙播放设备获取到第一参数级别和第二参数级别时,蓝牙播放设备可以获取第一参数级别对应的第一稳定参数阈值,并获取第二参数级别对应的第二稳定参数阈值。其中,第一参数级别在参数级别排序中比当前参数级别高一级,第二参数级别在参数级别排序中比当前参数级别低一级,第一稳定参数阈值大于第二稳定参数阈值。第一参数级别并不特指某一固定参数级别,当当前参数级别发生变化时,第一参数级别也会相应变化。第二参数级别也并不特指某一固定参数级别,当当前参数级别发生变化时,第二参数级别也会相应变化。According to some embodiments, when the Bluetooth playback device 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 may obtain the current parameter level, the first parameter level and the second parameter level in the parameter level sorting. parameter level. When the Bluetooth playback device acquires the first parameter level and the second parameter level, the Bluetooth playback device may acquire the first stable parameter threshold corresponding to the first parameter level, and acquire the second stable parameter threshold corresponding to the second parameter level. The first parameter level is one level higher than the current parameter level in the parameter level sorting, the second parameter level is one level lower than the current parameter level in the parameter level sorting, 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, and when the current parameter level changes, the first parameter level also changes 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 also changes accordingly.

根据一些实施例,参数级别排序是指将按照预设顺序参数级别进行排序得到的参数级别排序。该预设顺序例如可以是由高到低的顺序,还可以是由低到高的顺序。本实施的预设顺序例如可以是由低到高的顺序。例如当蓝牙播放设备接收到排序指令,该排序指令携带预设顺序信息时,蓝牙播放设备可以基于排序指令携带的预设顺序信息,对参数级别进行排序。According to some embodiments, the parameter level sorting refers to the parameter level sorting obtained by sorting the parameter levels in a preset order. The preset order may be, for example, a high-to-low order, or a low-to-high order. The preset order of this implementation may be, for example, a low-to-high order. For example, when the Bluetooth playback device receives a sorting instruction that carries preset sequence information, the Bluetooth playback device can sort the parameter levels based on the preset sequence information carried by the sorting instruction.

根据一些实施例,蓝牙播放设备获取到的排序指令例如可以是按照由低到高的顺序对E1参数级别、E4参数级别、E6参数级别、E5参数级别、E2参数级别、E3参数级别和E7参数级别进行排序。蓝牙播放设备获取到的参数级别排序例如可以是E1参数级别、E2参数级别、E3参数级别、E4参数级别、E5参数级别、E6参数级别和E7参数级别。According to some embodiments, the ordering instruction obtained by the Bluetooth playback device may be, for example, sorting the E1 parameter level, the E4 parameter level, the E6 parameter level, the E5 parameter level, the E2 parameter level, the E3 parameter level, and the E7 parameter level in order from low to high. Sort by level. The parameter level order obtained by the Bluetooth playback device may be, for example, the E1 parameter level, the E2 parameter level, the E3 parameter level, the E4 parameter level, the E5 parameter level, the E6 parameter level, and the E7 parameter level.

可选的,蓝牙耳机可以在参数级别排序中获取当前参数级别例如可以是E3参数级别,第一参数级别例如可以是E4参数级别,第二参数级别例如可以是E2参数级别。当蓝牙耳机获取到E4参数级别和E2参数级别时,蓝牙播放设备可以获取第一参数级别对应的第一稳定参数阈值,并获取第二参数级别对应的第二稳定参数阈值。蓝牙耳机获取到E4参数级别对应的稳定性参数阈值例如可以为0.9。蓝牙耳机获取到E2参数级别对应的稳定性参数阈值例如可以为0.65。Optionally, the Bluetooth headset may obtain the current parameter level in the parameter level sorting, for example, the E3 parameter level, the first parameter level may be, for example, the E4 parameter level, and the second parameter level may be, for example, the E2 parameter level. When the Bluetooth headset obtains the E4 parameter level and the E2 parameter level, the Bluetooth playback device can obtain the first stability parameter threshold corresponding to the first parameter level, and obtain the second stability parameter threshold corresponding to the second parameter level. The stability parameter threshold corresponding to the E4 parameter level obtained by the Bluetooth headset may be, for example, 0.9. The stability parameter threshold corresponding to the E2 parameter level obtained by the Bluetooth headset may be, for example, 0.65.

根据一些实施例,当蓝牙播放设备根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别时,蓝牙播放设备可以根据稳定性参数、第一稳定参数阈值、第二稳定参数阈值对当前参数级别进行调整得到目标参数级别。在稳定性参数大于第一稳定参数阈值时,蓝牙播放设备可以确定第一参数级别为目标参数级别,并对当前参数级别进行调整得到目标参数级别。在稳定性参数小于第二稳定参数阈值时,蓝牙播放设备可以确定第二参数级别为目标参数级别,并对当前参数级别进行调整得到目标参数级别。在稳定性参数大于或者等于第二稳定参数阈值,且小于或者等于第一稳定参数阈值时,蓝牙播放设备可以确定当前参数级别为目标参数级别。According to some embodiments, when the Bluetooth playback device 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 adjust the current parameter level according to the stability parameter threshold and the stability parameter. The current parameter level is adjusted to obtain the target parameter level. When the stability parameter is greater than the first stability parameter threshold, the Bluetooth playback device may determine that the first parameter level is the target parameter level, and adjust the current parameter level to obtain the target parameter level. When the stability parameter is less than the second stability parameter threshold, the Bluetooth playback device may determine that the second parameter level is the target parameter level, and adjust the current parameter level to obtain the target parameter level. When the stability parameter is greater than or equal to the second stability parameter threshold and less than or equal to the first stability parameter threshold, the Bluetooth playback device may determine that the current parameter level is the target parameter level.

易于理解的是,蓝牙播放设备可以先判断稳定性参数与第一稳定参数阈值的大小关系,再判断稳定性参数与第二稳定参数阈值的大小关系,蓝牙播放设备还可以先判断稳定性参数与第二稳定参数阈值的大小关系,再判断稳定性参数与第一稳定参数阈值的大小关系,蓝牙播放设备可以同时判断稳定性参数与第一稳定参数阈值、第二稳定参数阈值的大小关系。图7示出本申请实施例一种参数级别调整方法的流程示意图。本实施例中,蓝牙播放设备例如可以先判断稳定性参数与第一稳定参数阈值的大小关系,再判断稳定性参数与第二稳定参数阈值的大小关系。It is easy to understand that the Bluetooth playback device can first determine the relationship between the stability parameter and the threshold of the first stability parameter, and then determine the relationship between the stability parameter and the threshold of the second stability parameter. The Bluetooth playback device can also first determine the relationship between the stability parameter and the threshold of the second stability parameter. The size relationship of the second stability parameter threshold, and then to determine the size relationship between the stability parameter and the first stability parameter threshold, the Bluetooth playback device can simultaneously determine the size relationship between the stability parameter, the first stability parameter threshold, and the second stability parameter threshold. FIG. 7 shows a schematic flowchart of a parameter level adjustment method according to an embodiment of the present application. In this embodiment, the Bluetooth playback device may, for example, first determine the magnitude relationship between the stability parameter and the first stability parameter threshold, and then determine the magnitude relationship between the stability parameter and the second stability parameter threshold.

可选的,蓝牙耳机可以在参数级别排序中获取当前参数级别例如可以是E3参数级别,第一参数级别例如可以是E4参数级别,第二参数级别例如可以是E2参数级别。当蓝牙耳机获取到E4参数级别和E2参数级别时,蓝牙播放设备可以获取第一参数级别对应的第一稳定参数阈值,并获取第二参数级别对应的第二稳定参数阈值。蓝牙耳机获取到E4参数级别对应的稳定性参数阈值例如可以为0.9。蓝牙耳机获取到E2参数级别对应的稳定性参数阈值例如可以为0.65。Optionally, the Bluetooth headset may obtain the current parameter level in the parameter level sorting, for example, the E3 parameter level, the first parameter level may be, for example, the E4 parameter level, and the second parameter level may be, for example, the E2 parameter level. When the Bluetooth headset obtains the E4 parameter level and the E2 parameter level, the Bluetooth playback device can obtain the first stability parameter threshold corresponding to the first parameter level, and obtain the second stability parameter threshold corresponding to the second parameter level. The stability parameter threshold corresponding to the E4 parameter level obtained by the Bluetooth headset may be, for example, 0.9. The stability parameter threshold corresponding to the E2 parameter level obtained by the Bluetooth headset may be, for example, 0.65.

根据一些实施例,当蓝牙耳机获取到的音频数据传输的稳定性参数为0.95时,蓝牙耳机可以确定稳定性参数0.95大于第一稳定参数阈值0.9时,蓝牙播放设备可以确定E4参数级别为目标参数级别,并对当前参数级别E3进行调整得到目标参数级别E4参数级别。According to some embodiments, when the stability parameter of the audio data transmission obtained by the Bluetooth headset is 0.95, the Bluetooth headset can determine that the stability parameter 0.95 is greater than the first stability parameter threshold 0.9, and the Bluetooth playback device can determine the E4 parameter level as the target parameter level, and adjust the current parameter level E3 to obtain the target parameter level E4 parameter level.

易于理解的是,当蓝牙耳机获取到的音频数据传输的稳定性参数为0.55时,蓝牙耳机可以确定稳定性参数0.55小于第二稳定参数阈值0.65时,蓝牙播放设备可以确定E2参数级别为目标参数级别,并对当前参数级别E3进行调整得到目标参数级别E2参数级别。It is easy to understand that when the stability parameter of the audio data transmission obtained by the Bluetooth headset is 0.55, the Bluetooth headset can determine that when the stability parameter 0.55 is less than the second stability parameter threshold 0.65, the Bluetooth playback device can determine the E2 parameter level as the target parameter. level, and adjust the current parameter level E3 to obtain the target parameter level E2 parameter level.

根据一些实施例,当蓝牙播放设备为具有显示屏的设备时,蓝牙播放设备根据稳定性参数对当前缓存容量进行调整得到目标缓存容量后,蓝牙播放设备可以发出提示信息,该提示信息用于提示目标缓存容量。例如,当蓝牙播放设备为蓝牙手表时,蓝牙手表根据稳定性参数对当前缓存容量进行调整得到目标缓存容量为10Mb时,蓝牙手表可以在显示屏上显示提示信息。该提示信息例如可以是目标缓存容量为10Mb。此时,蓝牙手表界面的举例示意图可以如图8所示。According to some embodiments, when the Bluetooth playback device is a device with a display screen, after the Bluetooth playback device adjusts the current cache capacity according to the stability parameter to obtain the target cache capacity, the Bluetooth playback device can send out prompt information, where the prompt information is used to prompt Target cache capacity. For example, when the Bluetooth playback device is a Bluetooth watch, and the Bluetooth watch adjusts the current cache capacity according to the stability parameter to obtain a target cache capacity of 10Mb, the Bluetooth watch can display a prompt message on the display. The prompt information may be, for example, that the target cache capacity is 10Mb. At this time, an example schematic diagram of the interface of the Bluetooth watch may be as shown in FIG. 8 .

易于理解的是,当蓝牙播放设备获取到终端设备发送的音频数据时,将音频数据缓存至目标缓存容量对应的缓存区域时,蓝牙播放设备可以检测该音频数据对应的缓存容量是否满足音频数据播放条件。若音频数据对应的缓存容量满足音频数据播放条件,则蓝牙播放设备可以播放音频数据。由于缓存容量过高时会出现延时较高的情况,缓存容量过低时会出现抗干扰能力较差,因此本申请实施例的目标缓存容量为蓝牙播放设备基于目标码率级别确定的,可以在蓝牙播放设备播放音频数据时可以兼顾音频数据传输过程中的延时性和抗干扰性,提高用户的使用体验。It is easy to understand that when the Bluetooth playback device obtains the audio data sent by the terminal device and caches the audio data in the cache area corresponding to the target cache capacity, the Bluetooth playback device can detect whether the cache capacity corresponding to the audio data is sufficient for audio data playback. condition. If the buffer capacity corresponding to the audio data satisfies the audio data playback conditions, the Bluetooth playback device can play the audio data. When the cache capacity is too high, the delay will be high, and when the cache capacity is too low, the anti-interference ability will be poor. Therefore, the target cache capacity in this embodiment of the present application is determined by the Bluetooth playback device based on the target bit rate level, which can be When the Bluetooth playback device plays audio data, it is possible to take into account the delay and anti-interference in the process of audio data transmission, so as to improve the user experience.

在本申请一个或多个实施例中,在历史采样时长内,获取音频数据传输的采样参数,若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数,因此,只有在采样参数的数量大于或者等于数量阈值时,才会获取稳定性参数,无需进行大量的测试确定固定缓存容量,减少测试资源耗费较高的情况。另外,蓝牙播放设备可以获取当前缓存容量,根据稳定性参数对当前缓存容量进行调整得到目标缓存容量,可以优化不同干扰情况对缓存容量的影响,减少直接调整缓存容量不准确的情况,可以提高缓存容量确定的准确性。In one or more embodiments of the present application, the sampling parameters of audio data transmission are acquired within the historical sampling duration, and if the number of sampling parameters is greater than or equal to the number threshold, the stability of audio data transmission in the historical sampling duration is acquired based on the sampling parameters Therefore, only when the number of sampling parameters is greater than or equal to the number threshold, the stability parameters will be obtained, and there is no need to conduct a large number of tests to determine the fixed cache capacity and reduce the high consumption of test resources. In addition, the Bluetooth playback device can obtain the current cache capacity, and adjust the current cache capacity according to the stability parameters to obtain the target cache capacity, which can optimize the impact of different interference conditions on the cache capacity, reduce the inaccuracy of directly adjusting the cache capacity, and improve the cache capacity. The accuracy of capacity determination.

下面将结合附图9-11,对本申请实施例提供的缓存容量确定装置进行详细介绍。需要说明的是,附图9-11所示的缓存容量确定装置,用于执行本申请图4-图8所示实施例的方法,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请图4-图8所示的实施例。The apparatus for determining the cache capacity provided by the embodiment of the present application will be described in detail below with reference to FIGS. 9-11 . It should be noted that the apparatuses for determining cache capacity shown in FIG. 9-11 are used to execute the methods of the embodiments shown in FIG. 4-FIG. 8 of the present application. For the convenience of description, only those related to the embodiments of the present application are shown. For some, specific technical details are not disclosed, please refer to the embodiments shown in FIG. 4 to FIG. 8 of the present application.

请参见图9,其示出本申请实施例的缓存容量确定装置的结构示意图。该缓存容量确定装置900可以通过软件、硬件或者两者的结合实现成为用户终端的全部或一部分。根据一些实施例,该缓存容量确定装置900包括采样参数获取单元901、稳定性参数获取单元902和缓存容量获取单元903,具体用于:Please refer to FIG. 9 , which shows a schematic structural diagram of an apparatus for determining a cache capacity according to an embodiment of the present application. The buffer capacity determining apparatus 900 may be implemented by software, hardware or a combination of the two to become all or a part of the user terminal. According to some embodiments, the cache capacity determination device 900 includes a sampling parameter obtaining unit 901, a stability parameter obtaining unit 902 and a cache capacity obtaining unit 903, which are specifically used for:

采样参数获取单元901,用于在历史采样时长内,获取音频数据传输的采样参数;Sampling parameter obtaining unit 901, used for obtaining the sampling parameter of audio data transmission within the historical sampling duration;

稳定性参数获取单元902,用于若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数;Stability parameter obtaining unit 902, for if the quantity of sampling parameter is greater than or equal to the quantity threshold, then obtain the stability parameter of audio data transmission within the historical sampling duration based on sampling parameter;

缓存容量获取单元903,用于根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。The buffer capacity obtaining unit 903 is configured to obtain the target buffer capacity according to the stability parameter, where the target buffer capacity is the buffer capacity of the audio data when the Bluetooth playback device and the terminal device are next connected.

根据一些实施例,图10示出本申请实施例的一种缓存容量确定装置的结构示意图。如图10所示,缓存容量获取单元903包括容量获取子单元913和容量调整子单元923,缓存容量获取单元903,用于根据稳定性参数获取目标缓存容量时:According to some embodiments, FIG. 10 shows a schematic structural diagram of an apparatus for determining a cache capacity according to an embodiment of the present application. As shown in FIG. 10 , the cache capacity acquisition unit 903 includes a capacity acquisition subunit 913 and a capacity adjustment subunit 923. The cache capacity acquisition unit 903 is used to acquire the target cache capacity according to the stability parameter:

容量获取子单元913,用于获取当前缓存容量;当前缓存容量为蓝牙播放设备与终端设备当前连接时音频数据的缓存容量;The capacity acquisition subunit 913 is used to obtain the current buffer capacity; the current buffer capacity is the buffer capacity of the audio data when the Bluetooth playback device and the terminal device are currently connected;

容量调整子单元923,用于根据稳定性参数对当前缓存容量进行调整得到目标缓存容量。The capacity adjustment subunit 923 is configured to adjust the current cache capacity according to the stability parameter to obtain the target cache capacity.

根据一些实施例,容量调整子单元923,用于根据稳定性参数对当前缓存容量进行调整得到目标缓存容量时,具体用于:According to some embodiments, the capacity adjustment subunit 923 is configured to adjust the current cache capacity according to the stability parameter to obtain the target cache capacity, and is specifically configured to:

获取当前缓存容量对应的当前参数级别;Get the current parameter level corresponding to the current cache capacity;

根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别;Adjust the current parameter level according to the stability parameter threshold and stability parameter to obtain the target parameter level;

在容量映射信息中获取目标参数级别对应的缓存容量作为目标缓存容量。The cache capacity corresponding to the target parameter level is obtained from the capacity mapping information as the target cache capacity.

根据一些实施例,容量调整子单元923,用于根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别时,具体用于:According to some embodiments, the capacity adjustment subunit 923 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:

在参数级别排序中获取当前参数级别、第一参数级别和第二参数级别;Obtain the current parameter level, the first parameter level and the second parameter level in the parameter level sorting;

获取第一参数级别对应的第一稳定参数阈值,并获取第二参数级别对应的第二稳定参数阈值;acquiring a first stable parameter threshold corresponding to the first parameter level, and acquiring a second stable parameter threshold corresponding to the second parameter level;

其中,第一参数级别在参数级别排序中比当前参数级别高一级,第二参数级别在参数级别排序中比当前参数级别低一级,第一稳定参数阈值大于第二稳定参数阈值。The first parameter level is one level higher than the current parameter level in the parameter level sorting, the second parameter level is one level lower than the current parameter level in the parameter level sorting, and the first stable parameter threshold is greater than the second stable parameter threshold.

根据一些实施例,容量调整子单元923,用于根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别时,具体用于:According to some embodiments, the capacity adjustment subunit 923 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:

在稳定性参数大于第一稳定参数阈值时,确定第一参数级别为目标参数级别,对当前参数级别进行调整得到目标参数级别;When the stability parameter is greater than the first stability parameter threshold, determining the first parameter level as the target parameter level, and adjusting the current parameter level to obtain the target parameter level;

在稳定性参数小于第二稳定参数阈值时,确定第二参数级别为目标参数级别,对当前参数级别进行调整得到目标参数级别;When the stability parameter is less than the second stability parameter threshold, determining the second parameter level as the target parameter level, and adjusting the current parameter level to obtain the target parameter level;

在稳定性参数大于或者等于第二稳定参数阈值,且小于或者等于第一稳定参数阈值时,确定当前参数级别为目标参数级别。When the stability parameter is greater than or equal to the second stability parameter threshold and less than or equal to the first stability parameter threshold, it is determined that the current parameter level is the target parameter level.

根据一些实施例,图11示出本申请实施例的一种缓存容量确定装置的结构示意图。如图11所示,采样参数获取单元901包括信息获取子单元911和参数获取子单元921,采样参数获取单元901用于在历史采样时长内,获取音频数据传输的采样参数时:According to some embodiments, FIG. 11 shows a schematic structural diagram of an apparatus for determining a cache capacity according to an embodiment of the present application. As shown in FIG. 11 , the sampling parameter obtaining unit 901 includes an information obtaining subunit 911 and a parameter obtaining subunit 921. The sampling parameter obtaining unit 901 is used to obtain the sampling parameters of audio data transmission within the historical sampling duration:

信息获取子单元911,用于在历史采样时长内,获取音频数据传输在若干个单位时长内的参数信息;参数信息包括播放卡顿次数、信号强度值、音频数据包的传输间隔时长和音频数据包的重传率中至少一个;The information acquisition subunit 911 is used to acquire the parameter information of the audio data transmission in several unit time lengths within the historical sampling time length; at least one of the retransmission rates of the packet;

参数获取子单元921,用于根据若干个单位时长内的参数信息和参数信息对应的权重系数,获取若干个单位时长对应的若干个采样参数。The parameter acquisition subunit 921 is configured to acquire several sampling parameters corresponding to several unit durations according to the parameter information in several unit durations and the weight coefficients corresponding to the parameter information.

根据一些实施例,参数获取子单元921,用于若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数时,具体用于:According to some embodiments, the parameter obtaining subunit 921 is used for obtaining stability parameters of audio data transmission within the historical sampling duration based on the sampling parameters if the number of sampling parameters is greater than or equal to the number threshold, and is specifically used for:

若采样参数的数量大于或者等于数量阈值,根据预设方式对若干个采样参数进行筛选,得到筛选后的采样参数;If the number of sampling parameters is greater than or equal to the number threshold, filter several sampling parameters according to a preset method to obtain the filtered sampling parameters;

计算筛选后的采样参数的平均采样参数,将平均采样参数作为历史采样时长内音频数据传输的稳定性参数。Calculate the average sampling parameter of the filtered sampling parameters, and use the average sampling parameter as the stability parameter of audio data transmission within the historical sampling duration.

在本申请一个或多个实施例中,通过采样参数获取单元在历史采样时长内,获取音频数据传输的采样参数,若采样参数的数量大于或者等于数量阈值,则稳定性参数获取单元基于采样参数获取历史采样时长内音频数据传输的稳定性参数,缓存容量获取单元可以根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。因此,只有在采样参数的数量大于或者等于数量阈值时,才基于稳定性参数动态的确定目标缓存容量,无需进行大量的测试确定固定缓存容量,减少测试资源耗费较高的情况,可以减少测试资源的耗费,同时,无需每次音频数据播放后对传输情况进行识别,可以减少缓存容量的调节的滞后性,可以兼顾音频数据传输过程中的延时性和抗干扰性,可以在减少测试资源的耗费的同时提高缓存容量确定的准确性和效率。In one or more embodiments of the present application, the sampling parameter acquisition unit acquires the sampling parameters of audio data transmission within the historical sampling duration. If the number of sampling parameters is greater than or equal to the number threshold, the stability parameter acquisition unit is based on the sampling parameters. The stability parameter of audio data transmission within the historical sampling duration is obtained, and the buffer capacity acquisition unit can obtain the target buffer capacity according to the stability parameter, and the target buffer capacity is the buffer capacity of the audio data when the Bluetooth playback device and the terminal device are next connected. Therefore, only when the number of sampling parameters is greater than or equal to the number threshold, the target cache capacity can be dynamically determined based on the stability parameters. There is no need to perform a large number of tests to determine the fixed cache capacity, which can reduce the high consumption of test resources and reduce test resources. At the same time, there is no need to identify the transmission situation after each audio data playback, which can reduce the lag in the adjustment of the buffer capacity, and can take into account the delay and anti-interference in the audio data transmission process, which can reduce the amount of test resources. At the same time, the accuracy and efficiency of cache capacity determination are improved.

本申请实施例还提供了一种计算机存储介质,所述计算机存储介质可以存储有多条指令,所述指令适于由处理器加载并执行如上述图4-图8所示实施例的所述缓存容量确定方法,具体执行过程可以参见图4图8所示实施例的具体说明,在此不进行赘述。An embodiment of the present application further provides a computer storage medium, where the computer storage medium can store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the above-described embodiments shown in FIG. 4 to FIG. 8 . For the specific execution process of the cache capacity determination method, reference may be made to the specific descriptions of the embodiments shown in FIG. 4 and FIG. 8 , which will not be repeated here.

本申请还提供了一种计算机程序产品,该计算机程序产品存储有至少一条指令,所述至少一条指令由所述处理器加载并执行如上述图4-图8所示实施例的所述缓存容量确定方法,具体执行过程可以参见图4-图8所示实施例的具体说明,在此不进行赘述。The present application also provides a computer program product, the computer program product stores at least one instruction, the at least one instruction is loaded by the processor and executes the cache capacity of the embodiment shown in the above-mentioned FIG. 4-FIG. 8 For the determination method and the specific execution process, reference may be made to the specific descriptions of the embodiments shown in FIG. 4 to FIG. 8 , which will not be repeated here.

请参见图12,为本申请实施例提供的一种蓝牙播放设备的结构示意图。如图12所示,所述蓝牙播放设备1200可以包括:至少一个处理器1201,至少一个网络接口1204,用户接口1203,存储器1205,至少一个通信总线1202。Please refer to FIG. 12 , which is a schematic structural diagram of a Bluetooth playback device according to an embodiment of the present application. As shown in FIG. 12 , the Bluetooth playback device 1200 may include: at least one processor 1201 , at least one network interface 1204 , user interface 1203 , memory 1205 , and at least one communication bus 1202 .

其中,通信总线1202用于实现这些组件之间的连接通信。Among them, the communication bus 1202 is used to realize the connection communication between these components.

其中,用户接口1203可以包括扬声器,可选用户接口1203还可以包括标准的有线接口、无线接口。The user interface 1203 may include a speaker, and the optional user interface 1203 may also include a standard wired interface and a wireless interface.

其中,网络接口1204可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。Wherein, the network interface 1204 may optionally include a standard wired interface and a wireless interface (eg, a WI-FI interface).

其中,处理器1201可以包括一个或者多个处理核心。处理器1201利用各种借口和线路连接整个蓝牙播放设备1200内的各个部分,通过运行或执行存储在存储器1205内的指令、程序、代码集或指令集,以及调用存储在存储器1205内的数据,执行蓝牙播放设备1200的各种功能和处理数据。可选的,处理器1201可以采用数字信号处理(Digital SignalProcessing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1201可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics ProcessingUnit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1201中,单独通过一块芯片进行实现。The processor 1201 may include one or more processing cores. The processor 1201 uses various excuses and lines to connect various parts of the entire Bluetooth playback device 1200, and by running or executing the instructions, programs, code sets or instruction sets stored in the memory 1205, and calling the data stored in the memory 1205, Various functions of the Bluetooth playback device 1200 are executed and data is processed. Optionally, the processor 1201 may employ at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). implemented in hardware. The processor 1201 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly handles the operating system, user interface, and application programs; the GPU is used to render and draw the content that needs to be displayed on the display screen; the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1201, but is implemented by a single chip.

其中,存储器1205可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。可选的,该存储器1205包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1205可用于存储指令、程序、代码、代码集或指令集。存储器1205可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等;存储数据区可存储上面各个方法实施例中涉及到的数据等。存储器1205可选的还可以是至少一个位于远离前述处理器1201的存储装置。如图12所示,作为一种计算机存储介质的存储器1205中可以包括操作系统、网络通信模块、用户接口模块以及用于缓存容量确定的应用程序。The memory 1205 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Optionally, the memory 1205 includes a non-transitory computer-readable storage medium. Memory 1205 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 1205 may include a stored program area and a stored data area, wherein the stored program 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 and the like used to implement the above method embodiments; the storage data area may store the data and the like involved in the above method embodiments. The memory 1205 can optionally also be at least one storage device located away from the aforementioned processor 1201 . As shown in FIG. 12, the memory 1205, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an application program for determining the cache capacity.

在图12所示的蓝牙播放设备1200中,用户接口1203主要用于为用户提供输入的接口,获取用户输入的数据;而处理器1201可以用于调用存储器1205中存储的缓存容量确定的应用程序,并具体执行以下操作:In the Bluetooth playback device 1200 shown in FIG. 12 , the user interface 1203 is mainly used to provide an input interface for the user to obtain the data input by the user; and the processor 1201 can be used to call the application program stored in the memory 1205 whose cache capacity is determined , and specifically do the following:

在历史采样时长内,获取音频数据传输的采样参数;Obtain the sampling parameters of audio data transmission within the historical sampling duration;

若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数;If the number of sampling parameters is greater than or equal to the number threshold, the stability parameters of audio data transmission within the historical sampling duration are obtained based on the sampling parameters;

根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。The target buffer capacity is obtained according to the stability parameter, and the target buffer capacity is the buffer capacity of the audio data when the Bluetooth playback device and the terminal device are next connected.

根据一些实施例,处理器1201用于执行根据稳定性参数获取目标缓存容量时,具体执行以下操作:According to some embodiments, when the processor 1201 is configured to obtain the target cache capacity according to the stability parameter, the following operations are specifically performed:

获取当前缓存容量;当前缓存容量为蓝牙播放设备与终端设备当前连接时音频数据的缓存容量;Get the current cache capacity; the current cache capacity is the cache capacity of the audio data when the Bluetooth playback device and the terminal device are currently connected;

根据稳定性参数对当前缓存容量进行调整得到目标缓存容量。Adjust the current cache capacity according to the stability parameter to obtain the target cache capacity.

根据一些实施例,处理器1201用于执行根据稳定性参数对当前缓存容量进行调整得到目标缓存容量时,具体执行以下操作:According to some embodiments, when the processor 1201 is configured to adjust the current cache capacity according to the stability parameter to obtain the target cache capacity, the processor 1201 specifically performs the following operations:

获取当前缓存容量对应的当前参数级别;Get the current parameter level corresponding to the current cache capacity;

根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别;Adjust the current parameter level according to the stability parameter threshold and stability parameter to obtain the target parameter level;

在容量映射信息中获取目标参数级别对应的缓存容量作为目标缓存容量。根据一些实施例,处理器1201用于执行根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别时,具体执行以下操作:The cache capacity corresponding to the target parameter level is obtained from the capacity mapping information as the target cache capacity. According to some embodiments, the processor 1201 is configured to perform the following operations when the current parameter level is adjusted according to the stability parameter threshold and the stability parameter to obtain the target parameter level:

在参数级别排序中获取当前参数级别、第一参数级别和第二参数级别;Obtain the current parameter level, the first parameter level and the second parameter level in the parameter level sorting;

获取第一参数级别对应的第一稳定参数阈值,并获取第二参数级别对应的第二稳定参数阈值;acquiring a first stable parameter threshold corresponding to the first parameter level, and acquiring a second stable parameter threshold corresponding to the second parameter level;

其中,第一参数级别在参数级别排序中比当前参数级别高一级,第二参数级别在参数级别排序中比当前参数级别低一级,第一稳定参数阈值大于第二稳定参数阈值。The first parameter level is one level higher than the current parameter level in the parameter level sorting, the second parameter level is one level lower than the current parameter level in the parameter level sorting, and the first stable parameter threshold is greater than the second stable parameter threshold.

根据一些实施例,处理器1201用于执行根据稳定参数阈值和稳定性参数对当前参数级别进行调整得到目标参数级别时,具体执行以下操作:According to some embodiments, the processor 1201 is configured to perform the following operations when the current parameter level is adjusted according to the stability parameter threshold and the stability parameter to obtain the target parameter level:

在稳定性参数大于第一稳定参数阈值时,确定第一参数级别为目标参数级别,对当前参数级别进行调整得到目标参数级别;When the stability parameter is greater than the first stability parameter threshold, determining the first parameter level as the target parameter level, and adjusting the current parameter level to obtain the target parameter level;

在稳定性参数小于第二稳定参数阈值时,确定第二参数级别为目标参数级别,对当前参数级别进行调整得到目标参数级别;When the stability parameter is less than the second stability parameter threshold, determining the second parameter level as the target parameter level, and adjusting the current parameter level to obtain the target parameter level;

在稳定性参数大于或者等于第二稳定参数阈值,且小于或者等于第一稳定参数阈值时,确定当前参数级别为目标参数级别。When the stability parameter is greater than or equal to the second stability parameter threshold and less than or equal to the first stability parameter threshold, it is determined that the current parameter level is the target parameter level.

根据一些实施例,处理器1201用于执行在历史采样时长内,获取音频数据传输的采样参数时,具体执行以下操作:According to some embodiments, the processor 1201 is configured to perform the following operations when acquiring sampling parameters for audio data transmission within the historical sampling duration:

在历史采样时长内,获取音频数据传输在若干个单位时长内的参数信息;参数信息包括播放卡顿次数、信号强度值、音频数据包的传输间隔时长和音频数据包的重传率中至少一个;In the historical sampling duration, the parameter information of the audio data transmission in several unit durations is obtained; the parameter information includes at least one of the number of playback freezes, the signal strength value, the transmission interval length of the audio data packet, and the retransmission rate of the audio data packet ;

根据若干个单位时长内的参数信息和参数信息对应的权重系数,获取若干个单位时长对应的若干个采样参数。According to the parameter information in several unit durations and the weight coefficients corresponding to the parameter information, several sampling parameters corresponding to several unit durations are obtained.

根据一些实施例,处理器1201用于执行若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数时,具体执行以下操作:According to some embodiments, the processor 1201 is configured to perform the following operations when obtaining the stability parameter of audio data transmission within the historical sampling duration based on the sampling parameter if the number of sampling parameters is greater than or equal to the number threshold:

若采样参数的数量大于或者等于数量阈值,根据预设方式对若干个采样参数进行筛选,得到筛选后的采样参数;If the number of sampling parameters is greater than or equal to the number threshold, filter several sampling parameters according to a preset method to obtain the filtered sampling parameters;

计算筛选后的采样参数的平均采样参数,将平均采样参数作为历史采样时长内音频数据传输的稳定性参数。Calculate the average sampling parameter of the filtered sampling parameters, and use the average sampling parameter as the stability parameter of audio data transmission within the historical sampling duration.

在本申请一个或多个实施例中,通过在历史采样时长内,获取音频数据传输的采样参数,若采样参数的数量大于或者等于数量阈值,则基于采样参数获取历史采样时长内音频数据传输的稳定性参数,根据稳定性参数获取目标缓存容量,目标缓存容量为蓝牙播放设备与终端设备下一次连接时音频数据的缓存容量。因此,只有在采样参数的数量大于或者等于数量阈值时,才基于稳定性参数动态的确定目标缓存容量,无需进行大量的测试确定固定缓存容量,减少测试资源耗费较高的情况,可以减少测试资源的耗费,同时,无需每次音频数据播放后对传输情况进行识别,可以减少缓存容量的调节的滞后性,可以兼顾音频数据传输过程中的延时性和抗干扰性,可以在减少测试资源的耗费的同时提高缓存容量确定的准确性和效率。In one or more embodiments of the present application, by acquiring the sampling parameters of audio data transmission within the historical sampling duration, if the number of sampling parameters is greater than or equal to the number threshold, the sampling parameters of the audio data transmission in the historical sampling duration are acquired based on the sampling parameters The stability parameter is to obtain the target cache capacity according to the stability parameter, and the target cache capacity is the cache capacity of the audio data when the Bluetooth playback device and the terminal device are next connected. Therefore, only when the number of sampling parameters is greater than or equal to the number threshold, the target cache capacity can be dynamically determined based on the stability parameters. There is no need to perform a large number of tests to determine the fixed cache capacity, which can reduce the high consumption of test resources and reduce test resources. At the same time, there is no need to identify the transmission situation after each audio data playback, which can reduce the lag in the adjustment of the buffer capacity, and can take into account the delay and anti-interference in the audio data transmission process, which can reduce the amount of test resources. At the same time, the accuracy and efficiency of cache capacity determination are improved.

除此之外,本领域技术人员可以理解,上述附图所示出的终端的结构并不构成对终端的限定,终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端中还包括射频电路、输入单元、传感器、音频电路、无线保真(wirelessfidelity,WiFi)模块、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal shown in the above drawings does not constitute a limitation on the terminal, and the terminal may include more or less components than those shown in the drawings, or combine certain components, Or a different component arrangement. For example, the terminal further includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (WiFi) module, a power supply, and a Bluetooth module, which will not be repeated here.

在本申请实施例中,各步骤的执行主体可以是上文介绍的终端。可选地,各步骤的执行主体为终端的操作系统。操作系统可以是安卓系统,也可以是IOS系统,或者其它操作系统,本申请实施例对此不作限定。In this embodiment of the present application, the execution body of each step may be the terminal described above. Optionally, the execution body of each step is the operating system of the terminal. The operating system may be an Android system, an IOS system, or other operating systems, which are not limited in this embodiment of the present application.

本申请实施例的终端,其上还可以安装有显示设备,显示设备可以是各种能实现显示功能的设备,例如:阴极射线管显示器(cathode ray tubedisplay,简称CR)、发光二极管显示器(light-emitting diode display,简称LED)、电子墨水屏、液晶显示屏(liquidcrystal display,简称LCD)、等离子显示面板(plasma display panel,简称PDP)等。用户可以利用终端100上的显示设备,来查看显示的文字、图像、视频等信息。所述终端可以是智能手机、平板电脑、游戏设备、AR(Augmented Reality,增强现实)设备、汽车、数据存储装置、音频播放装置、视频播放装置、笔记本、桌面计算设备、可穿戴设备诸如电子手表、电子眼镜、电子头盔、电子手链、电子项链、电子衣物等设备。The terminal according to the embodiment of the present application may also have a display device installed thereon, and the display device may be various devices that can realize a display function, such as a cathode ray tube display (CR), a light-emitting diode display (light-emitting diode display). emitting diode display, referred to as LED), electronic ink screen, liquid crystal display (liquid crystal display, referred to as LCD), plasma display panel (plasma display panel, referred to as PDP) and so on. The user can use the display device on the terminal 100 to view the displayed text, image, video and other information. The terminal may be a smart phone, a tablet computer, a gaming device, an AR (Augmented Reality, augmented reality) device, a car, a data storage device, an audio playback device, a video playback device, a notebook, a desktop computing device, a wearable device such as an electronic watch , electronic glasses, electronic helmets, electronic bracelets, electronic necklaces, electronic clothing and other equipment.

本领域的技术人员可以清楚地了解到本申请的技术方案可借助软件和/或硬件来实现。本说明书中的“单元”和“模块”是指能够独立完成或与其他部件配合完成特定功能的软件和/或硬件,其中硬件例如可以是现场可编程门阵列(Field-ProgrammaBLE GateArray,FPGA)、集成电路(Integrated Circuit,IC)等。Those skilled in the art can clearly understand that the technical solutions of the present application can be implemented by means of software and/or hardware. The "unit" and "module" in this specification refer to software and/or hardware that can complete a specific function independently or in cooperation with other components, wherein the hardware can be, for example, a Field-Programmable Gate Array (FPGA), Integrated Circuit (IC), etc.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that, for the sake of simple description, the foregoing method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with the present application, certain steps may be performed in other orders or concurrently. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些服务接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some service interfaces, indirect coupling or communication connection of devices or units, and may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or all or part of the technical solution, and the computer software product is stored in a memory, Several instructions are included to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通进程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(Random AccessMemory,RAM)、磁盘或光盘等。Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: flash memory disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc.

以上所述者,仅为本公开的示例性实施例,不能以此限定本公开的范围。即但凡依本公开教导所作的等效变化与修饰,皆仍属本公开涵盖的范围内。本领域技术人员在考虑说明书及实践这里的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未记载的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的范围和精神由权利要求限定。The above descriptions are merely exemplary embodiments of the present disclosure, which cannot limit the scope of the present disclosure. That is, all equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or conventional techniques in the art not described in this disclosure . The specification and examples are to be regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims (10)

1. A buffer capacity determining method is applied to Bluetooth playing equipment and is characterized by comprising the following steps:
acquiring sampling parameters of audio data transmission within historical sampling duration;
if the number of the sampling parameters is larger than or equal to a number threshold, acquiring stability parameters of audio data transmission in the historical sampling duration based on the sampling parameters;
and acquiring a target cache capacity according to the stability parameter, wherein the target cache capacity is the cache capacity of audio data when the Bluetooth playing device is connected with the terminal device next time.
2. The method of claim 1, wherein obtaining a target cache capacity according to the stability parameter comprises:
acquiring the current cache capacity; the current cache capacity is the cache capacity of audio data when the Bluetooth playing device is currently connected with the terminal device;
and adjusting the current cache capacity according to the stability parameter to obtain a target cache capacity.
3. The method of claim 2, wherein the adjusting the current buffer size according to the stability parameter to obtain a target buffer size comprises:
acquiring a current parameter level corresponding to the current cache capacity;
adjusting the current parameter level according to a stability parameter threshold and the stability parameter to obtain a target parameter level;
and acquiring the cache capacity corresponding to the target parameter level from the capacity mapping information as a target cache capacity.
4. The method of claim 3, wherein the adjusting the current parameter level according to a stability parameter threshold and the stability parameter to obtain a target parameter level comprises:
acquiring a current parameter level, a first parameter level and a second parameter level in the parameter level sequence;
acquiring a first stable parameter threshold corresponding to the first parameter level, and acquiring a second stable parameter threshold corresponding to the second parameter level;
wherein the first parameter level is one level above the current parameter level in the parameter level ordering, the second parameter level is one level below the current parameter level in the parameter level ordering, and the first stability parameter threshold is greater than the second stability parameter threshold.
5. The method of claim 4, wherein the adjusting the current parameter level according to a stability parameter threshold and the stability parameter to obtain a target parameter level comprises:
when the stability parameter is larger than the first stability parameter threshold, determining that the first parameter level is a target parameter level, and adjusting the current parameter level to obtain the target parameter level;
when the stability parameter is smaller than the second stability parameter threshold, determining the second parameter level as the target parameter level, and adjusting the current parameter level to obtain the target parameter level;
and when the stability parameter is greater than or equal to the second stability parameter threshold and less than or equal to the first stability parameter threshold, determining the current parameter level as the target parameter level.
6. The method of claim 1, wherein obtaining sampling parameters for audio data transmission over historical sampling durations comprises:
acquiring parameter information of audio data transmission in a plurality of unit time lengths in historical sampling time lengths; the parameter information comprises at least one of playing pause times, signal intensity values, transmission interval duration of audio data packets and retransmission rates of the audio data packets;
and acquiring a plurality of sampling parameters corresponding to the unit time lengths according to the parameter information in the unit time lengths and the weight coefficients corresponding to the parameter information.
7. The method of claim 6, wherein obtaining the stability parameter of audio data transmission in the historical sampling duration based on the sampling parameter if the number of the sampling parameters is greater than or equal to a number threshold comprises:
if the number of the sampling parameters is larger than or equal to the number threshold, screening the sampling parameters according to a preset mode to obtain the screened sampling parameters;
and calculating the average sampling parameter of the screened sampling parameters, and taking the average sampling parameter as the stability parameter of audio data transmission in the historical sampling duration.
8. An apparatus for determining a buffer capacity, the apparatus comprising:
the sampling parameter acquisition unit is used for acquiring sampling parameters of audio data transmission within historical sampling duration;
a stability parameter obtaining unit, configured to obtain, based on the sampling parameter, a stability parameter of audio data transmission within the historical sampling duration if the number of the sampling parameters is greater than or equal to a number threshold;
and the cache capacity acquisition unit is used for acquiring a target cache capacity according to the stability parameter, wherein the target cache capacity is the cache capacity of the audio data when the Bluetooth playing device is connected with the terminal device next time.
9. A bluetooth playback device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor carries out the method of any one of the preceding claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of the preceding claims 1 to 7.
CN202110444012.3A 2021-04-23 2021-04-23 Cache capacity determining method and device, bluetooth playing equipment and storage medium Active CN115240719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110444012.3A CN115240719B (en) 2021-04-23 2021-04-23 Cache capacity determining method and device, bluetooth playing equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110444012.3A CN115240719B (en) 2021-04-23 2021-04-23 Cache capacity determining method and device, bluetooth playing equipment and storage medium

Publications (2)

Publication Number Publication Date
CN115240719A true CN115240719A (en) 2022-10-25
CN115240719B CN115240719B (en) 2024-08-13

Family

ID=83666648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110444012.3A Active CN115240719B (en) 2021-04-23 2021-04-23 Cache capacity determining method and device, bluetooth playing equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115240719B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024199055A1 (en) * 2023-03-24 2024-10-03 深圳Tcl新技术有限公司 Audio processing method and apparatus, electronic device and computer-readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006011867A1 (en) * 2004-06-25 2006-02-02 Numerex Corporation Method and system for adjusting digital audio playback sampling rate
CN102736999A (en) * 2011-03-28 2012-10-17 雅马哈株式会社 Audio data inputting apparatus and audio data outputting apparatus
CN103594103A (en) * 2013-11-15 2014-02-19 腾讯科技(成都)有限公司 Audio processing method and related device
US20180220170A1 (en) * 2016-01-28 2018-08-02 Tencent Technology (Shenzhen) Company Limited Method and apparatus for transmitting data of mobile terminal
CN109151194A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and storage medium
WO2020132907A1 (en) * 2018-12-25 2020-07-02 华为技术有限公司 Communication method for audio data, and electronic device
CN112105006A (en) * 2019-12-12 2020-12-18 炬力(珠海)微电子有限公司 Bluetooth device playing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006011867A1 (en) * 2004-06-25 2006-02-02 Numerex Corporation Method and system for adjusting digital audio playback sampling rate
CN102736999A (en) * 2011-03-28 2012-10-17 雅马哈株式会社 Audio data inputting apparatus and audio data outputting apparatus
CN103594103A (en) * 2013-11-15 2014-02-19 腾讯科技(成都)有限公司 Audio processing method and related device
US20180220170A1 (en) * 2016-01-28 2018-08-02 Tencent Technology (Shenzhen) Company Limited Method and apparatus for transmitting data of mobile terminal
CN109151194A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Data transmission method, device, electronic equipment and storage medium
WO2020132907A1 (en) * 2018-12-25 2020-07-02 华为技术有限公司 Communication method for audio data, and electronic device
CN112105006A (en) * 2019-12-12 2020-12-18 炬力(珠海)微电子有限公司 Bluetooth device playing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024199055A1 (en) * 2023-03-24 2024-10-03 深圳Tcl新技术有限公司 Audio processing method and apparatus, electronic device and computer-readable storage medium

Also Published As

Publication number Publication date
CN115240719B (en) 2024-08-13

Similar Documents

Publication Publication Date Title
CN103594103B (en) Audio-frequency processing method and relevant apparatus
CN111278119B (en) Interference processing method, base station and terminal
WO2015035870A1 (en) Multiple cpu scheduling method and device
CN111857515B (en) Image processing method, device, storage medium and electronic equipment
CN106126165B (en) A kind of audio stream processing method and mobile terminal
CN105933537A (en) Volume processing method and user terminal
JP2015524639A (en) Signal-aware data transmission in cellular networks
CN109995862B (en) Resource scheduling method and terminal
CN107817988A (en) Push message management method and related products
WO2023246516A1 (en) Method and apparatus for generating visit report of clinical research project
CN107748699A (en) Resource Allocation Methods and Related Products
WO2020061824A1 (en) Charging prompt method and related product
CN111818657B (en) Uplink transmission discarding method, uplink transmission discarding configuration method and related equipment
CN115240719B (en) Cache capacity determining method and device, bluetooth playing equipment and storage medium
WO2020164521A1 (en) Data packet distribution method and apparatus, and mobile terminal and storage medium
WO2017193268A1 (en) Uplink data transmission method, terminal device, and network device
CN106131747A (en) A sound effect adding method and user terminal
CN111970668B (en) Bluetooth audio control method, device and computer readable storage medium
CN108029045A (en) Method for optimizing video, user equipment and the network equipment
CN109462826A (en) A kind of group paging method, user equipment, the network equipment and computer readable storage medium
CN115243322B (en) Cache capacity determination method, device, bluetooth playback device and storage medium
CN114466441B (en) Method and device for adjusting transmitting power, storage medium and WiFi equipment
CN109150457B (en) Control information transmission method and terminal equipment
CN114698031A (en) Code rate determining method and device, Bluetooth playing equipment and storage medium
WO2018209781A1 (en) Scheduling method and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant