[go: up one dir, main page]

CN108040313A - A kind of play parameter control method and electronic equipment - Google Patents

A kind of play parameter control method and electronic equipment Download PDF

Info

Publication number
CN108040313A
CN108040313A CN201711234683.7A CN201711234683A CN108040313A CN 108040313 A CN108040313 A CN 108040313A CN 201711234683 A CN201711234683 A CN 201711234683A CN 108040313 A CN108040313 A CN 108040313A
Authority
CN
China
Prior art keywords
loudspeaker
angle
play
split
state
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
CN201711234683.7A
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 Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711234683.7A priority Critical patent/CN108040313A/en
Publication of CN108040313A publication Critical patent/CN108040313A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/02Spatial or constructional arrangements of loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/22Arrangements for obtaining desired frequency or directional characteristics for obtaining desired frequency characteristic only 
    • H04R1/24Structural combinations of separate transducers or of two parts of the same transducer and responsive respectively to two or more frequency ranges
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/20Arrangements for obtaining desired frequency or directional characteristics
    • H04R1/32Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only
    • H04R1/40Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers
    • H04R1/403Arrangements for obtaining desired frequency or directional characteristics for obtaining desired directional characteristic only by combining a number of identical transducers loud-speakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2205/00Details of stereophonic arrangements covered by H04R5/00 but not provided for in any of its subgroups
    • H04R2205/024Positioning of loudspeaker enclosures for spatial sound reproduction

Landscapes

  • Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of play parameter control method and electronic equipment, it is related to mobile communication technology field, the electronic equipment includes the first split and the second split of foldable connection, and first split is equipped with the first loudspeaker, second split is equipped with the second loudspeaker, the described method includes:Obtain the angle and the working status of first loudspeaker and the second loudspeaker between first split and second split;According to the angle and the working status of first loudspeaker and the second loudspeaker, the play parameter of first loudspeaker and the second loudspeaker is controlled respectively.The present invention solves the problems, such as that the audio playing function of current electronic equipment is more single.

Description

一种播放参数控制方法及电子设备A playback parameter control method and electronic equipment

技术领域technical field

本发明实施例涉及移动通信技术领域,尤其涉及一种播放参数控制方法及电子设备。The embodiments of the present invention relate to the technical field of mobile communication, and in particular, to a method for controlling playback parameters and an electronic device.

背景技术Background technique

随着移动通信技术的迅速发展,以智能手机为首的智能电子设备已成为人们在通讯、娱乐等方面不可或缺的工具,用户对电子设备的功能要求也越来越高。然而,目前的电子设备的音频播放功能较为单一,比如通过扬声器播放音频时音量不够大,没有立体声效果、低频不足等,难以提升用户的使用体验。With the rapid development of mobile communication technology, smart electronic devices led by smartphones have become an indispensable tool for people in communication and entertainment, and users have higher and higher requirements for the functions of electronic devices. However, the audio playback function of the current electronic equipment is relatively simple, for example, the volume of the audio playback through the speaker is not loud enough, there is no stereo effect, and the low frequency is insufficient, etc., which makes it difficult to improve the user experience.

发明内容Contents of the invention

本发明提供了一种播放参数控制方法及移动终端,其目的是为了解决目前的电子设备的音频播放功能较为单一的问题。The present invention provides a playback parameter control method and a mobile terminal, the purpose of which is to solve the problem that the audio playback function of the current electronic equipment is relatively single.

为了解决上述技术问题,本发明是这样实现的:一种播放参数控制方法,应用于可折叠的电子设备,所述电子设备包括可折叠连接的第一分体和第二分体,所述第一分体设有第一扬声器,第二分体设有第二扬声器,所述方法包括:In order to solve the above technical problems, the present invention is implemented as follows: a playback parameter control method applied to a foldable electronic device, the electronic device includes a foldable connected first split body and a second split body, the first split body One split body is provided with a first loudspeaker, and the second split body is provided with a second loudspeaker, and the method includes:

获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态;Obtaining the angle between the first split body and the second split body and the working status of the first loudspeaker and the second loudspeaker;

根据所述角度以及所述第一扬声器和第二扬声器的工作状态,分别控制所述第一扬声器和第二扬声器的播放参数。According to the angle and the working states of the first speaker and the second speaker, respectively control the playing parameters of the first speaker and the second speaker.

第一方面,本发明的实施例还提供了一种电子设备,所述电子设备包括可折叠连接的第一分体和第二分体,所述第一分体设有第一扬声器,第二分体设有第二扬声器,所述电子设备包括:In the first aspect, the embodiment of the present invention also provides an electronic device, the electronic device includes a first split body and a second split body that are foldably connected, the first split body is provided with a first speaker, and the second split body The split body is provided with a second speaker, and the electronic equipment includes:

获取模块,用于获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态;An acquisition module, configured to acquire the angle between the first split body and the second split body and the working status of the first loudspeaker and the second loudspeaker;

控制模块,用于根据所述角度以及所述第一扬声器和第二扬声器的工作状态,分别控制所述第一扬声器和第二扬声器的播放参数。The control module is configured to control the playing parameters of the first speaker and the second speaker respectively according to the angle and the working states of the first speaker and the second speaker.

第二方面,本发明的实施例还提供了一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现上述播放参数控制方法中的步骤。In the second aspect, the embodiment of the present invention also provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the above-mentioned playback parameter control is realized. steps in the method.

第三方面,本发明的实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述播放参数控制方法中的步骤。In a third aspect, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above playback parameter control method are realized.

在本发明的实施例中,通过获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态,根据所述角度以及工作状态,分别控制所述第一扬声器和第二扬声器的播放参数,实现了根据电子设备的不同使用场景,调整播放参数,提升播放效果。In an embodiment of the present invention, by acquiring the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker, according to the angle and the working state, respectively The playback parameters of the first speaker and the second speaker are controlled, so that the playback parameters can be adjusted according to different usage scenarios of the electronic device, and the playback effect can be improved.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1表示本发明实施例提供的播放参数控制方法的流程图;Fig. 1 represents the flowchart of the playing parameter control method that the embodiment of the present invention provides;

图2表示本发明实施例提供的可折叠电子设备的示意图;FIG. 2 shows a schematic diagram of a foldable electronic device provided by an embodiment of the present invention;

图3表示本发明的第一示例提供的电子设备的框图;Fig. 3 represents the block diagram of the electronic equipment that the first example of the present invention provides;

图4表示本发明的第二示例提供的电子设备的框图;Fig. 4 represents the block diagram of the electronic equipment that the second example of the present invention provides;

图5表示本发明的实施例提供的电子设备的框图之一;Fig. 5 represents one of the block diagrams of the electronic equipment provided by the embodiment of the present invention;

图6表示本发明的实施例提供的电子设备的框图之二;FIG. 6 shows the second block diagram of the electronic device provided by the embodiment of the present invention;

图7表示本发明的实施例提供的移动终端的框图。Fig. 7 shows a block diagram of a mobile terminal provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should be understood that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present invention. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.

在本发明的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the order of execution of each process should be determined by its functions and internal logic, rather than implementing the present invention. The implementation of the examples constitutes no limitation.

参见图1,本发明实施例提供了一种播放参数控制方法,应用于可折叠的电子设备,所述电子设备包括可折叠连接的第一分体和第二分体,所述第一分体设有第一扬声器,第二分体设有第二扬声器,所述方法包括:Referring to FIG. 1 , an embodiment of the present invention provides a playback parameter control method, which is applied to a foldable electronic device, and the electronic device includes a first split body and a second split body that are foldable and connected, and the first split body A first loudspeaker is provided, and a second loudspeaker is provided in the second split body, and the method includes:

步骤101,获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态。Step 101, acquiring the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker.

其中,第一分体和第二分体构成可折叠电子设备的两部分,第一分体和第二分体的角度即以可折叠电子设备为轴,第一分体所在平面和第二分体所在平面之间的角度。Among them, the first split body and the second split body constitute two parts of the foldable electronic device, the angle of the first split body and the second split body is the foldable electronic device as the axis, the plane where the first split body is located and the second split body The angle between the planes on which the body lies.

第一扬声器和第二扬声器的工作状态包括语音通话状态、播放音频文件等状态。The working states of the first speaker and the second speaker include a voice call state, an audio file playing state, and the like.

参见图2,图2所示的可折叠电子设备,包括第一分体P1、第二分体P2,其中,第一分体P1上设置有第一扬声器D1,第二分体P2上设置有第二扬声器D2。其中,L为该电子设备的折叠轴,θ为第一分体P1与第二分体P2之间的角度。Referring to Figure 2, the foldable electronic device shown in Figure 2 includes a first split body P1 and a second split body P2, wherein the first split body P1 is provided with a first speaker D1, and the second split body P2 is provided with a Second speaker D2. Wherein, L is the folding axis of the electronic device, and θ is the angle between the first split body P1 and the second split body P2.

步骤102,Step 102,

根据所述角度以及所述第一扬声器和第二扬声器的工作状态,分别控制所述第一扬声器和第二扬声器的播放参数。According to the angle and the working states of the first speaker and the second speaker, respectively control the playing parameters of the first speaker and the second speaker.

其中,根据第一分体与所述第二分体之间的角度,确定电子设备的第一分体与第二分体之间处于打开状态或闭合状态;根据打开状态和闭合状态以及工作状态,控制所述第一扬声器和第二扬声器的播放参数,播放参数可以包括声道信号、频率信号以及音量信号等。Wherein, according to the angle between the first split body and the second split body, it is determined that the first split body and the second split body of the electronic device are in an open state or a closed state; according to the open state, the closed state and the working state , controlling playback parameters of the first speaker and the second speaker, where the playback parameters may include a channel signal, a frequency signal, a volume signal, and the like.

本发明的上述实施例中,通过获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态,根据所述角度以及工作状态,分别控制所述第一扬声器和第二扬声器的播放参数,实现了根据电子设备的不同使用场景,调整播放参数,提升播放效果。In the above embodiments of the present invention, by acquiring the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker, according to the angle and the working state, respectively The playback parameters of the first speaker and the second speaker are controlled, so that the playback parameters can be adjusted according to different usage scenarios of the electronic device, and the playback effect can be improved.

优选地,步骤102,包括:Preferably, step 102 includes:

当所述第一扬声器和所述第二扬声器均为播放音频文件的工作状态时,根据所述角度确定所述第一分体和所述第二分体的折叠状态,其中,所述折叠状态包括打开状态和闭合状态;When both the first speaker and the second speaker are in the working state of playing audio files, the folded state of the first split body and the second split body is determined according to the angle, wherein the folded state Including open state and closed state;

根据所述折叠状态,分别控制所述第一扬声器和第二扬声器的播放参数。According to the folding state, respectively control the playing parameters of the first speaker and the second speaker.

其中,当所述第一扬声器和所述第二扬声器均为扬声器的工作状态为播放音频文件时,首先确定第一分体和第二分体的折叠状态,并根据不同的折叠状态,控制第一扬声器和第二扬声器的播放参数,其中,所述折叠状态包括打开状态和闭合状态。Wherein, when the working state of both the first speaker and the second speaker is to play an audio file, first determine the folding state of the first split body and the second split body, and control the second split body according to different folding states. Playing parameters of a speaker and a second speaker, wherein the folding state includes an open state and a closed state.

进一步地,所述根据所述折叠状态,分别控制所述第一扬声器和第二扬声器的播放参数的步骤,包括:Further, the step of separately controlling the playback parameters of the first speaker and the second speaker according to the folding state includes:

当所述折叠状态为打开状态时,根据所述角度与声道之间的第一预设关系,分别控制所述第一扬声器和所述第二扬声器播放音频文件的声道。When the folded state is the open state, according to the first preset relationship between the angle and the sound channel, respectively control the first speaker and the second speaker to play the sound channel of the audio file.

其中,当电子设备的第一分体与第二分体处于打开状态时,两个扬声器之间形成一段距离,则分别控制所述第一扬声器和第二扬声器的声道,比如控制两个扬声器分别播放不同的声道信号,以达到立体声的播放效果,在播放多媒体文件时,实现立体声播放效果,提升用户使用体验。Wherein, when the first split body and the second split body of the electronic device are in an open state, a distance is formed between the two speakers, and the channels of the first loudspeaker and the second loudspeaker are respectively controlled, such as controlling two loudspeakers Different channel signals are played separately to achieve a stereo playback effect. When playing multimedia files, a stereo playback effect is achieved to improve user experience.

具体地,所述根据所述角度与声道之间的第一预设关系,分别控制所述第一扬声器和所述第二扬声器播放音频文件的声道的步骤,包括:Specifically, the step of respectively controlling the first speaker and the second speaker to play the channel of the audio file according to the first preset relationship between the angle and the channel includes:

若所述角度大于第一预设角度值,控制所述第一扬声器播放所述音频文件的左声道信号以及控制所述第二扬声器播放所述音频文件的右声道信号;If the angle is greater than the first preset angle value, control the first speaker to play the left channel signal of the audio file and control the second speaker to play the right channel signal of the audio file;

若所述角度小于第二预设角度值时,控制所述第一扬声器和所述第二扬声器分别播放所述音频文件的左右声道混合信号;If the angle is less than a second preset angle value, control the first speaker and the second speaker to respectively play the left and right channel mixed signals of the audio file;

其中,所述第一预设角度值大于所述第二预设角度值。Wherein, the first preset angle value is greater than the second preset angle value.

其中,当角度大于第一预设角度值,表明两个分体之间距离较大,则可控制所述第一扬声器播放所述音频文件的左声道信号,控制所述第二扬声器播放所述音频文件的右声道信号,或控制所述第二扬声器播放所述音频文件的左声道信号,控制所述第一扬声器播放所述音频文件的右声道信号,以实现立体声效果。Wherein, when the angle is greater than the first preset angle value, indicating that the distance between the two splits is relatively large, the first speaker can be controlled to play the left channel signal of the audio file, and the second speaker can be controlled to play the left channel signal of the audio file. the right channel signal of the audio file, or control the second speaker to play the left channel signal of the audio file, and control the first speaker to play the right channel signal of the audio file, so as to achieve a stereo effect.

当两个分体之间距离较小,即开启的角度较小,角度小于第二预设角度值时,控制所述第一扬声器和所述第二扬声器分别播放所述音频文件的左右声道混合信号,以增强输出音量。When the distance between the two split bodies is small, that is, the opening angle is small, and the angle is smaller than the second preset angle value, control the first speaker and the second speaker to play the left and right channels of the audio file respectively Mixes signals to boost output volume.

作为第一示例,参见图2,图2所示的电子设备具备折叠功能,两个扬声器(D1和D2)设置在折叠轴L的两边,在播放音乐的过程中,当折叠轴L打开的角度大于θ1时,两个扬声器分别输出左右声道的信号,此时变为立体声输出;当折叠轴L打开的角度小于θ2时,两个扬声器输出左右声道混合信号,以增强输出音量。参见图3,此电子设备300包括如下三个模块:As a first example, referring to FIG. 2, the electronic device shown in FIG. 2 has a folding function, and two speakers (D1 and D2) are arranged on both sides of the folding axis L. During music playing, when the folding axis L is opened at an angle When it is greater than θ1, the two speakers output the signals of the left and right channels respectively, which becomes stereo output at this time; when the opening angle of the folding axis L is less than θ2, the two speakers output the mixed signals of the left and right channels to enhance the output volume. Referring to Fig. 3, this electronic device 300 includes the following three modules:

音乐播放模块301,此模块使电子设备进入音乐播放模式;Music playing module 301, this module makes the electronic device enter the music playing mode;

角度判断模块302,可在第一分体P1放置霍尔传感器H1,在第二分体P2放置磁体结构H2,当折叠轴L打开的角度不同,霍尔传感器H1产生的电压不同。通过电子设备上面的霍尔传感器H1输出的电压不同计算出终端折叠的角度,并根据角度与预设的角度θ1和θ2进行比较。The angle judging module 302 can place a Hall sensor H1 on the first split body P1 and a magnet structure H2 on the second split body P2. When the opening angle of the folding axis L is different, the voltage generated by the Hall sensor H1 is different. The terminal folding angle is calculated from the voltage output by the Hall sensor H1 on the electronic device, and compared with the preset angles θ1 and θ2 according to the angle.

参数启动模块303,根据比较的结果控制两个扬声器输出不同参数,从而实现对两个扬声器输出声音的控制,以达到预期的声音输出需求。The parameter start module 303 controls the two speakers to output different parameters according to the comparison result, so as to realize the control of the output sound of the two speakers, so as to meet the expected sound output requirement.

优选地,所述根据所述折叠状态,分别控制所述第一扬声器和第二扬声器的播放参数的步骤,包括:Preferably, the step of separately controlling the playback parameters of the first speaker and the second speaker according to the folded state includes:

当所述折叠状态为闭合状态时,控制所述第一扬声器播放所述音频文件的低频信号,并控制所述第二扬声器播放所述音频文件的高频信号。When the folded state is closed, the first speaker is controlled to play the low frequency signal of the audio file, and the second speaker is controlled to play the high frequency signal of the audio file.

其中,当第一分体与第二分体之间处于闭合状态(角度小于一预设关闭角度值),则控制所述第一扬声器播放所述音频文件的低频信号,并控制所述第二扬声器播放所述音频文件的高频信号,或控制所述第二扬声器播放所述音频文件的低频信号,并控制所述第一扬声器播放所述音频文件的高频信号,以降低信号的失真度。Wherein, when the first split body and the second split body are in a closed state (the angle is less than a preset closed angle value), the first speaker is controlled to play the low-frequency signal of the audio file, and the second split body is controlled to The speaker plays the high-frequency signal of the audio file, or controls the second speaker to play the low-frequency signal of the audio file, and controls the first speaker to play the high-frequency signal of the audio file, so as to reduce the distortion of the signal .

优选地,所述方法还包括:Preferably, the method also includes:

当所述第一扬声器和第二扬声器为语音通话的工作状态时,若检测到所述第一扬声器和第二扬声器的功放均处于使能状态,则控制所述第一扬声器和第二扬声器的播放参数相同。When the first loudspeaker and the second loudspeaker are in the working state of voice communication, if it is detected that the power amplifiers of the first loudspeaker and the second loudspeaker are in an enabled state, then control the The playback parameters are the same.

其中,若电子设备的扬声器处于语音通话状态,且处于免提通话,即扬声器的功放处于使能状态,则控制所述第一扬声器和第二扬声器的播放参数相同。Wherein, if the speaker of the electronic device is in a voice call state and is in a hands-free call, that is, the power amplifier of the speaker is in an enabled state, control the playing parameters of the first speaker and the second speaker to be the same.

优选地,所述第一分体设置有霍尔传感器,所述第二分体设置有磁体结构;Preferably, the first split body is provided with a Hall sensor, and the second split body is provided with a magnet structure;

所述获取所述第一分体与所述第二分体之间的角度的步骤,包括:The step of obtaining the angle between the first split body and the second split body includes:

获取所述霍尔传感器所输出的电压;Obtain the voltage output by the Hall sensor;

根据预先设定的所述霍尔传感器的电压与角度之间的对应关系,确定所述第一分体与所述第二分体之间的角度。The angle between the first split body and the second split body is determined according to the preset correspondence between the voltage of the Hall sensor and the angle.

其中,参见图2可在第一分体上设置霍尔传感器H1,在第二分体上设置磁体结构H2,当折叠轴打开的角度不同,霍尔传感器H1产生的电压不同,根据预先设定的所述霍尔传感器H1的电压与角度之间的对应关系,确定所述第一分体与所述第二分体之间的角度。Wherein, referring to Fig. 2, a Hall sensor H1 can be installed on the first split body, and a magnet structure H2 can be set on the second split body. When the opening angle of the folding shaft is different, the voltage generated by the Hall sensor H1 is different. The corresponding relationship between the voltage of the Hall sensor H1 and the angle determines the angle between the first split body and the second split body.

作为第二示例,参见图4,图4所示的电子设备具备折叠功能,两个扬声器(D1和D2)设置在折叠轴L的两边,在播放音乐的过程中,当折叠轴L打开的角度大于θ1时,两个扬声器分别输出左右声道的信号,此时变为立体声输出;当折叠轴L打开的角度小于θ2时,两个扬声器输出左右声道混合信号,以增强输出音量。As a second example, referring to FIG. 4, the electronic device shown in FIG. 4 has a folding function. Two speakers (D1 and D2) are arranged on both sides of the folding axis L. During music playback, when the folding axis L is opened at an angle When it is greater than θ1, the two speakers output the signals of the left and right channels respectively, which becomes stereo output at this time; when the opening angle of the folding axis L is less than θ2, the two speakers output the mixed signals of the left and right channels to enhance the output volume.

同样是在折叠轴L闭合的状态,根据电子设备不同的应用场景,设定两个扬声器输出不同的声音,比如,在免提通话时,需要声音足够大;在外放音乐时,需要声音更悦耳动听等。在手机中预置不同的参数A、参数B、参数C等,分别对应不同的应用场景A、场景B、场景C等。当电子设备处于不同的场景时,去调用不同的参数。参见图4,电子设备400包括以下模块:Also in the closed state of the folding axis L, set the two speakers to output different sounds according to different application scenarios of the electronic device. For example, when talking hands-free, the sound needs to be loud enough; when playing music outside, the sound needs to be more pleasing to the ear Beautiful and so on. Different parameters A, B, C, etc. are preset in the mobile phone, corresponding to different application scenarios A, B, C, etc. respectively. When the electronic device is in different scenes, different parameters are called. Referring to FIG. 4, the electronic device 400 includes the following modules:

检测模块401,通过监控扬声器功放的状态来判断两个扬声器的功放是否处于工作状态;The detection module 401 judges whether the power amplifiers of the two speakers are in working condition by monitoring the state of the speaker power amplifiers;

场景判断模块402,在扬声器工作时,用于判断电子设备处于工作的状态,如是在通话场景还是在播放音乐场景或其他场景;The scene judging module 402 is used to judge whether the electronic device is in a working state when the speaker is working, such as in a call scene or playing a music scene or other scenes;

角度比较模块403,通过电子设备上面的霍尔传感器输出的电压不同计算出终端折叠的角度,并根据角度与预设的角度θ1和θ2进行比较;The angle comparison module 403 calculates the terminal folding angle through the different output voltages of the Hall sensor on the electronic device, and compares the angle with the preset angles θ1 and θ2;

参数启动模块404,根据比较的结果启动电子设备预设的不同参数,从而实现对两个扬声器输出声音的控制,以达到预期的声音输出需求。The parameter activation module 404 activates different preset parameters of the electronic device according to the comparison result, so as to control the output sound of the two speakers, so as to meet the expected sound output requirement.

当电子设备400在闭合状态(即闭合状态),且检测到电子设备400处于免提通话时,为给用户提供更大的音量,则对应的参数为两个扬声器输出同样的播放参数的信号;When the electronic device 400 is in the closed state (i.e. the closed state), and it is detected that the electronic device 400 is in a hands-free call, in order to provide the user with a larger volume, the corresponding parameter is that the two loudspeakers output the same playback parameter signal;

当电子设备400在闭合状态,且检测到电子设备400处于播放音乐时,为给用户提供更悦耳的声音效果,则可以将其中一个扬声器播放低频信号,另外一个扬声器播放高频信号,同时信号的失真度控制到更低的程度。When the electronic device 400 is in the closed state and it is detected that the electronic device 400 is playing music, in order to provide the user with a more pleasing sound effect, one of the speakers can play a low-frequency signal, and the other speaker can play a high-frequency signal. Distortion is controlled to a lower level.

当电子设备400在打开状态(即打开状态),且检测到电子设备400处于免提通话时,为给用户提供更大的音量,则对应的参数为两个扬声器输出同样的播放参数的信号;When the electronic device 400 is in the open state (i.e. the open state), and when it is detected that the electronic device 400 is in the hands-free call, in order to provide the user with a larger volume, the corresponding parameter is that the two loudspeakers output the same playback parameter signal;

当电子设备400在打开状态,且检测到终端处于播放音乐时,为给用户提供更悦耳的声音效果,则可以将其中一个扬声器播放左声道信号,另外一个扬声器播放右声道信号,实现立体声效果。When the electronic device 400 is turned on and detects that the terminal is playing music, in order to provide the user with a more pleasing sound effect, one of the speakers can play the left channel signal, and the other speaker can play the right channel signal to achieve stereo Effect.

本发明的上述实施例中,通过获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态,根据所述角度以及工作状态,分别控制所述第一扬声器和第二扬声器的播放参数,实现了根据电子设备的不同使用场景,调整播放参数,提升播放效果;通过两个扬声器分别播放不同的声道信号,实现立体声效果,或两个扬声器分别播放不同频率信号,降低信号失真度。本发明解决了目前的电子设备的音频播放功能较为单一的问题。In the above embodiments of the present invention, by acquiring the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker, according to the angle and the working state, respectively Controlling the playback parameters of the first speaker and the second speaker realizes adjusting the playback parameters and improving the playback effect according to different use scenarios of the electronic equipment; different channel signals are played through the two speakers to achieve a stereo effect, or two Each speaker plays different frequency signals to reduce signal distortion. The invention solves the problem that the audio playing function of the current electronic equipment is relatively single.

参见图5,本发明实施例提供了一种电子设备500,所述电子设备500包括可折叠连接的第一分体和第二分体,所述第一分体设有第一扬声器,第二分体设有第二扬声器,所述电子设备500包括:Referring to FIG. 5 , an embodiment of the present invention provides an electronic device 500, the electronic device 500 includes a first split body and a second split body that are foldably connected, the first split body is provided with a first speaker, and the second split body Separately provided with a second speaker, the electronic device 500 includes:

获取模块501,用于获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态。An acquisition module 501, configured to acquire the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker.

其中,第一分体和第二分体构成可折叠电子设备500的两部分,第一分体和第二分体的角度即以可折叠电子设备500为轴,第一分体所在平面和第二分体所在平面之间的角度。Wherein, the first split body and the second split body form two parts of the foldable electronic device 500, the angle of the first split body and the second split body takes the foldable electronic device 500 as the axis, and the plane where the first split body is located and the second split body The angle between the planes in which the dyad lies.

第一扬声器和第二扬声器的工作状态包括语音通话状态、播放音频文件等状态。The working states of the first speaker and the second speaker include a voice call state, an audio file playing state, and the like.

控制模块502,用于根据所述角度以及所述第一扬声器和第二扬声器的工作状态,分别控制所述第一扬声器和第二扬声器的播放参数。The control module 502 is configured to respectively control the playing parameters of the first speaker and the second speaker according to the angle and the working states of the first speaker and the second speaker.

其中,根据第一分体与所述第二分体之间的角度,确定电子设备500的第一分体与第二分体之间处于打开状态或闭合状态;根据打开状态和闭合状态以及工作状态,控制所述第一扬声器和第二扬声器的播放参数,播放参数可以包括声道信号、频率信号以及音量信号等。Wherein, according to the angle between the first split body and the second split body, it is determined that the first split body and the second split body of the electronic device 500 are in an open state or a closed state; state, to control the playback parameters of the first speaker and the second speaker, and the playback parameters may include channel signals, frequency signals, volume signals, and the like.

可选地,参见图6,所述控制模块502包括:Optionally, referring to FIG. 6, the control module 502 includes:

状态确定子模块5021,用于当所述第一扬声器和第二扬声器的工作状态为播放音频文件时,根据所述角度确定所述第一分体和所述第二分体的折叠状态,所述折叠状态包括打开状态和闭合状态;The state determination sub-module 5021 is configured to determine the folding state of the first split body and the second split body according to the angle when the working state of the first speaker and the second speaker is playing an audio file, so The folded state includes an open state and a closed state;

参数控制子模块5022,用于根据所述折叠状态,分别控制所述第一扬声器和第二扬声器的播放参数。The parameter control sub-module 5022 is configured to respectively control the playback parameters of the first speaker and the second speaker according to the folding state.

可选地,参见图6,所述参数控制子模块5022包括:Optionally, referring to FIG. 6, the parameter control submodule 5022 includes:

声道控制单元50221,用于当所述折叠状态为打开状态时,根据所述角度与声道之间的第一预设关系,分别控制所述第一扬声器和所述第二扬声器播放音频文件的声道。channel control unit 50221, configured to control the first speaker and the second speaker to play audio files respectively according to the first preset relationship between the angle and the channel when the folded state is in the open state channel.

可选地,所述声道控制单元50221用于:Optionally, the channel control unit 50221 is used for:

若所述角度大于第一预设角度值,控制所述第一扬声器播放所述音频文件的左声道信号以及控制所述第二扬声器播放所述音频文件的右声道信号;若所述角度小于第二预设角度值时,控制所述第一扬声器和所述第二扬声器分别播放所述音频文件的左右声道混合信号;If the angle is greater than the first preset angle value, control the first speaker to play the left channel signal of the audio file and control the second speaker to play the right channel signal of the audio file; if the angle When it is less than the second preset angle value, control the first speaker and the second speaker to respectively play the left and right channel mixed signals of the audio file;

其中,所述第一预设角度值大于所述第二预设角度值。Wherein, the first preset angle value is greater than the second preset angle value.

可选地,参见图6,所述参数控制子模块5022包括:Optionally, referring to FIG. 6, the parameter control submodule 5022 includes:

频率控制单元50222,用于当所述折叠状态为闭合状态时,控制所述第一扬声器播放所述音频文件的低频信号,并控制所述第二扬声器播放所述音频文件的高频信号。The frequency control unit 50222 is configured to control the first speaker to play the low frequency signal of the audio file, and control the second speaker to play the high frequency signal of the audio file when the folded state is in the closed state.

可选地,参见图6,所述电子设备500还包括:Optionally, referring to FIG. 6, the electronic device 500 further includes:

通话控制模块503,用于当所述第一扬声器和第二扬声器为语音通话的工作状态时,若检测到所述第一扬声器和第二扬声器的功放均处于使能状态,则控制所述第一扬声器和第二扬声器的播放参数相同。A call control module 503, configured to control the first speaker and the second speaker if it is detected that the power amplifiers of the first speaker and the second speaker are in an enabled state when the first speaker and the second speaker are in the working state of voice communication. The playback parameters of the first speaker and the second speaker are the same.

可选地,参见图6,所述第一分体设置有霍尔传感器,所述第二分体设置有磁体结构;Optionally, referring to FIG. 6, the first split body is provided with a Hall sensor, and the second split body is provided with a magnet structure;

所述获取模块501包括:The acquisition module 501 includes:

电压获取子模块5011,用于获取所述霍尔传感器所输出的电压;A voltage acquisition sub-module 5011, configured to acquire the voltage output by the Hall sensor;

角度确定子模块5012,用于根据预先设定的所述霍尔传感器的电压与角度之间的对应关系,确定所述第一分体与所述第二分体之间的角度。The angle determining sub-module 5012 is configured to determine the angle between the first split body and the second split body according to the preset correspondence between the voltage of the Hall sensor and the angle.

本发明实施例提供的电子设备500能够实现图1至图4的方法实施例中电子设备500实现的各个过程,为避免重复,这里不再赘述。The electronic device 500 provided in the embodiment of the present invention can implement various processes implemented by the electronic device 500 in the method embodiments in FIG. 1 to FIG. 4 , and details are not repeated here to avoid repetition.

本发明的上述实施例中,通过获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态,根据所述角度以及工作状态,分别控制所述第一扬声器和第二扬声器的播放参数,实现了根据电子设备500的不同使用场景,调整播放参数,提升播放效果;通过两个扬声器分别播放不同的声道信号,实现立体声效果,或两个扬声器分别播放不同频率信号,降低信号失真度。本发明解决了目前的电子设备500的音频播放功能较为单一的问题。In the above embodiments of the present invention, by acquiring the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker, according to the angle and the working state, respectively Controlling the playback parameters of the first speaker and the second speaker realizes adjusting the playback parameters according to different use scenarios of the electronic device 500 and improving the playback effect; playing different channel signals through the two speakers respectively to achieve a stereo effect, or The two speakers play different frequency signals respectively to reduce signal distortion. The present invention solves the problem that the audio playing function of the current electronic device 500 is relatively simple.

图7为实现本发明各个实施例的一种移动终端的硬件结构示意图,FIG. 7 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention,

该移动终端700包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。The mobile terminal 700 includes but not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and Power supply 711 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 7 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or less components than shown in the figure, or combine some components, or different components layout. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a vehicle-mounted terminal, a wearable device, and a pedometer.

其中,处理器710,用于获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态;Wherein, the processor 710 is configured to acquire the angle between the first split body and the second split body and the working states of the first loudspeaker and the second loudspeaker;

根据所述角度以及所述第一扬声器和第二扬声器的工作状态,分别控制所述第一扬声器和第二扬声器的播放参数。According to the angle and the working states of the first speaker and the second speaker, respectively control the playing parameters of the first speaker and the second speaker.

本发明的实施例中,通过获取所述第一分体与所述第二分体之间的角度以及所述第一扬声器和第二扬声器的工作状态,根据所述角度以及工作状态,分别控制所述第一扬声器和第二扬声器的播放参数,实现了根据电子设备的不同使用场景,调整播放参数,提升播放效果。In the embodiment of the present invention, by obtaining the angle between the first split body and the second split body and the working status of the first loudspeaker and the second loudspeaker, according to the angle and the working status, respectively control The playing parameters of the first loudspeaker and the second loudspeaker realize adjusting the playing parameters according to different usage scenarios of the electronic equipment, and improving the playing effect.

应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 can be used to receive and send signals during sending and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 710; in addition, the Uplink data is sent to the base station. Generally, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.

移动终端通过网络模块702为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 702, such as helping users send and receive emails, browse web pages, and access streaming media.

音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与移动终端700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 can also provide audio output related to a specific function performed by the mobile terminal 700 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.

输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processing unit (Graphics Processing Unit, GPU) 7041 and a microphone 7042, and the graphics processor 7041 is used for still pictures or video images obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The data is processed. The processed image frames may be displayed on the display unit 706 . The image frames processed by the graphics processor 7041 may be stored in the memory 709 (or other storage media) or sent via the radio frequency unit 701 or the network module 702 . The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 701 for output in the case of a phone call mode.

移动终端700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在移动终端700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and the / or backlighting. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is still, and can be used to identify the posture of mobile terminals (such as horizontal and vertical screen switching, related games, etc.) , magnetometer posture calibration), vibration recognition-related functions (such as pedometer, knocking), etc.; the sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.

显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.

用户输入单元707可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 707 can be used to receive input numbers or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072 . The touch panel 7071, also referred to as a touch screen, can collect touch operations of the user on or near it (for example, the user uses any suitable object or accessory such as a finger or a stylus on the touch panel 7071 or near the touch panel 7071). operate). The touch panel 7071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and 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 the For the processor 710, receive the command sent by the processor 710 and execute it. In addition, the touch panel 7071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071 , the user input unit 707 may also include other input devices 7072 . Specifically, other input devices 7072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.

进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现移动终端的输入和输出功能,具体此处不做限定。Furthermore, the touch panel 7071 can be covered on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it will be sent to the processor 710 to determine the type of the touch event. The type of event provides a corresponding visual output on the display panel 7061. Although in FIG. 7, the touch panel 7071 and the display panel 7061 are used as two independent components to realize the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.

接口单元708为外部装置与移动终端700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端700内的一个或多个元件或者可以用于在移动终端700和外部装置之间传输数据。The interface unit 708 is an interface for connecting an external device to the mobile terminal 700 . For example, an external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) ports, video I/O ports, headphone ports, and more. The interface unit 708 can be used to receive input from an external device (for example, data information, power, etc.) transfer data between devices.

存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 can be used to store software programs as well as various data. The memory 709 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application program required by a function (such as a sound playback function, an image playback function, etc.); Data created by the use of mobile phones (such as audio data, phonebook, etc.), etc. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage devices.

处理器710是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the mobile terminal, which uses various interfaces and lines to connect various parts of the entire mobile terminal, by running or executing software programs and/or modules stored in the memory 709, and calling data stored in the memory 709 , execute various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface and application programs, etc., and the modem The processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710 .

移动终端700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 700 can also include a power supply 711 (such as a battery) for supplying power to various components. Preferably, the power supply 711 can be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. and other functions.

另外,移动终端700包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 700 includes some functional modules not shown, which will not be repeated here.

优选的,本发明实施例还提供一种移动终端,包括处理器710,存储器709,存储在存储器709上并可在所述处理器710上运行的计算机程序,该计算机程序被处理器710执行时实现上述播放参数控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides a mobile terminal, including a processor 710, a memory 709, a computer program stored in the memory 709 and operable on the processor 710, when the computer program is executed by the processor 710 The various processes of the above embodiment of the playback parameter control method can be realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.

本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述播放参数控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned playback parameter control method embodiment is realized, and the same Technical effects, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.

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

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of software products, and the computer software products are stored in a storage medium (such as ROM/RAM, disk, CD) contains several instructions to make a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the methods described in various embodiments of the present invention.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive, and those of ordinary skill in the art will Under the enlightenment of the present invention, without departing from the gist of the present invention and the protection scope of the claims, many forms can also be made, all of which belong to the protection of the present invention.

Claims (14)

1. a kind of play parameter control method, applied to electronic equipment, the electronic equipment includes first point of foldable connection Body and the second split, it is characterised in that first split is equipped with the first loudspeaker, and second split is raised one's voice equipped with second Device, the described method includes:
Obtain angle between first split and second split and first loudspeaker and the second loudspeaker Working status;
According to the angle and the working status of first loudspeaker and the second loudspeaker, described first is controlled to raise one's voice respectively The play parameter of device and the second loudspeaker.
2. according to the method described in claim 1, it is characterized in that, it is described according to the angle and first loudspeaker and The working status of second loudspeaker, the step of controlling the play parameter of first loudspeaker and the second loudspeaker respectively, including:
When first loudspeaker and second loudspeaker are to play the working status of audio file, according to the angle Determine the folded state of first split and second split, the folded state includes open mode and closure state;
According to the folded state, the play parameter of first loudspeaker and the second loudspeaker is controlled respectively.
3. according to the method described in claim 2, it is characterized in that, described according to the folded state, described is controlled respectively The step of play parameter of one loudspeaker and the second loudspeaker, including:
When the folded state is in an open state, according to the first preset relation between the angle and sound channel, control respectively First loudspeaker and second loudspeaker play the sound channel of audio file.
It is 4. according to the method described in claim 3, it is characterized in that, described default according to first between the angle and sound channel Relation, the step of controlling first loudspeaker and second loudspeaker to play the sound channel of audio file respectively, including:
If the angle is more than the first preset angle angle value, first loudspeaker is controlled to play the L channel letter of the audio file Number and control second loudspeaker play the right-channel signals of the audio file;
If the angle is less than the second preset angle angle value, first loudspeaker and second loudspeaker is controlled to play respectively The left and right acoustic channels mixed signal of the audio file;
Wherein, the first preset angle angle value is more than the second preset angle angle value.
5. according to the method described in claim 2, it is characterized in that, described according to the folded state, described is controlled respectively The step of play parameter of one loudspeaker and the second loudspeaker, including:
When the folded state is closure state, first loudspeaker is controlled to play the low frequency signal of the audio file, And control the high-frequency signal of the second loudspeaker broadcasting audio file.
6. according to the method described in claim 1, it is characterized in that, the method further includes:
When first loudspeaker and the second loudspeaker are the working status of voice communication, if detecting the work(of the loudspeaker Put and be in enabled state, then control the play parameter of first loudspeaker and the second loudspeaker identical.
7. a kind of electronic equipment, the electronic equipment includes the first split and the second split of foldable connection, it is characterised in that First split is equipped with the first loudspeaker, and the second split is equipped with the second loudspeaker, and the electronic equipment includes:
Acquisition module, for obtain angle between first split and second split and first loudspeaker and The working status of second loudspeaker;
Control module, for according to the angle and the working status of first loudspeaker and the second loudspeaker, controlling respectively Make the play parameter of first loudspeaker and the second loudspeaker.
8. electronic equipment according to claim 7, it is characterised in that the control module includes:
State determination sub-module, for being the work that plays audio file when first loudspeaker and second loudspeaker During state, the folded state of the first split and second split according to the angle-determining, the folded state includes Open mode and closure state;
State modulator submodule, for according to the folded state, controlling first loudspeaker and the second loudspeaker respectively Play parameter.
9. electronic equipment according to claim 8, it is characterised in that the state modulator submodule includes:
Sound channel control unit, for when the folded state is in an open state, according to first between the angle and sound channel Preset relation, controls first loudspeaker and second loudspeaker to play the sound channel of audio file respectively.
10. electronic equipment according to claim 9, it is characterised in that
The sound channel control unit is used for:
If the angle is more than the first preset angle angle value, first loudspeaker is controlled to play the L channel letter of the audio file Number and control second loudspeaker play the right-channel signals of the audio file;
If the angle is less than the second preset angle angle value, first loudspeaker and second loudspeaker is controlled to play respectively The left and right acoustic channels mixed signal of the audio file;
Wherein, the first preset angle angle value is more than the second preset angle angle value.
11. electronic equipment according to claim 8, it is characterised in that the state modulator submodule includes:
Frequency control unit, for when the folded state is closure state, controlling first loudspeaker to play the sound The low frequency signal of frequency file, and control the high-frequency signal of the second loudspeaker broadcasting audio file.
12. electronic equipment according to claim 7, it is characterised in that the electronic equipment further includes:
Call processing module, for when first loudspeaker and the second loudspeaker are the working status of voice communication, if inspection The power amplifier for measuring first loudspeaker and the second loudspeaker is in enabled state, then controls first loudspeaker and second The play parameter of loudspeaker is identical.
A kind of 13. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 6 is realized when the computer program is performed by the processor Any one of play parameter control method in step.
14. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, realizes the play parameter control as any one of claim 1 to 6 when the computer program is executed by processor Step in method.
CN201711234683.7A 2017-11-30 2017-11-30 A kind of play parameter control method and electronic equipment Pending CN108040313A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711234683.7A CN108040313A (en) 2017-11-30 2017-11-30 A kind of play parameter control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711234683.7A CN108040313A (en) 2017-11-30 2017-11-30 A kind of play parameter control method and electronic equipment

Publications (1)

Publication Number Publication Date
CN108040313A true CN108040313A (en) 2018-05-15

Family

ID=62094468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711234683.7A Pending CN108040313A (en) 2017-11-30 2017-11-30 A kind of play parameter control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN108040313A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108551636A (en) * 2018-05-29 2018-09-18 维沃移动通信有限公司 A speaker control method and mobile terminal
CN109257504A (en) * 2018-10-26 2019-01-22 维沃移动通信有限公司 A kind of audio-frequency processing method and terminal device
CN109739465A (en) * 2018-12-21 2019-05-10 维沃移动通信有限公司 Audio output method and mobile terminal
CN110874203A (en) * 2018-09-04 2020-03-10 中兴通讯股份有限公司 Screen sounding controller, method, device, terminal and storage medium
CN110933217A (en) * 2018-09-19 2020-03-27 青岛海信移动通信技术股份有限公司 Audio control method and device
WO2020082325A1 (en) * 2018-10-26 2020-04-30 深圳市柔宇科技有限公司 Voice call control method and foldable mobile terminal
CN111225315A (en) * 2020-02-27 2020-06-02 维沃移动通信有限公司 Audio playing device, audio playing method and electronic equipment
WO2021063156A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Method for adjusting folding angle of electronic device, and electronic device
CN112965551A (en) * 2021-01-29 2021-06-15 维沃移动通信有限公司 Heating control method and device for loudspeaker
CN113630695A (en) * 2021-08-06 2021-11-09 维沃移动通信有限公司 Sound channel switching method and device and electronic equipment
CN114629977A (en) * 2020-12-10 2022-06-14 北京小米移动软件有限公司 Audio playback device and method, electronic device, storage medium
CN115996346A (en) * 2022-11-18 2023-04-21 深圳市维仕声学有限公司 Loudspeaker control method and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941160A (en) * 2005-09-30 2007-04-04 鸿富锦精密工业(深圳)有限公司 Device and method for automatically selecting audio-frequency play mode
CN101788850A (en) * 2009-01-09 2010-07-28 三星电子株式会社 Mobile terminal having foldable display and operation method for the same
CN103853521A (en) * 2012-12-03 2014-06-11 三星电子株式会社 Portable apparatus having a plurality of touch screens and method of outputting sound thereof
CN104238990A (en) * 2013-06-14 2014-12-24 联想(北京)有限公司 Electronic device and audio output method
CN106454684A (en) * 2016-10-18 2017-02-22 北京小米移动软件有限公司 Multimedia playing control method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1941160A (en) * 2005-09-30 2007-04-04 鸿富锦精密工业(深圳)有限公司 Device and method for automatically selecting audio-frequency play mode
CN101788850A (en) * 2009-01-09 2010-07-28 三星电子株式会社 Mobile terminal having foldable display and operation method for the same
CN103853521A (en) * 2012-12-03 2014-06-11 三星电子株式会社 Portable apparatus having a plurality of touch screens and method of outputting sound thereof
CN104238990A (en) * 2013-06-14 2014-12-24 联想(北京)有限公司 Electronic device and audio output method
CN106454684A (en) * 2016-10-18 2017-02-22 北京小米移动软件有限公司 Multimedia playing control method and device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019228163A1 (en) * 2018-05-29 2019-12-05 维沃移动通信有限公司 Speaker control method and mobile terminal
US11496835B2 (en) 2018-05-29 2022-11-08 Vivo Mobile Communication Co., Ltd. Speaker control method and mobile terminal
CN108551636A (en) * 2018-05-29 2018-09-18 维沃移动通信有限公司 A speaker control method and mobile terminal
WO2020048439A1 (en) * 2018-09-04 2020-03-12 中兴通讯股份有限公司 Screen sound controller, method, device, terminal, and storage medium
CN110874203A (en) * 2018-09-04 2020-03-10 中兴通讯股份有限公司 Screen sounding controller, method, device, terminal and storage medium
CN110933217A (en) * 2018-09-19 2020-03-27 青岛海信移动通信技术股份有限公司 Audio control method and device
WO2020082325A1 (en) * 2018-10-26 2020-04-30 深圳市柔宇科技有限公司 Voice call control method and foldable mobile terminal
CN109257504B (en) * 2018-10-26 2020-11-10 维沃移动通信有限公司 A kind of audio processing method and terminal device
CN112889261A (en) * 2018-10-26 2021-06-01 深圳市柔宇科技股份有限公司 Voice call control method and folding mobile terminal
CN109257504A (en) * 2018-10-26 2019-01-22 维沃移动通信有限公司 A kind of audio-frequency processing method and terminal device
US11977814B2 (en) 2018-12-21 2024-05-07 Vivo Mobile Communication Co., Ltd. Audio output method and mobile terminal
CN109739465A (en) * 2018-12-21 2019-05-10 维沃移动通信有限公司 Audio output method and mobile terminal
US12260152B2 (en) 2018-12-21 2025-03-25 Vivo Mobile Communication Co., Ltd. Audio output method and mobile terminal
WO2021063156A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Method for adjusting folding angle of electronic device, and electronic device
CN111225315A (en) * 2020-02-27 2020-06-02 维沃移动通信有限公司 Audio playing device, audio playing method and electronic equipment
CN114629977A (en) * 2020-12-10 2022-06-14 北京小米移动软件有限公司 Audio playback device and method, electronic device, storage medium
CN112965551A (en) * 2021-01-29 2021-06-15 维沃移动通信有限公司 Heating control method and device for loudspeaker
CN113630695A (en) * 2021-08-06 2021-11-09 维沃移动通信有限公司 Sound channel switching method and device and electronic equipment
CN115996346A (en) * 2022-11-18 2023-04-21 深圳市维仕声学有限公司 Loudspeaker control method and terminal
CN115996346B (en) * 2022-11-18 2024-09-03 深圳市维仕声学有限公司 Loudspeaker control method and terminal

Similar Documents

Publication Publication Date Title
CN108551636B (en) A speaker control method and mobile terminal
CN108040313A (en) A kind of play parameter control method and electronic equipment
CN110730260B (en) Electronic device control method and electronic device
CN107770760B (en) A kind of method and mobile terminal of the type identifying bluetooth equipment
CN111459456B (en) Audio control method and electronic equipment
CN112261202B (en) Electronic equipment, control method and control device thereof
CN108874357A (en) A kind of reminding method and mobile terminal
CN111638779A (en) Audio playing control method and device, electronic equipment and readable storage medium
CN108196815B (en) Method for adjusting call sound and mobile terminal
CN107948874A (en) A kind of terminal control method, mobile terminal
CN107911445A (en) A kind of information push method, mobile terminal and storage medium
WO2021098698A1 (en) Audio playback method and terminal device
WO2021136141A1 (en) Playback method and electronic device
CN110351407A (en) A kind of audio frequency playing method and mobile terminal
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium
WO2021169869A1 (en) Audio-playing apparatus, audio-playing method, and electronic device
WO2021238844A1 (en) Audio output method and electronic device
CN108430004A (en) A loudspeaker amplitude adjustment device, adjustment method and mobile terminal
CN107786751A (en) A kind of method for broadcasting multimedia file and mobile terminal
CN108174017A (en) A kind of bluetooth opening method and mobile terminal
CN111614329B (en) Power amplifier, electronic device, voltage control method and device
CN111459447B (en) Volume adjustment display method and electronic equipment
WO2020259295A1 (en) Mobile terminal and control method
CN111541975B (en) Audio signal adjustment method and electronic device
WO2021098708A1 (en) Calling method, and terminal apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180515