WO2021072980A1 - 一种耳机数据传输方法、系统、设备及计算机存储介质 - Google Patents

一种耳机数据传输方法、系统、设备及计算机存储介质 Download PDF

Info

Publication number
WO2021072980A1
WO2021072980A1 PCT/CN2019/129584 CN2019129584W WO2021072980A1 WO 2021072980 A1 WO2021072980 A1 WO 2021072980A1 CN 2019129584 W CN2019129584 W CN 2019129584W WO 2021072980 A1 WO2021072980 A1 WO 2021072980A1
Authority
WO
WIPO (PCT)
Prior art keywords
data type
data
decimal places
sum
determining
Prior art date
Application number
PCT/CN2019/129584
Other languages
English (en)
French (fr)
Inventor
何冲
Original Assignee
歌尔股份有限公司
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 歌尔股份有限公司 filed Critical 歌尔股份有限公司
Priority to US17/594,041 priority Critical patent/US11838062B2/en
Publication of WO2021072980A1 publication Critical patent/WO2021072980A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B11/00Transmission systems employing sonic, ultrasonic or infrasonic waves
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/04Circuits for transducers, loudspeakers or microphones for correcting frequency response
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/07Applications of wireless loudspeakers or wireless microphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S2400/00Details of stereophonic systems covered by H04S but not provided for in its groups
    • H04S2400/09Electronic reduction of distortion of stereophonic sound systems

Definitions

  • This application relates to the field of communication technology, and more specifically, to a headset data transmission method, system, equipment, and computer storage medium.
  • Earphones are a pair of conversion units that receive electrical signals from media players or receivers, and use speakers close to the ears to convert them into audible sound waves.
  • earphones provide users with more and more choices. For example, users can choose wired earphones, TWS (True Wireless Stereo, true wireless) earphones, and so on.
  • TWS Truste Wireless Stereo, true wireless
  • the purpose of this application is to provide a headset data transmission method, which can solve the technical problem of how to improve the transmission performance of headset data to a certain extent.
  • This application also provides a headset data transmission system, equipment, and computer-readable storage medium.
  • a headset data transmission method, applied to headsets, includes:
  • the decimal places are at least two orders larger than the sum value Before the data type of is determined as the third data type of the FIR filtering result, it also includes:
  • the method further includes:
  • the performing FIR filtering on the data to be transmitted includes:
  • FIR filtering is performed on the data to be transmitted in a parallel manner.
  • a headset data transmission system applied to headsets including:
  • the first obtaining module is used to obtain the first data type of the data to be transmitted
  • the second acquiring module is used to acquire the second data type of the set FIR filter coefficient
  • a first determining module configured to determine the sum of the decimal places of the first data type and the second data type
  • the second determining module is configured to determine, among the preset data types, a data type with a number of decimal places at least two orders greater than the sum value as the third data type of the FIR filtering result;
  • the first filtering module is configured to perform FIR filtering on the data to be transmitted to obtain a target filtering result and transmit it.
  • it also includes:
  • the third acquiring module is configured to: after the first determining module determines the sum of the decimal places of the first data type and the second data type, the second determining module sets the value in the preset data type Before the data type with the number of decimal places greater than the sum value by at least two orders is determined as the third data type of the FIR filtering result, obtaining the set fourth data type of the FIR filtering result;
  • the first judgment module is configured to judge whether the number of decimal places of the fourth data type is at least two orders greater than the sum value in the preset data type, and if not, prompt the second determination model to execute The step of determining, among the preset data types, a data type with a number of decimal places at least two orders greater than the sum value as the third data type of the FIR filtering result.
  • it also includes:
  • the second judgment module is used for judging whether the chip of the earphone is a fixed-point chip before the first determining module determines the sum of the decimal places of the first data type and the second data type, and if so, then The first determining module is prompted to perform the step of determining the sum of the decimal places of the first data type and the second data type.
  • the first filtering module includes:
  • the first filtering unit is configured to perform FIR filtering on the data to be transmitted in a parallel manner.
  • a headset data transmission device applied to headsets including:
  • Memory used to store computer programs
  • the processor is used to implement the steps of any of the earphone data transmission methods described above when the computer program is executed.
  • a computer-readable storage medium in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the earphone data transmission methods described above are realized.
  • a headset data transmission method provided in this application is applied to headsets to obtain the first data type of the data to be transmitted; obtain the second data type of the set FIR filter coefficient; determine the decimals of the first data type and the second data type The sum value of the number of digits; among the preset data types, the data type with the number of decimal places at least two orders greater than the sum value is determined as the third data type of the FIR filtering result; the data to be transmitted is subjected to FIR filtering to obtain the target filtering result and transmission.
  • the data type whose decimal places are at least two orders greater than the sum of the decimal places of the data to be transmitted and the FIR filter coefficient is determined as the result of the FIR filter.
  • the third data type, and the data to be transmitted is filtered according to the third data type, which reduces the noise of the data to be transmitted, and there will be no sound breakage or loss of sound caused by the overflow of the filtering result during the filtering process, ensuring FIR filtering
  • the resulting sound effect improves the performance of the headset to transmit data.
  • the headset data transmission system, equipment, and computer-readable storage medium provided in this application also solve the corresponding technical problems.
  • FIG. 1 is a flowchart of a method for transmitting earphone data according to an embodiment of the application
  • FIG. 1 is the FIR filter output result diagram in the experiment
  • Figure 3 is a graph of FIR filtering error in the experiment.
  • Figure 4 is a graph of FIR filtering duration in the experiment.
  • FIG. 5 is a schematic structural diagram of a headset data transmission system provided by an embodiment of the application.
  • FIG. 6 is a schematic structural diagram of a headset data transmission device provided by an embodiment of the application.
  • FIG. 7 is a schematic diagram of another structure of a headset data transmission device provided by an embodiment of the application.
  • Earphones are a pair of conversion units that receive electrical signals from media players or receivers, and use speakers close to the ears to convert them into audible sound waves.
  • TWS Truste Wireless Stereo, true wireless
  • FIG. 1 is a flowchart of a method for transmitting earphone data according to an embodiment of the application.
  • An earphone data transmission method provided by an embodiment of the present application, applied to earphones, may include the following steps:
  • Step S101 Obtain the first data type of the data to be transmitted.
  • Step S102 Obtain the second data type of the set FIR filter coefficient.
  • Step S103 Determine the sum of the decimal places of the first data type and the second data type.
  • Step S104 among the preset data types, determine a data type with a decimal place greater than the sum value by at least two orders as the third data type of the FIR filtering result.
  • the decimal places of each data type will have a single-digit ranking, such as Q15, Q31, Q63, Q63
  • the number of decimal places is two orders greater than that of Q15, and the number of decimal places of Q31 is one order greater than that of Q15.
  • a data type that is one order larger than the first data type of the data to be transmitted is generally selected as the data type of the FIR filtering result, and the data types include Q15, Q31, and Q63 as the data type.
  • the data type of the FIR filtering result is Q63.
  • the filtering result will exceed Q63. If it is not processed, it will cause the filtering result Sound breakage and distortion occur, which affect the transmission of headset data.
  • the applicant analyzed the FIR filtering process of the headset data:
  • the filter coefficient of the earphone is b(n) (-1 ⁇ b(n) ⁇ 0.9999695), the input signal is x(n), and the output is y(n), and Among them, numTaps represents the length of the filter coefficient;
  • the FIR filter result is defined as the data type of Q31 to prevent the earphone from overflowing, but in actual applications, It is not always true.
  • the earphone can never overflow the FIR filtering result.
  • Step S105 Perform FIR filtering on the data to be transmitted to obtain the target filtering result and transmit it.
  • a headset data transmission method provided in this application is applied to headsets to obtain the first data type of the data to be transmitted; obtain the second data type of the set FIR filter coefficient; determine the decimals of the first data type and the second data type The sum value of the number of digits; among the preset data types, the data type with the number of decimal places at least two orders greater than the sum value is determined as the third data type of the FIR filtering result; the data to be transmitted is subjected to FIR filtering to obtain the target filtering result and transmission.
  • the data type whose decimal places are at least two orders greater than the sum of the decimal places of the data to be transmitted and the FIR filter coefficient is determined as the result of the FIR filter.
  • the third data type, and the data to be transmitted is filtered according to the third data type, which reduces the noise of the data to be transmitted, and there will be no sound breakage or loss of sound caused by the overflow of the filtering result during the filtering process, ensuring FIR filtering
  • the resulting sound effect improves the performance of the headset to transmit data.
  • the headphone data transmission method provided in this application is applied to headphones, when the decimal places of the data type of the set FIR filtering result are at least two orders greater than the sum of the decimal places of the first data type and the second data type It is not necessary to adjust the data type of the set FIR filter result.
  • the headset determines the sum of the decimal places of the first data type and the second data type, in the preset data type, the decimal places are compared with Before the data type whose sum value is at least two orders greater is determined as the third data type of the FIR filter result, the fourth data type of the set FIR filter result can also be obtained; determine the decimal value of the fourth data type in the preset data type Whether the number of digits is at least two orders greater than the sum value, if not, the step of determining a data type with a decimal number of at least two orders greater than the sum value in the preset data type is performed as the third data type of the FIR filtering result.
  • the headset data transmission method provided in this application is applied to headsets. If the headset chip is a floating-point chip, you can ignore the overflow of the FIR filter result, and when the headset chip is a fixed-point chip, you must pay attention to the overflow of the FIR filter result. Therefore, before the headset determines the sum of the decimal places of the first data type and the second data type, it can also determine whether the chip of the headset is a fixed-point chip. If so, perform the determination of the first data type and the second data type. The step of the sum of decimal places.
  • the earphone data transmission method provided by the present application is applied to earphones.
  • the data to be transmitted can be FIR filtered in a parallel manner.
  • the number of parallels can be determined according to actual needs, for example, the number of parallels can be 8 and so on.
  • Matlab-Fixed is a Matlab fixed-point filtering scheme
  • C-Fixed represents a fixed-point scheme that calculates one sample value at a time
  • C-Fixed-8 is a fixed-point scheme that calculates 8 points at a time in this scheme.
  • the first line is the filtering result graph of Matlab and C fixed-point scheme
  • the second line is the filtering result of the first 1 to 2000 sample points in each filtering result. From the analysis in Fig. 2, it can be seen that the graph trend of the respective filtering results is almost the same.
  • FIG. 5 is a schematic structural diagram of a headset data transmission system provided by an embodiment of the application.
  • An earphone data transmission system provided by an embodiment of the present application, applied to earphones, may include:
  • the first obtaining module 101 is configured to obtain the first data type of the data to be transmitted;
  • the second obtaining module 102 is configured to obtain the second data type of the set FIR filter coefficient
  • the first determining module 103 is configured to determine the sum of the decimal places of the first data type and the second data type;
  • the second determining module 104 is configured to determine, among the preset data types, a data type with a decimal place ratio of at least two orders greater than the sum value as the third data type of the FIR filtering result;
  • the first filtering module 105 is configured to perform FIR filtering on the data to be transmitted to obtain the target filtering result and transmit it.
  • An earphone data transmission system provided by an embodiment of the present application, applied to earphones, may further include:
  • the third acquiring module is used for the first determining module to determine the sum of the decimal places of the first data type and the second data type, the second determining module in the preset data type, the decimal place is greater than the sum at least Before the two-level data type is determined as the third data type of the FIR filtering result, obtain the fourth data type of the set FIR filtering result;
  • the first judging module is used to judge whether the decimal places of the fourth data type are at least two orders greater than the sum value in the preset data type, and if not, it prompts the second determining model to execute in the preset data type, and The step of determining the data type with the number of decimal places at least two orders greater than the sum value as the third data type of the FIR filtering result.
  • An earphone data transmission system provided by an embodiment of the present application, applied to earphones, may further include:
  • the second determining module is used for determining whether the chip of the headset is a fixed-point chip before the first determining module determines the sum of the decimal places of the first data type and the second data type, and if so, prompting the first determining module to perform the determination The step of summing the decimal places of one data type and the second data type.
  • An earphone data transmission system is applied to earphones, and the first filter module may include:
  • the first filtering unit is configured to perform FIR filtering on the data to be transmitted in a parallel manner.
  • the present application also provides a headset data transmission device and a computer-readable storage medium, both of which have the corresponding effects of the headset data transmission method provided in the embodiments of the present application.
  • FIG. 6 is a schematic structural diagram of a headset data transmission device according to an embodiment of the application.
  • a headset data transmission device provided by an embodiment of the present application includes a memory 201 and a processor 202.
  • the memory 201 stores a computer program.
  • the processor 202 implements the headset data transmission method described in any of the above embodiments when the computer program is executed. step.
  • another headset data transmission device may further include: an input port 203 connected to the processor 202, for transmitting commands input from the outside to the processor 202; connected to the processor 202
  • the display unit 204 is used to display the processing result of the processor 202 to the outside;
  • the communication module 205 connected to the processor 202 is used to implement the communication between the headset data transmission device and the outside.
  • the display unit 204 may be a display panel, a laser scanning display, etc.; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high-definition link technology (HML), universal serial bus (USB), high-definition multimedia interface (HDMI), Wireless connection: wireless fidelity technology (WiFi), Bluetooth communication technology, low-power Bluetooth communication technology, communication technology based on IEEE802.11s.
  • HML mobile high-definition link technology
  • USB universal serial bus
  • HDMI high-definition multimedia interface
  • WiFi wireless fidelity technology
  • Bluetooth communication technology Low-power Bluetooth communication technology
  • An embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of the headset data transmission method described in any of the above embodiments are implemented.
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically programmable ROM
  • EEPly erasable programmable ROM registers
  • hard disks hard disks
  • removable disks or CD-ROMs , Or any other form of storage medium known in the technical field.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Headphones And Earphones (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

本申请公开了一种耳机数据传输方法、系统、设备及计算机存储介质,应用于耳机,获取待传输数据的第一数据类型;获取设定的FIR滤波系数的第二数据类型;确定第一数据类型与第二数据类型的小数位数的和值;在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;对待传输数据进行FIR滤波,得到目标滤波结果并传输。本申请中,在预设数据类型中,将小数位数比待传输数据及FIR滤波系数的小数位数和值大至少两阶的数据类型,确定为FIR滤波结果的第三数据类型,并且按照第三数据类型对待传输数据进行滤波,在滤波过程中不会出现因滤波结果溢出导致的破音、失音等现象,提高了耳机传输数据的性能。

Description

一种耳机数据传输方法、系统、设备及计算机存储介质
本申请要求于2019年10月18日提交中国专利局、申请号201910996176.X、申请名称为“一种耳机数据传输方法、系统、设备及计算机存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,更具体地说,涉及一种耳机数据传输方法、系统、设备及计算机存储介质。
背景技术
随着通信技术的发展,用户在应用手机、平板等电子设备时,为了使得人耳舒适的接收数据,会使用耳机来传输数据。耳机(Earphones;Headphones;Head-sets;Earpieces)是一对转换单元,接受媒体播放器或接收器所发出的电讯号,利用贴近耳朵的扬声器将其转化成可以听到的音波。
当前,耳机种类的增多为用户提供了越来越多的选择机会,比如用户可以选择有线耳机、TWS(True Wireless Stereo,真无线)耳机等。
然而,用户在应用耳机进行数据传输时,可能出现破音和失真等现象,用户体验性差。
综上所述,如何提高耳机数据的传输性能是目前本领域技术人员亟待解决的问题。
发明内容
本申请的目的是提供一种耳机数据传输方法,其能在一定程度上解决如何提高耳机数据的传输性能的技术问题。本申请还提供了一种耳机数据传输系统、设备及计算机可读存储介质。
为了实现上述目的,本申请提供如下技术方案:
一种耳机数据传输方法,应用于耳机,包括:
获取待传输数据的第一数据类型;
获取设定的FIR滤波系数的第二数据类型;
确定所述第一数据类型与所述第二数据类型的小数位数的和值;
在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;
对所述待传输数据进行FIR滤波,得到目标滤波结果并传输。
优选的,所述确定所述第一数据类型与所述第二数据类型的小数位数的和值之后,所述在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型之前,还包括:
获取设定的FIR滤波结果的第四数据类型;
判断在所述预设数据类型中,所述第四数据类型的小数位数是否比所述和值大至少两阶,若否,则执行所述在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型的步骤。
优选的,所述确定所述第一数据类型与所述第二数据类型的小数位数的和值之前,还包括:
判断所述耳机的芯片是否为定点芯片,若是,则执行所述确定所述第一数据类型与所述第二数据类型的小数位数的和值的步骤。
优选的,所述对所述待传输数据进行FIR滤波,包括:
通过并行方式对所述待传输数据进行FIR滤波。
一种耳机数据传输系统,应用于耳机,包括:
第一获取模块,用于获取待传输数据的第一数据类型;
第二获取模块,用于获取设定的FIR滤波系数的第二数据类型;
第一确定模块,用于确定所述第一数据类型与所述第二数据类型的小数位数的和值;
第二确定模块,用于在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;
第一滤波模块,用于对所述待传输数据进行FIR滤波,得到目标滤波结果并传输。
优选的,还包括:
第三获取模块,用于所述第一确定模块确定所述第一数据类型与所述第二数据类型的小数位数的和值之后,所述第二确定模块在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型之前,获取设定的FIR滤波结果的第四数据类型;
第一判断模块,用于判断在所述预设数据类型中,所述第四数据类型的小数位数是否比所述和值大至少两阶,若否,则提示所述第二确定模型执行所述在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型的步骤。
优选的,还包括:
第二判断模块,用于所述第一确定模块确定所述第一数据类型与所述第二数据类型的小数位数的和值之前,判断所述耳机的芯片是否为定点芯片,若是,则提示所述第一确定模块执行所述确定所述第一数据类型与所述第二数据类型的小数位数的和值的步骤。
优选的,所述第一滤波模块包括:
第一滤波单元,用于通过并行方式对所述待传输数据进行FIR滤波。
一种耳机数据传输设备,应用于耳机,包括:
存储器,用于存储计算机程序;
处理器,用于执行所述计算机程序时实现如上任一所述耳机数据传输方法的步骤。
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如上任一所述耳机数据传输方法的步骤。
本申请提供的一种耳机数据传输方法,应用于耳机,获取待传输数据的第一数据类型;获取设定的FIR滤波系数的第二数据类型;确定第一数据类型与第二数据类型的小数位数的和值;在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;对待传输数据进行FIR滤波,得到目标滤波结果并传输。本申请提供的一种耳机数据传输方法,在预设数据类型中,将小数位数比待传输数据及FIR滤波系数的小数位数和值大至少两阶的数据类型,确定为FIR滤波结果的第三数据类型,并且按照第三数据类型对待传输数据进行滤波,降低了待传输数据的噪声,并且在滤波过程中不会出现因滤波结果溢出导致的破音、失音等现象,保证了FIR滤波结果的音效,提高了耳机传输数据的性能。本申请提供的一种耳机数据传输系统、设备及计算机可读存储介质也解决了相应技术问题。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例提供的一种耳机数据传输方法的流程图;
图2为实验中FIR滤波输出结果图;
图3为实验中FIR滤波误差图;
图4为实验中FIR滤波时长图;
图5为本申请实施例提供的一种耳机数据传输系统的结构示意图;
图6为本申请实施例提供的一种耳机数据传输设备的结构示意图;
图7为本申请实施例提供的一种耳机数据传输设备的另一结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
随着通信技术的发展,用户在应用手机、平板等电子设备时,为了使得人耳舒适的接收数据,会使用耳机来传输数据。耳机(Earphones;Headphones;Head-sets;Earpieces)是一对转换单元,接受媒体播放器或接收器所发出的电讯号,利用贴近耳朵的扬声器将其转化成可以听到的音波。当前,耳机种类的增多为用户提供了越来越多的选择机会,比如用户可以选择有线耳机、TWS(True Wireless Stereo,真无线)耳机等。然而,用户在应用耳机进行数据传输时,可能出现破音和失真等现象,用户体验性差。本申请提供的一种耳机数据传输方法可以提高耳机数据的传输性能。
请参阅图1,图1为本申请实施例提供的一种耳机数据传输方法的流程图。
本申请实施例提供的一种耳机数据传输方法,应用于耳机,可以包括以下步骤:
步骤S101:获取待传输数据的第一数据类型。
步骤S102:获取设定的FIR滤波系数的第二数据类型。
实际应用中,由于待传输数据的第一数据类型及FIR滤波系数的第二数据类型会影响FIR滤波结果的数据类型,所以需获取待传输数据的第一数据类型及FIR滤波系数的第二数据类型。
步骤S103:确定第一数据类型与第二数据类型的小数位数的和值。
步骤S104:在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型。
实际应用中,在确定出预设数据类型后,各个数据类型的小数位数便确定了,那么各个数据类型的小数位数便会有个位数排名,比如Q15、Q31、Q63中,Q63的小数位数比Q15大两阶,Q31的小数位数比Q15大一阶,为了避免FIR滤波结果溢出,可以在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型。
现有技术中,在选择FIR滤波结果的数据类型时,一般选择比待传输数据的第一数据类型大一阶的数据类型作为FIR滤波结果的数据类型,以数据类型包括Q15、Q31、Q63为例,假设待传输数据的数据类型为Q15,则FIR滤波结果的数据类型为Q63,然而,在FIR 滤波过程中,由于数据累加,会使得滤波结果超出Q63,不做处理的话,会使得滤波结果出现破音和失真现象,影响耳机数据的传输。为此,申请人对耳机数据的FIR滤波过程进行了分析:
假设耳机的滤波器系数为b(n)(-1≤b(n)≤0.9999695),输入信号为x(n),输出为y(n),并且
Figure PCTCN2019129584-appb-000001
其中,numTaps表示滤波系数的长度;
根据FIR滤波原理可知,其不存在反馈现象,其实现原理为:
Figure PCTCN2019129584-appb-000002
假设待传输数据及FIR滤波系数的定标均为Q15,则:
Figure PCTCN2019129584-appb-000003
Figure PCTCN2019129584-appb-000004
成立时,FIR滤波结果定义为Q31的数据类型即可使得耳机不会出现溢出现象,但实际应用中,
Figure PCTCN2019129584-appb-000005
并不是恒成立的,为了使得耳机不会出现溢出现象,需要在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型,也即需要将Q63作为FIR滤波结果的数据类型,此时:
Figure PCTCN2019129584-appb-000006
也即在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型后,便可以使得耳机永远不会出现FIR滤波结果溢出的情况。
步骤S105:对待传输数据进行FIR滤波,得到目标滤波结果并传输。
本申请提供的一种耳机数据传输方法,应用于耳机,获取待传输数据的第一数据类型;获取设定的FIR滤波系数的第二数据类型;确定第一数据类型与第二数据类型的小数位数的和值;在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;对待传输数据进行FIR滤波,得到目标滤波结果并传输。本申请提供的一种耳机数据传输方法,在预设数据类型中,将小数位数比待传输数据及FIR滤波系数的小数位数和值大至少两阶的数据类型,确定为FIR滤波结果的第三数据类型,并且按照第三数据类型对待传输数据进行滤波,降低了待传输数据的噪声,并且在滤波过程中不会出现因滤波结果溢出导致的破音、失音等现象,保证了FIR滤波结果的音效,提高了耳机传输数据的性能。
本申请提供的一种耳机数据传输方法,应用于耳机,当设定的FIR滤波结果的数据类型的小数位数比第一数据类型与第二数据类型的小数位数的和值大至少两阶时,可以不对设定的FIR滤波结果的数据类型进行调整,因此耳机在确定第一数据类型与第二数据类型的小数位数的和值之后,在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型之前,还可以获取设定的FIR滤波结果的第四数据类型;判断在预设数据类型中,第四数据类型的小数位数是否比和值大至少两阶,若否,则执行在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型的步骤。
本申请提供的一种耳机数据传输方法,应用于耳机,如果耳机的芯片为浮点芯片,则可以不关注FIR滤波结果溢出情况,而耳机的芯片为定点芯片时,必须关注FIR滤波结果的溢出情况,因此耳机在确定第一数据类型与第二数据类型的小数位数的和值之前,还可以判断耳机的芯片是否为定点芯片,若是,则执行确定第一数据类型与第二数据类型的小数位数的和值的步骤。
本申请提供的一种耳机数据传输方法,应用于耳机,为了提高滤波效率,耳机在对待传输数据进行FIR滤波时,可以通过并行方式对待传输数据进行FIR滤波。并行数可以根据实际需要确定,比如并行数可以为8等。
为了便于说明,现通过实验对本申请提供的耳机数据传输方法进行仿真,假设FIR滤 波器为带通滤波器且阶数为383,通带范围为100Hz~1000Hz;帧长为512,取一段长度为13.405秒、采样频率fs=48KHz、量化精度为16bit的语音数据进行实验,并且假设并行滤波时的滤波数为8;实验结果分别如图2、3和图4。
在图2中,Matlab-Fixed为Matlab定点滤波方案;C-Fixed表示每次计算一个样点值的定点方案,C-Fixed-8即本方案中每次计算8个点的定点方案。第一行为Matlab和C定点方案的滤波结果图,第二行为各滤波结果中前1~2000个样点值的滤波结果,从图2中分析可知,各自的滤波结果图形走势几乎相同,而且经过试听,并不存在破音现象;从图3中分析可知,C定点结果与Matlab结果相比较,其误差基本维持在万分之一内,而两个C定点的运行结果完全一致;从图4中分析可知,本申请方案的运行时间是未改进方案运行时间的近乎二分之一。
请参阅图5,图5为本申请实施例提供的一种耳机数据传输系统的结构示意图。
本申请实施例提供的一种耳机数据传输系统,应用于耳机,可以包括:
第一获取模块101,用于获取待传输数据的第一数据类型;
第二获取模块102,用于获取设定的FIR滤波系数的第二数据类型;
第一确定模块103,用于确定第一数据类型与第二数据类型的小数位数的和值;
第二确定模块104,用于在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;
第一滤波模块105,用于对待传输数据进行FIR滤波,得到目标滤波结果并传输。
本申请实施例提供的一种耳机数据传输系统,应用于耳机,还可以包括:
第三获取模块,用于第一确定模块确定第一数据类型与第二数据类型的小数位数的和值之后,第二确定模块在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型之前,获取设定的FIR滤波结果的第四数据类型;
第一判断模块,用于判断在预设数据类型中,第四数据类型的小数位数是否比和值大至少两阶,若否,则提示第二确定模型执行在预设数据类型中,将小数位数比和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型的步骤。
本申请实施例提供的一种耳机数据传输系统,应用于耳机,还可以包括:
第二判断模块,用于第一确定模块确定第一数据类型与第二数据类型的小数位数的和值之前,判断耳机的芯片是否为定点芯片,若是,则提示第一确定模块执行确定第一数据类型与第二数据类型的小数位数的和值的步骤。
本申请实施例提供的一种耳机数据传输系统,应用于耳机,第一滤波模块可以包括:
第一滤波单元,用于通过并行方式对待传输数据进行FIR滤波。
本申请还提供了一种耳机数据传输设备及计算机可读存储介质,其均具有本申请实施例提供的一种耳机数据传输方法具有的对应效果。请参阅图6,图6为本申请实施例提供的一种耳机数据传输设备的结构示意图。
本申请实施例提供的一种耳机数据传输设备,包括存储器201和处理器202,存储器201中存储有计算机程序,处理器202执行计算机程序时实现如上任一实施例所描述的耳机数据传输方法的步骤。
请参阅图7,本申请实施例提供的另一种耳机数据传输设备中还可以包括:与处理器202连接的输入端口203,用于传输外界输入的命令至处理器202;与处理器202连接的显示单元204,用于显示处理器202的处理结果至外界;与处理器202连接的通信模块205,用于实现耳机数据传输设备与外界的通信。显示单元204可以为显示面板、激光扫描使显示器等;通信模块205所采用的通信方式包括但不局限于移动高清链接技术(HML)、通用串行总线(USB)、高清多媒体接口(HDMI)、无线连接:无线保真技术(WiFi)、蓝牙通信技术、低功耗蓝牙通信技术、基于IEEE802.11s的通信技术。
本申请实施例提供的一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序,计算机程序被处理器执行时实现如上任一实施例所描述的耳机数据传输方法的步骤。
本申请所涉及的计算机可读存储介质包括随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质。
本申请实施例提供的一种耳机数据传输系统、设备及计算机可读存储介质中相关部分的说明请参见本申请实施例提供的一种耳机数据传输方法中对应部分的详细说明,在此不再赘述。另外,本申请实施例提供的上述技术方案中与现有技术中对应技术方案实现原理一致的部分并未详细说明,以免过多赘述。
还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些 要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
对所公开的实施例的上述说明,使本领域技术人员能够实现或使用本申请。对这些实施例的多种修改对本领域技术人员来说将是显而易见的,本文中所定义的一般原理可以在不脱离本申请的精神或范围的情况下,在其它实施例中实现。因此,本申请将不会被限制于本文所示的这些实施例,而是要符合与本文所公开的原理和新颖特点相一致的最宽的范围。

Claims (10)

  1. 一种耳机数据传输方法,其特征在于,应用于耳机,包括:
    获取待传输数据的第一数据类型;
    获取设定的FIR滤波系数的第二数据类型;
    确定所述第一数据类型与所述第二数据类型的小数位数的和值;
    在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;
    对所述待传输数据进行FIR滤波,得到目标滤波结果并传输。
  2. 根据权利要求1所述的方法,其特征在于,所述确定所述第一数据类型与所述第二数据类型的小数位数的和值之后,所述在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型之前,还包括:
    获取设定的FIR滤波结果的第四数据类型;
    判断在所述预设数据类型中,所述第四数据类型的小数位数是否比所述和值大至少两阶,若否,则执行所述在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型的步骤。
  3. 根据权利要求1所述的方法,其特征在于,所述确定所述第一数据类型与所述第二数据类型的小数位数的和值之前,还包括:
    判断所述耳机的芯片是否为定点芯片,若是,则执行所述确定所述第一数据类型与所述第二数据类型的小数位数的和值的步骤。
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述对所述待传输数据进行FIR滤波,包括:
    通过并行方式对所述待传输数据进行FIR滤波。
  5. 一种耳机数据传输系统,其特征在于,应用于耳机,包括:
    第一获取模块,用于获取待传输数据的第一数据类型;
    第二获取模块,用于获取设定的FIR滤波系数的第二数据类型;
    第一确定模块,用于确定所述第一数据类型与所述第二数据类型的小数位数的和值;
    第二确定模块,用于在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型;
    第一滤波模块,用于对所述待传输数据进行FIR滤波,得到目标滤波结果并传输。
  6. 根据权利要求5所述的系统,其特征在于,还包括:
    第三获取模块,用于所述第一确定模块确定所述第一数据类型与所述第二数据类型的小数位数的和值之后,所述第二确定模块在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型之前,获取设定的FIR滤波结果的第四数据类型;
    第一判断模块,用于判断在所述预设数据类型中,所述第四数据类型的小数位数是否比所述和值大至少两阶,若否,则提示所述第二确定模型执行所述在预设数据类型中,将小数位数比所述和值大至少两阶的数据类型确定为FIR滤波结果的第三数据类型的步骤。
  7. 根据权利要求5所述的系统,其特征在于,还包括:
    第二判断模块,用于所述第一确定模块确定所述第一数据类型与所述第二数据类型的小数位数的和值之前,判断所述耳机的芯片是否为定点芯片,若是,则提示所述第一确定模块执行所述确定所述第一数据类型与所述第二数据类型的小数位数的和值的步骤。
  8. 根据权利要求5至7任一项所述的系统,其特征在于,所述第一滤波模块包括:
    第一滤波单元,用于通过并行方式对所述待传输数据进行FIR滤波。
  9. 一种耳机数据传输设备,其特征在于,应用于耳机,包括:
    存储器,用于存储计算机程序;
    处理器,用于执行所述计算机程序时实现如权利要求1至4任一项所述耳机数据传输方法的步骤。
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至4任一项所述耳机数据传输方法的步骤。
PCT/CN2019/129584 2019-10-18 2019-12-28 一种耳机数据传输方法、系统、设备及计算机存储介质 WO2021072980A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/594,041 US11838062B2 (en) 2019-10-18 2019-12-28 Headset data transmission method, system, and device and computer storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910996176.XA CN110740406B (zh) 2019-10-18 2019-10-18 一种耳机数据传输方法、系统、设备及计算机存储介质
CN201910996176.X 2019-10-18

Publications (1)

Publication Number Publication Date
WO2021072980A1 true WO2021072980A1 (zh) 2021-04-22

Family

ID=69270109

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/129584 WO2021072980A1 (zh) 2019-10-18 2019-12-28 一种耳机数据传输方法、系统、设备及计算机存储介质

Country Status (3)

Country Link
US (1) US11838062B2 (zh)
CN (1) CN110740406B (zh)
WO (1) WO2021072980A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360087A (zh) * 2008-09-18 2009-02-04 清华大学 基带成形srrc数字滤波器的低复杂度实现装置及方法
US20100191528A1 (en) * 2009-01-26 2010-07-29 Sanyo Electric Co., Ltd. Speech signal processing apparatus
CN104254049A (zh) * 2013-06-28 2014-12-31 哈曼国际工业有限公司 头戴式耳机响应测量和均衡
CN107276620A (zh) * 2017-05-26 2017-10-20 深圳市冠旭电子股份有限公司 耳机数据传输的方法、终端设备及计算机可读存储介质
WO2018161277A1 (zh) * 2017-03-08 2018-09-13 深圳市汇顶科技股份有限公司 一种基于音频信道的数字通信方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0730373A (ja) * 1993-07-07 1995-01-31 Nippondenso Co Ltd デジタルフィルタ
US5566101A (en) * 1995-08-15 1996-10-15 Sigmatel, Inc. Method and apparatus for a finite impulse response filter processor
ITMI20010539A1 (it) * 2001-03-14 2002-09-14 Milano Politecnico Dispositivo ottico riconfigurabile per reti a divisione multipla della lunghezza d'onda
CN101826855B (zh) * 2010-05-12 2012-10-03 四川和芯微电子股份有限公司 具有∑-△调制器的信号调整系统
CN105992100B (zh) * 2015-02-12 2018-11-02 电信科学技术研究院 一种音频均衡器预置集参数的确定方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101360087A (zh) * 2008-09-18 2009-02-04 清华大学 基带成形srrc数字滤波器的低复杂度实现装置及方法
US20100191528A1 (en) * 2009-01-26 2010-07-29 Sanyo Electric Co., Ltd. Speech signal processing apparatus
CN104254049A (zh) * 2013-06-28 2014-12-31 哈曼国际工业有限公司 头戴式耳机响应测量和均衡
WO2018161277A1 (zh) * 2017-03-08 2018-09-13 深圳市汇顶科技股份有限公司 一种基于音频信道的数字通信方法及装置
CN107276620A (zh) * 2017-05-26 2017-10-20 深圳市冠旭电子股份有限公司 耳机数据传输的方法、终端设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN110740406A (zh) 2020-01-31
CN110740406B (zh) 2021-02-02
US11838062B2 (en) 2023-12-05
US20220166524A1 (en) 2022-05-26

Similar Documents

Publication Publication Date Title
KR101183847B1 (ko) 다중의 오디오 신호를 사용하여 주변 잡음을 억제하는 방법 및 장치
WO2016180100A1 (zh) 一种音频处理的性能提升方法及装置
KR20210020751A (ko) 복수의 소비자 장치에 개인화된 오디오 재생 기능을 제공하기 위한 시스템 및 방법
CN109285554B (zh) 一种回声消除方法、服务器、终端及系统
JP5593852B2 (ja) 音声信号処理装置、音声信号処理方法
WO2013107307A1 (zh) 降噪方法及设备
JP6381062B2 (ja) 通信デバイスのための音声信号を処理するための方法及びデバイス
CN105049606A (zh) 一种移动终端麦克风切换方法及切换系统
WO2020252973A1 (zh) 一种无线耳机降噪方法、系统及无线耳机和存储介质
CN115604628B (zh) 一种基于耳机喇叭频响的滤波器校准方法及装置
JP6669176B2 (ja) 信号処理装置および信号処理方法
WO2021072980A1 (zh) 一种耳机数据传输方法、系统、设备及计算机存储介质
WO2017166495A1 (zh) 一种语音信号处理方法及装置
TWI451405B (zh) 增進語音即時輸出之方法及助聽器
WO2021203906A1 (zh) 自动音量调整方法、装置、介质和设备
WO2022041485A1 (zh) 音频信号的处理方法、电子设备及存储介质
Lee et al. On mitigating acoustic feedback in hearing aids with frequency warping by all-pass networks
CN111083250A (zh) 移动终端及其降噪方法
JP5940672B2 (ja) ソース依存の無線イヤフォンの等化
TWI837867B (zh) 聲音補償方法及頭戴式裝置
US11615801B1 (en) System and method of enhancing intelligibility of audio playback
US20140372110A1 (en) Voic call enhancement
WO2021042538A1 (zh) 一种音频处理方法、装置及计算机存储介质
TW202418270A (zh) 一種噪音消除方法、裝置、電子設備、耳機及儲存介質
TWI588819B (zh) 語音處理之方法、語音通訊裝置及其電腦程式產品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19949538

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19949538

Country of ref document: EP

Kind code of ref document: A1