Movatterモバイル変換


[0]ホーム

URL:


CN106255000A - A kind of audio signal sample method and mobile terminal - Google Patents

A kind of audio signal sample method and mobile terminal
Download PDF

Info

Publication number
CN106255000A
CN106255000ACN201610616291.6ACN201610616291ACN106255000ACN 106255000 ACN106255000 ACN 106255000ACN 201610616291 ACN201610616291 ACN 201610616291ACN 106255000 ACN106255000 ACN 106255000A
Authority
CN
China
Prior art keywords
audio signal
signal
mobile terminal
audio
call
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
CN201610616291.6A
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co LtdfiledCriticalVivo Mobile Communication Co Ltd
Priority to CN201610616291.6ApriorityCriticalpatent/CN106255000A/en
Publication of CN106255000ApublicationCriticalpatent/CN106255000A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供了一种音频信号采集方法及移动终端,涉及移动终端技术领域。该音频信号采集方法,包括:在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;将第一音频信号和第二音频信号进行比较,在第一音频信号优于第二音频信号时,将第一音频信号作为通话信号传输给对端设备,否则,将第二音频信号作为通话信号传输给对端设备。上述方案,在移动终端的麦克风采集的语音信号质量较差时,通过将获取的扬声器处的语音信号发送给对端设备,以此解决了移动终端的麦克风存在发送声音偏小或无法发送声音,影响通话质量的问题,本发明实施例保证了用户的通话质量,提高了用户的使用体验效果。

The invention provides an audio signal collection method and a mobile terminal, and relates to the technical field of mobile terminals. The audio signal collection method includes: when the mobile terminal is making an audio call, respectively collecting a first audio signal at the speaker and a second audio signal at the microphone; comparing the first audio signal with the second audio signal, and then When the first audio signal is better than the second audio signal, the first audio signal is transmitted to the peer device as a call signal; otherwise, the second audio signal is transmitted to the peer device as a call signal. In the above solution, when the quality of the voice signal collected by the microphone of the mobile terminal is poor, the acquired voice signal at the loudspeaker is sent to the peer device, so as to solve the problem that the microphone of the mobile terminal has a small or unable to transmit sound. As for the problem affecting the call quality, the embodiment of the present invention ensures the user's call quality and improves the user experience effect.

Description

Translated fromChinese
一种音频信号采集方法及移动终端An audio signal acquisition method and mobile terminal

技术领域technical field

本发明涉及移动终端技术领域,特别涉及一种音频信号采集方法及移动终端。The present invention relates to the technical field of mobile terminals, in particular to an audio signal collection method and a mobile terminal.

背景技术Background technique

随着科技的发展,移动终端已成为人们生活中不可获取的一部分,而为了使用方便,大屏的移动终端越来越受到用户的喜爱。针对于大屏幕的移动终端,人们在使用时通常会抓到移动终端的下半部分,同时会使用手指来托住移动终端的底部,防止手滑使得移动终端滑落。With the development of science and technology, mobile terminals have become an inaccessible part of people's lives, and for the convenience of use, mobile terminals with large screens are more and more popular among users. For a mobile terminal with a large screen, people usually grasp the lower part of the mobile terminal when using it, and at the same time use fingers to support the bottom of the mobile terminal to prevent the mobile terminal from slipping due to hand slipping.

然而目前移动终端在手持通话过程中使用的主麦一般均位于移动终端的下方,使用手指托住移动终端会不自觉的堵住麦克风,造成发送的声音偏小或者无法发送的情况,影响了用户的使用体验。However, at present, the main microphone used by mobile terminals during handheld calls is generally located below the mobile terminal. Holding the mobile terminal with your fingers will unconsciously block the microphone, resulting in the situation that the transmitted voice is too small or cannot be transmitted, which affects users. use experience.

现有技术中,针对这种情况,有两种处理方法:In the prior art, there are two processing methods for this situation:

方法一、使用双麦时,当主麦堵住后,使用副麦完成通话;Method 1. When using dual microphones, when the main microphone is blocked, use the secondary microphone to complete the call;

此种方式需要添加副麦,增加了成本,还需要添加新的算法来实现,在真正的实现后,也会衰减双麦消噪的效果。This method needs to add a secondary microphone, which increases the cost, and also needs to add a new algorithm to realize it. After the real implementation, the effect of dual-mic noise cancellation will also be attenuated.

方法二、在单麦的情况下,将主麦的密封性做的略差,使得麦克风有其他的进音通道,但是,此种方式在免提通话状态时,回声抑制比较困难。Method 2: In the case of a single microphone, make the sealing of the main microphone slightly worse, so that the microphone has other sound channels. However, in this way, it is difficult to suppress the echo in the hands-free call state.

发明内容Contents of the invention

本发明要解决的技术问题是提供一种音频信号采集方法及移动终端,用以解决现有的移动终端在用户使用不当时,存在麦克风发送声音偏小或无法发送声音的情况,影响用户使用体验的问题。The technical problem to be solved by the present invention is to provide a method for collecting audio signals and a mobile terminal, so as to solve the problem that when the existing mobile terminal is used improperly by the user, the sound sent by the microphone is too small or the sound cannot be sent, which affects the user experience The problem.

为了解决上述技术问题,本发明实施例提供一种音频信号采集方法,应用于移动终端,所述移动终端包括扬声器和麦克风,其中,所述音频信号采集方法包括:In order to solve the above technical problems, an embodiment of the present invention provides an audio signal collection method, which is applied to a mobile terminal, and the mobile terminal includes a speaker and a microphone, wherein the audio signal collection method includes:

在所述移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;When the mobile terminal is making an audio call, respectively collecting a first audio signal at the speaker and a second audio signal at the microphone;

将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。comparing the first audio signal with the second audio signal, and when the first audio signal is better than the second audio signal, transmitting the first audio signal as a call signal to the peer device, Otherwise, transmit the second audio signal to the peer device as a call signal.

本发明实施例提供一种移动终端,包括扬声器和麦克风,其中,所述移动终端还包括:An embodiment of the present invention provides a mobile terminal, including a speaker and a microphone, wherein the mobile terminal further includes:

第一获取模块,用于在所述移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;The first acquiring module is configured to respectively acquire the first audio signal at the speaker and the second audio signal at the microphone when the mobile terminal is making an audio call;

比较模块,用于将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。A comparison module, configured to compare the first audio signal with the second audio signal, and transmit the first audio signal as a call signal when the first audio signal is better than the second audio signal to the peer device, otherwise, transmit the second audio signal to the peer device as a call signal.

本发明的有益效果是:The beneficial effects of the present invention are:

上述方案,在移动终端的麦克风采集的语音信号质量较差时,通过将获取的扬声器处的语音信号发送给对端设备,以此解决了移动终端的麦克风存在发送声音偏小或无法发送声音,影响通话质量的问题,本发明实施例保证了用户的通话质量,提高了用户的使用体验效果。In the above solution, when the quality of the voice signal collected by the microphone of the mobile terminal is poor, the acquired voice signal at the loudspeaker is sent to the peer device, so as to solve the problem that the microphone of the mobile terminal has a small or incapable voice. As for the problem affecting the call quality, the embodiment of the present invention ensures the user's call quality and improves the user experience effect.

附图说明Description of drawings

图1表示本发明第一实施例的音频信号采集方法的流程示意图;Fig. 1 shows the schematic flow chart of the audio signal collection method of the first embodiment of the present invention;

图2表示本发明第二实施例的音频信号采集方法的流程示意图;Fig. 2 shows the schematic flow chart of the audio signal collection method of the second embodiment of the present invention;

图3表示本发明第二实施例的音频信号采集方法的详细应用流程示意图;Fig. 3 shows the detailed application flow diagram of the audio signal acquisition method of the second embodiment of the present invention;

图4表示本发明第三实施例的音频信号采集方法的流程示意图;Fig. 4 shows the schematic flow chart of the audio signal acquisition method of the third embodiment of the present invention;

图5表示本发明第三实施例的音频信号采集方法的详细应用流程示意图;Fig. 5 shows the detailed application flow diagram of the audio signal acquisition method of the third embodiment of the present invention;

图6表示本发明实施例的移动终端的内部电路连接示意图;FIG. 6 shows a schematic diagram of an internal circuit connection of a mobile terminal according to an embodiment of the present invention;

图7表示本发明第四实施例的移动终端的模块示意图一;FIG. 7 shows a first block diagram of a mobile terminal according to a fourth embodiment of the present invention;

图8表示本发明第四实施例的移动终端的模块示意图二;FIG. 8 shows a second block diagram of a mobile terminal according to a fourth embodiment of the present invention;

图9表示本发明第四实施例的移动终端的模块示意图三;FIG. 9 shows a third block diagram of a mobile terminal according to a fourth embodiment of the present invention;

图10为本发明第五实施例的移动终端的结构框图;FIG. 10 is a structural block diagram of a mobile terminal according to a fifth embodiment of the present invention;

图11为本发明第六实施例的移动终端的结构示意图。FIG. 11 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.

本发明针对现有的移动终端在用户使用不当时,存在麦克风发送声音偏小或无法发送声音的情况,影响用户使用体验的问题,提供一种音频信号采集方法及移动终端。The present invention aims at the problem that when the existing mobile terminal is used improperly by the user, the sound sent by the microphone is too small or the sound cannot be sent, which affects the user experience, and provides an audio signal collection method and a mobile terminal.

第一实施例first embodiment

如图1所示,本发明实施例的音频信号采集方法,应用于移动终端,所述移动终端包括扬声器和麦克风,其中,所述音频信号采集方法包括:As shown in FIG. 1, the audio signal collection method of the embodiment of the present invention is applied to a mobile terminal, and the mobile terminal includes a speaker and a microphone, wherein the audio signal collection method includes:

步骤11,在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号。Step 11, when the mobile terminal is making an audio call, respectively collect a first audio signal located at the speaker and a second audio signal located at the microphone.

需要说明的是,本实施例的使用环境为移动终端正在进行音频通话,且通话方式为采用听筒进行放音,此时扬声器不会被用来放音(即扬声器不会工作),因此可以在扬声器不工作的状态下,利用扬声器的膜片震动而采集语音信号,还需要说明的是,本发明实施例中,扬声器处的语音信号可以是其自身进行采集的,也可以是通过其他部件采集得到的。It should be noted that the use environment of this embodiment is that the mobile terminal is in an audio call, and the call mode is to use the earpiece to play the sound. At this time, the speaker will not be used to play the sound (that is, the speaker will not work), so you can When the speaker is not working, the diaphragm vibration of the speaker is used to collect the voice signal. It should also be noted that in the embodiment of the present invention, the voice signal at the speaker can be collected by itself, or it can be collected by other components. owned.

步骤12,将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。Step 12, compare the first audio signal with the second audio signal, and when the first audio signal is better than the second audio signal, transmit the first audio signal as a call signal to the opposite party Otherwise, transmit the second audio signal to the peer device as a call signal.

本实施例中通过提供两种语音信号的采集途径,将采集的两种语音信号进行比较,优先使用质量最优的语音信号传送给对端设备。In this embodiment, by providing two ways of collecting voice signals, the two collected voice signals are compared, and the voice signal with the best quality is preferentially used to transmit to the peer device.

上述方案,在移动终端的麦克风采集的语音信号质量较差时,通过将获取的扬声器处的语音信号发送给对端设备,以此解决了移动终端的麦克风存在发送声音偏小或无法发送声音,影响通话质量的问题,本发明实施例保证了用户的通话质量,提高了用户的使用体验效果。In the above solution, when the quality of the voice signal collected by the microphone of the mobile terminal is poor, the acquired voice signal at the loudspeaker is sent to the peer device, so as to solve the problem that the microphone of the mobile terminal has a small or incapable voice. As for the problem affecting the call quality, the embodiment of the present invention ensures the user's call quality and improves the user experience effect.

第二实施例second embodiment

如图2所示,本发明实施例的音频信号采集方法,应用于移动终端,所述移动终端包括扬声器和麦克风,其中,所述音频信号采集方法包括:As shown in FIG. 2, the audio signal collection method of the embodiment of the present invention is applied to a mobile terminal, and the mobile terminal includes a speaker and a microphone, wherein the audio signal collection method includes:

步骤21,在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号。Step 21, when the mobile terminal is making an audio call, respectively collect a first audio signal located at the speaker and a second audio signal located at the microphone.

步骤22,分别获取所述第一音频信号和所述第二音频信号的信号质量值。Step 22, acquiring signal quality values of the first audio signal and the second audio signal respectively.

需要说明的是,通常利用信号质量来进行信号好坏的判别,优选地本实施例中的信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值。It should be noted that signal quality is generally used to judge whether a signal is good or bad. Preferably, the signal quality value in this embodiment is the maximum amplitude value of the signal, the energy value of the signal, or the average amplitude value of the signal.

步骤23,将所述第一音频信号和所述第二音频信号的信号质量值进行比较,在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,确定所述第一音频信号优于所述第二音频信号。Step 23, comparing the signal quality values of the first audio signal and the second audio signal, and determining that the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal The first audio signal is better than the second audio signal.

该步骤中,在麦克风的音频信号的信号质量小于扬声器的音频信号的信号质量时,判断扬声器的音频信号优于麦克风的音频信号,在传送时,优先将扬声器的音频信号传送给对端设备。In this step, when the signal quality of the audio signal of the microphone is lower than that of the audio signal of the speaker, it is judged that the audio signal of the speaker is better than the audio signal of the microphone, and when transmitting, the audio signal of the speaker is preferentially transmitted to the peer device.

步骤24,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。Step 24, when the first audio signal is better than the second audio signal, transmit the first audio signal as a call signal to the peer device, otherwise, transmit the second audio signal as a call signal to the peer device Peer device.

本实施例中通过提供两种语音信号的采集途径,将采集的两种语音信号进行比较,优先使用质量最优的语音信号传送给对端设备。In this embodiment, by providing two ways of collecting voice signals, the two collected voice signals are compared, and the voice signal with the best quality is preferentially used to transmit to the peer device.

如图3所示,本发明实施例在具体应用时的详细流程为:As shown in Figure 3, the detailed flow of the embodiment of the present invention in specific application is as follows:

步骤31,首先用户使用移动终端建立通话。Step 31, first the user establishes a call using a mobile terminal.

步骤32,然后分别利用扬声器介质接口连接器(MIC)和麦克风采集通话的语音信号。Step 32, then use the speaker medium interface connector (MIC) and the microphone to collect the voice signal of the conversation.

步骤33,将采集到的语音信号上传至处理器,然后由处理器进行比较处理此处的处理可以包括:信号的增强处理、滤波处理、降噪处理等;Step 33, upload the collected voice signal to the processor, and then compare and process it by the processor. The processing here may include: signal enhancement processing, filtering processing, noise reduction processing, etc.;

步骤34,判断麦克风的信号(指信号的最大幅度值、能量值或者平均幅度值)是否大于或等于扬声器MIC的对应信号,若大于或等于,则判断麦克风没有被堵,执行步骤35,否则,判断麦克风被堵,执行步骤36。Step 34, determine whether the signal of the microphone (referring to the maximum amplitude value, energy value or average amplitude value of the signal) is greater than or equal to the corresponding signal of the loudspeaker MIC, if greater than or equal to, then determine that the microphone is not blocked, and perform step 35, otherwise, If it is judged that the microphone is blocked, go to step 36.

步骤35,使用麦克风的语音信号作为通话信号进行发送。Step 35, using the voice signal of the microphone to send as the call signal.

步骤36,使用扬声器MIC的语音信号作为通话信号进行发送。Step 36, using the voice signal of the speaker MIC to send as a call signal.

本实施例中,通过判断扬声器与麦克风输入的音频信号的信号质量值的大小来进行通话上行器件的选择,可以有效解决麦克风被堵的问题。In this embodiment, the communication uplink device is selected by judging the signal quality value of the audio signal input by the loudspeaker and the microphone, which can effectively solve the problem of the blocked microphone.

第三实施例third embodiment

如图4所示,本发明实施例的音频信号采集方法,应用于移动终端,所述移动终端包括扬声器和麦克风,其中,所述音频信号采集方法包括:As shown in FIG. 4, the audio signal acquisition method of the embodiment of the present invention is applied to a mobile terminal, and the mobile terminal includes a speaker and a microphone, wherein the audio signal acquisition method includes:

步骤41,在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号。Step 41: When the mobile terminal is making an audio call, respectively collect a first audio signal at the speaker and a second audio signal at the microphone.

步骤42,分别获取所述第一音频信号和所述第二音频信号的信号质量值。Step 42, acquiring signal quality values of the first audio signal and the second audio signal respectively.

需要说明的是,通常利用信号质量来进行信号好坏的判别,优选地本实施例中的信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值。It should be noted that signal quality is generally used to judge whether a signal is good or bad. Preferably, the signal quality value in this embodiment is the maximum amplitude value of the signal, the energy value of the signal, or the average amplitude value of the signal.

步骤43,将所述第一音频信号和所述第二音频信号的信号质量值进行比较,在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,获取所述第一音频信号的信号质量值与所述第二音频信号的信号质量值的差值;若所述差值大于或等于预设值,则确定所述第一音频信号优于所述第二音频信号。Step 43: Comparing the signal quality values of the first audio signal and the second audio signal, and obtaining the signal quality value of the second audio signal when the signal quality value of the second audio signal is smaller The difference between the signal quality value of the first audio signal and the signal quality value of the second audio signal; if the difference is greater than or equal to a preset value, it is determined that the first audio signal is better than the second audio signal audio signal.

需要说明的是,在麦克风没有被堵,只是因为麦克风距离用户出声部位较远便采用扬声器处音频信号进行发送,势必会影响通话的效果,为了避免发送信号的误切换,本实施例中,在麦克风处的音频信号小于扬声器处的音频信号时,还需要进一步判断是否是因为麦克风被堵而造成的音频信号的差异。It should be noted that when the microphone is not blocked, the audio signal at the speaker is used to send the microphone only because the microphone is far away from the user's voice output part, which will inevitably affect the effect of the call. In order to avoid false switching of the sending signal, in this embodiment, When the audio signal at the microphone is smaller than the audio signal at the speaker, it is necessary to further determine whether the audio signal difference is caused by the microphone being blocked.

步骤44,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。Step 44, when the first audio signal is better than the second audio signal, transmit the first audio signal as a call signal to the peer device, otherwise, transmit the second audio signal as a call signal to the peer device Peer device.

本实施例中,当麦克风处的音频信号小于扬声器处的音频信号,但二者相差在预设范围内,还是优先发送麦克风处采集的音频信号,不发送扬声器处的音频信号,以此保证了通话效果,避免了器件的误切换。In this embodiment, when the audio signal at the microphone is smaller than the audio signal at the loudspeaker, but the difference between the two is within a preset range, the audio signal collected at the microphone is sent preferentially, and the audio signal at the loudspeaker is not sent, thereby ensuring Call effect, avoiding the wrong switch of the device.

如图5所示,本发明实施例在具体应用时的详细流程为:As shown in Figure 5, the detailed process of the embodiment of the present invention in specific application is as follows:

步骤51,首先用户使用移动终端建立通话。Step 51, first the user establishes a call using a mobile terminal.

步骤52,然后扬声器MIC和麦克风采集通话的语音信号。Step 52, then the speaker MIC and the microphone collect the voice signal of the call.

步骤53,将采集到的语音信号进行上传至处理器,然后由处理进行比较处理;Step 53, uploading the collected voice signal to the processor, and then compare and process by processing;

步骤54,判断麦克风的信号(指信号的最大幅度值、能量值或者平均幅度值)是否大于或等于扬声器MIC的对应信号,若大于或等于,则判断麦克风没有被堵,执行步骤55;否则,执行步骤56。Step 54, determine whether the signal of the microphone (referring to the maximum amplitude value, energy value or average amplitude value of the signal) is greater than or equal to the corresponding signal of the loudspeaker MIC, if greater than or equal to, then determine that the microphone is not blocked, and perform step 55; otherwise, Go to step 56.

步骤55,使用麦克风的语音信号作为通话信号进行发送。Step 55, using the voice signal of the microphone to send as a call signal.

步骤56,判断扬声器MIC与麦克风信号的差值是否小于设定的阈值X,如果小于阈值X,说明麦克风没有被堵,只是麦克风距离人嘴的距离大于扬声器距离人嘴的距离,使得接收信号变小,但是为了得到更好的灵敏度及通话效果,需跳转到步骤55;否则,说明麦克风已经被堵,执行步骤57。Step 56, judge whether the difference between the loudspeaker MIC and the microphone signal is less than the set threshold X, if it is less than the threshold X, it means that the microphone is not blocked, but the distance between the microphone and the human mouth is greater than the distance between the loudspeaker and the human mouth, so that the received signal becomes Small, but in order to get better sensitivity and call effect, you need to skip to step 55; otherwise, it means that the microphone has been blocked, go to step 57.

步骤57,使用扬声器MIC的语音信号作为通话信号进行发送。Step 57, using the voice signal of the speaker MIC to send as a call signal.

本实施例中,增加了在麦克风实际并没有被堵,只是离人嘴的距离大于扬声器距离人嘴的情况时,不进行录入语音器件切换的功能,有效防止了器件的误切换,以此保证了较好的通话效果。In this embodiment, when the microphone is not actually blocked, but the distance from the mouth of the person is greater than the distance from the speaker to the mouth of the person, the function of not switching the input voice device is added, which effectively prevents the device from being switched by mistake, so as to ensure A better call effect.

图6为应用本发明实施例的音频信号采集方法的移动终端的内部电路连接示意图。如图6所示,本发明提供了一种提高通话质量的移动终端,DSP(数字信号处理器)连接Codec(编解码器)模块,Codec模块与PA(功率放大器)模块连接,PA模块连接到扬声器;其中,Codec模块还直接与麦克风连接,为了进行扬声器处声音的采集,PA模块还与ADC(模拟数字转换器)模块,ADC模块还连接到DSP。需要说明的是,本实施例的移动终端为侧出音的移动终端,在利用该移动终端进行手持通话时,扬声器并不会进行工作,当有语音信号时,扬声器的膜片会进行震动,膜片的震动带动线圈震动,产生语音信号,此语音信号在经过与麦克风通路同等增益的PA模块放大之后,在ADC模块进行ADC采样转换成数字信号,进入DSP之后与麦克风采集到的信号进行对比,然后根据对比的结果确定手持通话上行发送所要使用的电声器件。Fig. 6 is a schematic diagram of the internal circuit connection of the mobile terminal applying the audio signal collection method according to the embodiment of the present invention. As shown in Figure 6, the present invention provides a kind of mobile terminal that improves call quality, and DSP (digital signal processor) connects Codec (codec) module, and Codec module is connected with PA (power amplifier) module, and PA module is connected to Loudspeaker; Wherein, Codec module is also directly connected with microphone, in order to carry out the collection of the sound at loudspeaker place, PA module is also with ADC (analog-to-digital converter) module, and ADC module is also connected to DSP. It should be noted that the mobile terminal in this embodiment is a mobile terminal that emits sound from the side. When the mobile terminal is used for handheld calls, the speaker will not work. When there is a voice signal, the diaphragm of the speaker will vibrate. The vibration of the diaphragm drives the coil to vibrate to generate a voice signal. After the voice signal is amplified by the PA module with the same gain as the microphone channel, it is sampled by the ADC module and converted into a digital signal. After entering the DSP, it is compared with the signal collected by the microphone. , and then determine the electro-acoustic device to be used for the uplink transmission of the handheld call according to the comparison result.

本发明实施例的移动终端在手持通话时,在检测到麦克风进音的音量大于或等于扬声器进音的音量时,使用麦克风进行通话,当检测到麦克风的进音音量小于扬声器进音的音量时,使用扬声器进行通话;此种方式,不需要额外增加麦克风,不增加成本;可以实现无论左手拿还是右手拿移动终端都不会出现堵麦无法送音的情况;在单麦情况下不需要将麦克风的气密性做的略差,以此种方式保证了移动终端的通话质量,提升了用户的使用体验效果。The mobile terminal of the embodiment of the present invention uses the microphone to make a call when it detects that the sound volume of the microphone is greater than or equal to the volume of the sound input from the speaker when the mobile terminal is in a hand-held call. , use the loudspeaker to make a call; this method does not require additional microphones and does not increase costs; no matter whether the mobile terminal is held in the left hand or the right hand, there will be no microphone blocking and no audio transmission; in the case of a single microphone, there is no need to use the The airtightness of the microphone is slightly poor, which ensures the call quality of the mobile terminal and improves the user experience.

第四实施例Fourth embodiment

如图7所示,为本发明实施例的移动终端的结构示意图,下面就该图并结合图8和图9对基于该音频信号采集方法的移动终端进行具体说明。As shown in FIG. 7 , it is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. The mobile terminal based on the audio signal collection method will be specifically described below with reference to this figure and in conjunction with FIGS. 8 and 9 .

本发明第四实施例提供一种移动终端,包括扬声器和麦克风,其中,所述移动终端还包括:A fourth embodiment of the present invention provides a mobile terminal, including a speaker and a microphone, wherein the mobile terminal further includes:

第一获取模块71,用于在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;The first acquisition module 71 is configured to respectively collect a first audio signal at the speaker and a second audio signal at the microphone when the mobile terminal is conducting an audio call;

比较模块72,用于将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。A comparison module 72, configured to compare the first audio signal with the second audio signal, and use the first audio signal as a call signal when the first audio signal is better than the second audio signal Transmitting to the peer device, otherwise, transmitting the second audio signal to the peer device as a call signal.

可选地,所示移动终端,还包括:Optionally, the mobile terminal shown further includes:

第二获取模块73,用于分别获取所述第一音频信号和所述第二音频信号的信号质量值;The second acquiring module 73 is configured to respectively acquire signal quality values of the first audio signal and the second audio signal;

其中,所述信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值;Wherein, the signal quality value is the maximum amplitude value of the signal, the energy value of the signal or the average amplitude value of the signal;

所述比较模块72用于:The comparison module 72 is used for:

将所述第一音频信号和所述第二音频信号的信号质量值进行比较。The signal quality values of the first audio signal and the second audio signal are compared.

可选地,所述比较模块72包括:Optionally, the comparison module 72 includes:

第一确定单元721,用于在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,确定所述第一音频信号优于所述第二音频信号。The first determining unit 721 is configured to determine that the first audio signal is better than the second audio signal when the signal quality value of the second audio signal is lower than the signal quality value of the first audio signal.

可选地,所述比较模块72用于:Optionally, the comparison module 72 is used for:

获取单元722,用于在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,获取所述第一音频信号的信号质量值与所述第二音频信号的信号质量值的差值;An acquiring unit 722, configured to acquire the signal quality value of the first audio signal and the signal quality value of the second audio signal when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal difference in quality values;

第二确定单元723,用于若所述差值大于或等于预设值,则确定所述第一音频信号优于所述第二音频信号。The second determination unit 723 is configured to determine that the first audio signal is better than the second audio signal if the difference is greater than or equal to a preset value.

需要说明的是,该移动终端实施例是与上述音频信号采集方法相对应的移动终端,上述音频信号采集方法的所有实现方式均适用于该移动终端实施例中,也能达到相同的技术效果。It should be noted that this mobile terminal embodiment is a mobile terminal corresponding to the above-mentioned audio signal collection method, and all implementation modes of the above-mentioned audio signal collection method are applicable to this mobile terminal embodiment, and can also achieve the same technical effect.

第五实施例fifth embodiment

如图10所示,为本发明实施例的移动终端的结构框图。下面结合该图具体说明本发明的信息处理提醒方法的应用实体。As shown in FIG. 10 , it is a structural block diagram of a mobile terminal according to an embodiment of the present invention. The application entity of the information processing reminding method of the present invention will be described in detail below with reference to this figure.

如图10所示的移动终端1000包括:至少一个处理器1001、存储器1002、至少一个网络接口1004、用户接口1003和和音频组件1006。移动终端1000中的各个组件通过总线系统1005耦合在一起。可理解,总线系统1005用于实现这些组件之间的连接通信。总线系统1005除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图10中将各种总线都标为总线系统1005。The mobile terminal 1000 shown in FIG. 10 includes: at least one processor 1001 , a memory 1002 , at least one network interface 1004 , a user interface 1003 and an audio component 1006 . Various components in the mobile terminal 1000 are coupled together through the bus system 1005 . It can be understood that the bus system 1005 is used to realize connection and communication among these components. In addition to the data bus, the bus system 1005 also includes a power bus, a control bus and a status signal bus. However, the various buses are labeled as bus system 1005 in FIG. 10 for clarity of illustration.

其中,用户接口1003可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 1003 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.

可以理解,本发明实施例中的存储器1002可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double DataRate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本文描述的系统和方法的存储器1002旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 1002 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double DataRate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synch link DRAM, SLDRAM) And Direct Memory Bus Random Access Memory (Direct Rambus RAM, DRRAM). Memory 1002 of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器1002存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统10021和应用程序10022。In some implementations, the memory 1002 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 10021 and an application program 10022 .

其中,操作系统10021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序10022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序10022中。Among them, the operating system 10021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 10022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to realize various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 10022 .

音频组件1006主要包括ADSP以及相应的音频接口电路,主要实现音频的处理及音频的输入输出控制。The audio component 1006 mainly includes ADSP and corresponding audio interface circuit, which mainly realizes audio processing and audio input and output control.

在本发明实施例中,通过调用存储器1002存储的程序或指令,具体的可以是在应用程序10022中存储的程序或指令,处理器1001用于在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。In the embodiment of the present invention, by invoking the programs or instructions stored in the memory 1002, specifically, the programs or instructions stored in the application program 10022, the processor 1001 is used to respectively collect audio data located at the speaker when the mobile terminal is making an audio call. The first audio signal of the first audio signal and the second audio signal at the microphone place; the first audio signal is compared with the second audio signal, and when the first audio signal is better than the second audio signal, the The first audio signal is transmitted to the peer device as a call signal, otherwise, the second audio signal is transmitted to the peer device as a call signal.

上述本发明实施例揭示的方法可以应用于处理器1001中,或者由处理器1001实现。处理器1001可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器1001中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1001可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1002,处理器1001读取存储器1002中的信息,结合其硬件完成上述方法的步骤。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 1001 or implemented by the processor 1001 . The processor 1001 may be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 1001 or instructions in the form of software. The aforementioned processor 1001 may be a general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field Programmable Gate Array, FPGA) or other available Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 1002, and the processor 1001 reads the information in the memory 1002, and completes the steps of the above method in combination with its hardware.

可以理解的是,本文描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(ApplicationSpecific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable LogicDevice,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请所述功能的其它电子单元或其组合中。It should be understood that the embodiments described herein may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Device (Programmable Logic Device, PLD), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions described in this application or a combination thereof.

对于软件实现,可通过执行本文所述功能的模块(例如过程、函数等)来实现本文所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For a software implementation, the techniques described herein can be implemented through modules (eg, procedures, functions, and so on) that perform the functions described herein. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,该处理器1001用于:分别获取所述第一音频信号和所述第二音频信号的信号质量值;其中,所述信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值。Optionally, the processor 1001 is configured to: acquire signal quality values of the first audio signal and the second audio signal respectively; wherein, the signal quality values are a maximum amplitude value of a signal, an energy value of a signal, or The average amplitude value of the signal.

可选地,该处理器1001用于:将所述第一音频信号和所述第二音频信号的信号质量值进行比较。Optionally, the processor 1001 is configured to: compare the signal quality values of the first audio signal and the second audio signal.

可选地,该处理器1001还用于:在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,确定所述第一音频信号优于所述第二音频信号。Optionally, the processor 1001 is further configured to: determine that the first audio signal is better than the second audio signal when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal Signal.

可选地,该处理器1001还用于:在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,获取所述第一音频信号的信号质量值与所述第二音频信号的信号质量值的差值;若所述差值大于或等于预设值,则确定所述第一音频信号优于所述第二音频信号。Optionally, the processor 1001 is further configured to: when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal, obtain the difference between the signal quality value of the first audio signal and the A difference between signal quality values of the second audio signal; if the difference is greater than or equal to a preset value, it is determined that the first audio signal is better than the second audio signal.

移动终端1000能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 1000 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明实施例的移动终端,通过处理器1001在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备;以此保证了用户的通话质量,提高了用户的使用体验效果。In the mobile terminal according to the embodiment of the present invention, the processor 1001 collects the first audio signal at the speaker and the second audio signal at the microphone respectively when the mobile terminal is making an audio call; the first audio signal and the compare the second audio signal, and when the first audio signal is better than the second audio signal, transmit the first audio signal as a call signal to the peer device; otherwise, transmit the second audio signal as a The call signal is transmitted to the peer device; in this way, the user's call quality is guaranteed and the user's experience is improved.

第六实施例Sixth embodiment

图11是本发明实施例的移动终端的结构示意图。具体地,图11中的移动终端可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Fig. 11 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. Specifically, the mobile terminal in FIG. 11 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图11中的移动终端包括射频(Radio Frequency,RF)电路1111、存储器1120、输入单元1130、显示单元1140、处理器1150、音频电路1160、WiFi(Wireless Fidelity)模块1170和电源1180。The mobile terminal in FIG. 11 includes a radio frequency (Radio Frequency, RF) circuit 1111, a memory 1120, an input unit 1130, a display unit 1140, a processor 1150, an audio circuit 1160, a WiFi (Wireless Fidelity) module 1170, and a power supply 1180.

其中,输入单元1130可用于接收用户输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元1130可以包括触控面板1131。触控面板1131,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1131上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1131可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器1150,并能接收处理器1150发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1131。除了触控面板1131,输入单元1130还可以包括其他输入设备1132,其他输入设备1132可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 1130 can be used for receiving digital or character information input by the user, and generating signal input related to user setting and function control of the mobile terminal. Specifically, in the embodiment of the present invention, the input unit 1130 may include a touch panel 1131 . The touch panel 1131, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 1131 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 1131 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to to the processor 1150, and can receive and execute commands sent by the processor 1150. In addition, the touch panel 1131 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 1131, the input unit 1130 may also include other input devices 1132, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元1140可用于显示由用户输入的信息或提供给用户的信息以及移动终端的各种菜单界面。显示单元1140可包括显示面板1141,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1141。Wherein, the display unit 1140 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 1140 may include a display panel 1141, and optionally, the display panel 1141 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板1131可以覆盖显示面板1141,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器1150以确定触摸事件的类型,随后处理器1150根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 1131 can cover the display panel 1141 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 1150 to determine the type of the touch event, and then the processor 1150 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中处理器1150是移动终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器1121内的软件程序和/或模块,以及调用存储在第二存储器1122内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。可选的,处理器1150可包括一个或多个处理单元。Wherein the processor 1150 is the control center of the mobile terminal, utilizes various interfaces and lines to connect various parts of the entire mobile phone, and runs or executes software programs and/or modules stored in the first memory 1121, and calls stored in the second memory The data in 1122 executes various functions of the mobile terminal and processes data, so as to monitor the mobile terminal as a whole. Optionally, the processor 1150 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器1121内的软件程序和/或模块和/或该第二存储器1122内的数据,处理器1150用于在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。In the embodiment of the present invention, by calling the software programs and/or modules stored in the first memory 1121 and/or the data in the second memory 1122, the processor 1150 is used to respectively collect a first audio signal at the speaker and a second audio signal at the microphone; comparing the first audio signal to the second audio signal, where the first audio signal is superior to the second audio signal , transmit the first audio signal to the peer device as a call signal; otherwise, transmit the second audio signal to the peer device as a call signal.

可选地,处理器1150还用于:分别获取所述第一音频信号和所述第二音频信号的信号质量值;Optionally, the processor 1150 is further configured to: respectively acquire signal quality values of the first audio signal and the second audio signal;

其中,所述信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值。Wherein, the signal quality value is the maximum amplitude value of the signal, the energy value of the signal or the average amplitude value of the signal.

可选地,处理器1150还用于:将所述第一音频信号和所述第二音频信号的信号质量值进行比较。Optionally, the processor 1150 is further configured to: compare the signal quality values of the first audio signal and the second audio signal.

可选地,处理器1150还用于:在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,确定所述第一音频信号优于所述第二音频信号。Optionally, the processor 1150 is further configured to: when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal, determine that the first audio signal is better than the second audio signal .

可选地,处理器1150还用于:在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,获取所述第一音频信号的信号质量值与所述第二音频信号的信号质量值的差值;若所述差值大于或等于预设值,则确定所述第一音频信号优于所述第二音频信号。Optionally, the processor 1150 is further configured to: when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal, obtain the signal quality value of the first audio signal and the first audio signal The difference between the signal quality values of the two audio signals; if the difference is greater than or equal to a preset value, it is determined that the first audio signal is better than the second audio signal.

本发明实施例的移动终端能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal in the embodiment of the present invention can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明实施例的移动终端,通过处理器1150在移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备;以此保证了用户的通话质量,提高了用户的使用体验效果。In the mobile terminal according to the embodiment of the present invention, the processor 1150 collects the first audio signal at the speaker and the second audio signal at the microphone respectively when the mobile terminal is making an audio call; the first audio signal and the compare the second audio signal, and when the first audio signal is better than the second audio signal, transmit the first audio signal as a call signal to the peer device; otherwise, transmit the second audio signal as a The call signal is transmitted to the peer device; in this way, the user's call quality is guaranteed and the user's experience is improved.

本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.

本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices, or computer program products. Accordingly, embodiments of the invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

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

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

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

尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Having described preferred embodiments of embodiments of the present invention, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the embodiments of the present invention.

还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。It should also be noted that in this article, relational terms such as first and second etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that these entities or operations Any such actual relationship or order exists between. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements identified, or also include elements inherent in such a process, method, article, or end-equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。What has been described above is a preferred embodiment of the present invention. It should be pointed out that for those skilled in the art, some improvements and modifications can also be made without departing from the principles described in the present invention. within the scope of protection of the invention.

Claims (8)

Translated fromChinese
1.一种音频信号采集方法,应用于移动终端,所述移动终端包括扬声器和麦克风,其特征在于,包括:1. A method for collecting audio signals, applied to a mobile terminal, the mobile terminal comprising a loudspeaker and a microphone, characterized in that, comprising:在所述移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;When the mobile terminal is making an audio call, respectively collecting a first audio signal at the speaker and a second audio signal at the microphone;将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。comparing the first audio signal with the second audio signal, and when the first audio signal is better than the second audio signal, transmitting the first audio signal as a call signal to the peer device, Otherwise, transmit the second audio signal to the peer device as a call signal.2.根据权利要求1所述的音频信号采集方法,其特征在于,在所述将所述第一音频信号和所述第二音频信号进行比较的步骤之前,所述音频信号采集方法还包括:2. audio signal acquisition method according to claim 1, is characterized in that, before described described first audio signal and described second audio signal are compared step, described audio signal acquisition method also comprises:分别获取所述第一音频信号和所述第二音频信号的信号质量值;acquiring signal quality values of the first audio signal and the second audio signal respectively;其中,所述信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值;Wherein, the signal quality value is the maximum amplitude value of the signal, the energy value of the signal or the average amplitude value of the signal;所述将所述第一音频信号和所述第二音频信号进行比较的步骤包括:The step of comparing the first audio signal and the second audio signal comprises:将所述第一音频信号和所述第二音频信号的信号质量值进行比较。The signal quality values of the first audio signal and the second audio signal are compared.3.根据权利要求2所述的音频信号采集方法,其特征在于,所述将所述第一音频信号和所述第二音频信号的信号质量值进行比较的步骤包括:3. audio signal acquisition method according to claim 2, is characterized in that, the described step of comparing the signal quality value of described first audio signal and described second audio signal comprises:在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,确定所述第一音频信号优于所述第二音频信号。When the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal, it is determined that the first audio signal is better than the second audio signal.4.根据权利要求2所述的音频信号采集方法,其特征在于,所述将所述第一音频信号和所述第二音频信号的信号质量值进行比较的步骤包括:4. audio signal acquisition method according to claim 2, is characterized in that, the described step of comparing the signal quality value of described first audio signal and described second audio signal comprises:在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,获取所述第一音频信号的信号质量值与所述第二音频信号的信号质量值的差值;When the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal, obtain the difference between the signal quality value of the first audio signal and the signal quality value of the second audio signal;若所述差值大于或等于预设值,则确定所述第一音频信号优于所述第二音频信号。If the difference is greater than or equal to a preset value, it is determined that the first audio signal is better than the second audio signal.5.一种移动终端,包括扬声器和麦克风,其特征在于,所述移动终端还包括:5. A mobile terminal, comprising a loudspeaker and a microphone, characterized in that the mobile terminal also comprises:第一获取模块,用于在所述移动终端进行音频通话时,分别采集位于扬声器处的第一音频信号和位于麦克风处的第二音频信号;The first acquiring module is configured to respectively acquire the first audio signal at the speaker and the second audio signal at the microphone when the mobile terminal is making an audio call;比较模块,用于将所述第一音频信号和所述第二音频信号进行比较,在所述第一音频信号优于所述第二音频信号时,将所述第一音频信号作为通话信号传输给对端设备,否则,将所述第二音频信号作为通话信号传输给对端设备。A comparison module, configured to compare the first audio signal with the second audio signal, and transmit the first audio signal as a call signal when the first audio signal is better than the second audio signal to the peer device, otherwise, transmit the second audio signal to the peer device as a call signal.6.根据权利要求5所述的移动终端,其特征在于,还包括:6. The mobile terminal according to claim 5, further comprising:第二获取模块,用于分别获取所述第一音频信号和所述第二音频信号的信号质量值;A second acquiring module, configured to respectively acquire signal quality values of the first audio signal and the second audio signal;其中,所述信号质量值为信号的最大幅度值、信号的能量值或信号的平均幅度值;Wherein, the signal quality value is the maximum amplitude value of the signal, the energy value of the signal or the average amplitude value of the signal;所述比较模块用于:The compare module is used to:将所述第一音频信号和所述第二音频信号的信号质量值进行比较。The signal quality values of the first audio signal and the second audio signal are compared.7.根据权利要求6所述的移动终端,其特征在于,所述比较模块包括:7. The mobile terminal according to claim 6, wherein the comparison module comprises:第一确定单元,用于在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,确定所述第一音频信号优于所述第二音频信号。A first determining unit, configured to determine that the first audio signal is better than the second audio signal when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal.8.根据权利要求6所述的移动终端,其特征在于,所述比较模块用于:8. The mobile terminal according to claim 6, wherein the comparison module is used for:获取单元,用于在所述第二音频信号的信号质量值小于所述第一音频信号的信号质量值时,获取所述第一音频信号的信号质量值与所述第二音频信号的信号质量值的差值;An acquisition unit, configured to acquire the signal quality value of the first audio signal and the signal quality of the second audio signal when the signal quality value of the second audio signal is smaller than the signal quality value of the first audio signal value difference;第二确定单元,用于若所述差值大于或等于预设值,则确定所述第一音频信号优于所述第二音频信号。The second determination unit is configured to determine that the first audio signal is better than the second audio signal if the difference is greater than or equal to a preset value.
CN201610616291.6A2016-07-292016-07-29A kind of audio signal sample method and mobile terminalPendingCN106255000A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610616291.6ACN106255000A (en)2016-07-292016-07-29A kind of audio signal sample method and mobile terminal

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610616291.6ACN106255000A (en)2016-07-292016-07-29A kind of audio signal sample method and mobile terminal

Publications (1)

Publication NumberPublication Date
CN106255000Atrue CN106255000A (en)2016-12-21

Family

ID=57606897

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610616291.6APendingCN106255000A (en)2016-07-292016-07-29A kind of audio signal sample method and mobile terminal

Country Status (1)

CountryLink
CN (1)CN106255000A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106658331A (en)*2016-12-302017-05-10维沃移动通信有限公司Loudspeaker detection method and mobile terminal
CN108076226A (en)*2017-12-222018-05-25广东欧珀移动通信有限公司Method for adjusting call quality, mobile terminal and storage medium
CN108521501A (en)*2018-03-142018-09-11维沃移动通信有限公司 Voice input method and mobile terminal
CN110225195A (en)*2019-05-302019-09-10维沃移动通信有限公司A kind of audio communication method and terminal
CN111107296A (en)*2019-11-262020-05-05视联动力信息技术股份有限公司Audio data acquisition method and device, electronic equipment and readable storage medium
CN111863032A (en)*2020-06-122020-10-30随锐科技集团股份有限公司 Preferred method and system for audio collection device, computer readable storage medium
WO2020238703A1 (en)*2019-05-282020-12-03晶晨半导体(上海)股份有限公司Method and device for obtaining voice signals
CN112037825A (en)*2020-08-102020-12-04北京小米松果电子有限公司Audio signal processing method and device and storage medium
WO2020244402A1 (en)*2019-06-032020-12-10清华大学Speech interaction wakeup electronic device and method based on microphone signal, and medium
CN112908350A (en)*2021-01-292021-06-04展讯通信(上海)有限公司Audio processing method, communication device, chip and module equipment thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2009267877A (en)*2008-04-252009-11-12Kyocera CorpPortable telephone
CN101911723A (en)*2008-01-292010-12-08高通股份有限公司By between from the signal of a plurality of microphones, selecting to improve sound quality intelligently
CN103841491A (en)*2012-11-082014-06-04Dsp集团有限公司Adaptive system for managing a plurality of microphones and speakers
CN104380698A (en)*2014-04-102015-02-25华为终端有限公司 A communication device and a switching method and device applied to the communication device
CN204810352U (en)*2015-04-222015-11-25惠州Tcl移动通信有限公司Hand -held type communication device with multi -direction conversation function
CN105260159A (en)*2015-09-222016-01-20广东欧珀移动通信有限公司 An audio playback method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101911723A (en)*2008-01-292010-12-08高通股份有限公司By between from the signal of a plurality of microphones, selecting to improve sound quality intelligently
JP2009267877A (en)*2008-04-252009-11-12Kyocera CorpPortable telephone
CN103841491A (en)*2012-11-082014-06-04Dsp集团有限公司Adaptive system for managing a plurality of microphones and speakers
CN104380698A (en)*2014-04-102015-02-25华为终端有限公司 A communication device and a switching method and device applied to the communication device
CN204810352U (en)*2015-04-222015-11-25惠州Tcl移动通信有限公司Hand -held type communication device with multi -direction conversation function
CN105260159A (en)*2015-09-222016-01-20广东欧珀移动通信有限公司 An audio playback method and device

Cited By (14)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN106658331A (en)*2016-12-302017-05-10维沃移动通信有限公司Loudspeaker detection method and mobile terminal
CN108076226A (en)*2017-12-222018-05-25广东欧珀移动通信有限公司Method for adjusting call quality, mobile terminal and storage medium
CN108076226B (en)*2017-12-222020-08-21Oppo广东移动通信有限公司Method for adjusting call quality, mobile terminal and storage medium
CN108521501A (en)*2018-03-142018-09-11维沃移动通信有限公司 Voice input method and mobile terminal
CN108521501B (en)*2018-03-142021-01-08维沃移动通信有限公司Voice input method, mobile terminal and computer readable storage medium
WO2020238703A1 (en)*2019-05-282020-12-03晶晨半导体(上海)股份有限公司Method and device for obtaining voice signals
CN110225195A (en)*2019-05-302019-09-10维沃移动通信有限公司A kind of audio communication method and terminal
WO2020244402A1 (en)*2019-06-032020-12-10清华大学Speech interaction wakeup electronic device and method based on microphone signal, and medium
CN111107296A (en)*2019-11-262020-05-05视联动力信息技术股份有限公司Audio data acquisition method and device, electronic equipment and readable storage medium
CN111863032A (en)*2020-06-122020-10-30随锐科技集团股份有限公司 Preferred method and system for audio collection device, computer readable storage medium
CN112037825A (en)*2020-08-102020-12-04北京小米松果电子有限公司Audio signal processing method and device and storage medium
CN112037825B (en)*2020-08-102022-09-27北京小米松果电子有限公司Audio signal processing method and device and storage medium
CN112908350A (en)*2021-01-292021-06-04展讯通信(上海)有限公司Audio processing method, communication device, chip and module equipment thereof
CN112908350B (en)*2021-01-292022-08-26展讯通信(上海)有限公司Audio processing method, communication device, chip and module equipment thereof

Similar Documents

PublicationPublication DateTitle
CN106255000A (en)A kind of audio signal sample method and mobile terminal
CN106357871A (en)Voice amplifying method and mobile terminal
CN107071119B (en) A sound cancellation method and mobile terminal
CN107369459A (en)A kind of audio-frequency processing method and mobile terminal
CN107623776A (en) A volume control method, system and mobile terminal
CN106331371A (en) A volume adjustment method and mobile terminal
CN107071174B (en)A kind of method of speech processing and mobile terminal
CN103634717B (en)A kind of method, device and the terminal device of the control of utilization earphone
CN106686238A (en) Method for setting terminal antenna transmit power and terminal
CN107197096A (en)A kind of method of adjustment of incoming ring tone, device and mobile terminal
CN107506167A (en)Method for controlling volume, device and the storage medium and mobile terminal of mobile terminal
CN107278380A (en) Method for connecting bluetooth device and terminal device
CN107819922B (en) A relay adjustment method for wireless earphones, wireless earphones and mobile terminal
CN106205580A (en)A kind of audio data processing method and terminal
CN107743279A (en) Noise reduction method for earphone, earphone and mobile terminal
CN106101409A (en)A kind of mobile terminal and control method
CN107197090A (en)The method of reseptance and mobile terminal of a kind of voice signal
CN106714038A (en)Sound loudness control method and mobile terminal
CN107690032B (en)Call control method and mobile terminal
CN107277209A (en)One kind call method of adjustment and mobile terminal
CN106254694A (en)A kind of method of incoming call blocking, mobile terminal and core net
CN106453951A (en)Voice control method for call, and mobile terminal
CN106686249B (en)Voice communication method and mobile terminal
CN106803857A (en)A kind of audio frequency transmission method and mobile terminal based on bone-conduction speaker
CN106210344A (en)A kind of call mode method to set up and mobile terminal

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication

Application publication date:20161221

RJ01Rejection of invention patent application after publication

[8]ページ先頭

©2009-2025 Movatter.jp