WO2016000295A1 - Sound speaking-out method and apparatus based on terminal loudspeaker and terminal - Google Patents

Sound speaking-out method and apparatus based on terminal loudspeaker and terminal Download PDF

Info

Publication number
WO2016000295A1
WO2016000295A1 PCT/CN2014/084121 CN2014084121W WO2016000295A1 WO 2016000295 A1 WO2016000295 A1 WO 2016000295A1 CN 2014084121 W CN2014084121 W CN 2014084121W WO 2016000295 A1 WO2016000295 A1 WO 2016000295A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
speaker
sound
current
manner
Prior art date
Application number
PCT/CN2014/084121
Other languages
French (fr)
Chinese (zh)
Inventor
刘鑫正
贾玉韬
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016000295A1 publication Critical patent/WO2016000295A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present invention relates to the field of electronic devices, and in particular, to a method and device for releasing sound based on a terminal speaker, and a terminal.
  • a speaker commonly known as a speaker, is a functional module necessary for electronic devices such as mobile phones. It is an electro-acoustic device that converts a current signal into a sound signal, also used for music playback, ringtones, and hands-free sound. In places such as playback, the usage rate is very high. It directly determines the sound quality of the terminal. Take the mobile phone terminal as an example. Currently, the speaker of the mobile terminal is generally located on the back or side of the mobile phone, which may cause a problem.
  • the speaker of the mobile phone is on the back of the mobile phone, then the mobile phone is placed on the desktop, and then the speaker is attached to the desktop. , resulting in a small external sound, and the sound quality deteriorated, although some treatments can slightly improve the sound quality in this case, but the improvement is limited.
  • the speaker of the mobile phone is located elsewhere in the mobile phone, and similar problems are easily caused. For example, when playing a game with a hand-held mobile phone, the speaker may be blocked, which also causes the volume to be small and the sound quality to deteriorate. There is also a scene. When the phone is placed in the pocket of the phone, the phone is generally vertical.
  • the volume will become smaller, which may result in the inability to hear the ringtone or SMS ringtone. , Missing the phone, causing inconvenience to the user.
  • a method of increasing the volume in which a plurality of speakers are set on the terminal, but a plurality of speakers use the same path, and work at the same time, causing interference with each other, and lowering the sound quality.
  • an effective solution has not been proposed.
  • the method for placing a terminal affects a technical problem such as an external release effect of the terminal
  • the present invention provides a method and device for releasing a sound based on a terminal speaker, and a terminal, to at least solve the above technical problem.
  • a method for externally releasing a sound based on a terminal speaker including: acquiring, by a terminal, a current placement manner of the terminal; The specified speaker is selected from the speaker for sound external release, wherein the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker.
  • the terminal selects a designated speaker from the plurality of speakers of the terminal to perform sound external release according to the placing manner, and the method includes: the terminal controls, according to the placing manner, a speaker that is currently performing sound external switching to switch to The designated speaker.
  • the method further includes: receiving an operation instruction of the user; and triggering, by the operation instruction, the terminal preferentially selecting a speaker corresponding to the operation instruction to perform sound external release.
  • the terminal acquires the current placement manner of the terminal, and the method includes: the terminal acquiring data currently collected by the built-in gravity sensor of the terminal; and determining, by the terminal, the placement manner according to the data.
  • the placing manner comprises one of the following: the terminal is placed vertically in the forward or reverse direction, the terminal is placed in the lateral direction, and the terminal is placed horizontally.
  • a sound emitting device based on a terminal speaker comprising: an obtaining module configured to acquire a current placement mode of the terminal; and a selection module configured to follow the placing manner Selecting a designated speaker from a plurality of speakers of the terminal for sound external release, wherein a current external release effect of the designated speaker is better than a current external release effect of the unselected speaker.
  • the selection module is further configured to switch the speaker currently performing the sound out to the designated speaker according to the placement manner.
  • the obtaining module includes: an acquiring unit, configured to acquire data currently collected by the built-in gravity sensor of the terminal; and a determining unit configured to determine the placing manner according to the data.
  • a terminal includes a plurality of speakers, and further includes: a sensor configured to sense a display manner of the terminal; and a processor configured to generate a switching signal according to the placing manner; And an electronic switch, configured to select a designated speaker from the plurality of speakers to perform sound external release according to the switching signal, wherein a current external release effect of the designated speaker is better than a current external release effect of the unselected speaker.
  • the sensor comprises: a gravity sensor.
  • the technical means for selecting a speaker to perform sound release from a plurality of speakers of the terminal according to the placement manner thereof is adopted, and the technical problems such as the placement mode of the terminal in the related art affecting the external release effect of the terminal are solved. Therefore, the sound external release effect can be ensured in any position of the terminal, and the user experience is improved.
  • FIG. 1 is a flow chart of a sound emitting method based on a terminal speaker according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing a structure of a sound emitting device based on a terminal speaker according to an embodiment of the present invention
  • FIG. 4 is a structural block diagram of a terminal according to an embodiment of the present invention
  • FIG. 5 is a structural diagram of a terminal according to an embodiment of the present invention
  • FIG. FIG. 6 is a schematic diagram of the corresponding relationship between the terminal basic placement mode and the gravity sensor according to the embodiment of the present invention
  • FIG. 7 is a schematic diagram of a corresponding relationship between a terminal basic placement mode and a gravity sensor according to an embodiment of the invention.
  • FIG. 8 is a schematic diagram of a corresponding relationship between a terminal basic placement mode and a gravity sensor according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of a corresponding relationship between a terminal basic placement mode and a gravity sensor according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of a multi-speaker intelligent switching principle according to an embodiment of the present invention
  • FIG. 12 is a schematic diagram of a terminal speaker-based sound external release method according to an embodiment of the present invention
  • Step S102 The terminal acquires a current placement manner of the terminal.
  • Step S104 The terminal selects a designated speaker from multiple speakers of the terminal to perform sound release according to the foregoing manner. Among them, the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker.
  • the terminal can select the corresponding speaker according to the placement manner (that is, select the speaker whose sound effect is not affected by the placement mode), the sound is released, so that it can be placed in any position of the terminal.
  • the sound is released to enhance the user experience.
  • the terminal can be implemented in the following manner: The terminal controls the speaker currently performing the sound external release to switch to the designated speaker according to the above-mentioned placement manner.
  • the implementation manner can be specifically implemented by an electronic switch: The electronic switch can enable the corresponding speaker path to be turned on, so that the speaker is in an active state (ie, in a sound external state).
  • the user can select a suitable speaker, for example, by: receiving an operation instruction of the user; and triggering the operation instruction, the terminal preferentially selects a speaker corresponding to the operation instruction to perform sound external release.
  • the solution may be implemented in the form of software or hardware, for example, setting a corresponding function key, or setting a selection interface of a speaker, etc., but is not limited thereto.
  • Step S102 is implemented in various manners, for example, by using a gravity sensor or a direction sensor. In a preferred embodiment of the present embodiment, the following manner may be adopted: the terminal acquires data currently collected by the built-in gravity sensor of the terminal; The above data determines the above placement method.
  • the above-mentioned placement manner includes, but is not limited to, one of the following: the terminal is placed vertically in the forward or reverse direction, the terminal is placed sideways, and the terminal is placed horizontally (including but not limited to face up or down). Place horizontally, etc.).
  • a sound emitting device based on a terminal speaker is further provided. As shown in FIG. 2, the device includes: an obtaining module 20 configured to acquire a current placement mode of the terminal; and a selection module 22 connected to obtain The module 20 is configured to select a designated speaker from a plurality of speakers of the terminal for sound external release according to the above-mentioned placement manner, wherein the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker.
  • the selection module 22 is further configured to control the speaker currently performing the sound external release to switch to the designated speaker according to the above-mentioned placement mode.
  • the obtaining module 20 may further include: an obtaining unit 200 configured to acquire data currently collected by the built-in gravity sensor of the terminal; and a determining unit 202 connected to the acquiring unit 200. , set to determine the above placement method based on the above data.
  • each of the foregoing modules may be implemented by using hardware or software. For the former, the following may be implemented: The obtaining module 20 and the selecting module 22 are located in the same processor, and the obtaining module 20 and the selecting module 22 are respectively located in the first A processor and a second processor.
  • a terminal is provided.
  • the method includes: a plurality of speakers 40, a sensor 42 disposed to sense a display manner of the terminal; and a processor 44 connected to the sensor 42 and configured to be The display mode generates a switching signal; the electronic switch 46 is connected to the processor 44, and is configured to select a designated speaker from the plurality of speakers to perform sound external release according to the switching signal, wherein the current external release effect of the designated speaker is excellent The current external release effect of the speaker that is not selected.
  • the sensor 42 may include, but is not limited to, a gravity sensor (or an acceleration sensor).
  • the main design idea of this embodiment is that the gravity sensor can simultaneously read the values of the three dimensions (x, y, z), and the terminal can be conveniently determined. Then the terminal can judge the terminal according to the gravity sensor. The position (that is, the way the terminal is placed), and then select the most suitable speaker to work, so that the terminal can ensure that the volume is normal and the sound quality is normal regardless of the position.
  • the principle of this embodiment is as follows:
  • the terminal includes a processor 44, a plurality of speakers 40, an electronic switch 46 and a gravity sensor 42. Among them, the gravity sensor 42 of the terminal is placed in the sensing terminal. There are several basic placement methods, such as horizontally facing up, horizontally facing down, vertical placement, etc., which will be described in detail below.
  • Narration It can record the values of the three directions (x, y, z) in real time, so that it can be prepared to judge the current placement of the terminal.
  • the processor 44 receives the data of the gravity sensor 42, determines the terminal placement mode, and then looks up the table, matches the position of the speaker 40 of the terminal itself, finds the most suitable speaker 40, and then switches to the electronic switch.
  • the control command is issued; the processor here can directly use the processor of the terminal itself, and of course, other processors can also be used.
  • Select the speaker corresponding to this placement method send the command to the electronic switch to execute.
  • the electronic switch 46 connects the corresponding speaker path according to the command to make it work.
  • Electronic switch The electronic switch can select one of the speaker channels according to the instruction of the controller.
  • Speaker (or speaker) Speaker 40 In this embodiment, the terminal has two speakers, speaker@located on the back and speaker2 at the bottom of the terminal. Its main function is to perform audio sound release. In this embodiment, the opening of the speaker 40 (for example, the speaker above or below the figure) is specified, which is controlled by the controller.
  • the multi-speaker terminal of this embodiment has two or more speakers. For convenience of explanation, a terminal having two speakers will be described as an example. In the following embodiments, it is assumed that two speakers are respectively located at the back of the terminal and the lower portion of the terminal when placed vertically.
  • the gravity sensor data should be (*, +g, *), where the Y axis is the value of gravity acceleration (g), X
  • the data of the z-axis and the z-axis are data of about 0 (the case of the completely vertical is 0, but in reality, it is a value that swings around 0). Therefore, as long as it is judged that the value of the Y-axis is g, it can be determined that the current placement mode of the terminal is as shown in FIG. 5.
  • Basic placement 2 The terminal is placed vertically and then rotated 180° C, ie vertically inverted.
  • the gravity sensor data should be (*, -g, *), where the Y axis is a negative value of gravity acceleration (-g), and the data of the X and z axes is about 0 (the case of a completely vertical is 0, But in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the Y-axis is -g, it can be determined that the current placement mode of the terminal is as shown in FIG. 6.
  • Basic placement mode 3 The terminal is placed horizontally and the screen is facing up. This is also a very common way for the terminal. If the speaker of the terminal is just at the back of the terminal, the sound quality pit will be greatly affected.
  • the gravity sensor data should be (+g, *, *), where the X axis is the value of gravity acceleration (+g), the number of y and z axes According to the data of 0 or so (the case of completely vertical is 0, but in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the X-axis is +g, it can be determined that the current placement mode of the terminal is as shown in FIG.
  • Basic placement method 4 The terminal is placed horizontally with the screen facing down, which is also a very common way for terminals.
  • the gravity sensor data should be (-g, *, *), where the X axis is the value of gravity acceleration (-g), and the data of the y and z axes is about 0 (the case of complete vertical is 0, but In practice, it will be a value that swings around 0). Therefore, as long as it is judged that the value of the X-axis is -g, it can be determined that the current placement mode of the terminal is as shown in FIG. Basic placement mode 5: The terminal is placed vertically on the side and rotated 90° on the vertical basis. The data of the gravity sensor should be (*, *, +g), where the Z axis is the value of gravity acceleration (+g).
  • the data of the X and y axes is about 0 (the case of a completely vertical is 0, but in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the Z axis is +g, it can be determined that the current placement mode of the terminal is as shown in FIG. Basic placement mode 6: The terminal is placed vertically on the side and rotated 90° on the vertical basis.
  • the data of the gravity sensor should be (*, *, -g), where the Z axis is the value of gravity acceleration (-g).
  • the data of the X and y axes is about 0 (the case of a completely vertical is 0, but in reality it will be a value that swings around 0).
  • Step S1202 The system is initialized, and the system associates each basic placement mode of the terminal with a certain speaker. These correspondences can be queried by the program.
  • Step S1208 It is determined whether the basic placement mode of the terminal is consistent with the basic placement mode currently detected. If they are consistent, no change is needed, and the process branches to S1206. If not, step S1210 is performed; Step S1210: Processor query The speaker corresponding to the current basic placement mode, this list of queries, has been given in step S1202. Once the query is complete, you know which speaker you should use.
  • Step S1212 The electronic switch receives the command and turns on the specified speaker.
  • the specified speaker will work, and the speaker that is not specified will not work.
  • the process jumps to step S1206 to continue the loop. Until the program stops or the terminal is shut down.
  • the above steps are all automatically executed by the program without manual intervention. But you can also add a manual intervention option based on this. This can be set in the program, the user can select the speaker he wants to use, and the system will let the speaker work.
  • the embodiments of the present invention achieve the following beneficial effects: Compared with the current speaker technology, the following advantages are achieved: No matter how the terminal is placed, a suitable speaker can be selected to ensure volume and sound quality; only one electronic component is added to the hardware.
  • the present invention also provides a manual modification method, that is, the user can manually set which specific Speaker work, giving the user greater choice and operation experience.
  • software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
  • the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
  • Industrial Applicability The technical solution provided by the embodiments of the present invention can be applied to a sound external release process of a terminal, and the technical means for selecting a designated speaker to perform sound external release from a plurality of speakers of the terminal according to the placement manner thereof is used, and the related information is solved.
  • the placement of the terminal affects the technical problems such as the external release effect of the terminal, so that the sound external release effect can be ensured in any position of the terminal, and the user experience is improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

Provided are a sound speaking-out method and apparatus based on a terminal loudspeaker and a terminal. The above-mentioned method comprises: a terminal acquiring the current placement method of the terminal; and the terminal choosing a designated loudspeaker from multiple loudspeakers of the terminal according to the placement method to perform sound speaking-out, wherein the current speaking-out effect of the designated loudspeaker is superior to the current speaking-out effect of an unselected loudspeaker. By adopting the above-mentioned technical solution provided in the present invention, the technical problem in the related art that a placement method of a terminal may affect a speaking-out effect of the terminal is solved, so that a sound speaking-out effect can be ensured in any placement state of the terminal, thereby improving user experience.

Description

基于终端扬声器的声音外放方法及装置、 终端 技术领域 本发明涉及电子设备领域, 尤其是涉及一种基于终端扬声器的声音外放方法及装 置、 终端。 背景技术 扬声器 (Speaker), 俗称喇叭, 是手机等电子设备必备的一个功能模块, 它是一 个电转声器件 , 可以将电流信号转化为声音信号, 同样用于音乐播放, 来电铃声, 免 提声音播放等地方, 使用率非常高。它直接决定了终端音质的好坏。 以手机终端为例, 目前手机终端的 speaker—般位于手机的背面或者侧面,这样就可能导致一个问题,假 如手机的 speaker在手机背面, 那么手机平放到桌面上后, 此时 speaker贴接桌面, 导 致外放声音很小,而且音质恶化,虽然有些处理手段,可以在这种情况下略微改善音质, 但是改善有限。手机的 speaker位于手机的其他地方, 也很容易出现类似的问题, 如在 手握手机玩游戏时, 有可能就遮挡了 speaker, 同样会导致音量变小, 音质恶化。 还有 一种场景, 在将手机放在衣服口袋里时, 手机一般是垂直的, 此时如果 speaker位于手 机的下方, 就会导致音量变小, 可能导致无法即使听到来电铃音或者短信铃音, 漏接 电话, 给用户造成不便。 相关技术中提供了一种增加音量的方案, 是在终端上设置多个 speaker, 但是多个 speaker利用相同的通路, 同时工作, 多相互间造成干扰, 反而降低音质。 针对相关技 术中的上述问题, 尚未提出有效地解决方案。 发明内容 针对相关技术中, 终端的摆放方式会影响终端的外放效果等技术问题, 本发明提 供了一种基于终端扬声器的声音外放方法及装置、 终端, 以至少解决上述技术问题。 根据本发明的一个实施例, 提供了一种基于终端扬声器的声音外放方法, 包括: 终端获取所述终端当前的摆放方式; 所述终端按照所述摆放方式从所述终端的多个扬 声器中选择指定扬声器进行声音外放, 其中, 所述指定扬声器的当前外放效果优于未 被选择的扬声器的当前外放效果。 优选地, 所述终端按照所述摆放方式从所述终端的多个扬声器中选择指定扬声器 进行声音外放, 包括: 所述终端按照所述摆放方式控制当前进行声音外放的扬声器切 换至所述指定扬声器。 优选地, 所述方法还包括: 接收用户的操作指令; 在所述操作指令的触发下, 所 述终端优先选择与所述操作指令对应的扬声器进行声音外放。 优选地, 终端获取所述终端当前的摆放方式, 包括: 所述终端获取所述终端内置 重力传感器当前采集的数据; 所述终端根据所述数据确定所述摆放方式。 优选地, 所述摆放方式包括以下之一: 终端正向或反向竖直摆放、终端侧向摆放、 终端水平摆放。 根据本发明的另一个实施例,提供了一种基于终端扬声器的声音外放装置,包括: 获取模块, 设置为获取所述终端当前的摆放方式; 选择模块, 设置为按照所述摆放方 式从所述终端的多个扬声器中选择指定扬声器进行声音外放, 其中, 所述指定扬声器 的当前外放效果优于未被选择的扬声器的当前外放效果。 优选地, 所述选择模块, 还设置为按照所述摆放方式控制当前进行声音外放的扬 声器切换至所述指定扬声器。 优选地, 所述获取模块包括: 获取单元, 设置为获取所述终端内置重力传感器当 前采集的数据; 确定单元, 设置为根据所述数据确定所述摆放方式。 根据本发明的又一个实施例, 提供了一种终端, 包括多个扬声器, 还包括: 传感 器, 设置为感测终端的摆放方式; 处理器, 设置为根据所述摆放方式产生切换信号; 电子切换开关, 设置为根据所述切换信号从所述多个扬声器中选择指定扬声器进行声 音外放, 其中, 所述指定扬声器的当前外放效果优于未被选择的扬声器的当前外放效 果。 优选地, 所述传感器包括: 重力传感器。 通过本发明, 采用终端按照其摆放方式从终端的多个扬声器中选择指定扬声器进 行声音外放的技术手段, 解决了相关技术中终端的摆放方式会影响终端的外放效果等 技术问题, 从而可以在终端的任意摆放状态下保证声音外放效果, 提升了用户体验。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1为根据本发明实施例的基于终端扬声器的声音外放方法的流程图; 图 2为根据本发明实施例的基于终端扬声器的声音外放装置的结构框图; 图 3为根据本发明实施例的基于终端扬声器的声音外放装置的另一结构框图; 图 4为根据本发明实施例的终端的结构框图; 图 5 为根据本发明实施例的终端基础放置方式及重力传感器的对应关系示意图 一; 图 6 为根据本发明实施例的终端基础放置方式及重力传感器的对应关系示意图 The present invention relates to the field of electronic devices, and in particular, to a method and device for releasing sound based on a terminal speaker, and a terminal. BACKGROUND OF THE INVENTION A speaker, commonly known as a speaker, is a functional module necessary for electronic devices such as mobile phones. It is an electro-acoustic device that converts a current signal into a sound signal, also used for music playback, ringtones, and hands-free sound. In places such as playback, the usage rate is very high. It directly determines the sound quality of the terminal. Take the mobile phone terminal as an example. Currently, the speaker of the mobile terminal is generally located on the back or side of the mobile phone, which may cause a problem. If the speaker of the mobile phone is on the back of the mobile phone, then the mobile phone is placed on the desktop, and then the speaker is attached to the desktop. , resulting in a small external sound, and the sound quality deteriorated, although some treatments can slightly improve the sound quality in this case, but the improvement is limited. The speaker of the mobile phone is located elsewhere in the mobile phone, and similar problems are easily caused. For example, when playing a game with a hand-held mobile phone, the speaker may be blocked, which also causes the volume to be small and the sound quality to deteriorate. There is also a scene. When the phone is placed in the pocket of the phone, the phone is generally vertical. If the speaker is located below the phone, the volume will become smaller, which may result in the inability to hear the ringtone or SMS ringtone. , Missing the phone, causing inconvenience to the user. In the related art, a method of increasing the volume is provided, in which a plurality of speakers are set on the terminal, but a plurality of speakers use the same path, and work at the same time, causing interference with each other, and lowering the sound quality. Regarding the above problems in the related art, an effective solution has not been proposed. SUMMARY OF THE INVENTION In the related art, the method for placing a terminal affects a technical problem such as an external release effect of the terminal, and the present invention provides a method and device for releasing a sound based on a terminal speaker, and a terminal, to at least solve the above technical problem. According to an embodiment of the present invention, a method for externally releasing a sound based on a terminal speaker is provided, including: acquiring, by a terminal, a current placement manner of the terminal; The specified speaker is selected from the speaker for sound external release, wherein the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker. Preferably, the terminal selects a designated speaker from the plurality of speakers of the terminal to perform sound external release according to the placing manner, and the method includes: the terminal controls, according to the placing manner, a speaker that is currently performing sound external switching to switch to The designated speaker. Preferably, the method further includes: receiving an operation instruction of the user; and triggering, by the operation instruction, the terminal preferentially selecting a speaker corresponding to the operation instruction to perform sound external release. Preferably, the terminal acquires the current placement manner of the terminal, and the method includes: the terminal acquiring data currently collected by the built-in gravity sensor of the terminal; and determining, by the terminal, the placement manner according to the data. Preferably, the placing manner comprises one of the following: the terminal is placed vertically in the forward or reverse direction, the terminal is placed in the lateral direction, and the terminal is placed horizontally. According to another embodiment of the present invention, a sound emitting device based on a terminal speaker is provided, comprising: an obtaining module configured to acquire a current placement mode of the terminal; and a selection module configured to follow the placing manner Selecting a designated speaker from a plurality of speakers of the terminal for sound external release, wherein a current external release effect of the designated speaker is better than a current external release effect of the unselected speaker. Preferably, the selection module is further configured to switch the speaker currently performing the sound out to the designated speaker according to the placement manner. Preferably, the obtaining module includes: an acquiring unit, configured to acquire data currently collected by the built-in gravity sensor of the terminal; and a determining unit configured to determine the placing manner according to the data. According to still another embodiment of the present invention, a terminal includes a plurality of speakers, and further includes: a sensor configured to sense a display manner of the terminal; and a processor configured to generate a switching signal according to the placing manner; And an electronic switch, configured to select a designated speaker from the plurality of speakers to perform sound external release according to the switching signal, wherein a current external release effect of the designated speaker is better than a current external release effect of the unselected speaker. Preferably, the sensor comprises: a gravity sensor. According to the present invention, the technical means for selecting a speaker to perform sound release from a plurality of speakers of the terminal according to the placement manner thereof is adopted, and the technical problems such as the placement mode of the terminal in the related art affecting the external release effect of the terminal are solved. Therefore, the sound external release effect can be ensured in any position of the terminal, and the user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a flow chart of a sound emitting method based on a terminal speaker according to an embodiment of the present invention; FIG. 2 is a block diagram showing a structure of a sound emitting device based on a terminal speaker according to an embodiment of the present invention; FIG. 4 is a structural block diagram of a terminal according to an embodiment of the present invention; FIG. 5 is a structural diagram of a terminal according to an embodiment of the present invention; FIG. FIG. 6 is a schematic diagram of the corresponding relationship between the terminal basic placement mode and the gravity sensor according to the embodiment of the present invention;
图 7 为根据本发明实施例的终端基础放置方式及重力传感器的对应关系示意图 FIG. 7 is a schematic diagram of a corresponding relationship between a terminal basic placement mode and a gravity sensor according to an embodiment of the invention.
图 8 为根据本发明实施例的终端基础放置方式及重力传感器的对应关系示意图 四; 图 9 为根据本发明实施例的终端基础放置方式及重力传感器的对应关系示意图 五; 图 10 为根据本发明实施例的终端基础放置方式及重力传感器的对应关系示意图 六; 图 11为根据本发明实施例的多 speaker智能切换原理示意图; 图 12为根据本发明优选实施例的基于终端扬声器的声音外放方法的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1为根据本发明实施例的基于终端扬声器的声音外放方法的流程图。 如图 1所 示, 该方法包括以下处理步骤: 步骤 S102, 终端获取该终端当前的摆放方式; 步骤 S104,终端按照上述摆放方式从终端的多个扬声器中选择指定扬声器进行声 音外放,其中,该指定扬声器的当前外放效果优于未被选择的扬声器的当前外放效果。 通过上述各个处理步骤, 由于终端可以根据其摆放方式选择相应的扬声器 (即选 择此时声放效果不受摆放方式影响的扬声器) 进行声音外放, 因此, 可以在终端的任 意摆放状态下保证声音外放效果, 提升用户体验。 步骤 S104的实现方式有多种, 在一个优选实施方式中, 可以采用以下方式实现: 终端按照上述摆放方式控制当前进行声音外放的扬声器切换至上述指定扬声器。 该种 实现方式具体可以通过一个电子切换开关实现: 电子切换开关可以实现将相应的 speaker通路接通, 使得该 speaker处于工作状态 (即处于声音外放状态)。 为进一步提升用户体验, 用户可以自己选择合适的扬声器, 例如可以通过以下方 式实现: 接收用户的操作指令; 在该操作指令的触发下, 终端优先选择与该操作指令 对应的扬声器进行声音外放。 该种方案具体可以通过软件或硬件的形式实现: 例如设 置相应的功能键, 或设置一个扬声器的选择界面等, 但不限于此。 步骤 S102的实现方式有多种,例如可以通过重力传感器或方向传感器等实现,在 本实施例的一个优选实施方式中, 可以采用以下方式实现: 终端获取终端内置重力传 感器当前采集的数据; 终端根据上述数据确定上述摆放方式。 在本实施例中, 上述摆放方式包括但不限于以下之一: 终端正向或反向竖直摆放、 终端侧向摆放、 终端水平摆放 (包括但不限于正面朝上或朝下水平放置等)。 在本实施例中, 还提供一种基于终端扬声器的声音外放装置, 如图 2所示, 该装 置包括: 获取模块 20, 设置为获取终端当前的摆放方式; 选择模块 22,连接至获取模块 20,设置为按照上述摆放方式从终端的多个扬声器 中选择指定扬声器进行声音外放, 其中, 该指定扬声器的当前外放效果优于未被选择 的扬声器的当前外放效果。 在本实施例中, 选择模块 22, 还设置为按照上述摆放方式控制当前进行声音外放 的扬声器切换至上述指定扬声器。 在本实施例的一个优选实施方式中, 如图 3所示, 获取模块 20还可以包括: 获取 单元 200, 设置为获取上述终端内置重力传感器当前采集的数据; 确定单元 202, 连接 至获取单元 200, 设置为根据上述数据确定上述摆放方式。 需要说明的是, 上述各个模块是可以通过硬件或软件来实现的, 对于前者, 可以 通过以下方式实现: 获取模块 20和选择模块 22位于同一处理器中, 获取模块 20和 选择模块 22分别位于第一处理器和第二处理器中。 在本实施例中, 还提供一种终端, 如图 4所示,包括: 多个扬声器 40, 传感器 42, 设置为感测终端的摆放方式; 处理器 44, 连接至传感器 42, 设置为根据上述摆放方式 产生切换信号; 电子切换开关 46, 连接至处理器 44, 设置为根据上述切换信号从上述 多个扬声器中选择指定扬声器进行声音外放, 其中, 上述指定扬声器的当前外放效果 优于未被选择的扬声器的当前外放效果。 在本实施例的一个优选实施方式中,传感器 42可以包括但不限于:重力传感器(或 称为加速度传感器)。 为了更好地理解上述实施例, 以下结合优选实施例详细说明。 本实施例的主要设计思想在于, 通过重力传感器同时读取三个维度 (x, y, z) 的 数值, 可以方便的判断出终端的摆放方式, 然后终端可以根据重力传感器判断终端所 处的位置 (即终端的摆放方式), 然后选择一个最合适的 speaker进行工作, 从而保证 终端无论处于什么位置, 都可以保证音量大小正常, 音质正常。 如图 11所示, 本实施例的原理如下: 终端包括处理器 44, 多个 speaker 40, 一 个电子切换开关 46和一个重力传感器 42。 其中, 终端的重力传感器感 42 感应终端的摆放情况, 共有以下几种基本摆放方 式, 如正面朝上水平放置, 正面朝下水平放置, 垂直放置等, 以下会详细说明, 此处 不再赘述。 它可以实时记录 (x,y,z) 三个方位的数值, 从而可以准备判断终端当前的 放置方式。 处理器 44, 接收重力传感器 42的数据, 判断出终端摆放方式, 然后查表, 和终 端本身的 speaker 40位置进行匹配, 找到最合适的 speaker 40, 然后向电子切换开 关发出控制命令; 这里的处理器可以直接使用终端本身的处理器, 当然也可以使用其 他的处理器。 选择与此放置方式对应的 speaker;并将指令发送给电子切换开关执行。 电子切换开关 46, 根据指令连接对应的 speaker通路, 使其处于工作状态。 电子 切换开关: 电子切换开关根据控制器的指令, 可以选择某一个 speaker通路, 相应的, 没有被选中的, 就默认为其通路关闭; 它接受控制器的指令并执行指令。 扬声器 (或称为喇叭) Speaker 40: 本实施例中, 终端具有两个 speaker, 分别 为位于背面的 speaker!和位于终端底部的 speaker2。 它的主要作用是进行音频声音 外放, 本实施例中, 指定 speaker40 (例如图中上面或下面的扬声器) 的开启, 受控 制器的控制。 本实施例的多 speaker终端有两个或两个以上的 speaker, 为了便于说明, 以具 有两个 speaker的终端为实例进行说明。 在以下实施例中, 假设两个 speaker分别位 于终端的背面和终端的垂直放置时的下部。 如图 5-10所示, 本发明的终端基础放置方式有 6种, 其他放置也可以归为这 6 种方式的一种; 基础放置位置: 终端有六个基本面, 以六个基准面为基准, 可以有六种基础放置 方式, 分别如图 5-10中的六个图形所示。 当然, 还有还多放置方式是介于这六种放置 方式之间的, 这些中间的状态都可以归为六种中的一种, 因此不再单独说明。 现对六 种基础放置方式分别予以说明: 基础放置方式 1 : 终端垂直放置, 此时重力传感器的数据应该是 (*, +g , *), 其 中 Y轴是重力加速度的数值 (g), X和 z轴的数据是 0左右的数据 (完全垂直的情况 是 0, 但是实际中会是一个在 0左右摆动的数值)。 因此只要判断出 Y轴的数值是 g, 即可判定终端当前的放置方式如图 5所示。 基础放置方式 2: 终端垂直放置, 然后旋转 180° C, 即垂直倒立。 此时重力传感 器的数据应该是 (*, -g , *), 其中 Y轴是重力加速度负的数值 (-g), X和 z轴的数 据是 0左右的数据(完全垂直的情况是 0,但是实际中会是一个在 0左右摆动的数值)。 因此只要判断出 Y轴的数值是 -g, 即可判定终端当前的放置方式如图 6所示。 基础放置方式 3: 终端水平放置, 屏幕朝上, 这也是终端非常常见的一种方式, 如果终端的 speaker正好处于终端背面, 则此时音质坑定受到很大影响。 此时重力传 感器的数据应该是 (+g, *, *), 其中 X轴是重力加速度的数值 (+g), y和 z轴的数 据是 0左右的数据(完全垂直的情况是 0,但是实际中会是一个在 0左右摆动的数值)。 因此只要判断出 X轴的数值是 +g, 即可判定终端当前的放置方式如图 7所示。 基础放置方式 4: 终端水平放置, 屏幕朝下, 这也是终端非常常见的一种方式。 此时重力传感器的数据应该是 (-g, *, *), 其中 X轴是重力加速度的数值 (-g), y 和 z轴的数据是 0左右的数据 (完全垂直的情况是 0, 但是实际中会是一个在 0左右 摆动的数值)。 因此只要判断出 X轴的数值是 -g, 即可判定终端当前的放置方式如图 8 所示。 基础放置方式 5: 终端垂直侧放, 及垂直放置的基础上旋转 90° , 此时重力传感 器的数据应该是 (*, * , +g), 其中 Z轴是重力加速度的数值 (+g), X和 y轴的数据 是 0左右的数据 (完全垂直的情况是 0, 但是实际中会是一个在 0左右摆动的数值)。 因此只要判断出 Z轴的数值是 +g, 即可判定终端当前的放置方式如图 9所示。 基础放置方式 6: 终端垂直侧放, 及垂直放置的基础上旋转 90° , 此时重力传感 器的数据应该是 (*, * , -g), 其中 Z轴是重力加速度的数值 (-g), X和 y轴的数据 是 0左右的数据 (完全垂直的情况是 0, 但是实际中会是一个在 0左右摆动的数值)。 因此只要判断出 Z轴的数值是 -g, 即可判定终端当前的放置方式如图 10所示。 重力传感器和基础放置位置: 通过重力传感器的数值, 可以非常方便的判断出终 端目前的基础位置, 而终端的 speaker位置一旦设计完毕, 也是确定的, 因此可以将 每个基础放置位置都和某个 speaker绑定, 并以列表的形式固化在终端程序中。 如图 12所示, 基于终端扬声器的声音外放方法的流程如下: 步骤 S1202: 系统初始化, 系统将终端的各个基础放置方式和某个 speaker进行 对应, 这些对应关系, 程序可以进行查询。 如基础放置方式 1和 2, 由于终端垂直放 置, 位于底部的 speaker2就被遮挡, 所以我们此时要选择 speaker!, 即基础放置 方式 1和 2与 speakei 对应。 同理, 可以判断其他基础放置方式和 speaker的对应 关系; 由于每种终端的 speaker位置不一样, 所以这个初始化需要根据每种终端进行, 具体可以设计一个用户界面, 由用户自己根据终端的情况进行配置, 配置每个基础摆 放方式对应的 speaker。 由于有六个基础摆放方式, 而 speaker可能在只有两三个, 所以会出现多个基础摆放方式对应同一个 speaker的情况。 步骤 S1204: 重力传感器同样情况下是默认打开的, 可以不做特殊处理, 它自动 会记录 (x,y,z) 三个方位的加速度数值; 为了保证重力传感器是有效的, 在程序初始 化时, 会对重力传感器进行校准和数据读取操作, 如果重力传感器有问题, 会在 UI 界面给出提示, 及时通知用户。 步骤 S1206: 处理器实时读取重力传感器的 (x,y,z) 的数值, 并根据这些数值判 断终端的放置方式, 如 x=+g(g是地球引力下的加速度, 约为 9.8m/s2), 则可以判断终端此时是水平 放置, 且屏幕朝上, 即图 7中的基础放置方式, 此时应该选择 speaker2进行工作。 如 x=-g(g是地球引力下的加速度, 约为 9.8m/s2), 则可以判断终端此时是水平放 置, 且屏幕朝下, 即图 8中的基础放置方式, 此时选择 speaker! 进行工作, 此时选 择 speaker2也可以。 如 y=+g(g是地球引力下的加速度, 约为 9.8m/s2), 则可以判断终端此时是垂直 放置, 且是正序, 即图 5中的基础放置方式, 此时应该选择 speaker!进行工作。 如 =-9 是地球引力下的加速度, 约为 9.8m/s2), 则可以判断终端此时是水平放 置, 且屏幕朝下, 即图 6中的基础放置方式, 此时选择 speakei 进行工作, 此时选 择 speaker2也可以。 如 z=+g(g是地球引力下的加速度, 约为 9.8m/s2), 则可以判断终端此时是垂直 放置, 且是正序, 即图 9中的基础放置方式, 此时应该选择 speakei 进行工作。 如2=-9(9是地球引力下的加速度, 约为 9.8m/s2), 则可以判断终端此时是水平放 置, 且屏幕朝下, 即图 10中的基础放置方式, 此时选择 speakei 进行工作; 步骤 S1208: 判断终端之前的基础放置方式是否和现在检测到的基础放置方式一 致, 如果一致, 不需要改变, 步骤跳转到 S1206, 如果不一致, 执行步骤 S1210; 步骤 S1210: 处理器查询当前基础放置方式对应的 speaker,这个查询列表, 在步 骤 S1202中已经给出。 查询完毕, 即可知道应该使用哪个 speaker。 然后处理器给电 子切换开关发送指令; 步骤 S1212: 电子切换开关接收指令, 打开指定的 speaker。 指定的 speaker 就可以工作, 而没有被指定的 speaker不工作。 完成后, 跳转到步骤 S1206, 持续循 环。 直到程序停止或者终端关机。 以上的步骤都是程序自动执行的, 无需人工参与。 但是也可以在此基础上增加一 个人工干预选项。 这个可以在程序中设置, 用户可以选择他希望使用的 speaker, 然 后系统会让这个 speaker工作。 但是有几点要进行说明: a)人工设置的优先级高于程序自动判断的优先级, 即只要用户选择了某个具体的 speaker, 终端就要使用该 speaker进行外放; b)—般情况下, 建议以程序自动判断为主, 程序更灵活, 反馈更灵敏, 可以弥补 人工操作迟缓的问题, 可以最大程序的提供较高的音质和音量。 综上所述, 本发明实施例实现了以下有益效果: 相比目前的 speaker 技术有以下优点: 不管终端如何摆放, 都可以选择合适的 speaker, 从而保证音量和音质; 硬件方面只增加一个电子开关(终端有一个 speaker 时, 需要增加一个或多个), 其他可以借用终端已有的配置(例如终端本身配置的重力 传感器), 实现简单方便; 每次只有一个 speaker工作, 保证多个 speaker不会相互 干扰, 导致音质下降; 全程由程序自动执行, 整个过程的数据读取, 程序判断和执行 都是按照脚本自动执行, 无需人工参与, 可靠实用。 另外, 本发明也提供人工修改的 途径, 即用户可以人工设置具体的哪个 Speaker工作, 给用户更大的选择权和操作体 验。 在另外一个实施例中, 还提供了一种软件, 该软件用于执行上述实施例及优选实 施方式中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述软件, 该存储介质包括但不限于: 光盘、 软盘、 硬盘、 可擦写存储器等。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技术人 员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的任何 修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 工业实用性 本发明实施例提供的技术方案可以应用于终端的声音外放过程中, 采用终端按照 其摆放方式从终端的多个扬声器中选择指定扬声器进行声音外放的技术手段, 解决了 相关技术中终端的摆放方式会影响终端的外放效果等技术问题, 从而可以在终端的任 意摆放状态下保证声音外放效果, 提升了用户体验。 FIG. 8 is a schematic diagram of a corresponding relationship between a terminal basic placement mode and a gravity sensor according to an embodiment of the present invention; FIG. 9 is a schematic diagram of a corresponding relationship between a terminal basic placement mode and a gravity sensor according to an embodiment of the present invention; FIG. FIG. 11 is a schematic diagram of a multi-speaker intelligent switching principle according to an embodiment of the present invention; FIG. 12 is a schematic diagram of a terminal speaker-based sound external release method according to an embodiment of the present invention; Flow chart. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. 1 is a flow chart of a method for sound release based on a terminal speaker according to an embodiment of the present invention. As shown in FIG. 1 , the method includes the following steps: Step S102: The terminal acquires a current placement manner of the terminal. Step S104: The terminal selects a designated speaker from multiple speakers of the terminal to perform sound release according to the foregoing manner. Among them, the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker. Through the above various processing steps, since the terminal can select the corresponding speaker according to the placement manner (that is, select the speaker whose sound effect is not affected by the placement mode), the sound is released, so that it can be placed in any position of the terminal. The sound is released to enhance the user experience. There are a plurality of implementations of the step S104. In a preferred embodiment, the terminal can be implemented in the following manner: The terminal controls the speaker currently performing the sound external release to switch to the designated speaker according to the above-mentioned placement manner. The implementation manner can be specifically implemented by an electronic switch: The electronic switch can enable the corresponding speaker path to be turned on, so that the speaker is in an active state (ie, in a sound external state). In order to further enhance the user experience, the user can select a suitable speaker, for example, by: receiving an operation instruction of the user; and triggering the operation instruction, the terminal preferentially selects a speaker corresponding to the operation instruction to perform sound external release. The solution may be implemented in the form of software or hardware, for example, setting a corresponding function key, or setting a selection interface of a speaker, etc., but is not limited thereto. Step S102 is implemented in various manners, for example, by using a gravity sensor or a direction sensor. In a preferred embodiment of the present embodiment, the following manner may be adopted: the terminal acquires data currently collected by the built-in gravity sensor of the terminal; The above data determines the above placement method. In this embodiment, the above-mentioned placement manner includes, but is not limited to, one of the following: the terminal is placed vertically in the forward or reverse direction, the terminal is placed sideways, and the terminal is placed horizontally (including but not limited to face up or down). Place horizontally, etc.). In this embodiment, a sound emitting device based on a terminal speaker is further provided. As shown in FIG. 2, the device includes: an obtaining module 20 configured to acquire a current placement mode of the terminal; and a selection module 22 connected to obtain The module 20 is configured to select a designated speaker from a plurality of speakers of the terminal for sound external release according to the above-mentioned placement manner, wherein the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker. In this embodiment, the selection module 22 is further configured to control the speaker currently performing the sound external release to switch to the designated speaker according to the above-mentioned placement mode. In a preferred embodiment of the present embodiment, as shown in FIG. 3, the obtaining module 20 may further include: an obtaining unit 200 configured to acquire data currently collected by the built-in gravity sensor of the terminal; and a determining unit 202 connected to the acquiring unit 200. , set to determine the above placement method based on the above data. It should be noted that each of the foregoing modules may be implemented by using hardware or software. For the former, the following may be implemented: The obtaining module 20 and the selecting module 22 are located in the same processor, and the obtaining module 20 and the selecting module 22 are respectively located in the first A processor and a second processor. In this embodiment, a terminal is provided. As shown in FIG. 4, the method includes: a plurality of speakers 40, a sensor 42 disposed to sense a display manner of the terminal; and a processor 44 connected to the sensor 42 and configured to be The display mode generates a switching signal; the electronic switch 46 is connected to the processor 44, and is configured to select a designated speaker from the plurality of speakers to perform sound external release according to the switching signal, wherein the current external release effect of the designated speaker is excellent The current external release effect of the speaker that is not selected. In a preferred embodiment of the present embodiment, the sensor 42 may include, but is not limited to, a gravity sensor (or an acceleration sensor). In order to better understand the above embodiments, the following detailed description will be given in conjunction with the preferred embodiments. The main design idea of this embodiment is that the gravity sensor can simultaneously read the values of the three dimensions (x, y, z), and the terminal can be conveniently determined. Then the terminal can judge the terminal according to the gravity sensor. The position (that is, the way the terminal is placed), and then select the most suitable speaker to work, so that the terminal can ensure that the volume is normal and the sound quality is normal regardless of the position. As shown in FIG. 11, the principle of this embodiment is as follows: The terminal includes a processor 44, a plurality of speakers 40, an electronic switch 46 and a gravity sensor 42. Among them, the gravity sensor 42 of the terminal is placed in the sensing terminal. There are several basic placement methods, such as horizontally facing up, horizontally facing down, vertical placement, etc., which will be described in detail below. Narration. It can record the values of the three directions (x, y, z) in real time, so that it can be prepared to judge the current placement of the terminal. The processor 44 receives the data of the gravity sensor 42, determines the terminal placement mode, and then looks up the table, matches the position of the speaker 40 of the terminal itself, finds the most suitable speaker 40, and then switches to the electronic switch. The control command is issued; the processor here can directly use the processor of the terminal itself, and of course, other processors can also be used. Select the speaker corresponding to this placement method; send the command to the electronic switch to execute. The electronic switch 46 connects the corresponding speaker path according to the command to make it work. Electronic switch: The electronic switch can select one of the speaker channels according to the instruction of the controller. Correspondingly, if it is not selected, it will be closed by default; it accepts the command of the controller and executes the command. Speaker (or speaker) Speaker 40: In this embodiment, the terminal has two speakers, speaker@located on the back and speaker2 at the bottom of the terminal. Its main function is to perform audio sound release. In this embodiment, the opening of the speaker 40 (for example, the speaker above or below the figure) is specified, which is controlled by the controller. The multi-speaker terminal of this embodiment has two or more speakers. For convenience of explanation, a terminal having two speakers will be described as an example. In the following embodiments, it is assumed that two speakers are respectively located at the back of the terminal and the lower portion of the terminal when placed vertically. As shown in Figure 5-10, there are 6 types of terminal basic placement methods of the present invention, and other placements can also be classified into one of the 6 modes; the basic placement position: the terminal has six basic planes, and the six reference planes are Benchmarks, there are six basic placement methods, as shown in the six figures in Figure 5-10. Of course, there are still more placement methods between the six placement methods, and these intermediate states can be classified into one of six, and therefore will not be separately described. The six basic placement methods are explained separately: Basic placement method 1: The terminal is placed vertically. At this time, the gravity sensor data should be (*, +g, *), where the Y axis is the value of gravity acceleration (g), X The data of the z-axis and the z-axis are data of about 0 (the case of the completely vertical is 0, but in reality, it is a value that swings around 0). Therefore, as long as it is judged that the value of the Y-axis is g, it can be determined that the current placement mode of the terminal is as shown in FIG. 5. Basic placement 2: The terminal is placed vertically and then rotated 180° C, ie vertically inverted. At this time, the gravity sensor data should be (*, -g, *), where the Y axis is a negative value of gravity acceleration (-g), and the data of the X and z axes is about 0 (the case of a completely vertical is 0, But in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the Y-axis is -g, it can be determined that the current placement mode of the terminal is as shown in FIG. 6. Basic placement mode 3: The terminal is placed horizontally and the screen is facing up. This is also a very common way for the terminal. If the speaker of the terminal is just at the back of the terminal, the sound quality pit will be greatly affected. At this time, the gravity sensor data should be (+g, *, *), where the X axis is the value of gravity acceleration (+g), the number of y and z axes According to the data of 0 or so (the case of completely vertical is 0, but in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the X-axis is +g, it can be determined that the current placement mode of the terminal is as shown in FIG. Basic placement method 4: The terminal is placed horizontally with the screen facing down, which is also a very common way for terminals. At this time, the gravity sensor data should be (-g, *, *), where the X axis is the value of gravity acceleration (-g), and the data of the y and z axes is about 0 (the case of complete vertical is 0, but In practice, it will be a value that swings around 0). Therefore, as long as it is judged that the value of the X-axis is -g, it can be determined that the current placement mode of the terminal is as shown in FIG. Basic placement mode 5: The terminal is placed vertically on the side and rotated 90° on the vertical basis. The data of the gravity sensor should be (*, *, +g), where the Z axis is the value of gravity acceleration (+g). The data of the X and y axes is about 0 (the case of a completely vertical is 0, but in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the Z axis is +g, it can be determined that the current placement mode of the terminal is as shown in FIG. Basic placement mode 6: The terminal is placed vertically on the side and rotated 90° on the vertical basis. The data of the gravity sensor should be (*, *, -g), where the Z axis is the value of gravity acceleration (-g). The data of the X and y axes is about 0 (the case of a completely vertical is 0, but in reality it will be a value that swings around 0). Therefore, as long as it is judged that the value of the Z axis is -g, it can be determined that the current placement mode of the terminal is as shown in FIG. Gravity sensor and basic placement position: The value of the gravity sensor can be used to judge the current basic position of the terminal very easily. Once the terminal position of the terminal is designed, it is also determined, so each base can be placed in a certain position. The speaker is bound and solidified in the terminal program in the form of a list. As shown in FIG. 12, the flow of the sound release method based on the terminal speaker is as follows: Step S1202: The system is initialized, and the system associates each basic placement mode of the terminal with a certain speaker. These correspondences can be queried by the program. For basic placement methods 1 and 2, since the terminal is placed vertically, the speaker2 at the bottom is occluded, so we have to choose speaker!, that is, the basic placement methods 1 and 2 correspond to speakei. In the same way, the correspondence between other basic placement methods and the speaker can be judged; since the speaker position of each terminal is different, this initialization needs to be performed according to each terminal, and a user interface can be specifically designed, and the user himself can perform according to the situation of the terminal. Configure, configure the speaker corresponding to each basic placement mode. Since there are six basic placement methods, and the speaker may be only two or three, there will be multiple cases where the basic placement method corresponds to the same speaker. Step S1204: The gravity sensor is opened by default in the same case. It can be recorded without special processing. It automatically records the acceleration values of the three directions (x, y, z). In order to ensure that the gravity sensor is valid, during program initialization, The gravity sensor will be calibrated and read. If there is a problem with the gravity sensor, a prompt will be given on the UI interface to notify the user in time. Step S1206: The processor reads the value of the (x, y, z) of the gravity sensor in real time, and judges the placement manner of the terminal according to the values, such as x=+g (g is the acceleration under the gravity of the earth, about 9.8 m/ S2), it can be judged that the terminal is placed horizontally at this time, and the screen is facing upward, that is, the basic placement mode in FIG. 7, and speaker2 should be selected to work. If x=-g (g is the acceleration under the gravity of the earth, about 9.8m/s2), it can be judged that the terminal is placed horizontally at this time, and the screen is facing down, that is, the basic placement mode in Fig. 8, then select speaker ! To work, select speaker2 at this time. If y=+g (g is the acceleration under the gravity of the earth, about 9.8m/s2), it can be judged that the terminal is vertically placed at this time, and it is the positive sequence, that is, the basic placement mode in Fig. 5, and the speaker should be selected at this time. !working. If =-9 is the acceleration under the gravity of the Earth, about 9.8m/s2), it can be judged that the terminal is placed horizontally at this time, and the screen is facing down, that is, the basic placement mode in Figure 6, at this time, select speakei to work, At this point, you can choose speaker2. For example, if z=+g (g is the acceleration under the gravity of the earth, about 9.8m/s2), it can be judged that the terminal is vertically placed at this time, and it is the positive sequence, that is, the basic placement mode in Fig. 9. At this time, you should select speakei. working. For example, if 2=-9 ( 9 is the acceleration under the gravity of the earth, about 9.8m/s2), it can be judged that the terminal is placed horizontally at this time, and the screen is facing down, that is, the basic placement mode in Fig. 10, and then select speakei. Step S1208: It is determined whether the basic placement mode of the terminal is consistent with the basic placement mode currently detected. If they are consistent, no change is needed, and the process branches to S1206. If not, step S1210 is performed; Step S1210: Processor query The speaker corresponding to the current basic placement mode, this list of queries, has been given in step S1202. Once the query is complete, you know which speaker you should use. The processor then sends an instruction to the electronic switch; Step S1212: The electronic switch receives the command and turns on the specified speaker. The specified speaker will work, and the speaker that is not specified will not work. Upon completion, the process jumps to step S1206 to continue the loop. Until the program stops or the terminal is shut down. The above steps are all automatically executed by the program without manual intervention. But you can also add a manual intervention option based on this. This can be set in the program, the user can select the speaker he wants to use, and the system will let the speaker work. However, there are a few points to be explained: a) The priority of the manual setting is higher than the priority of the automatic judgment of the program, that is, as long as the user selects a specific speaker, the terminal uses the speaker for external release; b) the general situation Next, it is recommended to use the program to automatically judge the main, the program is more flexible, the feedback is more sensitive, can make up for the problem of slow manual operation, and can provide higher sound quality and volume for the largest program. In summary, the embodiments of the present invention achieve the following beneficial effects: Compared with the current speaker technology, the following advantages are achieved: No matter how the terminal is placed, a suitable speaker can be selected to ensure volume and sound quality; only one electronic component is added to the hardware. Switch (when the terminal has a speaker, one or more need to be added), other can borrow the existing configuration of the terminal (such as the gravity sensor configured by the terminal itself), which is simple and convenient; only one speaker works at a time, ensuring that multiple speakers are not Will interfere with each other, resulting in a decline in sound quality; the entire process is automatically executed by the program, the entire process of data reading, program judgment and execution are automatically executed according to the script, without manual participation, reliable and practical. In addition, the present invention also provides a manual modification method, that is, the user can manually set which specific Speaker work, giving the user greater choice and operation experience. In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments. In another embodiment, a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. Industrial Applicability The technical solution provided by the embodiments of the present invention can be applied to a sound external release process of a terminal, and the technical means for selecting a designated speaker to perform sound external release from a plurality of speakers of the terminal according to the placement manner thereof is used, and the related information is solved. In the technology, the placement of the terminal affects the technical problems such as the external release effect of the terminal, so that the sound external release effect can be ensured in any position of the terminal, and the user experience is improved.

Claims

权 利 要 求 书 Claim
1. 一种基于终端扬声器的声音外放方法, 包括: 终端获取所述终端当前的摆放方式; A sound emitting method based on a terminal speaker, comprising: acquiring, by a terminal, a current placement manner of the terminal;
所述终端按照所述摆放方式从所述终端的多个扬声器中选择指定扬声器进 行声音外放, 其中, 所述指定扬声器的当前外放效果优于未被选择的扬声器的 当前外放效果。  The terminal selects a designated speaker from the plurality of speakers of the terminal to perform sound external release according to the placement manner, wherein the current external release effect of the designated speaker is better than the current external release effect of the unselected speaker.
2. 根据权利要求 1所述的方法, 其中, 所述终端按照所述摆放方式从所述终端的 多个扬声器中选择指定扬声器进行声音外放, 包括: 所述终端按照所述摆放方式控制当前进行声音外放的扬声器切换至所述指 定扬声器。 The method according to claim 1, wherein the terminal selects a designated speaker from a plurality of speakers of the terminal to perform sound external release according to the placing manner, and the method includes: the terminal according to the placing manner A speaker that controls the current sound out is switched to the designated speaker.
3. 根据权利要求 1所述的方法, 其中, 所述方法还包括: 接收用户的操作指令; 在所述操作指令的触发下, 所述终端优先选择与所述操作指令对应的扬声 器进行声音外放。 The method according to claim 1, wherein the method further comprises: receiving an operation instruction of the user; and triggering, by the operation instruction, the terminal to preferentially select a speaker corresponding to the operation instruction to perform an external sound put.
4. 根据权利要求 1所述的方法, 其中, 终端获取所述终端当前的摆放方式, 包括: 所述终端获取所述终端内置重力传感器当前采集的数据; The method according to claim 1, wherein the acquiring, by the terminal, the current placement manner of the terminal, the method includes: acquiring, by the terminal, data currently collected by the built-in gravity sensor of the terminal;
所述终端根据所述数据确定所述摆放方式。  The terminal determines the placement manner according to the data.
5. 根据权利要求 1至 4中任一项所述的方法,其中,所述摆放方式包括以下之一: 终端正向或反向竖直摆放、 终端侧向摆放、 终端水平摆放。 The method according to any one of claims 1 to 4, wherein the placing manner comprises one of the following: the terminal is placed vertically in the forward or reverse direction, the terminal is placed laterally, and the terminal is placed horizontally. .
6. 一种基于终端扬声器的声音外放装置, 包括: 获取模块, 设置为获取所述终端当前的摆放方式; A sound emitting device based on a terminal speaker, comprising: an acquiring module, configured to acquire a current display mode of the terminal;
选择模块, 设置为按照所述摆放方式从所述终端的多个扬声器中选择指定 扬声器进行声音外放, 其中, 所述指定扬声器的当前外放效果优于未被选择的 扬声器的当前外放效果。  a selection module, configured to select a specified speaker from a plurality of speakers of the terminal for sound external release according to the placing manner, wherein a current external release effect of the designated speaker is better than a current external release of the unselected speaker effect.
7. 根据权利要求 6所述的装置, 其中, 所述选择模块, 还设置为按照所述摆放方 式控制当前进行声音外放的扬声器切换至所述指定扬声器。 根据权利要求 6所述的装置, 其中, 所述获取模块包括: 获取单元, 设置为获取所述终端内置重力传感器当前采集的数据; 确定单元, 设置为根据所述数据确定所述摆放方式。 一种终端, 包括多个扬声器, 其中, 还包括: 传感器, 设置为感测终端的摆放方式; The device according to claim 6, wherein the selection module is further configured to switch the speaker that is currently performing sound out to the designated speaker according to the placement manner. The device according to claim 6, wherein the obtaining module comprises: an acquiring unit configured to acquire data currently collected by the built-in gravity sensor of the terminal; and a determining unit configured to determine the placing manner according to the data. A terminal includes a plurality of speakers, wherein: the method further includes: a sensor, configured to sense a display manner of the terminal;
处理器, 设置为根据所述摆放方式产生切换信号; 电子切换开关, 设置为根据所述切换信号从所述多个扬声器中选择指定扬 声器进行声音外放, 其中, 所述指定扬声器的当前外放效果优于未被选择的扬 声器的当前外放效果。 根据权利要求 9所述的终端, 其中, 所述传感器包括: 重力传感器。  a processor, configured to generate a switching signal according to the placing manner; and an electronic switching switch configured to select a specified speaker from the plurality of speakers to perform sound external release according to the switching signal, wherein the designated speaker is currently outside The effect of the release is better than the current release effect of the unselected speaker. The terminal according to claim 9, wherein the sensor comprises: a gravity sensor.
PCT/CN2014/084121 2014-06-30 2014-08-11 Sound speaking-out method and apparatus based on terminal loudspeaker and terminal WO2016000295A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410307195.4A CN105282301A (en) 2014-06-30 2014-06-30 Sound loudspeaking method, device and terminal based on terminal loudspeaker
CN201410307195.4 2014-06-30

Publications (1)

Publication Number Publication Date
WO2016000295A1 true WO2016000295A1 (en) 2016-01-07

Family

ID=55018350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/084121 WO2016000295A1 (en) 2014-06-30 2014-08-11 Sound speaking-out method and apparatus based on terminal loudspeaker and terminal

Country Status (2)

Country Link
CN (1) CN105282301A (en)
WO (1) WO2016000295A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534589A (en) * 2016-12-26 2017-03-22 宇龙计算机通信科技(深圳)有限公司 Mobile terminal control method and mobile terminal
CN109933197B (en) * 2019-03-12 2022-04-12 上海龙旗科技股份有限公司 Screen display adjusting method and device
CN113900508A (en) * 2021-02-08 2022-01-07 苏州亿尔奇信息科技有限公司 Disabled person service information management method and device and cloud server

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201667668U (en) * 2010-04-16 2010-12-08 北京景山创新通信技术有限公司 Mobile communication terminal of multidirectional operation
CN201681625U (en) * 2010-05-21 2010-12-22 睿俐翔智通讯技术(北京)有限公司 Multi-directional playing flat-panel mobile terminal
US20110045812A1 (en) * 2009-08-21 2011-02-24 Lg Electronics Inc. Selecting input/output components of a mobile terminal
CN102176765A (en) * 2011-01-31 2011-09-07 苏州佳世达电通有限公司 Method for controlling speaker on electronic device and electronic device
CN103155526A (en) * 2010-09-23 2013-06-12 捷讯研究有限公司 System and method for rotating a user interface for a mobile device
CN103295610A (en) * 2013-05-22 2013-09-11 华为技术有限公司 Audio playing method and audio playing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201967106U (en) * 2010-12-07 2011-09-07 北京乐投科技有限公司 Three-dimensional dual-track sound system of tablet computer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110045812A1 (en) * 2009-08-21 2011-02-24 Lg Electronics Inc. Selecting input/output components of a mobile terminal
CN201667668U (en) * 2010-04-16 2010-12-08 北京景山创新通信技术有限公司 Mobile communication terminal of multidirectional operation
CN201681625U (en) * 2010-05-21 2010-12-22 睿俐翔智通讯技术(北京)有限公司 Multi-directional playing flat-panel mobile terminal
CN103155526A (en) * 2010-09-23 2013-06-12 捷讯研究有限公司 System and method for rotating a user interface for a mobile device
CN102176765A (en) * 2011-01-31 2011-09-07 苏州佳世达电通有限公司 Method for controlling speaker on electronic device and electronic device
CN103295610A (en) * 2013-05-22 2013-09-11 华为技术有限公司 Audio playing method and audio playing device

Also Published As

Publication number Publication date
CN105282301A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
JP6265401B2 (en) Method and terminal for playing media
ES2527254T3 (en) Method of putting the mobile mobile terminal, microprocessor and corresponding mobile phone into standby
CN104618570B (en) The audio capturing of multi-microphone
WO2017020422A1 (en) Audio circuit selection method, device, circuit, and handheld terminal
WO2013174324A1 (en) Method of using light sensor earphone to control electronic device and light sensor earphone
JP2022505283A (en) Audio playback and collection methods, equipment, equipment and computer programs
KR101920029B1 (en) Mobile apparatus and control method thereof
US20140120894A1 (en) Mobile Device and Method for Controlling Application Procedures of the Mobile Device Thereof
JP2010109614A5 (en)
CN106489130A (en) For making audio balance so that the system and method play on an electronic device
US9524199B2 (en) Activating device functions based on configurations of device modules
WO2018058978A1 (en) Reminding method and device, electronic equipment and computer storage medium
JP2015135667A (en) Method and device for executing voice control operation on terminal
US20170180533A1 (en) Microphone switching system and method for mobile terminal
JP2020042799A (en) Ear set control method and system
WO2021042761A1 (en) Audio playback control method, smart phone, apparatus and readable storage medium
WO2016078233A1 (en) Recording method and apparatus, and terminal
WO2016000295A1 (en) Sound speaking-out method and apparatus based on terminal loudspeaker and terminal
WO2020103070A1 (en) Method and apparatus for processing application program, and electronic device
WO2018058815A1 (en) Information reminding method and apparatus
US9529905B2 (en) Information processing device, information processing method, program, and information storage medium
WO2020103045A1 (en) Application processing method and apparatus and electronic device
CN106506803B (en) A kind of control method and mobile device of mobile device
TWI630543B (en) An electronic device and method for replaying voice
JP2005520232A (en) Portable electronic device with means for recording the placement of the device in space

Legal Events

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

Ref document number: 14896765

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14896765

Country of ref document: EP

Kind code of ref document: A1