CN114390426A - Volume calibration method and device - Google Patents

Volume calibration method and device Download PDF

Info

Publication number
CN114390426A
CN114390426A CN202011307310.XA CN202011307310A CN114390426A CN 114390426 A CN114390426 A CN 114390426A CN 202011307310 A CN202011307310 A CN 202011307310A CN 114390426 A CN114390426 A CN 114390426A
Authority
CN
China
Prior art keywords
audio
volume
speaker
mobile phone
calibrated
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
CN202011307310.XA
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN114390426A publication Critical patent/CN114390426A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04SSTEREOPHONIC SYSTEMS 
    • H04S7/00Indicating arrangements; Control arrangements, e.g. balance control
    • H04S7/30Control circuits for electronic adaptation of the sound field
    • H04S7/301Automatic calibration of stereophonic sound system, e.g. with test microphone

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Telephone Function (AREA)

Abstract

一种音量校准方法及装置,该方法包括:终端设备向第一音箱发送第一音频,向第二音箱发送第二音频。终端设备在第一参考点上采集第一音箱播放第一音频所对应的音频数据和第二音箱播放第二音频所对应的音频数据。终端设备可以根据第一音箱播放第一音频所对应的音频数据确定第一待校准音量,根据第二音箱播放第二音频所对应的音频数据确定第二待校准音量,并根据第一待校准音量和第二待校准音量,确定音量调整方案。因此,终端设备可以根据该音量调整方案实现对第一音箱和第二音箱的音量校准,进而实现减轻声场偏移现象对声音效果的影响。

Figure 202011307310

A volume calibration method and device, the method includes: a terminal device sends a first audio frequency to a first sound box, and sends a second audio frequency to a second sound box. The terminal device collects, on the first reference point, audio data corresponding to the first sound box playing the first audio and audio data corresponding to the second sound box playing the second audio. The terminal device may determine the first volume to be calibrated according to the audio data corresponding to the first audio played by the first speaker, determine the second volume to be calibrated according to the audio data corresponding to the second audio played by the second speaker, and determine the second volume to be calibrated according to the audio data corresponding to the second audio played by the second speaker. and the second volume to be calibrated to determine the volume adjustment scheme. Therefore, the terminal device can realize volume calibration of the first sound box and the second sound box according to the volume adjustment scheme, thereby reducing the influence of the sound field offset phenomenon on the sound effect.

Figure 202011307310

Description

一种音量校准方法及装置Method and device for volume calibration

本申请要求在2020年10月22日提交中华人民共和国知识产权局、申请号为202011140931.3、发明名称为“一种音量校准方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 22, 2020 with the Intellectual Property Office of the People's Republic of China, the application number is 202011140931.3, and the invention title is "A volume calibration method and device", the entire contents of which are incorporated by reference in in this application.

技术领域technical field

本申请实施例涉及终端领域,尤其涉及一种音量校准方法及装置。The embodiments of the present application relate to the field of terminals, and in particular, to a volume calibration method and device.

背景技术Background technique

当前,一个终端设备可以选择将音频投射到其他设备上进行播放。例如,手机、平板(Pad)、电脑(PC)、电视(TV)等设备可以将音频投射到其他设备(例如,音箱)上播放。Currently, an end device can choose to cast audio to other devices for playback. For example, devices such as a mobile phone, a tablet (Pad), a computer (PC), and a television (TV) can project audio to other devices (eg, speakers) for playback.

示例性地,两个音箱可以组合成包括左声道和右声道的立体声音箱。当手机连接这两个音箱时,手机可以触发将某个视频投射到电视上进行播放,并将该视频对应的音频投射到这两个音箱上进行播放,进而这两个音箱可以分别播放该音频中左声道的声音和右声道的声音。Illustratively, two speakers may be combined into a stereo speaker including left and right channels. When the mobile phone is connected to the two speakers, the mobile phone can trigger a video to be projected to the TV for playback, and the audio corresponding to the video is projected to the two speakers for playback, and then the two speakers can play the audio separately. The sound of the center left channel and the sound of the right channel.

进一步地,当两个音箱在播放音频时,在用户所在位置上用户可能会感受到两个音箱的音量的差异,而两个音箱的音量的差异会让人感受到声场的偏移,进而影响声音效果的还原。Further, when the two speakers are playing audio, the user may feel the difference in the volume of the two speakers at the user's location, and the difference in the volume of the two speakers will make people feel the offset of the sound field, which will affect the sound field. Restoration of sound effects.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供一种音量校准方法及装置,用于解决在用户所在位置出现声场的偏移,进而影响声音效果的问题。Embodiments of the present application provide a volume calibration method and device, which are used to solve the problem that the sound field shifts at the user's location, thereby affecting the sound effect.

第一方面,本申请实施例提供一种音量校准方法,该方法包括:终端设备向第一音箱发送第一音频,向第二音箱发送第二音频。终端设备在第一参考点上采集第一音频数据和第二音频数据,第一音频数据为第一音箱播放第一音频所对应的音频数据,第二音频数据为第二音箱播放第二音频所对应的音频数据。终端设备根据第一音频数据确定第一待校准音量,根据第二音频数据确定第二待校准音量,并根据第一待校准音量和第二待校准音量,确定音量调整方案。采用上述方法通过配置第一音箱和第二音箱分别播放第一音频和第二音频,并采集获得第一音频对应的第一音频数据和第二音频对应的第二音频数据,可以确定第一待校准音量和第二待校准音量,进而根据第一待校准音量和第二待校准音量可以确定音量调整方案,实现减轻声场偏移现象对声音效果的影响,保证较好的用户体验。In a first aspect, an embodiment of the present application provides a volume calibration method. The method includes: a terminal device sends a first audio frequency to a first sound box, and sends a second audio frequency to a second sound box. The terminal device collects the first audio data and the second audio data at the first reference point, the first audio data is the audio data corresponding to the first audio played by the first speaker, and the second audio data is the second audio played by the second speaker. corresponding audio data. The terminal device determines a first volume to be calibrated according to the first audio data, determines a second volume to be calibrated according to the second audio data, and determines a volume adjustment scheme according to the first volume to be calibrated and the second volume to be calibrated. Using the above method, by configuring the first speaker and the second speaker to play the first audio and the second audio respectively, and collecting the first audio data corresponding to the first audio and the second audio data corresponding to the second audio, it is possible to determine the first to-be-received audio. The volume and the second volume to be calibrated are calibrated, and then a volume adjustment scheme can be determined according to the first volume to be calibrated and the second volume to be calibrated, so as to reduce the impact of the sound field offset phenomenon on the sound effect and ensure a better user experience.

在一种可能的设计中,所述第一音频与所述第二音频在预设部分声波的频率不同,和/或所述第一音频与所述第二音频在预设部分声波的波形不同。采用上述设计,终端设备可以通过第一音频和第二音频的区别区分采集到的数据中的第一音频数据和第二音频数据。In a possible design, the frequencies of the sound waves of the first audio frequency and the second audio frequency in the preset part are different, and/or the waveforms of the sound waves of the first audio frequency and the second audio frequency in the preset part are different . With the above design, the terminal device can distinguish the first audio data and the second audio data in the collected data through the difference between the first audio and the second audio.

在一种可能的设计中,所述第一音频与所述第二音频具有扫频波形。采用上述设计可以实现对较大频率范围的音量校准。In a possible design, the first audio frequency and the second audio frequency have sweep frequency waveforms. With the above design, volume calibration for a larger frequency range can be achieved.

在一种可能的设计中,所述第一参考点是根据所述终端设备与所述第一音箱之间的距离、所述第一音箱相对于所述终端设备的方位信息、所述终端设备与所述第二音箱之间的距离以及所述第二音箱相对于所述终端设备的方位信息确定的。采用上述设计可以确定终端设备、第一音箱和第二音箱三者的位置关系。In a possible design, the first reference point is based on the distance between the terminal device and the first sound box, the orientation information of the first sound box relative to the terminal device, the terminal device The distance to the second sound box and the orientation information of the second sound box relative to the terminal device are determined. Using the above design, the positional relationship among the terminal device, the first sound box and the second sound box can be determined.

在一种可能的设计中,所述第一待校准音量为所述第一音频数据所对应的频率范围所对应的音量,所述第二待校准音量为所述第二音频数据所对应的频率范围所对应的音量。In a possible design, the first volume to be calibrated is a volume corresponding to a frequency range corresponding to the first audio data, and the second volume to be calibrated is a frequency corresponding to the second audio data The volume corresponding to the range.

采用上述设计可以较为简便地确定第一待校准音量和第二待校准音量,进而可以通过第一待校准音量和第二待校准音量实现音量校准,减轻声场偏移的问题。By adopting the above design, the first volume to be calibrated and the second volume to be calibrated can be easily determined, and then volume calibration can be achieved through the first volume to be calibrated and the second volume to be calibrated, thereby reducing the problem of sound field offset.

在一种可能的设计中,所述第一待校准音量为所述第一音频数据所对应的多个频率范围分别对应的音量的平均值,所述第二待校准音量为所述第二音频数据所对应的多个频率范围分别对应的音量的平均值。采用上述设计可以较为简便地确定第一待校准音量和第二待校准音量,进而可以通过第一待校准音量和第二待校准音量实现音量校准,且减轻声场偏移的效果比较明显。In a possible design, the first volume to be calibrated is an average value of volumes corresponding to multiple frequency ranges corresponding to the first audio data, and the second volume to be calibrated is the second audio volume The average value of the volume corresponding to multiple frequency ranges corresponding to the data. By adopting the above design, the first volume to be calibrated and the second volume to be calibrated can be easily determined, and volume calibration can be achieved through the first volume to be calibrated and the second volume to be calibrated, and the effect of reducing sound field offset is obvious.

在一种可能的设计中,所述第一待校准音量包括所述第一音频数据所对应的多个频率范围分别所对应的音量,所述第二待校准音量包括所述第二音频数据所对应的多个频率范围分别所对应的音量。采用上述设计通过确定多个第一待校准音量和多个第二待校准音量,进而可以实现较为精准地针对不同频率范围进行音量校准,能够明显改善声场偏移的问题。In a possible design, the first volume to be calibrated includes volumes corresponding to multiple frequency ranges corresponding to the first audio data, and the second volume to be calibrated includes volumes corresponding to the second audio data. The corresponding volume of multiple frequency ranges respectively. By using the above design, by determining a plurality of first to-be-calibrated volumes and a plurality of second to-be-calibrated volumes, it is possible to more accurately perform volume calibration for different frequency ranges, which can significantly improve the problem of sound field offset.

在一种可能的设计中,还包括:所述终端设备根据所述音量调整方案向所述第一音箱或所述第二音箱发送第一信息,第一信息用于指示所述第一待校准音量和所述第二待校准音量的差值。采用上述设计可以较为简便地实现音量校准。In a possible design, the method further includes: the terminal device sends first information to the first sound box or the second sound box according to the volume adjustment scheme, where the first information is used to indicate the first to-be-calibrated sound box The difference between the volume and the second volume to be calibrated. By adopting the above design, volume calibration can be implemented relatively simply.

在一种可能的设计中,还包括:所述终端设备根据所述音量调整方案向所述第一音箱发送第二信息,向所述第二音箱发送第三信息,所述第二信息用于指示第一音量调整量,所述第三信息用于指示第二音量调整量,所述第一音量调整量和所述第二音量调整量是根据所述第一待校准音量和所述第二待校准音量的差值确定的。采用上述设计可以较为简便地实现音量校准。In a possible design, the method further includes: the terminal device sends second information to the first sound box according to the volume adjustment scheme, and sends third information to the second sound box, where the second information is used for Indicates a first volume adjustment amount, the third information is used to indicate a second volume adjustment amount, and the first volume adjustment amount and the second volume adjustment amount are based on the first volume to be calibrated and the second volume adjustment amount The difference of the volume to be calibrated is determined. By adopting the above design, volume calibration can be implemented relatively simply.

在一种可能的设计中,所述方法还包括:所述终端设备根据所述音量调整方案调整所述第三音频的波形;所述终端设备向所述第一音箱发送所述调整后的第三音频,向所述第二音箱发送所述第四音频;或者,所述终端设备根据所述音量调整方案调整所述第四音频的波形;所述终端设备向所述第一音箱发送所述第三音频,向所述第二音箱发送所述调整后的第四音频。采用上述设计,可以实现通过调整第三音频的波形或第四音频的波形实现音量校准。In a possible design, the method further includes: the terminal device adjusts the waveform of the third audio frequency according to the volume adjustment scheme; the terminal device sends the adjusted third audio frequency to the first speaker. Three audios, send the fourth audio to the second speaker; or, the terminal device adjusts the waveform of the fourth audio according to the volume adjustment scheme; the terminal device sends the first audio to the first speaker The third audio frequency is to send the adjusted fourth audio frequency to the second sound box. With the above design, volume calibration can be realized by adjusting the waveform of the third audio frequency or the waveform of the fourth audio frequency.

在一种可能的设计中,所述第三音频与所述第四音频相同。In a possible design, the third audio frequency is the same as the fourth audio frequency.

在一种可能的设计中,在终端设备向第一音箱发送第一音频,向第二音箱发送第二音频之前,所述终端设备检测到用户的第一操作,所述第一操作用于触发将所述用户准备收听的声音投射至所述第一音箱和所述第二音箱播放。采用上述设计可以实现触发音量校准。In a possible design, before the terminal device sends the first audio to the first speaker and sends the second audio to the second speaker, the terminal device detects the first operation of the user, and the first operation is used to trigger The sound that the user is ready to listen to is projected to the first sound box and the second sound box for playback. With the above design, trigger volume calibration can be achieved.

在一种可能的设计中,还包括:在所述终端设备检测到所述第一操作之后,所述终端设备在用户界面上显示第一提示框;所述第一提示框用于提示用户是否执行音量校准;所述终端设备检测到所述用户针对所述第一提示框的第二操作,所述第二操作指示执行音量校准。采用上述设计可以实现提示用户触发执行音量校准。In a possible design, the method further includes: after the terminal device detects the first operation, the terminal device displays a first prompt box on the user interface; the first prompt box is used to prompt the user whether to Perform volume calibration; the terminal device detects a second operation of the user on the first prompt box, and the second operation instructs to perform volume calibration. With the above design, the user can be prompted to trigger the volume calibration.

在一种可能的设计中,所述第一音箱的位置固定且所述第二音箱的位置固定;所述方法还包括:所述终端设备在确定非首次检测到所述第一操作时,所述终端设备确定第二参考点;若所述第一参考点与所述第二参考点之间的距离小于预设阈值,所述终端设备确定采用所述音量调整方案。采用上述设计可以实现终端设备利用保存的音量调整方案对第一音箱和第二音箱进行快速音量校准。In a possible design, the position of the first sound box is fixed and the position of the second sound box is fixed; the method further includes: when the terminal device determines that the first operation is not detected for the first time, The terminal device determines a second reference point; if the distance between the first reference point and the second reference point is less than a preset threshold, the terminal device determines to use the volume adjustment scheme. By adopting the above design, the terminal device can quickly calibrate the volume of the first speaker and the second speaker by using the saved volume adjustment scheme.

在一种可能的设计中,所述终端设备的用户界面包括第一选项;所述第一选项用于触发执行音量校准;在终端设备向第一音箱发送第一音频,向第二音箱发送第二音频之前,所述终端设备检测到用户触发所述第一选项的操作。采用上述设计可以实现用户在播放过程中随时启动音量校准。In a possible design, the user interface of the terminal device includes a first option; the first option is used to trigger the execution of volume calibration; the terminal device sends the first audio to the first speaker, and sends the first audio to the second speaker. Before the second audio, the terminal device detects that the user triggers the operation of the first option. With the above design, the user can start volume calibration at any time during the playback process.

在一种可能的设计中,还包括:所述终端设备检测到用户遮挡麦克风,所述终端设备在用户界面上显示用于提醒用户检查是否遮挡麦克风的提示框。采用上述方法能够避免由于遮挡麦克风给音量校准引入的误差。In a possible design, the method further includes: the terminal device detects that the user blocks the microphone, and the terminal device displays a prompt box on the user interface for reminding the user to check whether the microphone is blocked. Using the above method can avoid errors caused by blocking the microphone to the volume calibration.

在一种可能的设计中,还包括:所述终端设备在用户界面上显示用于提醒用户保持所述终端设备垂直于地面的提示框。采用上述设计能够避免由于麦克风指向性给音量校准引入的误差。In a possible design, the method further includes: the terminal device displays a prompt box on the user interface for reminding the user to keep the terminal device perpendicular to the ground. Using the above design can avoid errors introduced to volume calibration due to microphone directivity.

第二方面,本申请实施例提供一种通信装置,所述装置包括用于执行第一方面和第一方面中的任意一种可能的设计的模块。In a second aspect, an embodiment of the present application provides a communication apparatus, where the apparatus includes a module for implementing any one of the first aspect and any possible design of the first aspect.

第三方面,本申请实施例提供一种通信装置,包括处理器和接口电路,所述接口电路用于接收来自所述通信装置之外的其它通信装置的信号并传输至所述处理器或将来自所述处理器的信号发送给所述通信装置之外的其它通信装置,所述处理器通过逻辑电路或执行代码指令用于实现第一方面和第一方面中的任意一种可能的设计。In a third aspect, an embodiment of the present application provides a communication device, including a processor and an interface circuit, where the interface circuit is configured to receive signals from other communication devices other than the communication device and transmit to the processor or transfer signals to the processor. The signal from the processor is sent to other communication devices than the communication device, and the processor is used to implement the first aspect and any one of the possible designs of the first aspect through logic circuits or executing code instructions.

第四方面,本申请实施例提供一种计算机可读存储介质,所述存储介质中存储有计算机程序或指令,当所述计算机程序或指令被通信装置执行时,实现第一方面和第一方面中的任意一种可能的设计。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program or instruction is stored in the storage medium, and when the computer program or instruction is executed by a communication device, the first aspect and the first aspect are implemented any of the possible designs.

第五方面,本申请实施例提供一种包含程序的计算机程序产品,当其在通信装置上运行时,使得通信装置执行第一方面和第一方面中的任意一种可能的设计。In a fifth aspect, embodiments of the present application provide a computer program product including a program, which, when executed on a communication device, enables the communication device to execute any one of the first aspect and any possible design of the first aspect.

附图说明Description of drawings

图1为本申请的实施例提供的手机的结构示意图;1 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application;

图2为本申请的实施例提供的扫频波形的示意图;2 is a schematic diagram of a frequency sweep waveform provided by an embodiment of the present application;

图3为本申请的实施例提供的频响曲线的示意图;3 is a schematic diagram of a frequency response curve provided by an embodiment of the present application;

图4为本申请的实施例提供的手机录制到的音箱播放该音频的音量大小的变化曲线示意图;FIG. 4 is a schematic diagram of a variation curve of the volume of the audio played by a speaker recorded by a mobile phone according to an embodiment of the present application;

图5为本申请的实施例提供的手机中的麦克风分布示意图;5 is a schematic diagram of the distribution of microphones in a mobile phone according to an embodiment of the present application;

图6为本申请的实施例提供的手机与第一音箱和第二音箱的位置关系示意图;6 is a schematic diagram of the positional relationship between a mobile phone and a first sound box and a second sound box according to an embodiment of the present application;

图7为本申请的实施例提供的手机与5个音箱的位置关系示意图;7 is a schematic diagram of the positional relationship between a mobile phone and five sound boxes provided by an embodiment of the present application;

图8为本申请的实施例提供的第一音频的波形的示意图;8 is a schematic diagram of a waveform of a first audio frequency provided by an embodiment of the present application;

图9为本申请的实施例提供的音量校准方法的概述流程图;9 is an overview flow chart of a volume calibration method provided by an embodiment of the present application;

图10为本申请的实施例提供的用户界面的示意图之一;FIG. 10 is one of the schematic diagrams of the user interface provided by the embodiment of the present application;

图11为本申请的实施例提供的用户界面的示意图之二;11 is a second schematic diagram of a user interface provided by an embodiment of the present application;

图12为本申请的实施例提供的用户界面的示意图之三;FIG. 12 is a third schematic diagram of a user interface provided by an embodiment of the present application;

图13为本申请的实施例提供的用户界面的示意图之四;FIG. 13 is a fourth schematic diagram of a user interface provided by an embodiment of the present application;

图14为本申请的实施例提供的用户界面的示意图之五;FIG. 14 is a fifth schematic diagram of a user interface provided by an embodiment of the present application;

图15为本申请的实施例提供的用户界面的示意图之六。FIG. 15 is a sixth schematic diagram of a user interface provided by an embodiment of the present application.

具体实施方式Detailed ways

本申请可应用于一般意义上的终端设备,例如,手机,平板电脑,笔记本电脑,智能手表,电视机、车机、音箱、耳机、眼镜、虚拟现实(Virtual Reality,VR)设备、增强现实(Augmented Reality,AR)设备、摄像头、游戏机等电子设备。终端设备可以搭载

Figure BDA0002788702610000041
或者其它操作系统。This application can be applied to terminal devices in the general sense, such as mobile phones, tablet computers, notebook computers, smart watches, TV sets, car devices, speakers, headphones, glasses, virtual reality (Virtual Reality, VR) devices, augmented reality ( Augmented Reality, AR) devices, cameras, game consoles and other electronic devices. Terminal equipment can carry
Figure BDA0002788702610000041
or other operating systems.

以终端设备是手机为例,图1示出了手机100的结构示意图。Taking the terminal device being a mobile phone as an example, FIG. 1 shows a schematic structural diagram of the mobile phone 100 .

手机100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块151,无线通信模块152,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括陀螺仪传感器180A,加速度传感器180B,指纹传感器180H,温度传感器180J,触摸传感器180K(当然,手机100还可以包括其它传感器,比如压力传感器、加速度传感器、陀螺仪传感器、色温传感器、骨传导传感器等,图中未示出)。The mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, Mobile communication module 151, wireless communication module 152, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and user A subscriber identification module (SIM) card interface 195 and the like. The sensor module 180 may include a gyro sensor 180A, an acceleration sensor 180B, a fingerprint sensor 180H, a temperature sensor 180J, and a touch sensor 180K (of course, the mobile phone 100 may also include other sensors, such as a pressure sensor, an acceleration sensor, a gyro sensor, and a color temperature sensor. , bone conduction sensor, etc., not shown in the figure).

可以理解的是,本发明实施例示意的结构并不构成对手机100的具体限定。在本申请另一些实施例中,手机100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone 100 . In other embodiments of the present application, the mobile phone 100 may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

其中,处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。其中,控制器可以是手机100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processing image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and/or neural-network processing unit (NPU) )Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors. The controller may be the nerve center and command center of the mobile phone 100 . The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.

处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用,避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be directly called from the memory, which avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

处理器110可以运行本申请实施例提供的音量校准的方法,以解决不同音箱的音量的差异导致声场的偏移,进而影响声音效果的问题,提高用户体验。当处理器110集成不同的器件,比如集成CPU和GPU时,CPU和GPU可以配合执行本申请实施例提供的音量校准的方法,比如音量校准的方法中部分方法由CPU执行,另一部分方法由GPU执行。The processor 110 may execute the volume calibration method provided by the embodiments of the present application to solve the problem that the difference in the volume of different speakers causes the sound field to shift, which in turn affects the sound effect, and improves user experience. When the processor 110 integrates different devices, such as integrating a CPU and a GPU, the CPU and the GPU may cooperate to execute the volume calibration method provided by the embodiments of the present application. For example, in the volume calibration method, some methods are executed by the CPU, and another part of the methods are executed by the GPU implement.

显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emittingdiode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrixorganic light emitting diode的,AMOLED),柔性发光二极管(flex light-emittingdiode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot lightemitting diodes,QLED)等。在一些实施例中,手机100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). , AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diodes (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the handset 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

摄像头193(前置摄像头或者后置摄像头)用于捕获静态图像或视频。通常,摄像头193可以包括感光元件比如镜头组和图像传感器,其中,镜头组包括多个透镜(凸透镜或凹透镜),用于采集待拍摄物体反射的光信号,并将采集的光信号传递给图像传感器。图像传感器根据所述光信号生成待拍摄物体的原始图像。摄像头193采集到原始图像后,可以将原始图像发送给处理器110。另外,图1所示的摄像头193可以包括1-N个摄像头。Camera 193 (front camera or rear camera) is used to capture still images or video. Generally, the camera 193 may include a photosensitive element such as a lens group and an image sensor, wherein the lens group includes a plurality of lenses (convex or concave) for collecting light signals reflected by the object to be photographed, and transmitting the collected light signals to the image sensor . The image sensor generates an original image of the object to be photographed according to the light signal. After the camera 193 captures the original image, the original image can be sent to the processor 110 . In addition, the camera 193 shown in FIG. 1 may include 1-N cameras.

内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,应用程序的代码等。存储数据区可存储手机100使用过程中所创建的数据等。Internal memory 121 may be used to store computer executable program code, which includes instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by executing the instructions stored in the internal memory 121 . The internal memory 121 may include a storage program area and a storage data area. Among them, the stored program area can store the operating system, the code of the application program, and the like. The storage data area can store data and the like created during the use of the mobile phone 100 .

内部存储器121还可以存储本申请实施例提供的音量校准的方法的代码。当内部存储器121中存储的调用服务的方法的代码被处理器110运行时,解决不同音箱的音量的差异导致声场的偏移,进而影响声音效果的问题,提高用户体验。The internal memory 121 may also store the code of the volume calibration method provided by the embodiment of the present application. When the code of the method for invoking the service stored in the internal memory 121 is executed by the processor 110, it solves the problem that the difference in volume of different speakers causes the sound field to shift, thereby affecting the sound effect, and improves the user experience.

此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.

当然,本申请实施例提供的音量校准的方法的代码还可以存储在外部存储器中。这种情况下,处理器110可以通过外部存储器接口120运行存储在外部存储器中的音量校准的方法的代码,也可以解决不同音箱的音量的差异导致声场的偏移,进而影响声音效果的问题,提高用户体验。Certainly, the code of the volume calibration method provided by the embodiment of the present application may also be stored in an external memory. In this case, the processor 110 can run the code of the volume calibration method stored in the external memory through the external memory interface 120, and can also solve the problem that the difference in the volume of different speakers causes the offset of the sound field, thereby affecting the sound effect, Improve user experience.

下面介绍传感器模块180的功能。The function of the sensor module 180 is described below.

陀螺仪传感器180A,可以用于确定手机100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180A确定手机100围绕三个轴(即,x,y和z轴)的角速度。即陀螺仪传感器180A可以用于检测手机100当前的运动状态,比如抖动还是静止。The gyro sensor 180A can be used to determine the movement posture of the mobile phone 100 . In some embodiments, the angular velocity of cell phone 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180A. That is, the gyro sensor 180A can be used to detect the current motion state of the mobile phone 100, such as shaking or stillness.

加速度传感器180B可检测手机100在各个方向上(一般为三轴)加速度的大小。即陀螺仪传感器180A可以用于检测手机100当前的运动状态,比如抖动还是静止。The acceleration sensor 180B can detect the magnitude of the acceleration of the mobile phone 100 in various directions (generally three axes). That is, the gyro sensor 180A can be used to detect the current motion state of the mobile phone 100, such as shaking or stillness.

陀螺仪传感器180A(或加速度传感器180B)可以将检测到的运动状态信息(比如角速度)发送给处理器110。处理器110基于运动状态信息确定当前是手持状态还是脚架状态(比如,角速度不为0时,说明手机100处于手持状态)。The gyro sensor 180A (or the acceleration sensor 180B) may send the detected motion state information (such as angular velocity) to the processor 110 . The processor 110 determines, based on the motion state information, whether the current state is the hand-held state or the tripod state (for example, when the angular velocity is not 0, it means that the mobile phone 100 is in the hand-held state).

处理器110通过陀螺仪传感器180A和/或加速度传感器180B判断用户的行为,例如,判断用户是静止还是运动。The processor 110 determines the user's behavior through the gyro sensor 180A and/or the acceleration sensor 180B, for example, determines whether the user is still or moving.

指纹传感器180H用于采集指纹。手机100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The mobile phone 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.

触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给处理器110,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于手机100的表面,与显示屏194所处的位置不同。触摸传感器180K可以将检测到的用户手势传递给处理器110。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor may communicate the detected touch operation to the processor 110 to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the mobile phone 100 , which is different from the position where the display screen 194 is located. Touch sensor 180K may communicate detected user gestures to processor 110 .

示例性的,手机100的显示屏194显示主界面,主界面中包括多个应用的图标。Exemplarily, the display screen 194 of the mobile phone 100 displays a main interface, and the main interface includes icons of multiple applications.

手机100的无线通信功能可以通过天线1,天线2,移动通信模块151,无线通信模块152,调制解调处理器以及基带处理器等实现。The wireless communication function of the mobile phone 100 can be realized by the antenna 1, the antenna 2, the mobile communication module 151, the wireless communication module 152, the modulation and demodulation processor, the baseband processor, and the like.

天线1和天线2用于发射和接收电磁波信号。终端设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in terminal device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.

移动通信模块151可以提供应用在终端设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块151可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块151可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块151的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块151的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 151 may provide a wireless communication solution including 2G/3G/4G/5G, etc. applied on the terminal device 100 . The mobile communication module 151 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like. The mobile communication module 151 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 151 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 151 may be provided in the same device as at least part of the modules of the processor 110 .

调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.

无线通信模块152可以提供应用在终端设备100上的包括无线局域网(wirelesslocal area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块152可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块152经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块152还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 152 can provide applications on the terminal device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 152 may be one or more devices integrating at least one communication processing module. The wireless communication module 152 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 152 can also receive the signal to be sent from the processor 110 , perform frequency modulation on the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2 .

另外,手机100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如,当用户输入为语音时,手机100可以通过麦克风170C检测到用户输入。手机100可以接收按键190输入,产生与手机100的用户设置以及功能控制有关的键信号输入。例如,当用户输入为按键时,手机100可以通过按键190检测到用户输入。手机100可以利用马达191产生振动提示(比如来电振动提示)。手机100中的指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。手机100中的SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和手机100的接触和分离。In addition, the mobile phone 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. For example, when the user input is speech, the cell phone 100 may detect the user input through the microphone 170C. The mobile phone 100 can receive the key 190 input and generate the key signal input related to the user setting and function control of the mobile phone 100 . For example, when the user input is a key, the mobile phone 100 can detect the user input through the key 190 . The mobile phone 100 can use the motor 191 to generate vibration alerts (eg, vibration alerts for incoming calls). The indicator 192 in the mobile phone 100 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like. The SIM card interface 195 in the mobile phone 100 is used to connect the SIM card. The SIM card can be contacted and separated from the mobile phone 100 by being inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 .

应理解,在实际应用中,手机100可以包括比图1所示的更多或更少的部件,本申请实施例不作限定。It should be understood that, in practical applications, the mobile phone 100 may include more or less components than those shown in FIG. 1 , which are not limited in this embodiment of the present application.

需要说明的是,以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。应当理解,在本申请实施例中,“一个或多个”是指一个、两个或两个以上;“和/或”,描述关联对象的关联关系,表示可以存在三种关系;例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。另外,本文中字符“/”,如无特殊说明,一般表示前后关联对象是一种“或”的关系。且在本发明实施例的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。It should be noted that the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations of the present application. It should be understood that, in this embodiment of the present application, "one or more" refers to one, two or more than one; "and/or", which describes the association relationship of associated objects, indicates that there may be three relationships; for example, A And/or B, it can mean that A exists alone, A and B exist at the same time, and B exists alone, wherein A and B can be singular or plural. In addition, the character "/" in this text, unless otherwise specified, generally indicates that the related objects before and after are an "or" relationship. In the description of the embodiments of the present invention, words such as "first" and "second" are only used for the purpose of distinguishing and describing, and should not be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.

以下对本申请实施例所涉及的技术术语进行简要说明。The following briefly describes the technical terms involved in the embodiments of the present application.

1、扫频波形1. Sweep waveform

扫频波形是指一种连续波形,且该波形上频率不断变化,其中,扫频波形如图2所示,波形由疏至密表示频率逐渐增加。Sweep waveform refers to a continuous waveform, and the frequency on the waveform is constantly changing. Among them, the sweep waveform is shown in Figure 2, and the waveform from sparse to dense indicates that the frequency gradually increases.

2、频率响应2. Frequency response

频率响应是指将一个以恒电压输出的音频信号与系统相连接时,音箱产生的声压随频率的变化而发生增大或衰减、相位随频率而发生变化的现象,这种声压和相位与频率的相关联的变化关系称为频率响应。如图3所示为频响曲线的示意图,其中,频响曲线1为理想的频响曲线,频响曲线2和频响曲线3分别为两个音箱的真实频响曲线。在频响曲线1上,音量的大小不随音频信号的频率的变化而发生变化。在频响曲线2和频响曲线3上,音量的大小随音频信号的频率的变化而发生增大或衰减,即在音频信号的不同频率上音箱的输出音量不同,且频响曲线2和频响曲线3不相同,即不同音箱的频响曲线也一般不同。例如,以频响曲线3为例,以3KH左右为拐点,在3KH左右以下的频率范围内,音箱的音量低于频响曲线1对应音量,在3KH左右以上的频率范围内,音箱的音量高于频响曲线1对应音量,音箱的音量随音频信号的频率的变化而发生改变。Frequency response refers to the phenomenon that when an audio signal output at a constant voltage is connected to the system, the sound pressure generated by the speaker increases or decreases with the frequency, and the phase changes with the frequency. The associated change in frequency is called the frequency response. Figure 3 is a schematic diagram of the frequency response curve, wherein the frequency response curve 1 is an ideal frequency response curve, and the frequency response curve 2 and the frequency response curve 3 are respectively the real frequency response curves of the two speakers. On the frequency response curve 1, the volume does not change with the frequency of the audio signal. On the frequency response curve 2 and frequency response curve 3, the volume increases or decreases with the frequency of the audio signal, that is, the output volume of the speaker is different at different frequencies of the audio signal, and the frequency response curve 2 and the frequency The sound curves 3 are not the same, that is, the frequency response curves of different speakers are generally different. For example, taking frequency response curve 3 as an example, taking about 3KH as the inflection point, in the frequency range below 3KH, the volume of the speaker is lower than the corresponding volume of frequency response curve 1, and in the frequency range above 3KH, the volume of the speaker is high Corresponding to the volume of the frequency response curve 1, the volume of the speaker changes with the frequency of the audio signal.

3、麦克风指向性3. Microphone directivity

麦克风指向性是指麦克风对来自空间各个方向声音灵敏度的一种描述,是麦克风的一个重要属性。简单来说,由于发声源与麦克风之间的相对位置不同,即使发声源与麦克风距离一直不变,麦克风采集到发声源的音量是不一样的。以一般手机为例,手机平放到桌面上采集到的音箱播放音频的音频数据的音量,与手机垂直于地面放置采集到的音箱播放音频的音频数据的音量不同。Microphone directivity refers to a description of the sensitivity of a microphone to sound from all directions in space, and is an important attribute of a microphone. Simply put, due to the different relative positions between the sound source and the microphone, even if the distance between the sound source and the microphone remains unchanged, the volume of the sound source collected by the microphone is different. Taking a general mobile phone as an example, the volume of the audio data collected by the speaker placed on the desktop is different from the volume of the audio data collected by the speaker placed perpendicular to the ground.

示例性地,如图4所示,假设手机水平放置在桌面上,麦克风位于手机的底部,手机配置音箱播放某音频,且音量保持不变。在手机的位置保持固定不变时,同时保持音箱与手机之间的距离固定不变,让音箱绕着手机转一圈,图4为手机录制到的音箱播放该音频的音量大小的变化曲线。其中,两个坐标轴的单位是声强(dB)。由该曲线可知,音箱相对于手机的方位不同,手机录制得到的音频的音量大小不同。当音箱位于手机的底部(正南方向)时,音量最大,即当音箱位于麦克风指向的方向时,手机录制得到的音频的音量最大,当音箱位于手机顶部(即正北方向)时,音量较小,即当音箱位于麦克风指向的反方向时,手机录制得到的音频的音量较小。当音箱位于手机的正西方向与音箱位于手机的正东方向时,音箱的大小也不相同。因此,当空间存在多个音箱时,如果手机水平放置在桌面上,则由于多个音箱可能位于麦克风的不同指向上,进而导致手机采集到的上述多个音箱的音频数据的音量不能反映这些音箱的真实输出音量,影响音量校准的准确性。因此,需要保持手机垂直于地面放置,这样对于上述多个音箱中的每个音箱来说,麦克风的指向都是相同的,即垂直于地面向下,因而能够避免由于麦克风指向性给音量校准引入的误差。Exemplarily, as shown in FIG. 4 , it is assumed that the mobile phone is placed horizontally on the desktop, the microphone is located at the bottom of the mobile phone, the mobile phone is configured with a speaker to play a certain audio, and the volume remains unchanged. When the position of the mobile phone remains fixed, and the distance between the speaker and the mobile phone is kept constant, let the speaker rotate around the mobile phone. Figure 4 shows the change curve of the volume of the audio recorded by the mobile phone. Among them, the unit of the two coordinate axes is sound intensity (dB). It can be seen from this curve that the sound volume of the audio recorded by the mobile phone is different due to the different orientation of the speaker relative to the mobile phone. When the speaker is at the bottom of the phone (in the south direction), the volume is the largest, that is, when the speaker is in the direction of the microphone, the volume of the audio recorded by the phone is the largest, and when the speaker is at the top of the phone (in the north direction), the volume is higher Small, that is, when the speaker is located in the opposite direction of the microphone, the volume of the audio recorded by the mobile phone is small. When the speaker is located in the due west of the phone and the speaker is in the due east of the phone, the size of the speaker is also different. Therefore, when there are multiple speakers in the space, if the mobile phone is placed horizontally on the desktop, since the multiple speakers may be located in different directions of the microphone, the volume of the audio data collected by the mobile phone from the above-mentioned multiple speakers cannot reflect these speakers. The actual output volume will affect the accuracy of volume calibration. Therefore, it is necessary to keep the mobile phone perpendicular to the ground, so that for each speaker in the above-mentioned multiple speakers, the direction of the microphone is the same, that is, it is perpendicular to the ground downward, so that the introduction of the microphone directivity into the volume calibration can be avoided. error.

4、音量4. Volume

需要说明的是,本申请实施例共涉及三种类型的音量。It should be noted that, the embodiments of the present application involve three types of volume.

第一种音量为终端设备为音箱配置的音量(又可称为输入音量)。具体的,输入音量是指终端设备将音频投射到音箱进行播放时,终端设备为音箱配置的音箱播放该音频采用的音量。示例性地,终端设备向音箱发送配置信息,该配置信息以数字编码的方式指示输入音量,例如,音量为50%或65%等。The first volume is the volume configured by the terminal device for the speaker (also called the input volume). Specifically, the input volume refers to the volume used by the terminal device to play the audio through the speaker configured for the speaker when the terminal device projects the audio to the speaker for playback. Exemplarily, the terminal device sends configuration information to the speaker, where the configuration information indicates the input volume in a digitally encoded manner, for example, the volume is 50% or 65%.

第二种类型的音量为当音箱播放音频时在预设距离和预设方向上采集到的该音频对应的音频数据的音量(又称为输出音量)。可以理解的是,在音箱出厂校验音量时,首先为音箱配置输入音量,并在预设距离和预设方向上采集该音箱播放音频时该音频对应的音频数据,进而确定该音频数据的音量(即输出音量),若该输出音量与该输入音量的差值在预设范围内,则表明该音箱音量校验合格。The second type of volume is the volume (also referred to as output volume) of audio data corresponding to the audio collected at a preset distance and a preset direction when the speaker plays audio. It can be understood that when the speaker is factory-calibrated, the input volume is first configured for the speaker, and the audio data corresponding to the audio when the speaker plays audio is collected at the preset distance and preset direction, and then the volume of the audio data is determined. (ie output volume), if the difference between the output volume and the input volume is within the preset range, it means that the speaker volume verification is qualified.

可以理解是,即使为两个音箱配置相同的输入音量,由于两个音箱的性能一般不会完全相同,因此,两个音箱的输出音量一般也不相同。It can be understood that even if the same input volume is configured for two speakers, the performance of the two speakers is generally not the same, so the output volumes of the two speakers are generally different.

第三种类型的音量为当音箱播放音频时在用户所在位置上或者在终端设备所在位置上采集到该音频所对应的音频数据的音量(又可称为相对音量或者待校准音量)。其中,在本申请实施例中,用户所在位置与终端设备所在位置的含义相同。本申请实施例主要针对两个或两个以上音箱的待校准音量进行校准,用以实现减少在终端设备所在位置上两个或两个以上音箱的音量的差异,保证较好的声音还原效果,为用户提供更好的声音体验。The third type of volume is the volume of the audio data corresponding to the audio collected at the location of the user or at the location of the terminal device when the speaker plays audio (also referred to as relative volume or volume to be calibrated). Wherein, in this embodiment of the present application, the user's location has the same meaning as the terminal device's location. The embodiment of the present application mainly calibrates the to-be-calibrated volumes of two or more speakers, so as to reduce the difference in volume between the two or more speakers at the location of the terminal device and ensure a better sound restoration effect. Provide users with a better sound experience.

5、声场和声场偏移5. Sound field and sound field offset

声场是指媒质中有声波存在的区域,声场是随着时间变化的,具体的,在声场中的各种声音,其音量、传播方向等随着时间发生变化。如果用户感受到的声音未能较好还原声音在录制时的声场环境,则出现声场偏移现象。比如,为了还原正前方的人声,可以配置与用户左右两侧两个等距的音箱具有相同的音量,进而实现还原正前方的人声。但是,此时如果在用户左侧的音箱的音量较大,或者在用户左侧的音箱距离用户较近,用户就会感觉人声来自于左前方。这种现象就是声场偏移。The sound field refers to the area where sound waves exist in the medium. The sound field changes with time. Specifically, the volume and propagation direction of various sounds in the sound field change with time. If the sound experienced by the user fails to restore the sound field environment of the sound during recording, the sound field offset phenomenon occurs. For example, in order to restore the vocals in front of you, you can configure two speakers that are equidistant from the left and right sides of the user to have the same volume, so as to restore the vocals in front of you. However, at this time, if the volume of the speaker on the left side of the user is high, or the speaker on the left side of the user is closer to the user, the user will feel that the human voice comes from the front left. This phenomenon is the sound field shift.

6、手机与音箱的相对位置6. The relative position of the mobile phone and the speaker

如图5所示为手机中的麦克风分布示意图。其中,在图5中,标记1对应的麦克风为主麦克风,标记2对应的麦克风为副麦克风,标记3对应的麦克风为降噪麦克风。以下仅以手机包括3个麦克风为例,对确定手机与音箱的相对位置的具体方案进行说明。可以理解的是,此处列举的确定手机与音箱的相对位置的方案仅为举例,不作为本申请实施例的限定。Figure 5 is a schematic diagram of the distribution of microphones in a mobile phone. Wherein, in FIG. 5 , the microphone corresponding to the mark 1 is the main microphone, the microphone corresponding to the mark 2 is the secondary microphone, and the microphone corresponding to the mark 3 is the noise reduction microphone. The following only takes the mobile phone including three microphones as an example to describe the specific solution for determining the relative positions of the mobile phone and the speaker. It can be understood that the solutions for determining the relative positions of the mobile phone and the sound box listed here are only examples, and are not limited to the embodiments of the present application.

手机可以通过全球定位系统(global positioning system,GPS)、北斗卫星导航系统、WiFi的标识或蜂窝基站的标识等确定手机的位置信息,即确定手机的经纬度。进一步地,手机还包括运动传感器,例如陀螺仪传感器180A、加速度传感器180B、罗盘等。其中,加速度传感器180B可以识别出恒定大小为g的加速度方向为地心方向。因此,手机可以通过加速度记确定地心方向,此外,还可结合通过陀螺仪、罗盘等其他传感器获得在手机所在位置上的磁场方向信息,确定手机当前相对于地平面的空间姿态。The mobile phone can determine the location information of the mobile phone, that is, determine the longitude and latitude of the mobile phone, through a global positioning system (GPS), a Beidou satellite navigation system, a WiFi identifier, or an identifier of a cellular base station. Further, the mobile phone also includes motion sensors, such as a gyro sensor 180A, an acceleration sensor 180B, a compass, and the like. Among them, the acceleration sensor 180B can identify that the acceleration direction with a constant magnitude of g is the geocentric direction. Therefore, the mobile phone can determine the direction of the center of the earth through the accelerometer. In addition, it can also be combined with other sensors such as gyroscope and compass to obtain the magnetic field direction information at the location of the mobile phone to determine the current spatial attitude of the mobile phone relative to the ground plane.

假设音箱播放一个定位音频,则手机中的3个麦克风接收到该定位音频对应的音频数据的时间不同,具体的,每两个麦克风接收到该定位音频对应的音频数据的时间差是由于音箱与这两个麦克风之间的距离不同造成的,其中,距离每相差1毫米,对应的时间差大约为3微秒。声音在空气中的传播速度恒定,大小为340m/s,且各个在各个方向上声音的传播速度相同。进一步地,以上述3个麦克风为球心可以绘制3个球面,3个球面的半径的大小是根据每两个麦克风对应的时间差确定的,例如,标记1对应的麦克风与标记2对应的麦克风对应的时间差为15微秒,则以标记1对应的麦克风为球心的球面的半径与以标记2对应的麦克风为球心的球面的半径相差5毫米。进一步地,按照相同幅度增大3个球面的半径,直到3个球面在空间相交于一个点,则该点的位置即为音箱所在位置。进一步地,结合手机的空间姿态可以确定手机与音箱的相对位置信息。示例性地,手机相对于音箱的位置信息包括音箱与手机之间的距离,以及音箱相对于手机的方位。Assuming that the speaker plays a positioning audio, the three microphones in the mobile phone receive the audio data corresponding to the positioning audio at different times. Specifically, the time difference between the two microphones receiving the audio data corresponding to the positioning audio is due to The distance between the two microphones is different. For every 1 mm difference in the distance, the corresponding time difference is about 3 microseconds. The propagation speed of sound in air is constant, the magnitude is 340m/s, and the propagation speed of sound is the same in all directions. Further, three spherical surfaces can be drawn with the above-mentioned three microphones as the center of the sphere, and the radii of the three spherical surfaces are determined according to the time difference corresponding to each two microphones. For example, the microphone corresponding to mark 1 corresponds to the microphone corresponding to mark 2. If the time difference is 15 microseconds, the radius of the sphere with the microphone corresponding to mark 1 as the center is 5 mm from the radius of the sphere with the microphone corresponding to mark 2 as the center. Further, the radii of the three spherical surfaces are increased by the same magnitude until the three spherical surfaces intersect at a point in space, and the position of the point is the position of the speaker. Further, the relative position information of the mobile phone and the speaker can be determined in combination with the spatial attitude of the mobile phone. Exemplarily, the position information of the mobile phone relative to the speaker includes the distance between the speaker and the mobile phone, and the orientation of the speaker relative to the mobile phone.

具体的,以手机的中心为原点,地心方向为Z轴的方向,与地心方向垂直的平面(即水平面)确定X轴方向和Y轴方向,建立一个三维坐标系。在该三维坐标系中,可以标识出3个麦克风的具体坐标,并可以根据上述内容确定3个球面的交点的坐标,即音箱的坐标,进而可以得到音箱与手机中心之间的距离,以及音箱与Z轴方向的夹角,音箱与水平面的夹角,音箱与手机所在平面的夹角等。Specifically, the center of the mobile phone is taken as the origin, the direction of the center of the earth is the direction of the Z-axis, and the plane perpendicular to the direction of the center of the earth (ie, the horizontal plane) determines the direction of the X-axis and the Y-axis, and establishes a three-dimensional coordinate system. In this three-dimensional coordinate system, the specific coordinates of the three microphones can be identified, and the coordinates of the intersection of the three spherical surfaces can be determined according to the above content, that is, the coordinates of the speaker, and then the distance between the speaker and the center of the mobile phone can be obtained, and the speaker The angle with the Z-axis direction, the angle between the speaker and the horizontal plane, the angle between the speaker and the plane where the phone is located, etc.

本申请实施例可以应用于由至少两个音箱组成立体声音箱的场景。The embodiments of the present application can be applied to a scenario in which a stereo speaker is composed of at least two speakers.

场景1:两个音箱可以组合成包括左声道和右声道的立体声音箱。Scenario 1: Two speakers can be combined into a stereo speaker including left and right channels.

示例性地,由于这两个音箱可能是不同品牌或者不同型号的音箱,所以即使相同的数字音频输入,可能输出音量也是有差异的。或者即使两个音箱是相同品牌相同型号的音箱,也可能因为音箱的个体的差异造成其输出音量存在偏差。或者由于用户与两个音箱之间的距离不同,因此,在用户所在位置将会感受到两个音箱的音量的差异。或者由于两个音箱周围的环境不同,也可能导致在用户所在位置感受到两个音箱的音量的差异。例如,其中一个音箱距离窗帘较近,而另外一个音箱周围比较空旷。Exemplarily, since the two speakers may be speakers of different brands or models, even with the same digital audio input, the output volume may be different. Or even if the two speakers are of the same brand and model, there may be deviations in the output volume due to individual differences in the speakers. Or because the distance between the user and the two speakers is different, the difference in the volume of the two speakers will be felt at the user's location. Or due to the different environments around the two speakers, the difference in volume between the two speakers may also be felt at the user's location. For example, one of the speakers is closer to the curtain, while the other speaker is relatively open.

进一步地,上述这些场景中两个音箱的音量的差异会让人感受到声场的偏移,进而影响声音效果的还原。可以理解的是,上述这些场景仅为举例,不作为本申请实施例的限定。Further, the difference in the volume of the two speakers in the above scenarios will make people feel the offset of the sound field, thereby affecting the restoration of the sound effect. It can be understood that the above scenarios are only examples, and are not limited to the embodiments of the present application.

如图6所示,在客厅内,假设用户手持手机坐在沙发上,手机,第一音箱和第二音箱连接到同一无线网络。第一音箱和第二音箱组合成包括左声道和右声道的立体声音箱。可以理解的是,手机可以确定手机相对与第一音箱的位置信息,例如,手机相对与第一音箱的位置包括第一音箱与手机之间的距离(即第一距离),以及第一音箱相对于手机的方位。同理,手机可以确定手机相对与第二音箱的位置信息,例如,手机相对与第二音箱的位置包括第二音箱与手机之间的距离(即第二距离),以及第二音箱相对于手机的方位。进一步地,根据手机相对与第一音箱的位置信息和手机相对与第一音箱的位置信息,即手机、第一音箱和第二音箱三者之间位置关系,定义第一参考点。As shown in FIG. 6 , in the living room, it is assumed that the user is sitting on the sofa holding the mobile phone, and the mobile phone, the first speaker and the second speaker are connected to the same wireless network. The first sound box and the second sound box are combined into a stereo sound box including a left channel and a right channel. It can be understood that the mobile phone can determine the position information of the mobile phone relative to the first speaker. For example, the position of the mobile phone relative to the first speaker includes the distance between the first speaker and the mobile phone (ie, the first distance), and the relative position of the first speaker. the location of the phone. Similarly, the mobile phone can determine the position information of the mobile phone relative to the second speaker. For example, the position of the mobile phone relative to the second speaker includes the distance between the second speaker and the mobile phone (ie, the second distance), and the second speaker relative to the mobile phone. orientation. Further, the first reference point is defined according to the position information of the mobile phone relative to the first sound box and the position information of the mobile phone relative to the first sound box, that is, the positional relationship between the mobile phone, the first sound box and the second sound box.

假设仅考虑手机、第一音箱和第二音箱三者之间位置关系,不考虑其他因素对声场造成的影响,若第一距离与第二距离之间相差较小时,例如,若第一距离与第二距离近似相等,则在第一参考点上基本不会出现声场偏移的现象,用户能够获得较好的声音还原效果。若第一距离与第二距离之间相差较大,例如,第一距离远大于第二距离,则在第一参考点上声场偏移的现象比较明显。且第一距离与第二距离之间相差越大,声场偏移现象越明显。Assuming that only the positional relationship between the mobile phone, the first speaker and the second speaker is considered, and the influence of other factors on the sound field is not considered, if the difference between the first distance and the second distance is small, for example, if the first distance is The second distances are approximately equal, so the phenomenon of sound field deviation basically does not occur at the first reference point, and the user can obtain a better sound restoration effect. If the difference between the first distance and the second distance is relatively large, for example, the first distance is much larger than the second distance, the phenomenon of sound field offset at the first reference point is relatively obvious. And the greater the difference between the first distance and the second distance, the more obvious the sound field offset phenomenon.

场景2:两个以上音箱可以组成包括多个声道的环绕立体声音箱。Scenario 2: Two or more speakers can form a surround sound speaker with multiple channels.

示例性地,N个音箱组成包括多个声道的环绕立体声音箱。N为大于2的正整数。由于上述N个音箱可能是不同品牌或者不同型号的音箱,所以即使相同的数字音频输入,可能这N个音箱的输出音量也是有差异的。或者即使这N个音箱是相同品牌相同型号的音箱,也可能因为音箱的个体的差异造成这N个音箱的输出音量存在偏差。或者由于用户与N个音箱之间的距离不同,因此,在用户所在位置将会感受到N个音箱的音量的差异。或者由于N个音箱周围的环境不同,也可能导致在用户所在位置感受到N个音箱的音量的差异。Exemplarily, the N speakers form a surround sound speaker including multiple channels. N is a positive integer greater than 2. Since the above N speakers may be speakers of different brands or models, even with the same digital audio input, the output volumes of the N speakers may be different. Or even if the N speakers are speakers of the same brand and model, there may be deviations in the output volume of the N speakers due to individual differences in the speakers. Or because the distances between the user and the N speakers are different, the difference in volume of the N speakers will be felt at the location of the user. Or because the environments around the N speakers are different, it may also lead to the difference in the volume of the N speakers being felt at the user's location.

进一步地,上述这些场景中N个音箱的音量的差异会让人感受到声场的偏移,进而影响声音效果的还原。可以理解的是,上述这些场景仅为举例,不作为本申请实施例的限定。Further, the difference in the volume of the N speakers in the above scenarios will make people feel the offset of the sound field, thereby affecting the restoration of the sound effect. It can be understood that the above scenarios are only examples, and are not limited to the embodiments of the present application.

如图7所示,示例性地,在客厅内,假设用户手持手机坐在沙发上,5个音箱(包括音箱A、音箱B、音箱C、音箱D和音箱E)组成的多声道的环绕立体声音箱。手机可以确定手机相对与音箱A的位置信息,手机相对与音箱B的位置信息、手机相对与音箱C的位置信息手机相对与音箱D的位置信息、手机相对与音箱E的位置信息。其中,手机相对与音箱A的位置包括音箱A与手机之间的距离(即第一距离),以及音箱A相对于手机的方位。手机相对与音箱B的位置包括音箱B与手机之间的距离(即第二距离),以及音箱B相对于手机的方位。手机相对与音箱C的位置包括音箱C与手机之间的距离(即第三距离),以及音箱C相对于手机的方位。手机相对与音箱D的位置包括音箱D与手机之间的距离(即第四距离),以及音箱D相对于手机的方位。手机相对与音箱E的位置包括音箱E与手机之间的距离(即第五距离),以及音箱E相对于手机的方位。进一步地,根据手机相对与音箱A的位置信息,手机相对与音箱B的位置信息、手机相对与音箱C的位置信息、手机相对与音箱D的位置信息、手机相对与音箱E的位置信息,即手机、这5个音箱三者之间位置关系,定义第一参考点,即第一参考点用于指示手机相对与音箱A的位置,手机相对与音箱B的位置、手机相对与音箱C的位置、手机相对与音箱D的位置、手机相对与音箱E的位置。As shown in FIG. 7 , exemplarily, in the living room, assuming that the user is sitting on the sofa holding a mobile phone, a multi-channel surround composed of 5 speakers (including speaker A, speaker B, speaker C, speaker D and speaker E) Stereo speakers. The mobile phone can determine the position information of the mobile phone relative to the speaker A, the position information of the mobile phone relative to the speaker B, the position information of the mobile phone relative to the speaker C, the position information of the mobile phone relative to the speaker D, and the position information of the mobile phone relative to the speaker E. The position of the mobile phone relative to the speaker A includes the distance between the speaker A and the mobile phone (ie, the first distance), and the orientation of the speaker A relative to the mobile phone. The position of the mobile phone relative to the speaker B includes the distance between the speaker B and the mobile phone (ie, the second distance), and the orientation of the speaker B relative to the mobile phone. The position of the mobile phone relative to the speaker C includes the distance between the speaker C and the mobile phone (ie, the third distance), and the orientation of the speaker C relative to the mobile phone. The position of the mobile phone relative to the speaker D includes the distance between the speaker D and the mobile phone (ie, the fourth distance), and the orientation of the speaker D relative to the mobile phone. The position of the mobile phone relative to the speaker E includes the distance between the speaker E and the mobile phone (ie, the fifth distance), and the orientation of the speaker E relative to the mobile phone. Further, according to the position information of the mobile phone relative to the speaker A, the position information of the mobile phone relative to the speaker B, the position information of the mobile phone relative to the speaker C, the position information of the mobile phone relative to the speaker D, the position information of the mobile phone relative to the speaker E, that is, The positional relationship between the mobile phone and the five speakers defines the first reference point, that is, the first reference point is used to indicate the position of the mobile phone relative to the speaker A, the position of the mobile phone relative to the speaker B, and the position of the mobile phone relative to the speaker C , the position of the mobile phone relative to the speaker D, the position of the mobile phone relative to the speaker E.

当第一距离、第二距离、第三距离、第四距离和第五距离相差较小时,则在第一参考点上声场偏移的现象比较不明显,用户能够获得较好的声音还原效果。若当第一距离、第二距离、第三距离、第四距离和第五距离中的任意至少两个距离相差较小时,则在第一参考点上声场偏移的现象比较明显。When the difference between the first distance, the second distance, the third distance, the fourth distance and the fifth distance is small, the phenomenon of sound field offset at the first reference point is less obvious, and the user can obtain a better sound restoration effect. If the difference between any at least two distances among the first distance, the second distance, the third distance, the fourth distance and the fifth distance is relatively small, the phenomenon of sound field shift at the first reference point is relatively obvious.

场景3:两个或两个以上音箱可以组成单声道的多音箱组合。Scenario 3: Two or more speakers can form a mono multi-speaker combination.

示例性地,与场景2类似,场景3与场景2的区别在于,在场景2中,每个音箱播放一个声道的声音,多个声道的声音组合成环绕立体声效果。Exemplarily, similar to scene 2, the difference between scene 3 and scene 2 is that, in scene 2, each speaker plays the sound of one channel, and the sounds of multiple channels are combined into a surround sound effect.

可以理解的是,以上场景1~3仅为举例不作为本申请的限定。It can be understood that the above scenarios 1 to 3 are only examples and are not limited to the present application.

需要说明的是,本申请实施例可以适用于蓝牙音箱和WiFi音箱。It should be noted that the embodiments of the present application may be applicable to Bluetooth speakers and WiFi speakers.

以下对两个音箱的音量进行校准进行说明。假设终端设备为手机,两个音箱分别为第一音箱和第二音箱。第一音箱和第二音箱可以分别用于播放左声道的声音和右声道的声音,或者第一音箱和第二音箱均用于播放一个单声道的声音。其中,第一音箱和第二音箱分别播放左声道和右声道的声音,还是播放一个单声道的声音,一般取决于音频源。可以理解的是,手机与第一音箱和第二音箱分别建立连接,且第一音箱的输入音量与第二音箱的输入音量相同。The following describes how to calibrate the volume of the two speakers. Assuming that the terminal device is a mobile phone, the two speakers are the first speaker and the second speaker respectively. The first sound box and the second sound box may be used to play the sound of the left channel and the sound of the right channel, respectively, or both the first sound box and the second sound box may be used to play a monophonic sound. Among them, whether the first speaker and the second speaker play the sound of the left channel and the right channel respectively, or play a single channel sound, generally depends on the audio source. It can be understood that the mobile phone is connected to the first speaker and the second speaker respectively, and the input volume of the first speaker is the same as the input volume of the second speaker.

假设手机所在位置为第一参考点,手机可以通过控制两个音箱分别播放第一音频和第二音频,并在第一参考点上采集第一音箱播放第一音频所对应的音频数据(以下简称第一音频数据)和第二音箱播放第二音频所对应的音频数据(以下简称第二音频数据)。进一步地,手机可以根据第一音频数据确定第一待校准音量,根据第二音频数据确定第二待校准音量。最终,手机可以根据第一待校准音量和第二待校准音量确定音量调整方案,该音量调整方案用于减轻在第一参考点上声场偏移的现象。如图9所示为对本申请实施例的详细说明。Assuming that the location of the mobile phone is the first reference point, the mobile phone can control the two speakers to play the first audio and the second audio respectively, and collect the audio data corresponding to the first audio played by the first speaker on the first reference point (hereinafter referred to as the first audio data) and audio data corresponding to the second audio played by the second speaker (hereinafter referred to as the second audio data). Further, the mobile phone may determine the first volume to be calibrated according to the first audio data, and determine the second volume to be calibrated according to the second audio data. Finally, the mobile phone can determine a volume adjustment scheme according to the first to-be-calibrated volume and the second to-be-calibrated volume, where the volume adjustment scheme is used to reduce the phenomenon of sound field offset at the first reference point. FIG. 9 is a detailed description of the embodiment of the present application.

其中,本申请实施例所涉及的第一音频和第二音频均为本申请专门设计的校准音频,第一音频和第二音频可以不需要区分左声道和右声道。Wherein, the first audio and the second audio involved in the embodiments of the present application are calibration audio specially designed by the present application, and the first audio and the second audio may not need to distinguish the left channel and the right channel.

其中,第一音频的长度和第二音频的长度可以相同或不同,以第一音频为例,第一音频的长度可以为3-5S。一般地,第一音频和第二音频均具备扫频波形,示例性地,第一音频的频率范围和第二音频的频率范围均可以为40Hz至20KHz。其中,扫频波形如图2所示,波形由疏至密表示频率逐渐增加。The length of the first audio and the length of the second audio may be the same or different. Taking the first audio as an example, the length of the first audio may be 3-5S. Generally, both the first audio frequency and the second audio frequency have swept frequency waveforms. Exemplarily, the frequency range of the first audio frequency and the frequency range of the second audio frequency can both be 40 Hz to 20 KHz. Among them, the sweep waveform is shown in Figure 2, and the waveform from sparse to dense indicates that the frequency gradually increases.

其中,第一音频和第二音频可以相同或不同。其中,当第一音频和第二音频不同时,第一音频与第二音频的区别可以体现在预设部分声波的频率不同和/或波形不同。例如,第一音频的预设部分声波的频率与第二音频的预设部分声波的频率不同。或者,第一音频的预设部分声波的波形与第二音频的预设部分声波的波形不同。或者,第一音频的预设部分声波的波形与第二音频的预设部分声波的波形不同,且第一音频的预设部分声波的频率与第二音频的预设部分声波的频率不同。其中,这里的预设部分声波可以指预设时间段的声波,例如,第一音频中的第2秒至第3秒和第二音频中的第2秒至第3秒。Wherein, the first audio and the second audio may be the same or different. Wherein, when the first audio frequency and the second audio frequency are different, the difference between the first audio frequency and the second audio frequency may be reflected in the different frequencies and/or different waveforms of the sound waves in the preset part. For example, the frequency of the sound wave of the preset part of the first audio frequency is different from the frequency of the sound wave of the preset part of the second audio frequency. Or, the waveform of the sound wave of the preset part of the first audio is different from the waveform of the preset part of the second audio. Alternatively, the waveform of the preset part of the first audio is different from that of the preset part of the second audio, and the frequency of the preset part of the first audio is different from the frequency of the preset part of the second audio. Wherein, the preset part of the sound waves here may refer to sound waves of a preset time period, for example, the second to third seconds in the first audio frequency and the second to third seconds in the second audio frequency.

示例性地,如图8所示,以第一音频为例,第一音频的波形可以分为四个部分,分别为启动检测波形,标识波形,音量校准波形,和结束检测波形。其中,启动检测波形用于指示第一音箱在检测到该部分后,准备开始进行音频播放。标识波形用于标识以下播放音频为第一音箱播放的音频。音量校准波形为扫频波形,用于进行第一音箱的音量校准。结束检测波形指示第一音箱在检测到该部分后,音频播放结束,不需要继续检测。由图8可知,第一音频的波形中包括的标识波形与第二音频的波形中包括的标识波形不同,手机可以据此识别出第一音频数据和第二音频数据。可以理解的是,如图8所示的波形仅为举例不作为本申请实施例的限定,此外,若在第一音箱播放完成第一音频后,第二音箱播放第二音频,此时,第一音频的波形可以和第二音频的波形还可以相同,且第一音频的波形可以不包括的标识波形部分。Exemplarily, as shown in FIG. 8 , taking the first audio frequency as an example, the waveform of the first audio frequency can be divided into four parts, namely the start detection waveform, the identification waveform, the volume calibration waveform, and the end detection waveform. The startup detection waveform is used to indicate that the first speaker is ready to start audio playback after detecting the part. The identification waveform is used to identify the following playing audio as the audio played by the first speaker. The volume calibration waveform is a frequency sweep waveform, which is used for volume calibration of the first speaker. The end detection waveform indicates that after the first speaker detects this part, the audio playback ends, and there is no need to continue the detection. It can be seen from FIG. 8 that the identification waveform included in the waveform of the first audio is different from the identification waveform included in the waveform of the second audio, and the mobile phone can identify the first audio data and the second audio data accordingly. It can be understood that the waveform shown in FIG. 8 is only an example and not a limitation of the embodiments of the present application. In addition, if the second sound box plays the second sound after the first sound box plays the first audio frequency, at this time, the first sound box plays the second sound. The waveform of the first audio frequency may be the same as the waveform of the second audio frequency, and the waveform of the first audio frequency may not include the portion of the identification waveform.

此外,本申请实施例可以应用于以下情况:In addition, the embodiments of the present application can be applied to the following situations:

情况(1):手机将用户准备收听的音频投射到两个音箱进行播放之前,用户发起音量校准。Situation (1): Before the mobile phone projects the audio that the user is about to listen to to the two speakers for playback, the user initiates volume calibration.

情况(2):在用户收听音频的过程中,若用户感觉到声场偏移,用户发起音量校准。Case (2): During the user listening to the audio, if the user feels the sound field shift, the user initiates volume calibration.

需要说明的是,针对情况(2),在一些实施例中,用户可以暂停当前音频播放,然后发起音量校准,此时与上述情况(1)类似。It should be noted that, for case (2), in some embodiments, the user can pause the current audio playback and then initiate volume calibration, which is similar to case (1) above.

在一些实施例中,用户可以不需要暂停当前音频播放。此时,需要说明的是,以第一音频为例,手机可以将第一音频和原音频(即当前音频)一同编码并播放,或者第一音频可以独立编码。此外,为了不影响用户当前收听音频的体验,第一音频的频率范围可以主要涉及高频范围,这样,用户无法听到第一音频,进而对当前音频收听不产生影响。In some embodiments, the user may not need to pause the current audio playback. At this time, it should be noted that, taking the first audio as an example, the mobile phone may encode and play the first audio and the original audio (ie, the current audio) together, or the first audio may be encoded independently. In addition, in order not to affect the user's current audio listening experience, the frequency range of the first audio frequency may mainly involve a high frequency range, so that the user cannot hear the first audio frequency, thereby not affecting current audio listening.

下面结合本申请实施例应用在上述图1所示的手机架构中,介绍通过手机100校准音量的流程示意图。下文以该方法应用于图9所示的手机100中为例进行说明,下文中,术语“当…时”可以被解释为意思是“如果…”或“在…后”或“响应于确定…”或“响应于检测到…”。类似地,根据上下文,短语“在确定…时”或“如果检测到(所陈述的条件或事件)”可以被解释为意思是“如果确定…”或“响应于确定…”或“在检测到(所陈述的条件或事件)时”或“响应于检测到(所陈述的条件或事件)”。In the following, the embodiment of the present application is applied to the mobile phone architecture shown in FIG. 1, and a schematic flowchart of volume calibration by the mobile phone 100 is introduced. The following will take the method applied to the mobile phone 100 shown in FIG. 9 as an example for illustration. Hereinafter, the term "when" can be interpreted as meaning "if..." or "after..." or "in response to determining... " or "In response to detecting...". Similarly, depending on the context, the phrases "in determining..." or "if detecting (the stated condition or event)" can be interpreted to mean "if determining..." or "in response to determining..." or "on detecting (the stated condition or event)" or "in response to the detection of (the stated condition or event)".

S901:手机向第一音箱发送第一音频。S901: The mobile phone sends the first audio frequency to the first speaker.

S902:手机向第二音箱发送第二音频。S902: The mobile phone sends the second audio to the second speaker.

示例性地,若第一音箱为蓝牙音箱,手机需要将第一音频转换为蓝牙编码的音频流媒体,发送至第一音箱。若第一音箱为WiFi音箱,手机可以直接向第一音频发送至第一音箱,此时第一音箱可以自行解码第一音频并播放。Exemplarily, if the first speaker is a Bluetooth speaker, the mobile phone needs to convert the first audio into Bluetooth-encoded audio streaming media and send it to the first speaker. If the first speaker is a WiFi speaker, the mobile phone can directly send the first audio to the first speaker, and the first speaker can decode and play the first audio by itself.

可以理解的是,手机可以预存第一音频和第二音频,或者,手机可以实时生成第一音频和第二音频。It can be understood that the mobile phone may pre-store the first audio and the second audio, or the mobile phone may generate the first audio and the second audio in real time.

S903:第一音箱在接收到来自于手机的第一音频后,第一音箱播放第一音频。S903: After the first speaker receives the first audio from the mobile phone, the first speaker plays the first audio.

S904:第二音箱在接收到来自于手机的第二音频后,第二音箱播放第二音频。S904: After the second speaker receives the second audio from the mobile phone, the second speaker plays the second audio.

在一些实施例中,第一音箱和第二音箱可以先后播放第一音频和第二音频。例如,第二音箱可以在第一音箱播放完成第一音频后,第二音箱再开始播放第二音频。或者,第一音箱开始播放第一音频,且在第一音箱播放完成第一音频之前,第二音箱开始播放第二音频。In some embodiments, the first speaker and the second speaker may play the first audio and the second audio sequentially. For example, the second speaker may start playing the second audio after the first speaker finishes playing the first audio. Or, the first speaker starts to play the first audio, and before the first speaker finishes playing the first audio, the second speaker starts to play the second audio.

在一些实施例中,第一音箱和第二音箱可以同时播放。In some embodiments, the first speaker and the second speaker may play simultaneously.

S905:手机在第一参考点上采集第一音频数据和第二音频数据。其中,第一音频数据为第一音箱播放第一音频所对应的音频数据,第二音频数据为第二音箱播放第二音频所对应的音频数据。S905: The mobile phone collects the first audio data and the second audio data at the first reference point. Wherein, the first audio data is audio data corresponding to the first audio played by the first speaker, and the second audio data is audio data corresponding to the second audio played by the second speaker.

可以理解的是,手机可以在第一音箱播放第一音频以及第二音箱播放第二音频时通过麦克风进行录音,并对获得的录音文件进行分析得到第一音频数据和第二音频数据。或者,手机也可以在第一音箱播放第一音频以及第二音箱播放第二音频时通过麦克风进行数据采集,不需要保存录音文件。It can be understood that the mobile phone can record through the microphone when the first speaker plays the first audio and the second speaker plays the second audio, and analyze the obtained recording file to obtain the first audio data and the second audio data. Alternatively, the mobile phone can also collect data through the microphone when the first speaker plays the first audio and the second speaker plays the second audio, without saving the recording file.

在一些实施例中,第一音箱和第二音箱可以依次播放第一音频和第二音频,此时,第一音频和第二音频可以相同,也可以不相同。例如,第一音箱先播放第一音频,手机在第一参考点上采集第一音箱播放第一音频所对应的音频数据(即第一音频数据)。在第一音箱播放完成后,第二音箱播放第二音频,手机在第一参考点上采集第二音箱播放第二音频所对应的音频数据(即第二音频数据)。In some embodiments, the first sound box and the second sound box may play the first audio frequency and the second audio frequency in sequence, and in this case, the first audio frequency and the second audio frequency may be the same or different. For example, the first speaker plays the first audio first, and the mobile phone collects audio data (ie, the first audio data) corresponding to the first audio played by the first speaker at the first reference point. After the first speaker is completed, the second speaker plays the second audio, and the mobile phone collects audio data (ie, second audio data) corresponding to the second audio played by the second speaker at the first reference point.

可以理解的是,手机在采集第一音频数据和第二音频数据时,手机、第一音箱和第二音箱的位置关系不变,即第一参考点不发生改变。It can be understood that when the mobile phone collects the first audio data and the second audio data, the positional relationship between the mobile phone, the first sound box and the second sound box remains unchanged, that is, the first reference point does not change.

此外,手机在采集第一音频数据和第二音频数据时,还可能同时采集到环境背景所对应的音频数据(即环境背景音),由于手机已知第一音频的特征和第二音频的特征,因此,手机在采集第一音频数据和第二音频数据时,可以将环境背景所对应的音频数据剔除。这里第一音频的特征是指第一音频的频率及波形,第二音频的特征是指第二音频的频率及波形。In addition, when the mobile phone collects the first audio data and the second audio data, the audio data corresponding to the environmental background (ie, the environmental background sound) may also be collected at the same time, because the mobile phone knows the characteristics of the first audio and the characteristics of the second audio. , therefore, when the mobile phone collects the first audio data and the second audio data, the audio data corresponding to the environmental background can be eliminated. Here, the feature of the first audio refers to the frequency and waveform of the first audio, and the feature of the second audio refers to the frequency and waveform of the second audio.

在一些实施例中,第一音箱与第二音箱还可以同时播放,或者在第一音箱播放完成第一音频之前,第二音箱开始播放第二音频。此时,手机采集到的音频数据既包括第一音箱播放第一音频所对应的音频数据(即第一音频数据),也包括第二音箱播放第二音频所对应的音频数据(即第二音频数据)。且手机需要从采集到的音频数据中识别出第一音频数据和第二音频数据。此时,第一音频与第二音频不同。示例性地,第一音频与第二音频的区别可以体现在预设部分声波的频率不同和/或波形不同,详见上文的介绍,重复之处不再赘述。在一示例中,如图6所示,假设第一音频的预设部分声波的波形与第二音频的预设部分声波的波形不同。此时,手机可以根据第一音频的预设部分声波的波形与第二音频的预设部分声波的波形从采集到的音频数据中识别出第一音频数据和第二音频数据。In some embodiments, the first sound box and the second sound box may also play at the same time, or the second sound box starts to play the second audio frequency before the first sound box finishes playing the first audio frequency. At this time, the audio data collected by the mobile phone includes both the audio data corresponding to the first audio played by the first speaker (that is, the first audio data), and the audio data corresponding to the second audio played by the second speaker (that is, the second audio). data). And the mobile phone needs to identify the first audio data and the second audio data from the collected audio data. At this time, the first audio is different from the second audio. Exemplarily, the difference between the first audio frequency and the second audio frequency may be reflected in the different frequencies and/or different waveforms of the sound waves in the preset part. For details, please refer to the above introduction, and the repetition will not be repeated. In an example, as shown in FIG. 6 , it is assumed that the waveform of the preset part of the sound wave of the first audio is different from the waveform of the preset part of the sound wave of the second audio. At this time, the mobile phone can identify the first audio data and the second audio data from the collected audio data according to the waveform of the preset part of the sound wave of the first audio frequency and the waveform of the preset part of the sound wave of the second audio frequency.

S906:手机根据第一音频数据确定第一待校准音量,以及根据第二音频数据确定第二待校准音量。S906: The mobile phone determines the first volume to be calibrated according to the first audio data, and determines the second volume to be calibrated according to the second audio data.

示例性地,手机可以根据第一音频数据确定第一音频数据所对应的音量,并将其作为第一待校准音量。同理,手机可以根据第二音频数据确定第二音频数据所对应的音量,并将其作为第二待校准音量。其中,第一待校准音量指示在第一参考点上测量到的第一音箱播放第一音频的音量,第二待校准音量指示在第一参考点上测量到的第二音箱播放第二音频的音量。Exemplarily, the mobile phone may determine the volume corresponding to the first audio data according to the first audio data, and use it as the first volume to be calibrated. Similarly, the mobile phone can determine the volume corresponding to the second audio data according to the second audio data, and use it as the second volume to be calibrated. The first volume to be calibrated indicates the volume at which the first speaker measured at the first reference point plays the first audio, and the second volume to be calibrated indicates the volume at which the second speaker measured at the first reference point plays the second audio. volume.

以下对手机确定第一待校准音量和第二待校准音量的具体方式进行说明,可以理解的是,以下方式1~方式3仅为举例不作为本申请实施例的限定。其中,手机可以从第一音频数据中提取振幅特征,并根据振幅特征确定第一音频数据所对应的音量,以及可以从第一音频数据提取频率特征,并根据频率特征确定第一音频数据所对应的频率范围。手机可以从第二音频数据中提取振幅特征,并根据振幅特征确定第二音频数据所对应的音量,以及可以从第二音频数据提取频率特征,并根据频率特征确定第二音频数据所对应的频率范围。其中,第一音频的频率范围与第二音频的频率范围相同或近似相同,第一音频数据所对应的频率范围与第一音频的频率范围相同,第二音频数据所对应的频率范围与第二音频的频率范围相同,因此,第一音频数据所对应的频率范围与第二音频数据所对应的频率范围相同或近似相同。The specific manner in which the mobile phone determines the first volume to be calibrated and the second volume to be calibrated will be described below. It can be understood that the following manners 1 to 3 are only examples and are not limited to the embodiments of the present application. The mobile phone can extract the amplitude feature from the first audio data, and determine the volume corresponding to the first audio data according to the amplitude feature, and can extract the frequency feature from the first audio data, and determine the corresponding volume of the first audio data according to the frequency feature. frequency range. The mobile phone can extract the amplitude feature from the second audio data, and determine the volume corresponding to the second audio data according to the amplitude feature, and can extract the frequency feature from the second audio data, and determine the frequency corresponding to the second audio data according to the frequency feature scope. The frequency range of the first audio is the same or approximately the same as the frequency range of the second audio, the frequency range corresponding to the first audio data is the same as the frequency range of the first audio, and the frequency range corresponding to the second audio data is the same as the frequency range of the second audio data. The frequency ranges of the audio are the same, so the frequency range corresponding to the first audio data is the same or approximately the same as the frequency range corresponding to the second audio data.

方式1:手机确定一个第一待校准音量和一个第二待校准音量,该第一待校准音量为第一音频数据所对应的频率范围所对应的音量,该第二待校准音量为第二音频数据所对应的频率范围所对应的音量。需要说明的是,这里第一音频数据所对应的频率范围为第一音频数据所对应的完整频率范围,这里第二音频数据所对应的频率范围为第二音频数据所对应的完整频率范围。Method 1: The mobile phone determines a first volume to be calibrated and a second volume to be calibrated, the first volume to be calibrated is the volume corresponding to the frequency range corresponding to the first audio data, and the second volume to be calibrated is the second audio volume The volume corresponding to the frequency range corresponding to the data. It should be noted that the frequency range corresponding to the first audio data here is the complete frequency range corresponding to the first audio data, and the frequency range corresponding to the second audio data here is the complete frequency range corresponding to the second audio data.

采用上述方式1可以较为简便地确定第一待校准音量和第二待校准音量,进而可以通过第一待校准音量和第二待校准音量实现音量校准,减轻声场偏移的问题。By using the above method 1, the first volume to be calibrated and the second volume to be calibrated can be easily determined, and then volume calibration can be achieved through the first volume to be calibrated and the second volume to be calibrated, thereby reducing the problem of sound field offset.

方式2:手机确定一个第一待校准音量和一个第二待校准音量,该第一待校准音量为第一音频数据所对应的多个频率范围分别对应的音量的平均值,该第二待校准音量为第二音频数据所对应的多个频率范围分别对应的音量的平均值。此时,第一音频数据所对应的完整频率范围被划分为多个频率范围,在每个频率范围所对应的音频数据中提取振幅特征,确定每个频范围所对应的音量,根据获得的多个音量求平均值,并将该平均值作为第一待校准音量。同理,第二音频数据所对应的完整频率范围被划分为多个频率范围,且两者的划分方式相同,在每个频率范围所对应的音频数据中提取振幅特征,确定每个频范围所对应的音量,根据获得的多个音量求平均值,并将该平均值作为第二待校准音量。Method 2: The mobile phone determines a first volume to be calibrated and a second volume to be calibrated, the first volume to be calibrated is the average of the volumes corresponding to multiple frequency ranges corresponding to the first audio data, and the second volume to be calibrated The volume is an average value of the volumes corresponding to the plurality of frequency ranges corresponding to the second audio data respectively. At this time, the complete frequency range corresponding to the first audio data is divided into a plurality of frequency ranges, the amplitude feature is extracted from the audio data corresponding to each frequency range, and the volume corresponding to each frequency range is determined. The average volume is calculated, and the average value is used as the first volume to be calibrated. Similarly, the complete frequency range corresponding to the second audio data is divided into multiple frequency ranges, and the two are divided in the same way. The amplitude feature is extracted from the audio data corresponding to each frequency range, and the The corresponding volume is averaged according to the obtained multiple volumes, and the average value is used as the second volume to be calibrated.

采用上述方式2可以较为简便地确定第一待校准音量和第二待校准音量,进而可以通过第一待校准音量和第二待校准音量实现音量校准,且减轻声场偏移的效果比较明显。Using the above method 2, the first volume to be calibrated and the second volume to be calibrated can be easily determined, and then volume calibration can be achieved through the first volume to be calibrated and the second volume to be calibrated, and the effect of reducing sound field offset is obvious.

示例性地,以第一音频数据所对应的频率范围为100~400Hz为例,可以将第一音频数据所对应的整个频率范围划分为2个频率范围,并针对每个频率范围确定一个对应的音量,进而可以获得2个音量,即第一音频数据在100~200Hz的频率范围的待校准音量(以下简称音量1)和第一音频数据在200~400Hz的频率范围的待校准音量(以下简称音量2),然后将获得的2个音量求取平均值,即计算音量1和音量2的平均值作为第一待校准音量。Exemplarily, taking the frequency range corresponding to the first audio data as 100-400 Hz as an example, the entire frequency range corresponding to the first audio data can be divided into two frequency ranges, and a corresponding frequency range is determined for each frequency range. volume, and then two volumes can be obtained, that is, the volume to be calibrated (hereinafter referred to as volume 1) of the first audio data in the frequency range of 100 to 200 Hz and the volume to be calibrated of the first audio data in the frequency range of 200 to 400 Hz (hereinafter referred to as the volume to be calibrated). Volume 2), and then average the obtained 2 volumes, that is, calculate the average of volume 1 and volume 2 as the first volume to be calibrated.

方式3:需要说明的是,第一音箱的频响曲线和第二音箱的频响曲线一般不同。为了实现对两个音箱在各个频率上进行音量校准,手机可以根据第一音频数据确定第一音频数据所对应的多个频率范围分别所对应的音量,得到第一音频数据所对应的多个待校准音量(获得多个第一待校准音量)。同理,手机可以根据第二音频数据确定第二音频数据所对应的多个频率范围分别所对应的音量,得到第二音频数据所对应的多个待校准音量(获得多个第二待校准音量)。示例性地,手机可以确定第一音频数据在100~200Hz的频率范围的待校准音量和第二音频数据在100~200Hz的频率范围的待校准音量,以及第一音频数据在200~400Hz的频率范围的待校准音量和第一音频数据在200~400Hz的频率范围的待校准音量。Mode 3: It should be noted that the frequency response curve of the first speaker is generally different from the frequency response curve of the second speaker. In order to realize volume calibration of the two speakers at various frequencies, the mobile phone can determine the volume corresponding to multiple frequency ranges corresponding to the first audio data according to the first audio data, and obtain a plurality of pending audio data corresponding to the first audio data. Calibrate volume (obtain multiple first volumes to be calibrated). Similarly, the mobile phone can determine the respective volumes corresponding to multiple frequency ranges corresponding to the second audio data according to the second audio data, and obtain multiple volumes to be calibrated corresponding to the second audio data (obtain multiple second volumes to be calibrated). ). Exemplarily, the mobile phone may determine the volume to be calibrated of the first audio data in the frequency range of 100 to 200 Hz, the volume to be calibrated of the second audio data in the frequency range of 100 to 200 Hz, and the frequency of the first audio data in the range of 200 to 400 Hz. The volume to be calibrated in the range and the volume to be calibrated of the first audio data in the frequency range of 200-400 Hz.

采用上述方式3通过确定多个第一待校准音量和多个第二待校准音量,进而可以实现较为精准地针对不同频率范围进行音量校准,能够明显改善声场偏移的问题。By using the above method 3, by determining a plurality of first to-be-calibrated volumes and a plurality of second to-be-calibrated volumes, it is possible to more accurately perform volume calibration for different frequency ranges, which can significantly improve the problem of sound field offset.

可以理解的是,上述每个频率范围还可以根据需要进行调整,且频率范围越小,音量校准更精准。例如,手机可以确定第一音频数据在100~110Hz的频率范围的待校准音量和第二音频数据在100~110Hz的频率范围的待校准音量,以及第一音频数据在110~120Hz的频率范围的待校准音量和第二音频数据在110~120Hz的频率范围的待校准音量。It can be understood that each of the above frequency ranges can also be adjusted as required, and the smaller the frequency range, the more accurate the volume calibration. For example, the mobile phone can determine the volume to be calibrated of the first audio data in the frequency range of 100-110 Hz, the volume to be calibrated of the second audio data in the frequency range of 100-110 Hz, and the volume of the first audio data in the frequency range of 110-120 Hz. The volume to be calibrated and the volume to be calibrated of the second audio data in the frequency range of 110-120 Hz.

S907:手机根据第一待校准音量和第二待校准音量,确定音量调整方案。其中,音量调整方案用于减小第一待校准音量和第二待校准音量之差。手机通过音量调整方案减轻声场偏移对声音效果的影响。S907: The mobile phone determines a volume adjustment scheme according to the first volume to be calibrated and the second volume to be calibrated. The volume adjustment scheme is used to reduce the difference between the first volume to be calibrated and the second volume to be calibrated. The mobile phone uses the volume adjustment scheme to reduce the influence of the sound field offset on the sound effect.

在一些实施例中,手机根据音量调整方案确定第一信息,并向第一音箱或第二音箱发送第一信息,第一信息用于指示第一待校准音量和第二待校准音量的差值。上述音量调整方式又可称为后处理方式。In some embodiments, the mobile phone determines the first information according to the volume adjustment scheme, and sends the first information to the first speaker or the second speaker, where the first information is used to indicate the difference between the first volume to be calibrated and the second volume to be calibrated . The above volume adjustment method may also be referred to as a post-processing method.

示例性地,若第一待校准音量比第二待校准音量高Xdb,手机可以向第一音箱发送第一信息,第一信息指示第一音箱的输入音量降低Xdb。第一音箱在接收到第一信息后,根据第一信息调整第一音箱的输入音量,即第一音箱的输入音量降低Xdb,以使在正式播放音频时,在手机所在位置上确定的两个音箱的音量相同或近似相同。或者,手机可以向第二音箱发送第一信息,第一信息指示第二音箱的输入音量升高Xdb。第二音箱在接收到第一信息后,根据第一信息调整第二音箱的输入音量,即第二音箱的输入音量升高Xdb。Exemplarily, if the first volume to be calibrated is Xdb higher than the second volume to be calibrated, the mobile phone may send first information to the first speaker, the first information indicating that the input volume of the first speaker is decreased by Xdb. After the first speaker receives the first information, it adjusts the input volume of the first speaker according to the first information, that is, the input volume of the first speaker is reduced by Xdb, so that when the audio is officially played, the two numbers determined at the location of the mobile phone are adjusted. The volume of the speakers is the same or approximately the same. Alternatively, the mobile phone may send the first information to the second speaker, the first information indicating that the input volume of the second speaker is increased by Xdb. After receiving the first information, the second speaker adjusts the input volume of the second speaker according to the first information, that is, the input volume of the second speaker increases by Xdb.

例如,若第一待校准音量比第二待校准音量高Xdb,手机可以向第一音箱发送第一信息,第一信息指示第一音箱的输入音量降低Xdb。进一步地,手机可以重复上述S901~S906,以判断是否达到音量校准效果。具体的,在第一音箱调整输入音量后,手机判断重新确定的第一待校准音量和第二待校准音量是否相同,或者重新确定的第一待校准音量和第二待校准音量之差的绝对值是否小于预设阈值,若重新确定的第一待校准音量和第二待校准音量相同或重新确定的第一待校准音量和第二待校准音量之差的绝对值小于预设阈值,则表明音量校准完成,可以继续播放用户准备收听的音频,即将用户准备收听的音频发送至第一音箱和第二音箱。例如,用户准备收听的音频包括左声道的音频和右声道的音频,第一音箱用于播放左声道的音频,第二音箱用于播放右声道的音频。因此,手机将左声道的音频发送至第一音箱,将右声道的音频发送至第二音箱。For example, if the first volume to be calibrated is Xdb higher than the second volume to be calibrated, the mobile phone may send first information to the first speaker, the first information indicating that the input volume of the first speaker is decreased by Xdb. Further, the mobile phone can repeat the above S901 to S906 to determine whether the volume calibration effect is achieved. Specifically, after the first speaker adjusts the input volume, the mobile phone determines whether the re-determined first volume to be calibrated and the second volume to be calibrated are the same, or the absolute difference between the re-determined first volume to be calibrated and the second volume to be calibrated Whether the value is less than the preset threshold, if the re-determined first volume to be calibrated and the second volume to be calibrated are the same or the absolute value of the difference between the re-determined first volume to be calibrated and the second volume to be calibrated is smaller than the preset threshold, it means After the volume calibration is completed, the audio that the user is ready to listen to can continue to be played, that is, the audio that the user is ready to listen to is sent to the first speaker and the second speaker. For example, the audio to be listened to by the user includes the audio of the left channel and the audio of the right channel, the first speaker is used to play the audio of the left channel, and the second speaker is used to play the audio of the right channel. Therefore, the mobile phone sends the audio of the left channel to the first speaker and the audio of the right channel to the second speaker.

此外,可以理解的是,手机还可以根据音量调整方案确定第二信息和第三信息,其中,第二信息用于指示第一音量调整量,第三信息用于指示第二音量调整量,第一音量调整量和第二音量调整量是根据第一待校准音量和第二待校准音量之差确定的,手机向第一音箱发送第一音量调整量,向第二音箱发送第二音量调整量。例如,若第一待校准音量比第二待校准音量高6db,手机可以向第一音箱发送第二信息,第二信息指示第一音箱的输入音量降低3db,第三信息指示第二音箱的输入音量升高3db。In addition, it can be understood that the mobile phone can also determine the second information and the third information according to the volume adjustment scheme, wherein the second information is used to indicate the first volume adjustment amount, the third information is used to indicate the second volume adjustment amount, and the third information is used to indicate the second volume adjustment amount. The first volume adjustment amount and the second volume adjustment amount are determined according to the difference between the first volume to be calibrated and the second volume to be calibrated. The mobile phone sends the first volume adjustment amount to the first speaker, and sends the second volume adjustment amount to the second speaker . For example, if the first volume to be calibrated is 6db higher than the second volume to be calibrated, the mobile phone can send a second message to the first speaker, the second message indicates that the input volume of the first speaker is reduced by 3db, and the third message indicates the input volume of the second speaker Volume up by 3db.

在另一些实施例中,手机可以在将第三音频发送至第一音箱,以及将第四音频发送至第二音箱之前,根据音量调整方案对第三音频的波形和/或第四音频的波形进行调整。上述音量调整方式又可称为前处理方式。这里的第三音频和第四音频为手机需要投射的音频。其中,第三音频为第一音箱所需播放的音频,第四音频为第二音箱所需播放的音频。例如,第三音频和第四音频分别为左声道的音频和右声道的音频。例如,针对上述情况(1)手机将用户准备收听的音频投射到两个音箱进行播放之前,用户发起音量校准,这里的第三音频和第四音频为用户准备收听的音频。又例如,针对上述情况(2)在用户收听音频的过程中,若用户感觉到声场偏移,用户发起音量校准。这里的第三音频和第四音频为在音量校准完成后需要继续播放的音频。In other embodiments, before sending the third audio to the first speaker and sending the fourth audio to the second speaker, the mobile phone may adjust the waveform of the third audio and/or the waveform of the fourth audio according to the volume adjustment scheme make adjustments. The above volume adjustment method may also be called a preprocessing method. The third audio and the fourth audio here are the audios that the mobile phone needs to project. Wherein, the third audio is the audio to be played by the first speaker, and the fourth audio is the audio to be played by the second speaker. For example, the third audio and the fourth audio are the audio of the left channel and the audio of the right channel, respectively. For example, for the above situation (1), before the mobile phone projects the audio that the user is ready to listen to to two speakers for playback, the user initiates volume calibration, and the third audio and the fourth audio here are the audio that the user is ready to listen to. For another example, for the above situation (2), when the user is listening to the audio, if the user feels the sound field shift, the user initiates volume calibration. The third audio and the fourth audio here are the audios that need to continue to be played after the volume calibration is completed.

此外,需要说明的是,若用户准备收听的音频不区分左右声道,则第三音频与第四音频为相同的音频。In addition, it should be noted that, if the audio to be listened by the user does not distinguish between left and right channels, the third audio and the fourth audio are the same audio.

示例性地,若第一待校准音量比第二待校准音量高Xdb,手机将第四音频的波形增加Xdb的增益,或将第三音频的波形减少X db的增益。Exemplarily, if the first volume to be calibrated is higher by Xdb than the second volume to be calibrated, the mobile phone increases the waveform of the fourth audio by a gain of Xdb, or reduces the waveform of the third audio by a gain of Xdb.

可以理解的是,上述音量调整方案可以适用于上述S906中方式1和方式2。It can be understood that the above volume adjustment solution can be applied to the above-mentioned Mode 1 and Mode 2 in S906.

此外,手机在将第三音频发送至第一音箱,以及将第四音频发送至第二音箱之前,手机将第一音频的波形减小Xdb的增益,并重复上述S901~S906,以判断是否达到音量校准效果。具体的,手机判断重新确定的第一待校准音量和第二待校准音量是否相同,或者重新确定的第一待校准音量和第二待校准音量之差的绝对值是否小于预设阈值,若重新确定的第一待校准音量和第二待校准音量相同或重新确定的第一待校准音量和第二待校准音量之差的绝对值小于预设阈值,则表明音量校准完成,可以继续播放用户准备收听的音频,即根据将第三音频的波形减小Xdb增益,然后将调整后的第三音频发送至第一音箱,将第四音频发送至第二音箱。In addition, before the mobile phone sends the third audio frequency to the first speaker and the fourth audio frequency to the second speaker, the mobile phone reduces the waveform of the first audio frequency by the gain of Xdb, and repeats the above S901 to S906 to determine whether the Volume calibration effect. Specifically, the mobile phone determines whether the re-determined first volume to be calibrated and the second volume to be calibrated are the same, or whether the absolute value of the difference between the re-determined first volume to be calibrated and the second volume to be calibrated is less than a preset threshold, If the determined first volume to be calibrated and the second volume to be calibrated are the same or the absolute value of the difference between the re-determined first volume to be calibrated and the second volume to be calibrated is smaller than the preset threshold, it indicates that the volume calibration is completed, and the user can continue to play the preparation The listening audio is to reduce the Xdb gain according to the waveform of the third audio, and then send the adjusted third audio to the first speaker, and send the fourth audio to the second speaker.

进一步地,针对上述S906中的方式3,手机确定第一音频数据所对应的多个待校准音量和第二音频数据所对应的多个待校准音量,手机针对在每个频率范围的两个待校准音量,对第三音频的波形和/或第四音频的波形进行调整。Further, for the method 3 in the above-mentioned S906, the mobile phone determines a plurality of to-be-calibrated volumes corresponding to the first audio data and a plurality of to-be-calibrated volumes corresponding to the second audio data, and the mobile phone determines two to-be-calibrated volumes in each frequency range. Calibrate the volume and adjust the waveform of the third audio and/or the waveform of the fourth audio.

示例性地,假设手机确定第一音频数据在100~200Hz的频率范围的待校准音量比第二音频数据在100~200Hz的频率范围的待校准音量高1db,第一音频数据在200~400Hz的频率范围的待校准音量比第二音频数据在200~400Hz的频率范围的待校准音量高0.5db。手机将第四音频在100~200Hz的频率范围内的波形增加1db的增益,或将第三音频在100~200Hz的频率范围内的波形减少1db的增益。手机将第四音频在200~400Hz的频率范围内的波形增加0.5db的增益,或将第三音频在100~200Hz的频率范围内的波形减少0.5db的增益。Exemplarily, it is assumed that the mobile phone determines that the volume to be calibrated of the first audio data in the frequency range of 100-200 Hz is 1db higher than the volume to be calibrated of the second audio data in the frequency range of 100-200 Hz, and the first audio data is in the frequency range of 200-400 Hz. The volume to be calibrated in the frequency range is 0.5db higher than the volume to be calibrated in the frequency range of 200-400 Hz for the second audio data. The mobile phone increases the waveform of the fourth audio frequency in the frequency range of 100-200 Hz by a gain of 1 dB, or reduces the waveform of the third audio frequency in the frequency range of 100-200 Hz by a gain of 1 dB. The mobile phone increases the waveform of the fourth audio frequency in the frequency range of 200-400Hz by a gain of 0.5db, or reduces the waveform of the third audio frequency in the frequency range of 100-200Hz by a gain of 0.5db.

此外,在一些实施例中,在手机完成音量校准之后,手机还可以保存第一文件,第一文件包括但不限于组网信息、网元信息、音量调整方案和第一参考点的信息。其中,组网信息用于指示组建网络的各个路由器,以及各个路由器之间关系。网元信息包括发送(source)端(即手机)和接收(sink)端(即第一音箱和第二音箱)的连接路由信息,sink端的设备标识。音量调整方案包括每个sink端的增益信息(即波形增益)或者每个sink端的音量调整量。第一参考点的信息可以包括手机与第一音箱之间的距离、第一音箱相对于手机的方位信息、手机与第二音箱之间的距离以及第二音箱相对于手机的方位信息。因此,若手机下一次检测到第一指令且手机与第一音箱和第二音箱位置关系满足预设条件时,手机可以根据第一文件中的音量调整方案进行音量校准。示例性地,这里的预设条件可以是指假设第一音箱和第二音箱的位置固定,手机在下一次检测到第一指令时,确定第二参考点,若第二参考点与第一参考点之间的距离小于预设阈值(例如1米),则手机可以根据第一文件中的音量调整方案进行音量校准。而当新增音箱时,手机需要重新对新增的音箱进行音量校准。或当第二参考点与第一参考点之间的距离大于或等于预设阈值时,手机需要重新对两个音箱进行音量校准。可以理解的是,手机确定第二参考点的具体方法与手机确定第一参考点的具体方法相同,重复之处不再赘述。In addition, in some embodiments, after the mobile phone completes volume calibration, the mobile phone may also save a first file, where the first file includes but is not limited to networking information, network element information, volume adjustment scheme and information of the first reference point. The networking information is used to indicate each router that forms a network and the relationship between the various routers. The network element information includes the connection routing information of the sending (source) end (ie the mobile phone) and the receiving (sink) end (ie the first speaker and the second speaker), and the device identifier of the sink. The volume adjustment scheme includes gain information (ie, waveform gain) of each sink terminal or volume adjustment amount of each sink terminal. The information of the first reference point may include the distance between the mobile phone and the first sound box, the orientation information of the first sound box relative to the mobile phone, the distance between the mobile phone and the second sound box, and the orientation information of the second sound box relative to the mobile phone. Therefore, if the mobile phone detects the first instruction next time and the positional relationship between the mobile phone and the first speaker and the second speaker satisfies the preset condition, the mobile phone can perform volume calibration according to the volume adjustment scheme in the first file. Exemplarily, the preset condition here may refer to assuming that the positions of the first sound box and the second sound box are fixed, and the mobile phone determines the second reference point the next time it detects the first command. If the distance between them is less than a preset threshold (for example, 1 meter), the mobile phone can perform volume calibration according to the volume adjustment scheme in the first file. When adding a speaker, the phone needs to re-calibrate the volume of the newly added speaker. Or when the distance between the second reference point and the first reference point is greater than or equal to the preset threshold, the mobile phone needs to re-calibrate the volume of the two speakers. It can be understood that the specific method for the mobile phone to determine the second reference point is the same as the specific method for the mobile phone to determine the first reference point, and the repetition will not be repeated.

以下对上述如图9所示实施例的具体实现过程做进一步说明。The specific implementation process of the above-mentioned embodiment shown in FIG. 9 will be further described below.

针对上述S901:For the above S901:

在一些实施例中,针对上述情况(1)手机将用户准备收听的音频投射到两个音箱进行播放之前,用户发起音量校准,手机检测到用户的第一操作时,第一操作用于触发将用户准备收听的声音投射到第一音箱和第二音箱上播放,手机可以在当前用户界面上显示第一提示框,第一提示框用于提醒用户是否执行音量校准。手机检测到用户针对第一提示框的第二操作,第二操作用于触发音量校准,手机向第一音箱发送第一音频,向第二音箱发送第二音频。In some embodiments, for the above situation (1) before the mobile phone projects the audio that the user is about to listen to to two speakers for playback, the user initiates volume calibration, and when the mobile phone detects the first operation of the user, the first operation is used to trigger the The sound to be listened to by the user is projected to the first speaker and the second speaker for playback. The mobile phone may display a first prompt box on the current user interface, and the first prompt box is used to remind the user whether to perform volume calibration. The mobile phone detects the user's second operation on the first prompt box, the second operation is used to trigger volume calibration, the mobile phone sends the first audio to the first speaker, and sends the second audio to the second speaker.

示例性地,手机与两个音箱建立连接,手机检测到用于触发将某个视频投射到电视上播放的操作,其中,这两个音箱用于播放该视频对应的音频,手机当前用户界面如图10所示。用户点击图10所示显示界面上的“是”所对应的虚拟按钮,响应于该操作,手机向第一音箱发送第一音频,向第二音箱发送第二音频。Exemplarily, the mobile phone establishes a connection with two speakers, and the mobile phone detects an operation for triggering a certain video to be projected on the TV for playback, wherein the two speakers are used to play the audio corresponding to the video, and the current user interface of the mobile phone is as follows: shown in Figure 10. The user clicks the virtual button corresponding to "Yes" on the display interface shown in FIG. 10, and in response to this operation, the mobile phone sends the first audio frequency to the first speaker and the second audio frequency to the second speaker.

此外,若手机检测到用户的第二操作,手机还可以在当前用户界面上显示第二提示框,第二提示框用于提醒用户保持周围环境安静,如图11所示。或者若手机检测到第二操作,通过语音方式提醒用户保持周围环境安静。In addition, if the mobile phone detects the second operation of the user, the mobile phone can also display a second prompt box on the current user interface, and the second prompt box is used to remind the user to keep the surrounding environment quiet, as shown in FIG. 11 . Or if the mobile phone detects the second operation, the user is reminded by voice to keep the surrounding environment quiet.

在一些实施例中,手机被配置在检测到用户的第一操作时,自动启动音量校准。其中,第一操作用于触发将声音投射到第一音箱和第二音箱上播放。示例性地,手机可以在音箱连接配置界面显示第一选项,第一选项用于指示是否开启自动音量校准。如图12所示,若自动音量校准选项开启,手机在检测到第一操作时自动启动音量校准。此外,手机在检测到第一操作时,手机还可以在当前用户界面上显示第二会话界面,第二会话界面包括第二提示框,第二提示框用于提醒用户保持周围环境安静,如图11所示。或者手机在检测到第一操作时,通过语音方式提醒用户保持周围环境安静。In some embodiments, the handset is configured to automatically initiate volume calibration upon detection of the user's first action. Wherein, the first operation is used to trigger the projection of the sound to the first sound box and the second sound box for playback. Exemplarily, the mobile phone may display the first option on the speaker connection configuration interface, where the first option is used to indicate whether to enable automatic volume calibration. As shown in FIG. 12 , if the automatic volume calibration option is enabled, the mobile phone automatically starts volume calibration when the first operation is detected. In addition, when the mobile phone detects the first operation, the mobile phone can also display a second conversation interface on the current user interface, the second conversation interface includes a second prompt box, and the second prompt box is used to remind the user to keep the surrounding environment quiet, as shown in the figure 11 shown. Or when the mobile phone detects the first operation, it reminds the user to keep the surrounding environment quiet by voice.

在一些实施例中,针对上述情况(2)在用户收听音频的过程中,若用户感觉到声场偏移,用户发起音量校准。在音频播放过程中,用户可以在当前播放界面上通过新增的第一选项直接触发音量校准,响应于该操作,手机向第一音箱发送第一音频,向第二音箱发送第二音频。其中,第一选项用于处于执行音量校准。In some embodiments, for the above situation (2), when the user is listening to the audio, if the user feels the sound field shift, the user initiates volume calibration. During audio playback, the user can directly trigger volume calibration through the newly added first option on the current playback interface. In response to this operation, the mobile phone sends the first audio to the first speaker and the second audio to the second speaker. Among them, the first option is used to perform volume calibration.

示例性地,如图13所示,当前播放界面上包括启动音量校准选项,用户点击图13所示启动音量校准选项所对应的虚拟按钮时,响应于该操作,手机向第一音箱发送第一音频,向第二音箱发送第二音频。Exemplarily, as shown in FIG. 13 , the current playback interface includes an option to activate volume calibration. When the user clicks the virtual button corresponding to the option to activate volume calibration shown in FIG. 13 , in response to this operation, the mobile phone sends the first Audio, send the second audio to the second speaker.

针对上述S905:For the above S905:

在一些实施例中,手机还可以通过当前用户界面显示第三提示框,第三提示框用于提醒用户不要遮挡麦克风,如图14所示。或者,在一些实施例中,手机在检测到用户可能遮挡麦克风时,通过当前用户界面显示第三提示框,第三提示框用于提醒用户检查是否遮挡麦克风,如图14所示。或者,在一些实施例中,手机在检测到用户可能遮挡麦克风时,通过语音提示用户检查是否遮挡麦克风。In some embodiments, the mobile phone may also display a third prompt box through the current user interface, and the third prompt box is used to remind the user not to block the microphone, as shown in FIG. 14 . Alternatively, in some embodiments, when the mobile phone detects that the user may block the microphone, a third prompt box is displayed through the current user interface, and the third prompt box is used to remind the user to check whether the microphone is blocked, as shown in FIG. 14 . Alternatively, in some embodiments, when the mobile phone detects that the user may block the microphone, the mobile phone prompts the user to check whether the microphone is blocked by voice.

示例性地,手机可以指示第一音箱播放K次第一音频,同时指示第二音箱播放K次第二音频,K为大于等于2的正整数。进一步地,手机采集K个第一音频分别对应的音频数据,并根据K个第一音频分别对应的音频数据确定K个音量,当K个音量中的最大音量与K个音量中的最小音量的差值大于预设阈值时,手机判断可能存在遮挡麦克风的情况。同理,手机还可以通过采集到的K个第二音频分别对应的音频数据判断是否存在遮挡麦克风的情况。Exemplarily, the mobile phone may instruct the first speaker to play the first audio K times, and at the same time instruct the second speaker to play the second audio K times, where K is a positive integer greater than or equal to 2. Further, the mobile phone collects the audio data corresponding to the K first audios respectively, and determines K volumes according to the audio data corresponding to the K first audios respectively, when the maximum volume in the K volumes is equal to the minimum volume in the K volumes. When the difference is greater than the preset threshold, the mobile phone determines that the microphone may be blocked. Similarly, the mobile phone can also judge whether the microphone is blocked by the collected audio data corresponding to the K second audios respectively.

假设K=2,手机采集第一音箱第1次播放第一音频的音频数据(以下简称数据1),手机采集第一音箱第2次播放第一音频的音频数据(以下简称数据2)。手机根据数据1确定数据1所对应的音量(以下简称音量1),根据数据2确定数据2所对应的音量(以下简称音量2)。若音量1与音量2的差值大于预设阈值,手机通过当前用户界面显示第三提示框,第三提示框用于提醒用户检查是否遮挡麦克风。Assuming K=2, the mobile phone collects the audio data of the first audio played by the first speaker for the first time (hereinafter referred to as data 1), and the mobile phone collects the audio data of the first audio played by the first speaker for the second time (hereinafter referred to as data 2). The mobile phone determines the volume corresponding to data 1 (hereinafter referred to as volume 1) according to data 1, and determines the volume corresponding to data 2 according to data 2 (hereinafter referred to as volume 2). If the difference between the volume 1 and the volume 2 is greater than the preset threshold, the mobile phone displays a third prompt box through the current user interface, and the third prompt box is used to remind the user to check whether the microphone is blocked.

采用上述设计,可以避免由于麦克风遮挡对音量校准造成的影响,保证音量校准的准确性。By adopting the above design, it is possible to avoid the influence on the volume calibration caused by the blocking of the microphone, and to ensure the accuracy of the volume calibration.

在一些实施例中,手机还可以通过当前用户界面显示第四提示框,第四提示框用于提醒用户保持手机所在平面与地面之间的夹角为90度或者提醒用户保持手机垂直于地面;或者,在一些实施例中,手机在检测到手机所在平面与地面之间的夹角与90度之间的差值的绝对值大于预设角度时,手机通过当前用户界面显示第四提示框,第四提示框用于提醒用户保持手机所在平面与地面之间的夹角为90度,或者提醒用户保持手机垂直于地面,或者,提醒用户调整手机的位置。示例性地,当手机水平置于桌面上,或者手机的倾斜角度过大时,手机通过当前用户界面显示第四提示框,如图15所示。示例性地,预设角度可以从3度到8度之间进行取值,例如预设角度为5度。当手机在检测到手机所在平面与地面之间的夹角与90度之间的差值的绝对值小于5度时,手机确定手机与地面近似垂直(即手机所在平面与地面之间的夹角约为90度)。当手机在检测到手机所在平面与地面之间的夹角与90度之间的差值的绝对值大于5度时,手机通过当前用户界面显示第四提示框。具体地,还可以结合手机的水平仪功能,在显示界面显示一条给定的直线,例如一条横线和/或竖线,一旦偏移该直线则提醒用户调整手机的位置,例如通过当前用户界面显示第四提示框。可以理解的是,若不规定手机所在平面与地面之间的夹角,则由于麦克风的指向性问题就会造成确定的第一待校准音量和第二待校准音量存在较大误差,详见如图4所示的相关内容,采用上述设计保证手机所在平面与地面之间的夹角为90度或近似为90度,可以减轻麦克风的指向性问题对音量校准造成的影响。In some embodiments, the mobile phone can also display a fourth prompt box through the current user interface, and the fourth prompt box is used to remind the user to keep the angle between the plane where the mobile phone is located and the ground at 90 degrees or to remind the user to keep the mobile phone perpendicular to the ground; Or, in some embodiments, when the mobile phone detects that the absolute value of the difference between the angle between the plane where the mobile phone is located and the ground and 90 degrees is greater than the preset angle, the mobile phone displays a fourth prompt box through the current user interface, The fourth prompt box is used to remind the user to keep the angle between the plane where the mobile phone is located and the ground at 90 degrees, or to remind the user to keep the mobile phone perpendicular to the ground, or to remind the user to adjust the position of the mobile phone. Exemplarily, when the mobile phone is placed horizontally on the desktop, or the tilt angle of the mobile phone is too large, the mobile phone displays a fourth prompt box through the current user interface, as shown in FIG. 15 . Exemplarily, the preset angle may be between 3 degrees and 8 degrees, for example, the preset angle is 5 degrees. When the mobile phone detects that the absolute value of the difference between the angle between the plane where the mobile phone is located and the ground and 90 degrees is less than 5 degrees, the mobile phone determines that the mobile phone is approximately perpendicular to the ground (that is, the angle between the plane where the mobile phone is located and the ground) about 90 degrees). When the mobile phone detects that the absolute value of the difference between the angle between the plane where the mobile phone is located and the ground and 90 degrees is greater than 5 degrees, the mobile phone displays a fourth prompt box through the current user interface. Specifically, a given line, such as a horizontal line and/or a vertical line, can also be displayed on the display interface in combination with the spirit level function of the mobile phone. Once the line is offset, the user is reminded to adjust the position of the mobile phone, for example, displayed on the current user interface. Fourth prompt box. It can be understood that if the angle between the plane where the mobile phone is located and the ground is not specified, there will be a large error in the determined first volume to be calibrated and the second volume to be calibrated due to the directivity of the microphone. For the related content shown in Figure 4, the above design ensures that the angle between the plane where the mobile phone is located and the ground is 90 degrees or approximately 90 degrees, which can reduce the impact of the microphone's directivity on volume calibration.

可以理解的是,基于相同的构思,上述实施例还可以应用于三个或三个以上音箱进行音量校准的场景,如图7所示。It can be understood that, based on the same concept, the above-mentioned embodiment can also be applied to a scenario where three or more speakers perform volume calibration, as shown in FIG. 7 .

在本申请的各个实施例中,如果没有特殊说明以及逻辑冲突,不同的实施例之间的术语和/或描述具有一致性、且可以相互引用,不同的实施例中的技术特征根据其内在的逻辑关系可以组合形成新的实施例。In the various embodiments of the present application, if there is no special description or logical conflict, the terms and/or descriptions between different embodiments are consistent and can be referred to each other, and the technical features in different embodiments are based on their inherent Logical relationships can be combined to form new embodiments.

本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。在本申请的文字描述中,字符“/”,一般表示前后关联对象是一种“或”的关系;在本申请的公式中,字符“/”,表示前后关联对象是一种“相除”的关系。In this application, "at least one" means one or more, and "plurality" means two or more. "And/or", which describes the relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, it can indicate that A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. In the text description of this application, the character "/" generally indicates that the related objects are a kind of "or" relationship; in the formula of this application, the character "/" indicates that the related objects are a kind of "division" Relationship.

可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定。It can be understood that, the various numbers and numbers involved in the embodiments of the present application are only for the convenience of description, and are not used to limit the scope of the embodiments of the present application. The size of the sequence numbers of the above processes does not imply the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic.

Claims (19)

1. A method for volume calibration, the method comprising:
the terminal equipment sends a first audio to the first sound box and sends a second audio to the second sound box;
the terminal equipment collects first audio data and second audio data on a first reference point, wherein the first audio data are audio data corresponding to the first audio played by the first sound box, and the second audio data are audio data corresponding to the second audio played by the second sound box;
the terminal equipment determines a first volume to be calibrated according to the first audio data and determines a second volume to be calibrated according to the second audio data;
and the terminal equipment determines a volume adjustment scheme according to the first volume to be calibrated and the second volume to be calibrated.
2. The method of claim 1, wherein the first audio and the second audio have different frequencies and/or have different waveforms in a predetermined portion of the sound wave.
3. The method of claim 1 or 2, wherein the first audio and the second audio have swept waveforms.
4. The method of any of claims 1-3, wherein the first reference point is determined based on a distance between the terminal device and the first speaker, orientation information of the first speaker relative to the terminal device, a distance between the terminal device and the second speaker, and orientation information of the second speaker relative to the terminal device.
5. The method according to any one of claims 1-4, wherein the first volume to be calibrated is a volume corresponding to a frequency range corresponding to the first audio data, and the second volume to be calibrated is a volume corresponding to a frequency range corresponding to the second audio data.
6. The method according to any one of claims 1-4, wherein the first volume to be calibrated is an average of volumes corresponding to a plurality of frequency ranges corresponding to the first audio data, respectively, and the second volume to be calibrated is an average of volumes corresponding to a plurality of frequency ranges corresponding to the second audio data, respectively.
7. The method according to any one of claims 1-4, wherein the first volume to be calibrated includes volumes corresponding to a plurality of frequency ranges corresponding to the first audio data, respectively, and the second volume to be calibrated includes volumes corresponding to a plurality of frequency ranges corresponding to the second audio data, respectively.
8. The method of claim 5 or 6, further comprising:
and the terminal equipment sends first information to the first loudspeaker box or the second loudspeaker box according to the volume adjustment scheme, wherein the first information is used for indicating the difference value between the first volume to be calibrated and the second volume to be calibrated.
9. The method of claim 5 or 6, further comprising:
and the terminal equipment sends second information to the first loudspeaker box according to the volume adjustment scheme and sends third information to the second loudspeaker box, wherein the second information is used for indicating a first volume adjustment amount, the third information is used for indicating a second volume adjustment amount, and the first volume adjustment amount and the second volume adjustment amount are determined according to the difference value of the first volume to be calibrated and the second volume to be calibrated.
10. The method of any one of claims 5-7, further comprising:
the terminal equipment adjusts the waveform of a third audio frequency according to the volume adjustment scheme;
the terminal equipment sends the adjusted third audio to the first sound box and sends a fourth audio to the second sound box;
or the terminal equipment adjusts the waveform of a fourth audio according to the volume adjustment scheme;
and the terminal equipment sends a third audio to the first sound box and sends an adjusted fourth audio to the second sound box.
11. The method of claim 10, wherein the third audio is the same as the fourth audio.
12. The method of any of claims 1-11, wherein prior to the terminal device transmitting the first audio to the first speaker and the second audio to the second speaker, further comprising:
the terminal device detects a first operation of a user, and the first operation is used for triggering the sound which is ready to be listened by the user to be projected to the first sound box and the second sound box for playing.
13. The method of claim 12, further comprising:
after the terminal device detects the first operation, the terminal device displays a first prompt box on a user interface; the first prompt box is used for prompting a user whether to execute volume calibration;
and the terminal equipment detects a second operation of the user aiming at the first prompt box, and the second operation indicates to execute volume calibration.
14. The method of claim 12 or 13, wherein the first enclosure is fixed in position and the second enclosure is fixed in position;
the method further comprises the following steps:
when the terminal equipment determines that the first operation is not detected for the first time, the terminal equipment determines a second reference point;
and if the distance between the first reference point and the second reference point is smaller than a preset threshold value, the terminal equipment determines to adopt the volume adjustment scheme.
15. The method of any of claims 1-14, wherein the user interface of the terminal device includes a first option; the first option is used for triggering execution of volume calibration;
before the terminal equipment sends first audio frequency to first audio amplifier, sends the second audio frequency to the second audio amplifier, still include:
and the terminal equipment detects that the user triggers the operation of the first option.
16. The method of any one of claims 1-15, further comprising:
the terminal device detects that the microphone is shielded by the user, and the terminal device displays a prompt box for reminding the user to check whether the microphone is shielded or not on a user interface.
17. The method of any one of claims 1-16, further comprising:
and the terminal equipment displays a prompt box for reminding a user to keep the terminal equipment vertical to the ground on a user interface.
18. An electronic device, wherein the electronic device comprises memory and one or more processors; wherein the memory is to store computer program code comprising computer instructions; the computer instructions, when executed by the processor, cause the electronic device to perform a display method as claimed in any one of claims 1-17 applied to an electronic device.
19. A computer-readable storage medium, in which a computer program or instructions is stored which, when executed by a communication apparatus, carries out the method of any one of claims 1-17.
CN202011307310.XA 2020-10-22 2020-11-20 Volume calibration method and device Pending CN114390426A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2020111409313 2020-10-22
CN202011140931 2020-10-22

Publications (1)

Publication Number Publication Date
CN114390426A true CN114390426A (en) 2022-04-22

Family

ID=81194964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011307310.XA Pending CN114390426A (en) 2020-10-22 2020-11-20 Volume calibration method and device

Country Status (1)

Country Link
CN (1) CN114390426A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696172A (en) * 2022-08-15 2023-02-03 荣耀终端有限公司 Sound image calibration method and device
CN115923699A (en) * 2022-12-30 2023-04-07 镁佳(北京)科技有限公司 Vehicle sound effect adjusting method and device, storage medium and electronic equipment
CN117707464A (en) * 2023-07-21 2024-03-15 荣耀终端有限公司 Audio processing method and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110116642A1 (en) * 2009-11-16 2011-05-19 Harman International Industries, Incorporated Audio System with Portable Audio Enhancement Device
US20130170647A1 (en) * 2011-12-29 2013-07-04 Jonathon Reilly Sound field calibration using listener localization
CN104469648A (en) * 2014-12-31 2015-03-25 小米科技有限责任公司 Audio frequency calibration method and device
CN107172568A (en) * 2017-06-29 2017-09-15 深圳市泰衡诺科技有限公司上海分公司 A kind of stereo sound field calibrator (-ter) unit and calibration method
CN107211207A (en) * 2015-12-08 2017-09-26 华为技术有限公司 The method of user equipment and the loudspeaker in driving user equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110116642A1 (en) * 2009-11-16 2011-05-19 Harman International Industries, Incorporated Audio System with Portable Audio Enhancement Device
US20130170647A1 (en) * 2011-12-29 2013-07-04 Jonathon Reilly Sound field calibration using listener localization
CN104469648A (en) * 2014-12-31 2015-03-25 小米科技有限责任公司 Audio frequency calibration method and device
CN107211207A (en) * 2015-12-08 2017-09-26 华为技术有限公司 The method of user equipment and the loudspeaker in driving user equipment
CN107172568A (en) * 2017-06-29 2017-09-15 深圳市泰衡诺科技有限公司上海分公司 A kind of stereo sound field calibrator (-ter) unit and calibration method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696172A (en) * 2022-08-15 2023-02-03 荣耀终端有限公司 Sound image calibration method and device
CN115696172B (en) * 2022-08-15 2023-10-20 荣耀终端有限公司 Sound image calibration method and device
CN115923699A (en) * 2022-12-30 2023-04-07 镁佳(北京)科技有限公司 Vehicle sound effect adjusting method and device, storage medium and electronic equipment
CN115923699B (en) * 2022-12-30 2023-08-11 镁佳(北京)科技有限公司 Vehicle sound effect adjusting method and device, storage medium and electronic equipment
CN117707464A (en) * 2023-07-21 2024-03-15 荣耀终端有限公司 Audio processing method and related equipment

Similar Documents

Publication Publication Date Title
US11153609B2 (en) Method and apparatus for live streaming
CN110290262B (en) A calling method and terminal device
US20240064449A1 (en) Sound Collecting Method, Electronic Device, and System
WO2021017909A1 (en) Method, electronic device and system for realizing functions through nfc tag
WO2022007944A1 (en) Device control method, and related apparatus
WO2021036776A1 (en) Wireless charging method and electronic device
CN114390426A (en) Volume calibration method and device
CN111596885B (en) Audio data processing method, server and storage medium
CN107889044B (en) Audio data processing method and device
WO2012029943A1 (en) Electronic device and data transmission method
CN110996305A (en) Method, device, electronic equipment and medium for connecting Bluetooth equipment
US12278919B2 (en) Voice call method and apparatus, electronic device, and computer-readable storage medium
US20240153375A1 (en) Home Device Position Marking Method and Electronic Device
CN111045945B (en) Method, device, terminal, storage medium and program product for simulating live broadcast
CN112134995A (en) A method, terminal and computer-readable storage medium for finding application objects
CN113473372A (en) Equipment positioning method and related device
CN111338474A (en) Virtual object pose calibration method and device, storage medium and electronic device
CN115278625A (en) Bluetooth multimedia package transmission method, device, device and system
US20230054865A1 (en) Volume Adjustment Method and Device, and System
WO2022218196A1 (en) Transmission power control method and related device
CN111586433B (en) Code rate adjusting method, device, equipment and storage medium
CN111918084B (en) Wheat loading method and device, server and terminal
CN108055633A (en) A kind of audio playing method and mobile terminal
CN114338904A (en) Incoming call prompting method and electronic equipment
WO2019128430A1 (en) Method, apparatus and device for determining bandwidth, and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20220422