[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN116088390A - Audio processing method, device and electronic equipment - Google Patents

Audio processing method, device and electronic equipment Download PDF

Info

Publication number
CN116088390A
CN116088390A CN202310162390.1A CN202310162390A CN116088390A CN 116088390 A CN116088390 A CN 116088390A CN 202310162390 A CN202310162390 A CN 202310162390A CN 116088390 A CN116088390 A CN 116088390A
Authority
CN
China
Prior art keywords
audio data
data
audio
interface
sampling frequency
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.)
Pending
Application number
CN202310162390.1A
Other languages
Chinese (zh)
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.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co 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 Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN202310162390.1A priority Critical patent/CN116088390A/en
Publication of CN116088390A publication Critical patent/CN116088390A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/25Pc structure of the system
    • G05B2219/25257Microcontroller

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

本申请实施例提供一种音频处理方法、装置及电子设备。该方法包括:确定所述SOC的第一音频接口的第一采样频率、以及所述DSP芯片的第二音频接口的第二采样频率;确定待传输的初始音频数据,所述初始音频数据为所述SOC或者所述DSP芯片产生的音频数据;根据所述第一采样频率和所述第二采样频率,对所述初始音频数据进行数据填充处理,得到目标音频数据,并通过所述第一音频接口和所述第二音频接口传输所述目标音频数据。电子设备可以在音频接口不匹配时,正常播放音频。

Figure 202310162390

Embodiments of the present application provide an audio processing method, device, and electronic equipment. The method includes: determining the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip; determining initial audio data to be transmitted, the initial audio data being the The audio data generated by the SOC or the DSP chip; according to the first sampling frequency and the second sampling frequency, data filling processing is performed on the initial audio data to obtain target audio data, and pass the first audio interface and the second audio interface transmit the target audio data. The electronic device can play audio normally when the audio interface does not match.

Figure 202310162390

Description

音频处理方法、装置及电子设备Audio processing method, device and electronic equipment

技术领域technical field

本申请实施例涉及信号处理技术领域,尤其涉及一种音频处理方法、装置及电子设备。The embodiments of the present application relate to the technical field of signal processing, and in particular, to an audio processing method, device, and electronic equipment.

背景技术Background technique

电子设备中可以设置有系统级芯片(System on Chip,SOC)和数据信号处理(Digital Signal Processing,DSP)芯片,电子设备可以通过SOC和DSP芯片进行音频录制或者音频播放。The electronic device can be provided with a system-on-chip (System on Chip, SOC) and a digital signal processing (Digital Signal Processing, DSP) chip, and the electronic device can perform audio recording or audio playback through the SOC and the DSP chip.

在相关技术中,可以通过如下方式对音频进行处理:将待处理的音频数据通过SOC的音频接口传输至DSP芯片的音频接口,DSP芯片将待处理的音频数据通过扬声器进行播放。或者将待处理的音频数据通过DSP芯片的音频接口传输至SOC的音频接口,SOC芯片将待处理音频数据进行存储。在上述过程中,若SOC的音频接口为集成音频(IntegratedInterchip Sound,IIS)接口,DSP芯片的音频接口为时分复用技术(Time-DivisionMultiplexing,TDM)接口。IIS接口与TDM接口不匹配,两个接口的采样频率不同。在进行音频数据传输时,可能存在同一时段内音频数据传输数量不同,使得播放音频倍速,导致电子设备无法正常播放音频。In related technologies, the audio can be processed in the following way: the audio data to be processed is transmitted to the audio interface of the DSP chip through the audio interface of the SOC, and the DSP chip plays the audio data to be processed through the speaker. Alternatively, the audio data to be processed is transmitted to the audio interface of the SOC through the audio interface of the DSP chip, and the SOC chip stores the audio data to be processed. In the above process, if the audio interface of the SOC is an integrated audio (Integrated Interchip Sound, IIS) interface, the audio interface of the DSP chip is a Time-Division Multiplexing (TDM) interface. The IIS interface does not match the TDM interface, and the sampling frequency of the two interfaces is different. During audio data transmission, there may be different numbers of audio data transmissions in the same period of time, which doubles the speed of audio playback, causing the electronic device to fail to play audio normally.

发明内容Contents of the invention

本申请实施例提供一种音频处理方法、装置及电子设备,用以解决电子设备无法正常播放的问题。Embodiments of the present application provide an audio processing method, device, and electronic equipment to solve the problem that the electronic equipment cannot play normally.

第一方面,本申请实施例提供一种音频处理方法,应用于电子设备中,所述电子设备中设置有系统级芯片SOC和数字信号处理DSP芯片,所述方法包括:In the first aspect, the embodiment of the present application provides an audio processing method, which is applied to an electronic device, and the electronic device is provided with a system-on-chip SOC and a digital signal processing DSP chip, and the method includes:

确定所述SOC的第一音频接口的第一采样频率、以及所述DSP芯片的第二音频接口的第二采样频率;Determine the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip;

确定待传输的初始音频数据,所述初始音频数据为所述SOC或者所述DSP芯片产生的音频数据;Determine the initial audio data to be transmitted, where the initial audio data is audio data generated by the SOC or the DSP chip;

根据所述第一采样频率和所述第二采样频率,对所述初始音频数据进行数据填充处理,得到目标音频数据,并通过所述第一音频接口和所述第二音频接口传输所述目标音频数据。Perform data filling processing on the initial audio data according to the first sampling frequency and the second sampling frequency to obtain target audio data, and transmit the target through the first audio interface and the second audio interface audio data.

在一种可能的实施方式中,所述第一音频接口为集成音频接口IIS接口,所述第二音频接口为时分复用技术TDM接口;In a possible implementation manner, the first audio interface is an integrated audio interface IIS interface, and the second audio interface is a time division multiplexing technology TDM interface;

根据所述第一采样频率和所述第二采样频率,对所述初始音频数据进行数据填充处理,得到目标音频数据,包括:According to the first sampling frequency and the second sampling frequency, data filling processing is performed on the initial audio data to obtain target audio data, including:

获取所述第二采样频率与所述第一采样频率之间的频率比值M,所述M为大于1的整数;Obtain a frequency ratio M between the second sampling frequency and the first sampling frequency, where M is an integer greater than 1;

根据所述频率比值,对所述初始音频数据进行数据填充处理,得到目标音频数据。According to the frequency ratio, data filling processing is performed on the initial audio data to obtain target audio data.

在一种可能的实施方式中,根据所述频率比值M,对所述初始音频数据进行数据填充处理,得到目标音频数据,包括:In a possible implementation manner, according to the frequency ratio M, data filling processing is performed on the initial audio data to obtain target audio data, including:

根据所述频率比值,在所述初始音频数据中确定部分音频数据,所述初始音频数据的长度为所述部分音频数据的长度的M倍;According to the frequency ratio, partial audio data is determined in the initial audio data, and the length of the initial audio data is M times the length of the partial audio data;

对所述部分音频数据进行数据填充处理,得到所述目标音频数据。Data filling processing is performed on the part of the audio data to obtain the target audio data.

在一种可能的实施方式中,所述初始音频数据为所述SOC产生的数据;对所述部分音频数据进行数据填充处理,得到所述目标音频数据,包括:In a possible implementation manner, the initial audio data is data generated by the SOC; data filling processing is performed on the part of the audio data to obtain the target audio data, including:

在所述部分音频数据中确定至少一个音频数据单元,所述音频数据单元的长度为预设单位长度;determining at least one audio data unit in the partial audio data, the length of the audio data unit being a preset unit length;

在每个音频数据单元后填充预设数据,得到所述目标音频数据,所述预设数据的长度为所述预设单位长度。Preset data is filled after each audio data unit to obtain the target audio data, and the length of the preset data is the preset unit length.

在一种可能的实施方式中,通过所述第一音频接口和所述第二音频接口传输所述目标音频数据,包括:In a possible implementation manner, transmitting the target audio data through the first audio interface and the second audio interface includes:

通过所述IIS接口向所述DSP芯片发送所述目标音频数据,以使所述DSP芯片通过所述TDM接口接收所述目标音频数据。sending the target audio data to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data through the TDM interface.

在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method also includes:

对所述目标音频数据中的预设数据进行去除处理,得到待播放音频数据;Removing preset data in the target audio data to obtain audio data to be played;

播放所述待播放音频数据。Play the audio data to be played.

在一种可能的实施方式中,所述初始音频数据为所述DSP产生的数据;对所述部分音频数据进行数据填充处理,得到所述目标音频数据,包括:In a possible implementation manner, the initial audio data is data generated by the DSP; data filling processing is performed on the part of the audio data to obtain the target audio data, including:

在所述部分音频数据后填充预设数据,得到所述目标音频数据,所述预设数据的长度为所述初始音频数据的长度与所述部分音频数据的长度的差值。The preset data is filled after the partial audio data to obtain the target audio data, and the length of the preset data is a difference between the length of the initial audio data and the length of the partial audio data.

在一种可能的实施方式中,通过所述第一音频接口和所述第二音频接口传输所述目标音频数据,包括:In a possible implementation manner, transmitting the target audio data through the first audio interface and the second audio interface includes:

通过所述TDM接口向所述SOC发送所述目标音频数据,以使所述SOC通过所述IIS接口接收所述目标音频数据。sending the target audio data to the SOC through the TDM interface, so that the SOC receives the target audio data through the IIS interface.

第二方面,本申请实施例提供一种音频处理装置,所述装置包括:In a second aspect, an embodiment of the present application provides an audio processing device, the device comprising:

第一确定模块,确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率;The first determination module determines the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip;

第二确定模块,确定待传输的初始音频数据,所述初始音频数据为所述SOC或者所述DSP芯片产生的数据;The second determination module determines the initial audio data to be transmitted, and the initial audio data is data generated by the SOC or the DSP chip;

处理模块,根据所述第一采样频率和所述第二采样频率,对所述初始音频数据进行数据填充处理,得到目标音频数据,并通过所述第一音频接口和所述第二音频接口传输所述目标音频数据。The processing module performs data filling processing on the initial audio data according to the first sampling frequency and the second sampling frequency to obtain target audio data, and transmits the target audio data through the first audio interface and the second audio interface The target audio data.

在一种可能的实施方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:

获取所述第二采样频率与所述第一采样频率之间的频率比值M,所述M为大于1的整数;Obtain a frequency ratio M between the second sampling frequency and the first sampling frequency, where M is an integer greater than 1;

根据所述频率比值,对所述初始音频数据进行数据填充处理,得到目标音频数据。According to the frequency ratio, data filling processing is performed on the initial audio data to obtain target audio data.

在一种可能的实施方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:

根据所述频率比值,在所述初始音频数据中确定部分音频数据,所述初始音频数据的长度为所述部分音频数据的长度的M倍;According to the frequency ratio, partial audio data is determined in the initial audio data, and the length of the initial audio data is M times the length of the partial audio data;

对所述部分音频数据进行数据填充处理,得到所述目标音频数据。Data filling processing is performed on the part of the audio data to obtain the target audio data.

在一种可能的实施方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:

在所述部分音频数据中确定至少一个音频数据单元,所述音频数据单元的长度为预设单位长度;determining at least one audio data unit in the partial audio data, the length of the audio data unit being a preset unit length;

在每个音频数据单元后填充预设数据,得到所述目标音频数据,所述预设数据的长度为所述预设单位长度。Preset data is filled after each audio data unit to obtain the target audio data, and the length of the preset data is the preset unit length.

在一种可能的实施方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:

通过所述IIS接口向所述DSP芯片发送所述目标音频数据,以使所述DSP芯片通过所述TDM接口接收所述目标音频数据。sending the target audio data to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data through the TDM interface.

在一种可能的实施方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:

在所述部分音频数据后填充预设数据,得到所述目标音频数据,所述预设数据的长度为所述初始音频数据的长度与所述部分音频数据的长度的差值。The preset data is filled after the partial audio data to obtain the target audio data, and the length of the preset data is a difference between the length of the initial audio data and the length of the partial audio data.

在一种可能的实施方式中,所述处理模块具体用于:In a possible implementation manner, the processing module is specifically configured to:

通过所述TDM接口向所述SOC发送所述目标音频数据,以使所述SOC通过所述IIS接口接收所述目标音频数据。sending the target audio data to the SOC through the TDM interface, so that the SOC receives the target audio data through the IIS interface.

在一种可能的实施方式中,所述装置还包括播放模块。In a possible implementation manner, the device further includes a playback module.

其中,所述播放模块用于:Wherein, the playing module is used for:

对所述目标音频数据中的预设数据进行去除处理,得到待播放音频数据;Removing preset data in the target audio data to obtain audio data to be played;

播放所述待播放音频数据。Play the audio data to be played.

第三方面,本申请提供一种芯片,所述芯片上存储有计算机程序,所述计算机程序被所述芯片执行时,实现如第一方面任一项所述的方法。In a third aspect, the present application provides a chip, on which a computer program is stored, and when the computer program is executed by the chip, the method according to any one of the first aspect is implemented.

第四方面,本申请提供一种芯片模组,所述芯片模组上存储有计算机程序,所述计算机程序被所述芯片模组执行时,实现如第一方面任一项所述的方法。In a fourth aspect, the present application provides a chip module, where a computer program is stored on the chip module, and when the computer program is executed by the chip module, the method according to any one of the first aspect is implemented.

第五方面,本申请实施例提供一种电子设备,包括:In a fifth aspect, the embodiment of the present application provides an electronic device, including:

至少一个处理器;以及at least one processor; and

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行第一方面任一项所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the method according to any one of the first aspect.

第六方面,本申请实施例提供一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行第一方面中任一项所述的方法。In a sixth aspect, the embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method described in any one of the first aspects.

第七方面,本申请实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现第一方面中任一项所述的方法。In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method described in any one of the first aspects is implemented.

本申请实施例提供的音频处理方法、装置及电子设备,确定SOC的第一音频接口的第一采样频率,确定DSP芯片的第二音频接口的第二采样频率。确定待传输的初始音频数据,初始音频数据可以为SOC产生的或DSP芯片产生的音频数据。根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,得到目标音频数据。通过第一音频接口和第二音频接口传输目标音频数据,从而播放或存储目标音频数据。在上述过程中,可以根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,避免SOC和DSP芯片的接口不匹配产生的音频数据传输数量不同的情况,使得电子设备可以在音频接口不匹配时,正常播放音频。The audio processing method, device and electronic equipment provided in the embodiments of the present application determine the first sampling frequency of the first audio interface of the SOC, and determine the second sampling frequency of the second audio interface of the DSP chip. Determine the initial audio data to be transmitted. The initial audio data may be audio data generated by the SOC or generated by the DSP chip. According to the first sampling frequency and the second sampling frequency, data filling processing is performed on the initial audio data to obtain target audio data. The target audio data is transmitted through the first audio interface and the second audio interface, so as to play or store the target audio data. In the above process, data filling processing can be performed on the initial audio data according to the first sampling frequency and the second sampling frequency, so as to avoid the situation that the number of audio data transmissions caused by the interface mismatch between the SOC and the DSP chip is different, so that the electronic device can be used in When the audio interface does not match, the audio is played normally.

附图说明Description of drawings

图1为本申请实施例提供的应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;

图2为本申请实施例提供的一种音频处理方法的流程示意图;FIG. 2 is a schematic flowchart of an audio processing method provided in an embodiment of the present application;

图3为本申请实施例提供的另一种音频处理方法的流程示意图;FIG. 3 is a schematic flow chart of another audio processing method provided by an embodiment of the present application;

图4为本申请实施例提供的确定部分音频数据的过程示意图;FIG. 4 is a schematic diagram of the process of determining part of the audio data provided by the embodiment of the present application;

图5为本申请实施例提供的一种确定目标音频数据的过程示意图;FIG. 5 is a schematic diagram of a process for determining target audio data provided by an embodiment of the present application;

图6为本申请实施例提供的另一种确定目标音频数据的过程示意图;FIG. 6 is a schematic diagram of another process for determining target audio data provided by the embodiment of the present application;

图7A为本申请实施例提供的音频处理的过程示意图;FIG. 7A is a schematic diagram of the audio processing process provided by the embodiment of the present application;

图7B为本申请实施例提供的音频处理的过程示意图;FIG. 7B is a schematic diagram of the audio processing process provided by the embodiment of the present application;

图8为本申请实施例提供的一种音频处理装置的结构示意图;FIG. 8 is a schematic structural diagram of an audio processing device provided by an embodiment of the present application;

图9为本申请实施例提供的另一种音频处理装置的结构示意图;FIG. 9 is a schematic structural diagram of another audio processing device provided by an embodiment of the present application;

图10为本申请实施例提供的电子设备的结构示意图。FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.

为了便于理解,下面,结合图1,对本申请实施例所适用的应用场景进行说明。For ease of understanding, the application scenario applicable to the embodiment of the present application will be described below with reference to FIG. 1 .

图1为本申请实施例提供的应用场景的示意图。请参见图1,包括电子设备101,电子设备101可以为车载音响、手机等。电子设备101中设置有SOC和DSP芯片。SOC和DSP芯片都设置有音频接口。电子设备101可以通过SOC和DSP芯片,播放或者录制音频。电子设备101在播放音频时,电子设备101的SOC将待播放的音频数据通过SOC的音频接口发送至电子设备101的DSP芯片。电子设备101的DSP芯片通过DSP芯片的音频接口接收待播放的音频数据,并通过电子设备101的扬声器播放待播放的音频数据对应的音频。电子设备101在录制音频时,电子设备101的DSP芯片接收电子设备101麦克风录制的音频数据,并通过DSP芯片的音频接口将录制的音频数据发送至电子设备101的SOC。电子设备101的SOC通过SOC的音频接口接收录制的音频数据并存储。FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. Please refer to FIG. 1 , which includes an electronic device 101 , which may be a car stereo, a mobile phone, and the like. The electronic device 101 is provided with SOC and DSP chips. Both the SOC and the DSP chip are provided with an audio interface. The electronic device 101 can play or record audio through the SOC and DSP chips. When the electronic device 101 is playing audio, the SOC of the electronic device 101 sends the audio data to be played to the DSP chip of the electronic device 101 through the audio interface of the SOC. The DSP chip of the electronic device 101 receives the audio data to be played through the audio interface of the DSP chip, and plays the audio corresponding to the audio data to be played through the speaker of the electronic device 101 . When the electronic device 101 is recording audio, the DSP chip of the electronic device 101 receives the audio data recorded by the microphone of the electronic device 101, and sends the recorded audio data to the SOC of the electronic device 101 through the audio interface of the DSP chip. The SOC of the electronic device 101 receives and stores the recorded audio data through the audio interface of the SOC.

在相关技术中,若SOC的音频接口为IIS接口,DSP芯片的音频接口为TDM接口。IIS接口与TDM接口不匹配,两个接口的采样频率不同。在进行音频数据传输时,可能存在同一时段内音频数据传输数量不同,使得播放音频倍速,导致电子设备无法正常播放音频。In related technologies, if the audio interface of the SOC is an IIS interface, the audio interface of the DSP chip is a TDM interface. The IIS interface does not match the TDM interface, and the sampling frequency of the two interfaces is different. During audio data transmission, there may be different numbers of audio data transmissions in the same period of time, which doubles the speed of audio playback, causing the electronic device to fail to play audio normally.

本申请实施例中,确定SOC的第一音频接口的第一采样频率,确定DSP芯片的第二音频接口的第二采样频率。确定待传输的初始音频数据,初始音频数据可以为SOC产生的或DSP芯片产生的音频数据。根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,得到目标音频数据。通过第一音频接口和第二音频接口传输目标音频数据,从而播放或存储目标音频数据。在上述过程中,可以根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,避免SOC和DSP芯片的接口不匹配产生的音频数据传输数量不同的情况,使得电子设备可以在音频接口不匹配时,正常播放音频。In the embodiment of the present application, the first sampling frequency of the first audio interface of the SOC is determined, and the second sampling frequency of the second audio interface of the DSP chip is determined. Determine the initial audio data to be transmitted. The initial audio data may be audio data generated by the SOC or generated by the DSP chip. According to the first sampling frequency and the second sampling frequency, data filling processing is performed on the initial audio data to obtain target audio data. The target audio data is transmitted through the first audio interface and the second audio interface, so as to play or store the target audio data. In the above process, data filling processing can be performed on the initial audio data according to the first sampling frequency and the second sampling frequency, so as to avoid the situation that the number of audio data transmissions caused by the interface mismatch between the SOC and the DSP chip is different, so that the electronic device can be used in When the audio interface does not match, the audio is played normally.

下面,通过具体实施例对本申请所示的方法进行说明。需要说明的是,下面几个实施例可以单独存在,也可以互相结合,对于相同或相似的内容,在不同的实施例中不再重复说明。In the following, the method shown in this application will be described through specific examples. It should be noted that the following embodiments may exist independently or be combined with each other, and the same or similar content will not be repeatedly described in different embodiments.

图2为本申请实施例提供的一种音频处理方法的流程示意图。请参见图2,该方法可以包括:FIG. 2 is a schematic flowchart of an audio processing method provided by an embodiment of the present application. See Figure 2, the method can include:

S201、确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率。S201. Determine a first sampling frequency of a first audio interface of the SOC and a second sampling frequency of a second audio interface of a DSP chip.

本申请实施例的执行主体可以为电子设备,也可以为设置在电子设备中的芯片、芯片模组或音频处理装置等。音频处理装置可以通过软件实现,也可以通过软件和硬件的结合实现。The executor of the embodiment of the present application may be an electronic device, or may be a chip, a chip module, or an audio processing device disposed in the electronic device. The audio processing device can be implemented by software, or by a combination of software and hardware.

可以将SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率提前设置并存储至电子设备的预设存储空间中。The first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip can be set in advance and stored in the preset storage space of the electronic device.

在设置第一采样频率和第二采样频率时,第一采样频率可以为第二采样频率的2N倍。其中,N为大于等于1的整数。When setting the first sampling frequency and the second sampling frequency, the first sampling frequency may be 2N times the second sampling frequency. Wherein, N is an integer greater than or equal to 1.

例如,在确定电子设备A中的SOC的第一音频接口为IIS接口,DSP芯片的第二音频接口为TDM接口之后,可以将SOC的IIS接口的第一采样频率设置为96kHz,将DSP芯片的TDM接口的第二采样频率设置为48kHz。并将第一采样频率和第二采样频率存储至电子设备A的预设存储空间中。For example, after determining that the first audio interface of the SOC in the electronic device A is an IIS interface, and the second audio interface of the DSP chip is a TDM interface, the first sampling frequency of the IIS interface of the SOC can be set to 96kHz, and the DSP chip's first sampling frequency can be set to 96kHz. The second sampling frequency of the TDM interface is set to 48kHz. And store the first sampling frequency and the second sampling frequency in the preset storage space of the electronic device A.

S202、确定待传输的初始音频数据。S202. Determine initial audio data to be transmitted.

初始音频数据为SOC或者DSP芯片产生的音频数据。The initial audio data is the audio data generated by the SOC or DSP chip.

电子设备播放音频时,SOC在电子设备的存储空间中确定待播放的音频为初始音频数据。电子设备录制音频时,DSP芯片获取电子设备麦克风录制的音频,并将麦克风录制的音频确定为初始音频数据。When the electronic device plays audio, the SOC determines in the storage space of the electronic device that the audio to be played is the initial audio data. When the electronic device records audio, the DSP chip obtains the audio recorded by the microphone of the electronic device, and determines the audio recorded by the microphone as the initial audio data.

例如,用户利用电子设备A播放歌曲1,电子设备A的SOC在电子设备的存储空间中确定播放歌曲1对应的音频数据1为初始音频数据。用户利用电子设备B录制音频,电子设备B的麦克风录制语音1并发送至电子设备B的DSP芯片。电子设备B的DSP芯片获取电子设备B的麦克风录制的语音1,并将麦克风录制的语音1确定为初始音频数据。For example, the user uses electronic device A to play song 1, and the SOC of electronic device A determines in the storage space of the electronic device that the audio data 1 corresponding to playing song 1 is the initial audio data. The user uses electronic device B to record audio, and the microphone of electronic device B records voice 1 and sends it to the DSP chip of electronic device B. The DSP chip of the electronic device B acquires the voice 1 recorded by the microphone of the electronic device B, and determines the voice 1 recorded by the microphone as the initial audio data.

S203、根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,得到目标音频数据,并通过第一音频接口和第二音频接口传输目标音频数据。S203. Perform data filling processing on the initial audio data according to the first sampling frequency and the second sampling frequency to obtain target audio data, and transmit the target audio data through the first audio interface and the second audio interface.

第一音频接口为集成音频接口IIS接口,第二接口为时分复用技术TDM接口。The first audio interface is an integrated audio interface IIS interface, and the second interface is a time division multiplexing technology TDM interface.

可以通过如下方式,得到目标音频数据:获取第二采样频率与第一采样频率之间的频率比值M,M为大于1的整数;根据频率比值,对初始音频数据进行数据填充处理,得到目标音频数据。The target audio data can be obtained in the following manner: obtain the frequency ratio M between the second sampling frequency and the first sampling frequency, and M is an integer greater than 1; perform data filling processing on the initial audio data according to the frequency ratio to obtain the target audio data.

可以对初始音频数据填充数字0,以使初始音频数据填充之后保持相同的音质。The initial audio data can be filled with 0s, so that the same sound quality can be maintained after the initial audio data is filled.

由于同一电子设备中,IIS接口与TDM接口的采样频率不同。在进行音频数据传输时,导致同一时段内获取的音频数据量存在差异。可以对初始音频数据进行数据填充处理,得到目标音频数据,使得同一时段内音频接口接收的音频数据量相同。Because in the same electronic device, the sampling frequency of the IIS interface and the TDM interface are different. During audio data transmission, there are differences in the amount of audio data acquired in the same period of time. Data filling processing may be performed on the initial audio data to obtain target audio data, so that the amount of audio data received by the audio interface within the same period is the same.

例如,电子设备A在播放音频时,IIS接口的第一采样频率为96kHz,TDM接口的第二采样频率为48kHz。根据第一采样频率和第二采样频率可以确定,同一时段内IIS接口的传输的音频数据量为TDM接口的2倍。因此,可以对IIS接口传输的音频数据进行数据填充处理。将相对于TDM接口2倍的数据量,用0填充至正常数据量。For example, when the electronic device A is playing audio, the first sampling frequency of the IIS interface is 96 kHz, and the second sampling frequency of the TDM interface is 48 kHz. According to the first sampling frequency and the second sampling frequency, it can be determined that the amount of audio data transmitted by the IIS interface is twice that of the TDM interface in the same period of time. Therefore, data filling processing can be performed on the audio data transmitted by the IIS interface. Fill the data volume with 0 to the normal data volume, which is twice the data volume of the TDM interface.

本申请实施例提供的音频处理方法,确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率。确定待传输的初始音频数据。根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,得到目标音频数据,并通过第一音频接口和第二音频接口传输目标音频数据。在上述过程中,可以根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,避免SOC和DSP芯片的接口不匹配产生的音频数据传输数量不同的情况,使得电子设备可以在音频接口不匹配时,正常播放音频。In the audio processing method provided in the embodiment of the present application, the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip are determined. Determine the initial audio data to be transferred. According to the first sampling frequency and the second sampling frequency, data filling processing is performed on the initial audio data to obtain target audio data, and the target audio data is transmitted through the first audio interface and the second audio interface. In the above process, data filling processing can be performed on the initial audio data according to the first sampling frequency and the second sampling frequency, so as to avoid the situation that the number of audio data transmissions caused by the interface mismatch between the SOC and the DSP chip is different, so that the electronic device can be used in When the audio interface does not match, the audio is played normally.

在上述任意一个实施例基础上,下面,结合图3,对音频处理的详细过程进行说明。On the basis of any one of the above embodiments, the detailed process of audio processing will be described below with reference to FIG. 3 .

图3为本申请实施例提供的另一种音频处理方法的流程示意图。请参见图3,该方法包括:FIG. 3 is a schematic flowchart of another audio processing method provided by the embodiment of the present application. See Figure 3, the method includes:

S301、确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率。S301. Determine a first sampling frequency of a first audio interface of the SOC and a second sampling frequency of a second audio interface of a DSP chip.

第一音频接口为IIS接口,第二音频接口为TDM接口。The first audio interface is an IIS interface, and the second audio interface is a TDM interface.

S302、确定待传输的初始音频数据。S302. Determine initial audio data to be transmitted.

初始音频数据为SOC或者DSP芯片产生的音频数据。The initial audio data is the audio data generated by the SOC or DSP chip.

S303、若初始音频数据为SOC产生的数据,获取第二采样频率与第一采样频率之间的频率比值M。S303. If the initial audio data is data generated by the SOC, acquire a frequency ratio M between the second sampling frequency and the first sampling frequency.

M为大于1的整数。M is an integer greater than 1.

例如,电子设备A的第一音频接口为IIS接口,第二音频接口为TDM接口。IIS接口的采样频率为96kHz,TDM接口的采样频率为48kHz。可以确定第一采样频率为96kHz,第二采样频率为48kHz。则可以确定第二采样频率与第一采样频率之间的频率比值M为96/48=2。For example, the first audio interface of electronic device A is an IIS interface, and the second audio interface is a TDM interface. The sampling frequency of the IIS interface is 96kHz, and the sampling frequency of the TDM interface is 48kHz. It can be determined that the first sampling frequency is 96 kHz, and the second sampling frequency is 48 kHz. Then it can be determined that the frequency ratio M between the second sampling frequency and the first sampling frequency is 96/48=2.

S304、根据频率比值,在初始音频数据中确定部分音频数据。S304. Determine part of the audio data in the initial audio data according to the frequency ratio.

初始音频数据的长度为部分音频数据的长度的M倍。The length of the original audio data is M times the length of the partial audio data.

下面,结合图4,对确定部分音频数据的过程进行说明。图4为本申请实施例提供的确定部分音频数据的过程示意图。请参见图4,包括初始音频数据401,初始音频数据401的数据长度为32位。假设第二采样频率与第一采样频率之间的频率比值M为2,则部分音频数据402为初始音频数据401中任意一段连续的16位音频数据。例如,部分音频数据402可以为初始音频数据401中,第0~15位音频数据。Next, with reference to FIG. 4 , the process of determining partial audio data will be described. FIG. 4 is a schematic diagram of a process of determining partial audio data provided by an embodiment of the present application. Please refer to FIG. 4 , including initial audio data 401 , the data length of the initial audio data 401 is 32 bits. Assuming that the frequency ratio M between the second sampling frequency and the first sampling frequency is 2, the partial audio data 402 is any piece of continuous 16-bit audio data in the initial audio data 401 . For example, the partial audio data 402 may be audio data of bits 0-15 in the initial audio data 401 .

S305、对部分音频数据进行数据填充处理,得到目标音频数据。S305. Perform data filling processing on part of the audio data to obtain target audio data.

可以通过如下方式,得到目标音频数据:在部分音频数据中确定至少一个音频数据单元,音频数据单元的长度为预设单位长度;在每个音频数据单元后填充预设数据,得到目标音频数据,预设数据的长度为预设单位长度。The target audio data can be obtained in the following manner: at least one audio data unit is determined in part of the audio data, and the length of the audio data unit is a preset unit length; each audio data unit is filled with preset data to obtain the target audio data, The length of the preset data is a preset unit length.

预设单位长度可以为一个数据帧(slot)。预设数据可以为0。The preset unit length can be a data frame (slot). Default data can be 0.

下面,结合图5,对确定目标音频数据的过程进行说明。图5为本申请实施例提供的一种确定目标音频数据的过程示意图。请参见图5,包括部分音频数据501和目标音频数据502。部分音频数据501为电子设备IIS接口接收的初始音频数据。部分音频数据501包括8个预设单位长度,一个预设单位长度为一个slot,每个slot中包括16位音频数据。其中,slot0、slot2、slot4以及slot6中包括固定配置数据(空白slot)。slot1、slot3、slot5以及slot7为音频数据(d0、d1、d2、d3)。在进行数据填充处理时,在slot1、slot3、slot5以及slot7后填充预设数据0,即每个slot补充16位长度的数据0,得到目标音频数据。目标音频数据502包括数据填充处理之后的所有音频数。Next, with reference to FIG. 5 , the process of determining target audio data will be described. FIG. 5 is a schematic diagram of a process of determining target audio data provided by an embodiment of the present application. Please refer to FIG. 5 , which includes partial audio data 501 and target audio data 502 . Part of the audio data 501 is the initial audio data received by the IIS interface of the electronic device. The partial audio data 501 includes 8 preset unit lengths, one preset unit length is one slot, and each slot includes 16-bit audio data. Wherein, slot0, slot2, slot4 and slot6 include fixed configuration data (blank slot). slot1, slot3, slot5, and slot7 are audio data (d0, d1, d2, d3). When performing data filling processing, the preset data 0 is filled after slot1, slot3, slot5 and slot7, that is, each slot is supplemented with 16-bit data 0 to obtain the target audio data. Target audio data 502 includes all audio data after the data stuffing process.

S306、通过IIS接口向DSP芯片发送目标音频数据,以使DSP芯片通过TDM接口接收目标音频数据。S306. Send the target audio data to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data through the TDM interface.

例如,假设初始音频数据为SOC产生的音频D。SOC芯片根据频率比值,对音频D进行数据填充处理,得到目标音频数据D0。SOC芯片通过IIS接口向DSP芯片发送目标音频数据D0,以使DSP芯片通过TDM接口接收目标音频数据D0。For example, assume that the original audio data is audio D generated by the SOC. The SOC chip performs data filling processing on the audio D according to the frequency ratio to obtain the target audio data D0. The SOC chip sends the target audio data D0 to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data D0 through the TDM interface.

S307、对目标音频数据中的预设数据进行去除处理,得到待播放音频数据。S307. Perform removal processing on preset data in the target audio data to obtain audio data to be played.

例如,根据上述图5所示的目标音频数据502,对目标音频数据502中的预设数据0进行去除处理,得到待播放音频数据。For example, according to the target audio data 502 shown in FIG. 5 , the preset data 0 in the target audio data 502 is removed to obtain the audio data to be played.

S308、播放待播放音频数据。S308. Play the audio data to be played.

DSP芯片将待播放的音乐数据通过电子设备的扬声器进行播放。The DSP chip plays the music data to be played through the speaker of the electronic device.

在播放待播放的音频数据时,待播放音频数据的预设单位长度的数量与目标音频数据预设单位长度的数量相同,避免因为音频接口频率的不同导致固定时段内播放音频数据量的不同。When playing the audio data to be played, the number of preset unit lengths of the audio data to be played is the same as the number of preset unit lengths of the target audio data, so as to avoid differences in the amount of audio data played within a fixed period of time due to differences in audio interface frequencies.

S309、若初始音频数据为DSP芯片产生的数据,在部分音频数据后填充预设数据,得到目标音频数据。S309. If the initial audio data is data generated by the DSP chip, fill preset data after part of the audio data to obtain target audio data.

预设数据的长度为初始音频数据的长度与部分音频数据的长度的差值。The length of the preset data is the difference between the length of the initial audio data and the length of the partial audio data.

预设数据可以为0。部分音频数据的长度与电子设备麦克风的数量相同。Default data can be 0. The length of the partial audio data is the same as the number of microphones of the electronic device.

下面,结合图6,对确定目标音频数据的过程进行说明。图6为本申请实施例提供的另一种确定目标音频数据的过程示意图。请参见图6,包括初始音频数据601和目标音频数据602。假设电子设备有4个麦克风,当DSP芯片接收电子设备麦克风录制的音频数据之后,一共有8个声道的音频数据。其中,4个声道为麦克风录制的音频数据(d0、d1、d2、d3),4个声道为回采音频数据(d4、d5、d6、d7),每个声道的音频数据对应一个slot。根据电子设备麦克风的数量,可以确定部分音频数据的长度为4。根据部分音频的长度,将初始音频数据601分为两个部分音频数据。其中,一个部分音频数据为4个slot,包括音频数据d0、d1、d2、d3。另一个部分音频数据为4个slot,包括音频数据d4、d5、d6、d7。Next, with reference to FIG. 6 , the process of determining target audio data will be described. FIG. 6 is a schematic diagram of another process of determining target audio data provided by the embodiment of the present application. Please refer to FIG. 6 , including initial audio data 601 and target audio data 602 . Assuming that the electronic device has 4 microphones, after the DSP chip receives the audio data recorded by the microphone of the electronic device, there are 8 channels of audio data in total. Among them, 4 channels are the audio data recorded by the microphone (d0, d1, d2, d3), 4 channels are the recovered audio data (d4, d5, d6, d7), and the audio data of each channel corresponds to a slot . According to the number of microphones of the electronic device, it can be determined that the length of the partial audio data is 4. According to the length of the partial audio, the initial audio data 601 is divided into two partial audio data. Among them, a part of audio data is 4 slots, including audio data d0, d1, d2, and d3. Another part of audio data is 4 slots, including audio data d4, d5, d6, and d7.

将根据初始音频数据的长度8,部分音频数据的长度4,确定填充的预设数据的长度为8-4=4。因此,在进行数据填充处理时,在每个部分音频数据后填充长度为4个slot的预设数据0,得到目标音频数据602。According to the length 8 of the initial audio data and the length 4 of the partial audio data, the length of the filled preset data is determined to be 8−4=4. Therefore, when performing data filling processing, preset data 0 with a length of 4 slots is filled after each partial audio data to obtain target audio data 602 .

S310、通过TDM接口向SOC发送目标音频数据,以使SOC通过IIS接口接收目标音频数据。S310. Send the target audio data to the SOC through the TDM interface, so that the SOC receives the target audio data through the IIS interface.

在SOC接收到目标音频数据之后,可以将目标音频数据按照预设时段划分为多个第一目标音频数据。将每个第一目标音频数据中的预设数据删除,得到待存储的音频数据。将待存储的音频数据存储至电子设备的预设存储空间中。预设时段的时长可以为音频数据传输时一个周期对应的时长。After the SOC receives the target audio data, it may divide the target audio data into a plurality of first target audio data according to a preset period. The preset data in each first target audio data is deleted to obtain the audio data to be stored. The audio data to be stored is stored in the preset storage space of the electronic device. The duration of the preset period may be the duration corresponding to one period during audio data transmission.

本申请实施例提供的音频处理方法,确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率。若初始音频数据为SOC产生的数据,获取第二采样频率与第一采样频率之间的频率比值M。根据频率比值,在初始音频数据中确定部分音频数据。对部分音频数据进行数据填充处理,得到目标音频数据。通过IIS接口向DSP芯片发送目标音频数据,以使DSP芯片通过TDM接口接收目标音频数据。若初始音频数据为DSP芯片产生的数据,在部分音频数据后填充预设数据,得到目标音频数据。通过TDM接口向SOC发送目标音频数据,以使SOC芯片通过IIS接口接收目标音频数据。在上述过程中,可以根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,避免SOC和DSP芯片的接口不匹配产生的音频数据传输数量不同的情况,使得电子设备可以在音频接口不匹配时,正常播放音频。In the audio processing method provided in the embodiment of the present application, the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip are determined. If the initial audio data is data generated by the SOC, a frequency ratio M between the second sampling frequency and the first sampling frequency is acquired. Part of the audio data is determined in the original audio data according to the frequency ratio. Perform data filling processing on part of the audio data to obtain target audio data. Send the target audio data to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data through the TDM interface. If the initial audio data is the data generated by the DSP chip, the preset data is filled after part of the audio data to obtain the target audio data. Send the target audio data to the SOC through the TDM interface, so that the SOC chip receives the target audio data through the IIS interface. In the above process, data filling processing can be performed on the initial audio data according to the first sampling frequency and the second sampling frequency, so as to avoid the situation that the number of audio data transmissions caused by the interface mismatch between the SOC and the DSP chip is different, so that the electronic device can be used in When the audio interface does not match, the audio is played normally.

在上述任意一个实施例基础上,下面,对SOC的第一音频接口为TDM接口,DSP芯片的第二音频接口为IIS接口时,音频处理的过程进行说明。On the basis of any one of the above embodiments, the audio processing process will be described below when the first audio interface of the SOC is a TDM interface and the second audio interface of the DSP chip is an IIS interface.

当初始音频数据为SOC产生的数据时,获取第二采样频率与第一采样频率之间的频率比值M。根据频率比值,确定初始音频数据中,预设时段内每个slot对应传输的音频数据。预设时段的时长可以为音频数据传输时一个周期对应的时长。When the initial audio data is data generated by the SOC, a frequency ratio M between the second sampling frequency and the first sampling frequency is acquired. According to the frequency ratio, among the initial audio data, the audio data corresponding to each slot to be transmitted within the preset time period is determined. The duration of the preset period may be the duration corresponding to one period during audio data transmission.

例如,根据上述图5所示,当SOC的第一音频接口为TDM接口时,可以将初始音频数据直接设置为图5中目标音频数据502的形式,避免因为音频接口频率的不同导致一个周期内传输音频数据量的不同。For example, as shown in FIG. 5 above, when the first audio interface of the SOC is a TDM interface, the initial audio data can be directly set to the form of the target audio data 502 in FIG. The amount of transmitted audio data varies.

当初始音频数据为DSP芯片产生的数据时,可以对初始音频数据进行预处理,将IIS接口的2个16位音频数据编织到1个32位的slot中,并对每个slot进行填充,得到处理后的音频数据并通过DSP芯片的IIS接口传输至SOC。此时,需要DSP芯片具有数据编织的能力。When the initial audio data is the data generated by the DSP chip, the initial audio data can be preprocessed, weaving two 16-bit audio data of the IIS interface into one 32-bit slot, and filling each slot to obtain The processed audio data is transmitted to the SOC through the IIS interface of the DSP chip. At this time, the DSP chip is required to have the ability of data weaving.

在上述任意一个实施例基础上,下面,结合图7A-图7B,对音频处理的过程进行举例说明。图7A为本申请实施例提供的音频处理的过程示意图。请参见图7A,包括SOC 701以及DSP芯片702。SOC 701以及DSP芯片702设置在电子设备中。SOC 701中设置有硬件抽象层(Hardware Abstraction Layer,HAL),SOC 701的音频接口为IIS接口。DSP芯片702的音频接口为TDM接口。在进行音频处理之前,可以通过HAL对IIS接口和TDM接口的参数进行设置并存储至电子设备的预设存储空间中。IIS接口和TDM接口的参数具体可以如表1所示:On the basis of any one of the above embodiments, the audio processing process will be described below with reference to FIG. 7A-FIG. 7B . FIG. 7A is a schematic diagram of the audio processing process provided by the embodiment of the present application. Please refer to FIG. 7A, including SOC 701 and DSP chip 702. SOC 701 and DSP chip 702 are set in electronic equipment. The SOC 701 is provided with a hardware abstraction layer (Hardware Abstraction Layer, HAL), and the audio interface of the SOC 701 is an IIS interface. The audio interface of the DSP chip 702 is a TDM interface. Before audio processing, the parameters of the IIS interface and the TDM interface can be set through the HAL and stored in the preset storage space of the electronic device. The specific parameters of the IIS interface and the TDM interface can be shown in Table 1:

表1Table 1

接口参数interface parameters IIS接口IIS interface TDM接口TDM interface slot数量number of slots 88 slot位宽slot width 16位16 bits 接口位宽Interface bit width 32位32 bit 采样频率Sampling frequency 96kHz96kHz 48kHz48kHz 串行时钟(bit clock,BCLK)Serial clock (bit clock, BCLK) 96kHz*32*296kHz*32*2 48kHz*64*248kHz*64*2 操作模式operating mode 右对齐right align

SOC 701确定初始音频数据为SOC 701的产生的音频数据d0、d1、d2、d3,每个音频数据的长度为16位。根据表1,可以确定TDM接口的第二采样频率与IIS接口的第一采样频率之间的频率比值为2。由于初始音频数据的长度为8个slot,则可以确定部分音频数据的长度为4个slot。根据部分音频数据的长度,在初始音频数据中确定2个部分音频数据。其中,一个部分音频数据包括slot0~slot3,另一个部分音频数据包括slot4~slot7。SOC 701在进行数据填充处理时,在slot1、slot3、slot5以及slot7后填充预设数据0,即每个slot补充16位长度的数据0,得到目标音频数据。The SOC 701 determines that the initial audio data is the audio data d0, d1, d2, and d3 generated by the SOC 701, and the length of each audio data is 16 bits. According to Table 1, it can be determined that the frequency ratio between the second sampling frequency of the TDM interface and the first sampling frequency of the IIS interface is 2. Since the length of the initial audio data is 8 slots, it can be determined that the length of the partial audio data is 4 slots. According to the length of the partial audio data, 2 pieces of partial audio data are determined in the original audio data. Wherein, one part of audio data includes slot0-slot3, and the other part of audio data includes slot4-slot7. When the SOC 701 performs data filling processing, it fills the preset data 0 after slot1, slot3, slot5 and slot7, that is, each slot is supplemented with 16-bit data 0 to obtain the target audio data.

SOC 701将目标音频数据通过IIS接口发送至DSP芯片702,DSP芯片702通过TDM接口接收目标音频数据。DSP芯片702对目标音频数据中的预设数据进行去除处理,得到待播放音频数据,并通过电子设备的麦克风播放待播放音频数据。The SOC 701 sends the target audio data to the DSP chip 702 through the IIS interface, and the DSP chip 702 receives the target audio data through the TDM interface. The DSP chip 702 removes the preset data in the target audio data to obtain the audio data to be played, and plays the audio data to be played through the microphone of the electronic device.

图7B为本申请实施例提供的音频处理的过程示意图。请参见图7B,SOC701确定初始音频数据为DSP芯片702的产生的音频数据d0、d1、d2、d3、d4、d5、d6、d7。DSP芯片702根据初始音频数据的长度8,部分音频数据的长度4,确定填充的预设数据的长度为8-4=4。因此,DSP芯片702在进行数据填充处理时,在每个部分音频数据后填充长度为4个slot的预设数据0,得到目标音频数据。FIG. 7B is a schematic diagram of the audio processing process provided by the embodiment of the present application. Please refer to FIG. 7B , the SOC 701 determines that the initial audio data is the audio data d0 , d1 , d2 , d3 , d4 , d5 , d6 , and d7 generated by the DSP chip 702 . The DSP chip 702 determines the length of the filled preset data to be 8−4=4 according to the length 8 of the initial audio data and the length 4 of the partial audio data. Therefore, when performing data filling processing, the DSP chip 702 fills each part of audio data with preset data 0 with a length of 4 slots to obtain target audio data.

DSP芯片702通过TDM接口向SOC 701发送目标音频数据,SOC 701通过IIS接口接收目标音频数据。在SOC 701接收到目标音频数据之后,可以将目标音频数据按照预设时段划分为多个第一目标音频数据。将每个第一目标音频数据中的预设数据删除,得到待存储的音频数据。将待存储的音频数据存储至电子设备的预设存储空间中。DSP chip 702 sends target audio data to SOC 701 through TDM interface, and SOC 701 receives target audio data through IIS interface. After the SOC 701 receives the target audio data, it can divide the target audio data into a plurality of first target audio data according to a preset period. The preset data in each first target audio data is deleted to obtain the audio data to be stored. The audio data to be stored is stored in the preset storage space of the electronic device.

本申请实施例提供的音频处理过程,确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率。若初始音频数据为SOC产生的数据,获取第二采样频率与第一采样频率之间的频率比值M。根据频率比值,在初始音频数据中确定部分音频数据。对部分音频数据进行数据填充处理,得到目标音频数据。通过IIS接口向DSP芯片发送目标音频数据,以使DSP芯片通过TDM接口接收目标音频数据。若初始音频数据为DSP芯片产生的数据,在部分音频数据后填充预设数据,得到目标音频数据。通过TDM接口向SOC发送目标音频数据,以使SOC芯片通过IIS接口接收目标音频数据。在上述过程中,可以根据第一采样频率和第二采样频率,对初始音频数据进行数据填充处理,避免SOC和DSP芯片的接口不匹配产生的音频数据传输数量不同的情况,使得电子设备可以在音频接口不匹配时,正常播放音频。The audio processing process provided by the embodiment of the present application determines the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip. If the initial audio data is data generated by the SOC, a frequency ratio M between the second sampling frequency and the first sampling frequency is obtained. Part of the audio data is determined in the original audio data according to the frequency ratio. Perform data filling processing on part of the audio data to obtain target audio data. Send the target audio data to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data through the TDM interface. If the initial audio data is the data generated by the DSP chip, the preset data is filled after part of the audio data to obtain the target audio data. Send the target audio data to the SOC through the TDM interface, so that the SOC chip receives the target audio data through the IIS interface. In the above process, data filling processing can be performed on the initial audio data according to the first sampling frequency and the second sampling frequency, so as to avoid the situation that the number of audio data transmissions caused by the interface mismatch between the SOC and the DSP chip is different, so that the electronic device can be used in When the audio interface does not match, the audio is played normally.

图8为本申请实施例提供的一种音频处理装置的结构示意图。音频处理装置可以为芯片或芯片模组。请参见图8,该音频播放装置10可以包括:FIG. 8 is a schematic structural diagram of an audio processing device provided by an embodiment of the present application. The audio processing device can be a chip or a chip module. Referring to Fig. 8, the audio playback device 10 may include:

第一确定模块11,确定SOC的第一音频接口的第一采样频率、以及DSP芯片的第二音频接口的第二采样频率;The first determination module 11 determines the first sampling frequency of the first audio interface of the SOC and the second sampling frequency of the second audio interface of the DSP chip;

第二确定模块12,确定待传输的初始音频数据,所述初始音频数据为所述SOC或者所述DSP芯片产生的数据;The second determination module 12 determines the initial audio data to be transmitted, the initial audio data is the data generated by the SOC or the DSP chip;

处理模块13,根据所述第一采样频率和所述第二采样频率,对所述初始音频数据进行数据填充处理,得到目标音频数据,并通过所述第一音频接口和所述第二音频接口传输所述目标音频数据。The processing module 13, according to the first sampling frequency and the second sampling frequency, performs data filling processing on the initial audio data to obtain target audio data, and passes through the first audio interface and the second audio interface The target audio data is transmitted.

本申请实施例提供的音频处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The audio processing device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effect are similar, and will not be repeated here.

在一种可能的实施方式中,所述处理模块13具体用于:In a possible implementation manner, the processing module 13 is specifically configured to:

获取所述第二采样频率与所述第一采样频率之间的频率比值M,所述M为大于1的整数;Obtain a frequency ratio M between the second sampling frequency and the first sampling frequency, where M is an integer greater than 1;

根据所述频率比值,对所述初始音频数据进行数据填充处理,得到目标音频数据。According to the frequency ratio, data filling processing is performed on the initial audio data to obtain target audio data.

在一种可能的实施方式中,所述处理模块13具体用于:In a possible implementation manner, the processing module 13 is specifically configured to:

根据所述频率比值,在所述初始音频数据中确定部分音频数据,所述初始音频数据的长度为所述部分音频数据的长度的M倍;According to the frequency ratio, partial audio data is determined in the initial audio data, and the length of the initial audio data is M times the length of the partial audio data;

对所述部分音频数据进行数据填充处理,得到所述目标音频数据。Data filling processing is performed on the part of the audio data to obtain the target audio data.

在一种可能的实施方式中,所述处理模块13具体用于:In a possible implementation manner, the processing module 13 is specifically configured to:

在所述部分音频数据中确定至少一个音频数据单元,所述音频数据单元的长度为预设单位长度;determining at least one audio data unit in the partial audio data, the length of the audio data unit being a preset unit length;

在每个音频数据单元后填充预设数据,得到所述目标音频数据,所述预设数据的长度为所述预设单位长度。Preset data is filled after each audio data unit to obtain the target audio data, and the length of the preset data is the preset unit length.

在一种可能的实施方式中,所述处理模块13具体用于:In a possible implementation manner, the processing module 13 is specifically configured to:

通过所述IIS接口向所述DSP芯片发送所述目标音频数据,以使所述DSP芯片通过所述TDM接口接收所述目标音频数据。sending the target audio data to the DSP chip through the IIS interface, so that the DSP chip receives the target audio data through the TDM interface.

在一种可能的实施方式中,所述处理模块13具体用于:In a possible implementation manner, the processing module 13 is specifically configured to:

在所述部分音频数据后填充预设数据,得到所述目标音频数据,所述预设数据的长度为所述初始音频数据的长度与所述部分音频数据的长度的差值。The preset data is filled after the partial audio data to obtain the target audio data, and the length of the preset data is a difference between the length of the initial audio data and the length of the partial audio data.

在一种可能的实施方式中,所述处理模块13具体用于:In a possible implementation manner, the processing module 13 is specifically configured to:

通过所述TDM接口向所述SOC发送所述目标音频数据,以使所述SOC通过所述IIS接口接收所述目标音频数据。sending the target audio data to the SOC through the TDM interface, so that the SOC receives the target audio data through the IIS interface.

本申请实施例提供的音频处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The audio processing device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effect are similar, and will not be repeated here.

图9为本申请实施例提供的另一种音频处理装置的结构示意图。在图8所示实施例的基础上,请参见图9,音频处理装置10还包括播放模块14。FIG. 9 is a schematic structural diagram of another audio processing device provided by an embodiment of the present application. On the basis of the embodiment shown in FIG. 8 , referring to FIG. 9 , the audio processing device 10 further includes a playback module 14 .

其中,所述播放模块14用于:Wherein, the playing module 14 is used for:

对所述目标音频数据中的预设数据进行去除处理,得到待播放音频数据;Removing preset data in the target audio data to obtain audio data to be played;

播放所述待播放音频数据。Play the audio data to be played.

本申请实施例提供的音频处理装置可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The audio processing device provided in the embodiment of the present application can implement the technical solution shown in the above method embodiment, and its implementation principle and beneficial effect are similar, and will not be repeated here.

图10为本申请实施例提供的电子设备的结构示意图。请参见图10,该电子设备20可以包括:存储器21、处理器22。示例性地,存储器21、处理器22,各部分之间通过总线23相互连接。FIG. 10 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. Referring to FIG. 10 , the electronic device 20 may include: a memory 21 and a processor 22 . Exemplarily, the memory 21 and the processor 22 are connected to each other through a bus 23 .

存储器21用于存储程序指令;The memory 21 is used to store program instructions;

处理器22用于执行该存储器所存储的程序指令,用以使得电子设备20执行上述方法实施例所示的方法。The processor 22 is configured to execute the program instructions stored in the memory, so as to make the electronic device 20 execute the methods shown in the above method embodiments.

本申请实施例提供的电子设备可以执行上述方法实施例所示的技术方案,其实现原理以及有益效果类似,此处不再进行赘述。The electronic device provided by the embodiment of the present application can implement the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, and will not be repeated here.

本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现上述方法。An embodiment of the present application provides a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and the computer-executable instructions are used to implement the foregoing method when executed by a processor.

本申请实施例还可提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时,可实现上述方法。The embodiment of the present application may further provide a computer program product, including a computer program, and when the computer program is executed by a processor, the foregoing method may be implemented.

实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一可读取存储器中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储器(存储介质)包括:只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:Random Access Memory,缩写:RAM)、快闪存储器、硬盘、固态硬盘、磁带(英文:magnetic tape)、软盘(英文:floppy disk)、光盘(英文:optical disc)及其任意组合。All or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a readable memory. When the program is executed, it executes the steps comprising the above-mentioned method embodiments; and the aforementioned memory (storage medium) includes: read-only memory (English: read-only memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviation: RAM), flash memory, hard disk, solid state drive, magnetic tape (English: magnetic tape), floppy disk (English: floppy disk), optical disc (English: optical disc) and any combination thereof.

本申请实施例是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理单元以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理单元执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。Embodiments of the present application are described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processing unit of other programmable data processing equipment to produce a machine such that the instructions executed by the processing unit of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.

显然,本领域的技术人员可以对本申请实施例进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请实施例的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Apparently, those skilled in the art can make various changes and modifications to the embodiments of the present application without departing from the spirit and scope of the present application. In this way, if the modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

在本申请中,术语“包括”及其变形可以指非限制性的包括;术语“或”及其变形可以指“和/或”。本申请中术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。本申请中,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。In this application, the term "include" and its variants may mean non-limiting inclusion; the term "or" and its variants may mean "and/or". The terms "first", "second", etc. in this application are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence. In the present application, "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship.

Claims (12)

1. An audio processing method, which is applied to an electronic device, wherein a system-on-chip SOC and a digital signal processing DSP chip are arranged in the electronic device, the method comprises:
determining a first sampling frequency of a first audio interface of the SOC and a second sampling frequency of a second audio interface of the DSP chip;
determining initial audio data to be transmitted, wherein the initial audio data are audio data generated by the SOC or the DSP chip;
and carrying out data filling processing on the initial audio data according to the first sampling frequency and the second sampling frequency to obtain target audio data, and transmitting the target audio data through the first audio interface and the second audio interface.
2. The method of claim 1, wherein the first audio interface is an integrated audio interface IIS interface and the second audio interface is a time division multiplexing TDM interface;
performing data filling processing on the initial audio data according to the first sampling frequency and the second sampling frequency to obtain target audio data, wherein the data filling processing comprises the following steps:
acquiring a frequency ratio M between the second sampling frequency and the first sampling frequency, wherein M is an integer greater than 1;
And carrying out data filling processing on the initial audio data according to the frequency ratio to obtain target audio data.
3. The method according to claim 2, wherein performing data filling processing on the initial audio data according to the frequency ratio M to obtain target audio data comprises:
determining partial audio data in the initial audio data according to the frequency ratio, wherein the length of the initial audio data is M times of the length of the partial audio data;
and carrying out data filling processing on the partial audio data to obtain the target audio data.
4. The method of claim 3, wherein the initial audio data is data generated by the SOC; performing data filling processing on the part of audio data to obtain the target audio data, wherein the data filling processing comprises the following steps:
determining at least one audio data unit in the part of audio data, wherein the length of the audio data unit is a preset unit length;
filling preset data after each audio data unit to obtain the target audio data, wherein the length of the preset data is the preset unit length.
5. The method of claim 4, wherein transmitting the target audio data over the first audio interface and the second audio interface comprises:
And sending the target audio data to the DSP chip through the IIS interface so that the DSP chip receives the target audio data through the TDM interface.
6. The method of claim 5, wherein the method further comprises:
removing preset data in the target audio data to obtain audio data to be played;
and playing the audio data to be played.
7. A method according to claim 3, wherein the initial audio data is data generated by the DSP; performing data filling processing on the part of audio data to obtain the target audio data, wherein the data filling processing comprises the following steps:
filling preset data after the part of audio data to obtain the target audio data, wherein the length of the preset data is the difference between the length of the initial audio data and the length of the part of audio data.
8. The method of claim 7, wherein transmitting the target audio data over the first audio interface and the second audio interface comprises:
and sending the target audio data to the SOC through the TDM interface so that the SOC receives the target audio data through the IIS interface.
9. An audio processing apparatus, the apparatus comprising:
the first determining module is used for determining a first sampling frequency of a first audio interface of the SOC and a second sampling frequency of a second audio interface of the DSP chip;
the second determining module is used for determining initial audio data to be transmitted, wherein the initial audio data are data generated by the SOC or the DSP chip;
and the processing module is used for carrying out data filling processing on the initial audio data according to the first sampling frequency and the second sampling frequency to obtain target audio data, and transmitting the target audio data through the first audio interface and the second audio interface.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 8.
11. A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are for causing a computer to perform the method of any one of claims 1 to 8.
12. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of any one of claims 1 to 8.
CN202310162390.1A 2023-02-23 2023-02-23 Audio processing method, device and electronic equipment Pending CN116088390A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310162390.1A CN116088390A (en) 2023-02-23 2023-02-23 Audio processing method, device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310162390.1A CN116088390A (en) 2023-02-23 2023-02-23 Audio processing method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116088390A true CN116088390A (en) 2023-05-09

Family

ID=86214096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310162390.1A Pending CN116088390A (en) 2023-02-23 2023-02-23 Audio processing method, device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116088390A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040161040A1 (en) * 2003-02-12 2004-08-19 Ulrich Schreiber Method and apparatus for pre-processing in a common-format control processing input signals of, or output signals for, interfaces of different type
CN102117613A (en) * 2009-12-31 2011-07-06 展讯通信(上海)有限公司 Method and equipment for processing digital audio in variable speed
CN109101213A (en) * 2018-08-23 2018-12-28 广州酷狗计算机科技有限公司 Control the method, apparatus and storage medium of sound card transmission audio
CN110111791A (en) * 2019-05-21 2019-08-09 扬州航盛科技有限公司 A kind of speech recognition system based on vehicle intelligent net connection
CN209642945U (en) * 2019-06-05 2019-11-15 中山市力泰电子工业有限公司 A kind of jamproof wireless acoustics
CN111782866A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Drawing method, drawing device, terminal equipment and computer storage medium
CN113534704A (en) * 2021-07-08 2021-10-22 辉创电子科技(苏州)有限公司 System and process for detecting foreign matters on surface of ultrasonic sensor
CN114424167A (en) * 2019-05-06 2022-04-29 强力物联网投资组合2016有限公司 A platform to facilitate intelligent development of industrial IoT systems
CN115037398A (en) * 2021-03-03 2022-09-09 Oppo广东移动通信有限公司 Audio transmission method and system, chip and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040161040A1 (en) * 2003-02-12 2004-08-19 Ulrich Schreiber Method and apparatus for pre-processing in a common-format control processing input signals of, or output signals for, interfaces of different type
CN102117613A (en) * 2009-12-31 2011-07-06 展讯通信(上海)有限公司 Method and equipment for processing digital audio in variable speed
CN109101213A (en) * 2018-08-23 2018-12-28 广州酷狗计算机科技有限公司 Control the method, apparatus and storage medium of sound card transmission audio
CN111782866A (en) * 2019-04-04 2020-10-16 阿里巴巴集团控股有限公司 Drawing method, drawing device, terminal equipment and computer storage medium
CN114424167A (en) * 2019-05-06 2022-04-29 强力物联网投资组合2016有限公司 A platform to facilitate intelligent development of industrial IoT systems
CN110111791A (en) * 2019-05-21 2019-08-09 扬州航盛科技有限公司 A kind of speech recognition system based on vehicle intelligent net connection
CN209642945U (en) * 2019-06-05 2019-11-15 中山市力泰电子工业有限公司 A kind of jamproof wireless acoustics
CN115037398A (en) * 2021-03-03 2022-09-09 Oppo广东移动通信有限公司 Audio transmission method and system, chip and storage medium
CN113534704A (en) * 2021-07-08 2021-10-22 辉创电子科技(苏州)有限公司 System and process for detecting foreign matters on surface of ultrasonic sensor

Similar Documents

Publication Publication Date Title
JP3915585B2 (en) DATA GENERATION METHOD, PROGRAM, RECORDING MEDIUM, AND DATA GENERATION DEVICE
JP5461835B2 (en) Audio signal encoding / decoding method and encoding / decoding device
US8090113B2 (en) System and method for modulating audio effects of speakers in a sound system
CN105679345B (en) Audio processing method and electronic equipment
KR100739723B1 (en) Method and apparatus for audio reproduction supporting audio thumbnail function
CN110248285B (en) Multi-channel audio equipment
JP2009060209A (en) Playback apparatus, program, and frequency characteristics adjustment method in the playback apparatus
CN116088390A (en) Audio processing method, device and electronic equipment
JP4737683B2 (en) Serial transmission system, transmission apparatus, and serial transmission method
KR101120968B1 (en) Musical instrument digital interface hardware instruction set
JP2004039138A5 (en)
US7507900B2 (en) Method and apparatus for playing in synchronism with a DVD an automated musical instrument
JP3925349B2 (en) Apparatus and method for synchronous reproduction of audio data and performance data
JP4174859B2 (en) Method and apparatus for mixing digital audio signal
CN103594105B (en) A kind of method that the CD of use laser disc carries out playing on auto-play piano
JP2010276992A (en) Digital data processing device
EP1031981A2 (en) Data transmission
JP3969249B2 (en) Apparatus and method for synchronous reproduction of audio data and performance data
JP2944225B2 (en) Stereo signal processor
CN110033796B (en) Old record recording noise filtering method
CN113841133B (en) Host communication circuit, client communication circuit, communication system, sound reproduction device and communication method
CN114510212B (en) Data transmission method, device and equipment based on serial digital audio interface
JP4207082B2 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, AND PROGRAM
KR20100029315A (en) Method of playing exterior memory and audio apparatus using thereof
JP2006139158A (en) Sound signal synthesizer and synthesizing/reproducing apparatus

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