WO2017215158A1 - Communication terminal sound processing control method, device and communication terminal - Google Patents

Communication terminal sound processing control method, device and communication terminal Download PDF

Info

Publication number
WO2017215158A1
WO2017215158A1 PCT/CN2016/101802 CN2016101802W WO2017215158A1 WO 2017215158 A1 WO2017215158 A1 WO 2017215158A1 CN 2016101802 W CN2016101802 W CN 2016101802W WO 2017215158 A1 WO2017215158 A1 WO 2017215158A1
Authority
WO
WIPO (PCT)
Prior art keywords
working mode
communication terminal
current
orientation
mode
Prior art date
Application number
PCT/CN2016/101802
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 WO2017215158A1 publication Critical patent/WO2017215158A1/en

Links

Images

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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72442User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for playing music files
    • 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/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Definitions

  • the present invention relates to the field of terminal control, and in particular, to a communication terminal sound processing control method, apparatus, and communication terminal.
  • the existing terminal sets two speakers, four speakers or even more than four speakers to restore the stereo effect of the scene as much as possible.
  • the configuration of the working mode of the speaker on the terminal is fixed.
  • the channel switching module or other function module must be activated to enter the corresponding sound switching interface to manually change the The working mode of each speaker is set, and many ordinary users do not know how to change the working mode manually or do not know how to change the working mode of the speaker.
  • the terminal When the user uses the terminal, the terminal is often rotated or flipped according to different usage habits, or the terminal is rotated or flipped according to different usage scenarios, so that the orientation of the speaker on the terminal changes, and the existing terminal cannot follow the orientation of the speaker on the terminal.
  • the change automatically changes the working mode of the speaker, resulting in the sound played by the terminal not achieving the best effect, reducing the satisfaction of the user experience.
  • the communication terminal sound processing control method, device and communication terminal provided by the embodiments of the present invention mainly solve the technical problem that the working mode of the speaker cannot be automatically changed when the speaker orientation change on the existing terminal is solved, and the sound effect of the terminal is played.
  • the problem of not achieving the best results and low user experience satisfaction is low.
  • an embodiment of the present invention provides a voice processing control method for a communication terminal, including:
  • the operating mode of the speaker unit is correspondingly updated according to the current location of the speaker unit.
  • an embodiment of the present invention further provides a communication terminal sound processing control apparatus, including:
  • a speaker position detecting module configured to acquire an orientation of a speaker unit on the communication terminal
  • the speaker control module is configured to, when determining that the current working mode of the speaker unit does not match the current orientation, update the working mode of the speaker unit according to the current orientation of the speaker unit.
  • an embodiment of the present invention further provides a communication terminal, including the communication terminal sound processing control apparatus as described above.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing communication terminal sound processing control method.
  • the communication terminal sound processing control method, apparatus, communication terminal and computer storage medium provided by the embodiment of the present invention can acquire the current orientation of the speaker unit on the communication terminal, and then determine whether the current working mode of the speaker unit matches its current location. When matching, the operating mode of the speaker unit is updated correspondingly according to the current orientation of the speaker unit. Therefore, the embodiment of the present invention can implement corresponding adjustment of the working mode of the speaker unit of the communication terminal according to the current location of the communication terminal, so as to maximize the sound effect played by the communication terminal and improve the satisfaction of the user experience.
  • Embodiment 1 is a sound processing control of a communication terminal based on a speaker unit according to Embodiment 1 of the present invention.
  • Method flow diagram
  • FIG. 2 is a schematic flowchart of determining whether a working mode of a speaker unit matches a current location in the first embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a sound processing control method of a communication terminal based on a microphone unit according to Embodiment 1 of the present invention
  • FIG. 4 is a schematic flowchart of determining whether a working mode of a microphone unit matches a current location in the first embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a sound processing control apparatus for a communication terminal according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of another communication terminal sound processing control apparatus according to Embodiment 2 of the present invention.
  • FIG. 7 is a schematic diagram of setting a microphone and a speaker of a communication terminal according to Embodiment 2 of the present invention.
  • FIG. 8 is a schematic structural diagram of a sound processing control apparatus of the communication terminal of FIG. 7;
  • FIG. 9 is a schematic diagram of a sound processing control process of the communication terminal in FIG. 7;
  • FIG. 10 is a schematic diagram of calculating coordinates of the orientation of the communication terminal in FIG. 7;
  • FIG. 11 is a schematic diagram of the communication terminal of FIG. 7 after being rotated by more than 180 degrees;
  • FIG. 12 is a schematic diagram of setting left and right channels after the communication terminal of FIG. 11 rotates by more than 180 degrees;
  • Figure 13 is a schematic view of the communication terminal of Figure 7 after being rotated by 30°;
  • Figure 14 is a schematic view of the communication terminal of Figure 7 after being rotated by 90°;
  • Figure 15 is a schematic view of the communication terminal of Figure 7 after being rotated by 160°;
  • FIG. 16 is a schematic diagram of the communication terminal of FIG. 7 rotated by 180 degrees.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • the communication terminal sound processing control method in this embodiment includes:
  • S101 Acquire an orientation of a speaker unit on the communication terminal.
  • obtaining the orientation of the speaker unit on the communication terminal may be specifically determined according to the current orientation of the communication terminal and the position of each speaker unit on the communication terminal, and of course, the orientation of the speaker unit on the communication terminal may be separately performed by the corresponding sensor. Detection.
  • the solution provided by this embodiment is suitable for controlling each communication terminal having a speaker. Since the present embodiment relates to switching of a plurality of operation modes of the multi-speaker unit, the present embodiment can perform control for a communication terminal having a plurality of speaker units. For example, a communication terminal having a dual speaker unit, a communication terminal of a four-speaker unit, or a communication terminal of a plurality of other speaker units.
  • S102 Determine whether the current working mode of the speaker unit matches the current location, and if yes, go to S103; otherwise, go to S104.
  • a speaker orientation and a working mode correspondence table may be preset, and the speaker orientation and the working mode correspondence table include correspondences between the orientations of the speaker units and the working modes in different scenarios, and the corresponding relationship may be a terminal manufacturer.
  • the factory setting can also be flexibly set or adjusted according to the user's own needs or application scenarios.
  • determining whether the current working mode of the speaker unit matches the current orientation of the speaker is as shown in FIG. 2, including:
  • S201 Matching the first target working mode in the preset speaker orientation and the working mode correspondence table according to the current orientation of the speaker unit.
  • S203 Determine that the current working mode of the speaker unit does not match the current orientation of the speaker unit.
  • S103 Correspondingly update the working mode of the speaker unit according to the current orientation of the speaker unit.
  • the corresponding updating of the working mode of the speaker unit specifically includes: updating the current working mode of the speaker unit to a first target working mode corresponding to the current location of the speaker unit. In this way, the working mode of the speaker unit matches its current position, so that the effect of playing the sound is optimal.
  • one speaker unit in this embodiment may be composed of one speaker (horn), or may be composed of two or more speakers (horns).
  • the working mode of the speaker unit of the communication terminal can be correspondingly adjusted according to the current location of the communication terminal, so as to maximize the sound effect played by the communication terminal and improve the satisfaction of the user experience.
  • the operating mode of the speaker can be updated and controlled according to its current orientation in different sound playing scenes of the communication terminal.
  • the working mode of the speaker unit in the multimedia playing scene and/or the call scene may be adjusted correspondingly.
  • the following three scenarios are illustrated separately.
  • the location of the speaker unit Target work mode Left Left channel sound playback mode Right side Right channel sound playback mode
  • Terminal work scene The location of the speaker unit Target work mode Multimedia playback Left Left channel sound playback mode Multimedia playback Right side Right channel sound playback mode Multimedia playback Below Left channel sound playback mode Multimedia playback Above Right channel sound playback mode call Below Non-alarm mode call Above Earpiece mode
  • the speaker orientation and working mode correspondence table in the process of multimedia playback (including but not limited to sound playing and video playing), no matter how the user turns or flips the terminal, it can ensure that the speaker unit is in the left channel when it is below and left.
  • the sound playback mode is in the right channel sound playback mode when the speaker unit is on the right and above, to fully restore the stereo effect of the scene to ensure the user experience.
  • the speaker unit that is above ie, closest to the user's ear
  • the speaker list is based on the current orientation of the speaker unit.
  • the working mode of the meta is described in the corresponding update.
  • the microphone unit in this embodiment may be composed of one or two or more microphones.
  • the control process for the microphone unit is shown in Figure 3, including:
  • S301 Acquire an orientation of a microphone unit on the communication terminal.
  • obtaining the orientation of the microphone unit on the communication terminal may be specifically determined according to the current orientation of the communication terminal and the position of each microphone unit on the communication terminal.
  • the orientation of the speaker unit on the communication terminal may be separately performed by the corresponding sensor. Detection.
  • S302 Determine whether the current working mode of the microphone unit matches the current location, and if yes, go to S303; otherwise, go to S304.
  • a correspondence table between the microphone orientation and the working mode may be preset, the wheat Correspondence relationship between the wind direction and the working mode includes the correspondence between the orientation of the microphone unit and the working mode in different scenarios.
  • These correspondences may be factory settings of the terminal manufacturer, or may be flexibly set by the user according to his own needs or application scenarios. Or adjust.
  • determining whether the current working mode of the microphone unit matches the current location of the microphone is as shown in FIG. 4, and includes:
  • S401 Match the second target working mode in the preset microphone orientation and the working mode correspondence table according to the current orientation of the microphone unit.
  • S402 Determine whether the second target working mode is the same as the current working mode of the microphone unit. If no, go to S403; otherwise, go to S404.
  • S403 Determine that the current working mode of the microphone unit does not match the current orientation of the microphone unit.
  • S404 Determine that the current working mode of the microphone unit matches its current location.
  • S303 Correspondingly update the working mode of the microphone unit according to the current location of the microphone unit.
  • the corresponding updating of the working mode of the microphone unit specifically includes: updating a current working mode of the microphone unit to a second target working mode corresponding to a current location of the microphone unit. In this way, the working mode of the microphone unit matches its current position, so that the collected sound effect is optimal.
  • the working mode of the microphone unit in the multimedia recording including but not limited to video recording and sound recording
  • the call scene may be adjusted correspondingly.
  • the following three scenarios are illustrated separately.
  • Terminal work scene Position of the microphone unit Target work mode Multimedia recording Left Left channel sound collection mode Multimedia recording Right side Right channel sound collection mode Multimedia recording Below Left channel sound collection mode Multimedia recording Above Right channel sound collection mode call Below Main sound collection mode call Above Noise cancellation mode
  • the microphone unit can be in the left channel sound collection mode when the microphone unit is below and to the left, and the microphone unit is on the right and above. It is in the right channel sound collection mode to ensure full restoration of the live stereo effect during subsequent playback to ensure the user experience.
  • the microphone unit above ie, closest to the user's ear
  • the microphone that is, closest to the user's mouth
  • the current orientation of the microphone unit is the left side and the current working mode is the right channel sound collection mode, it is updated to the left channel sound collection mode;
  • the working mode of the communication terminal microphone unit can be correspondingly adjusted according to the current location of the communication terminal, so that the sound effect collected by the communication terminal is optimized as much as possible, and the satisfaction of the user experience is improved.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the present embodiment further provides a communication terminal, which may be a variety of mobile terminals, and the communication terminal includes a communication terminal sound processing control device. As shown in FIG. 5, the method includes:
  • the speaker position detecting module 51 is configured to acquire the current orientation of the speaker unit on the communication terminal; the speaker position detecting module 51 obtains the orientation of the speaker unit on the communication terminal. According to the current orientation of the communication terminal and the position of each speaker unit on the communication terminal, it is of course possible to separately detect the orientation of the speaker unit on the communication terminal through the corresponding sensor.
  • the speaker control module 52 is configured to determine whether the current working mode of the speaker unit matches the current location, and if not, update the working mode of the speaker unit according to the current orientation of the speaker unit; if the judgment result is that the two match, then The operating mode of the speaker unit is not changed.
  • the speaker orientation and the working mode correspondence table in this embodiment may be preset.
  • the speaker orientation and the working mode correspondence table include correspondences between the orientations of the speaker units and the working modes in different scenarios, and the corresponding relationship may be the terminal manufacturer.
  • the factory setting can also be flexibly set or adjusted according to the user's own needs or application scenarios.
  • the speaker control module 52 determines whether the current working mode of the speaker unit matches the current location of the speaker unit, including: matching the first target working mode in the preset speaker orientation and the working mode correspondence table according to the current orientation of the speaker unit; Whether the target working mode is the same as the current operating mode of the speaker unit, and if not, it is determined that the current working mode of the speaker unit does not match its current position. If the same, it is determined that the current working mode of the speaker unit matches its current position.
  • the speaker control module 52 correspondingly updates the working mode of the speaker unit, and specifically updates the current working mode of the speaker unit to the first target working mode corresponding to the current location of the speaker unit.
  • the operating mode of the speaker can be updated and controlled according to its current orientation in different sound playing scenes of the communication terminal.
  • the working mode of the speaker unit in the multimedia playing scene and/or the call scene may be adjusted correspondingly.
  • the correspondence between the speaker orientation and the working mode is shown in Tables 1 to 3 of the first embodiment.
  • the specific update process refer to the example shown in the first embodiment, and details are not described herein again.
  • the communication terminal sound processing control apparatus further includes:
  • the microphone position detecting module 53 is configured to acquire the current microphone unit on the communication terminal. Positioning; the position of the microphone unit on the communication terminal can be determined according to the current orientation of the communication terminal and the position of each microphone unit on the communication terminal, and of course, the speaker unit on the communication terminal can be separately used by the corresponding sensor. Azimuth is detected.
  • the microphone control module 54 is configured to update the working mode of the microphone unit according to the current location of the microphone unit when the current working mode of the microphone unit does not match the current orientation.
  • the correspondence between the microphone orientation and the working mode may also be preset.
  • the correspondence between the microphone orientation and the working mode includes the correspondence between the orientation of the microphone unit and the working mode in different scenarios, and the corresponding relationship may be the terminal.
  • the factory setting of the factory can also be flexibly set or adjusted according to the user's own needs or application scenarios.
  • the microphone control module 54 determines whether the current working mode of the microphone unit matches the current orientation of the microphone, and includes: matching the second target working mode in the preset microphone orientation and the working mode correspondence table according to the current orientation of the microphone unit; determining the second Whether the target working mode is the same as the current working mode of the microphone unit. If not, it is determined that the current working mode of the microphone unit does not match its current position; otherwise, it is determined that the current working mode of the microphone unit matches its current position.
  • the corresponding update of the working mode of the microphone unit by the microphone control module 54 specifically includes: updating the current working mode of the microphone unit to a second target working mode corresponding to the current location of the microphone unit. In this way, the working mode of the microphone unit matches its current position, so that the collected sound effect is optimal.
  • the working mode of the speaker can be updated and controlled according to the current orientation of the sound collection scene in the communication terminal.
  • the working mode of the microphone unit in the video, sound playing and/or calling scene can be adjusted correspondingly.
  • Table 4 to Table 6 of the first embodiment For the relationship between the microphone orientation and the working mode in different sound collection scenarios, refer to Table 4 to Table 6 of the first embodiment.
  • specific update process refer to the example shown in the first embodiment, and details are not described herein again.
  • the speaker position detecting module 51 and the microphone position in this embodiment can be implemented by the same position detecting module, or can be implemented by different position detecting modules, and the functions thereof can be specifically implemented by a processor or a controller in the communication terminal.
  • the speaker control module 52 and the microphone control module 54 in this embodiment may also be implemented by the same control module, or may be implemented by different control modules, and the functions thereof may be implemented by a processor or a controller in the communication terminal.
  • the communication terminal is a mobile terminal, and one end of the bottom of the mobile terminal is provided with a microphone unit 1 and a speaker unit 1, and the top is provided with a microphone unit 2 and a speaker unit 2, as shown in FIG.
  • the specific position and shape of the microphone unit 1, the speaker unit 1 and the microphone unit 2 and the speaker unit 2 disposed at the bottom and the top in the embodiment can be flexibly set according to the requirements of different terminals, and the top and bottom.
  • the position and shape of the speaker and microphone settings between the two can be the same or different.
  • the speaker position detecting module 51 and the microphone position detecting module 53 are implemented by a position detecting module. Referring to FIG.
  • the terminal position detecting module 71, the speaker control module 52 and the microphone control module 54 are referred to in this example. It is implemented by a control module, referred to as a sound control module 72 in this example, and includes an audio playback module 73 and an audio recording module 74 coupled to the sound control module 72.
  • a control module referred to as a sound control module 72 in this example, and includes an audio playback module 73 and an audio recording module 74 coupled to the sound control module 72.
  • the sound playing state and the sound recording state when the mobile terminal is in the state shown in FIG. 7, the setting manners of the left and right channels are as shown in FIG. 8.
  • the bottom of the state mobile terminal shown in Figure 7 can be considered to be at 0° and the top at 180°.
  • the audio recording module 74 starts the recording function, and sends information corresponding to the number of channels and the sampling rate to the sound control module 72.
  • the terminal orientation detecting module 71 needs to read the current terminal after receiving the sound control module 72.
  • the control command of the end position information is obtained, the current gravity acceleration of the mobile terminal and the data information of the geomagnetic sensor are obtained in real time, and the current mobile terminal rotation orientation information is calculated and transmitted back to the terminal orientation detecting module 71.
  • the sound control module 72 receives the corresponding recording parameter information and determines the left and right channel path configuration according to the rotation direction information of the mobile terminal (that is, sets the working mode of each microphone unit), and opens the corresponding left and right microphone units for recording.
  • the sound control module 72 returns the acquired recording data of the left and right microphone units to the audio recording module 74 for storage.
  • the above S802 and S803 may be repeated according to certain rules to quickly and flexibly adjust the working mode of the microphone according to the real-time orientation information of the mobile terminal.
  • the control process for the audio playback process is similar to the audio recording control process, and is mainly configured by the sound control module 72 to configure the corresponding left and right channel speaker units according to the rotation direction of the current terminal device.
  • any existing method for detecting the orientation of the terminal can be used.
  • the following is an example of calculating the direction and angle of the current rotation of the mobile terminal by using the coordinates of the acceleration sensor in the mobile terminal as an example. See the coordinate system shown in Figure 10. The calculation process is as follows:
  • the test can be defined as the reference direction of the mobile terminal (0 degree angle direction).
  • the regular left and right channel settings according to the present embodiment are the same as those shown in FIG. 8.
  • the rotation angles are 30, 90, and 160 on the basis of Fig. 7.
  • the speaker unit located on the left side is in the left channel sound playing state, and the speaker unit located on the right side is in the right channel sound playing state;
  • the microphone unit located on the left is in the left channel sound collection state, and the microphone unit on the right side is in the right channel sound collection state.
  • the bottom of the mobile terminal shown in FIG. 7 can be considered to be at 0° and the top at 180°.
  • the bottom is between 0° and 90° (0° and 90°) or 270° to 360° (270° and 360°)
  • it is determined that the microphone unit 1 is below, and the bottom is at 90°.
  • 180° (180°) or 180° to 270° (270°) it is determined that the microphone unit 1 and the speaker unit 1 are above.
  • the orientation of the speaker unit 2 is determined in the same manner.
  • the user In the hand-held call scenario, the user normally takes the mobile terminal, the bottom microphone unit 1 serves as the pickup main microphone, and the top microphone unit 2 is the noise canceling microphone; the top speaker unit 2 is configured as the earpiece mode as the output device for the call downlink data.
  • the top microphone unit 2 serves as the pickup main microphone, and the bottom microphone unit 1 is the noise canceling microphone; the bottom speaker unit 1 is configured as the handset mode as the output device for the call downlink data.
  • the main microphone is always close to the talking position during the call, and the noise is far away from the speaking position; the earpiece is closer to the speaker unit than the ear.
  • modules or steps of the above embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be implemented by program code executable by a computing device such that they may be stored in a computer storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases
  • ROM/RAM, diskette, optical disk a computer storage medium
  • the steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
  • the position of the left and right channels or the sound collecting microphone and the sound emitting speaker is automatically switched when the mobile terminal records/plays or talks.
  • the left microphone is always the left channel
  • the right microphone is the right channel
  • the call is also played during the playback to keep the left speaker playing the left microphone recording.
  • Left channel data the right speaker plays the right channel data recorded by the right microphone, which can truly restore the stereo effect of the scene; in the mobile terminal call state, regardless of whether the mobile terminal is taken down, it is always kept from the mouth.
  • the microphone close to the ear is the earpiece.
  • all the rotation angle judgments only depend on the geomagnetic sensor (the horizontal rotation direction judgment basis) and the gravity acceleration sensor (the vertical rotation angle judgment basis) commonly used in the mobile terminal. There is no additional hardware cost.
  • Embodiments of the present invention also provide a storage medium.
  • an execution instruction is stored in the storage medium, and the execution instruction is used to execute the foregoing method.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the communication terminal sound processing control method and apparatus and the communication terminal provided by the embodiments of the present invention have the following beneficial effects: the corresponding adjustment of the working mode of the communication terminal speaker unit can be completed according to the current location of the communication terminal, As far as possible, the sound effect played by the communication terminal is optimized to improve the satisfaction of the user experience.

Abstract

Provided in embodiments of the present invention are a communication terminal sound processing control method, device and communication terminal, capable of acquiring a current orientation of a speaker unit on a communication terminal, and then determining whether a current operation mode of the speaker unit matches the current orientation thereof; when there is no match, the operation mode of the speaker unit is updated according to the current orientation of the speaker unit. Therefore, the embodiments of the present invention may achieve the corresponding adjustment of the operation mode of the communication terminal speaker unit according to the current orientation of the communication terminal, so as to achieve optimized sound effect for the communication terminal as much as possible, thereby enhancing user experience satisfaction.

Description

通信终端声音处理控制方法、装置及通信终端Communication terminal sound processing control method, device and communication terminal 技术领域Technical field
本发明涉及终端控制领域,尤其涉及一种通信终端声音处理控制方法、装置及通信终端。The present invention relates to the field of terminal control, and in particular, to a communication terminal sound processing control method, apparatus, and communication terminal.
背景技术Background technique
目前手机等移动智能终端向着功能更加强大,更加便携式发展,人们对终端的依赖性越来越高。使用终端播放和录音、录像的场景也越来越多。因此对终端声音的立体效果的要求也就越来越高。因此现有终端设置双扬声器、四扬声器甚至四个以上的扬声器以尽可能还原现场的立体声效果。但是,现有终端中,对于终端上的扬声器的声道等工作模式的配置是固定的,用户要改变时,必须启动声道切换模块或其他功能模块进入相应的声音切换界面才能手动去改变对于各扬声器的工作模式设置,而很多普通用户不知道可以手动改变工作模式或者不知道怎么去改变扬声器的工作模式。而用户使用终端时往往会根据不同的使用习惯旋转或翻转终端,或者根据不同的使用场景旋转或翻转终端,导致终端上的扬声器所处方位变化,而现有终端并不能随着终端上扬声器方位的变化自动改变扬声器的工作模式,导致终端播放出来的声音达不到最佳效果,降低了用户体验的满意度。At present, mobile smart terminals such as mobile phones are becoming more powerful and portable, and people are increasingly dependent on terminals. There are more and more scenes using terminal playback and recording and recording. Therefore, the requirements for the stereoscopic effect of the terminal sound are getting higher and higher. Therefore, the existing terminal sets two speakers, four speakers or even more than four speakers to restore the stereo effect of the scene as much as possible. However, in the existing terminal, the configuration of the working mode of the speaker on the terminal is fixed. When the user wants to change, the channel switching module or other function module must be activated to enter the corresponding sound switching interface to manually change the The working mode of each speaker is set, and many ordinary users do not know how to change the working mode manually or do not know how to change the working mode of the speaker. When the user uses the terminal, the terminal is often rotated or flipped according to different usage habits, or the terminal is rotated or flipped according to different usage scenarios, so that the orientation of the speaker on the terminal changes, and the existing terminal cannot follow the orientation of the speaker on the terminal. The change automatically changes the working mode of the speaker, resulting in the sound played by the terminal not achieving the best effect, reducing the satisfaction of the user experience.
发明内容Summary of the invention
本发明实施例提供的通信终端声音处理控制方法、装置及通信终端,主要解决的技术问题是:解决现有终端上的扬声器方位变化时不能自动改变扬声器的工作模式,导致终端播放出来的声音效果达不到最佳效果,用户体验的满意度低的问题。The communication terminal sound processing control method, device and communication terminal provided by the embodiments of the present invention mainly solve the technical problem that the working mode of the speaker cannot be automatically changed when the speaker orientation change on the existing terminal is solved, and the sound effect of the terminal is played. The problem of not achieving the best results and low user experience satisfaction is low.
为解决上述技术问题,本发明实施例提供一种通信终端声音处理控制方法,包括: To solve the above technical problem, an embodiment of the present invention provides a voice processing control method for a communication terminal, including:
获取所述通信终端上扬声器单元当前所在方位;Obtaining an orientation of a speaker unit on the communication terminal;
在判定所述扬声器单元当前的工作模式与当前所在方位不匹配时,根据所述扬声器单元当前所在方位对所述扬声器单元的工作模式进行对应更新。When it is determined that the current working mode of the speaker unit does not match the current location, the operating mode of the speaker unit is correspondingly updated according to the current location of the speaker unit.
为解决上述技术问题,本发明实施例还提供一种通信终端声音处理控制装置,包括:In order to solve the above technical problem, an embodiment of the present invention further provides a communication terminal sound processing control apparatus, including:
扬声器位置检测模块,设置为获取所述通信终端上扬声器单元当前所在方位;a speaker position detecting module configured to acquire an orientation of a speaker unit on the communication terminal;
扬声器控制模块,设置为在判定所述扬声器单元当前的工作模式与当前所在方位不匹配时,根据所述扬声器单元当前所在方位对所述扬声器单元的工作模式进行对应更新。The speaker control module is configured to, when determining that the current working mode of the speaker unit does not match the current orientation, update the working mode of the speaker unit according to the current orientation of the speaker unit.
为解决上述技术问题,本发明实施例还提供一种通信终端,包括如上所述的通信终端声音处理控制装置。In order to solve the above technical problem, an embodiment of the present invention further provides a communication terminal, including the communication terminal sound processing control apparatus as described above.
本发明实施例还提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行前述的通信终端声音处理控制方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the foregoing communication terminal sound processing control method.
本发明的有益效果是:The beneficial effects of the invention are:
根据本发明实施例提供的通信终端声音处理控制方法、装置、通信终端以及计算机存储介质,可以获取通信终端上扬声器单元当前所在方位,然后判断扬声器单元当前的工作模式与其当前所在方位是否匹配时,当匹配时,则根据扬声器单元当前所在方位对扬声器单元的工作模式进行对应更新。因此本发明实施例可以实现根据通信终端当前所在方位完成对通信终端扬声器单元的工作模式进行对应的调整,尽可能使得通信终端播放出来的声音效果达到最佳,提升用户体验的满意度。The communication terminal sound processing control method, apparatus, communication terminal and computer storage medium provided by the embodiment of the present invention can acquire the current orientation of the speaker unit on the communication terminal, and then determine whether the current working mode of the speaker unit matches its current location. When matching, the operating mode of the speaker unit is updated correspondingly according to the current orientation of the speaker unit. Therefore, the embodiment of the present invention can implement corresponding adjustment of the working mode of the speaker unit of the communication terminal according to the current location of the communication terminal, so as to maximize the sound effect played by the communication terminal and improve the satisfaction of the user experience.
附图说明DRAWINGS
图1为本发明实施例一中的基于扬声器单元的通信终端声音处理控制 方法流程示意图;1 is a sound processing control of a communication terminal based on a speaker unit according to Embodiment 1 of the present invention; Method flow diagram;
图2为本发明实施例一中的判断扬声器单元工作模式与当前所在方位是否匹配流程示意图;2 is a schematic flowchart of determining whether a working mode of a speaker unit matches a current location in the first embodiment of the present invention;
图3为本发明实施例一中的基于麦克风单元的通信终端声音处理控制方法流程示意图;3 is a schematic flowchart of a sound processing control method of a communication terminal based on a microphone unit according to Embodiment 1 of the present invention;
图4为本发明实施例一中的判断麦克风单元工作模式与当前所在方位是否匹配流程示意图;4 is a schematic flowchart of determining whether a working mode of a microphone unit matches a current location in the first embodiment of the present invention;
图5为本发明实施例二中的通信终端声音处理控制装置结构示意图;5 is a schematic structural diagram of a sound processing control apparatus for a communication terminal according to Embodiment 2 of the present invention;
图6为本发明实施例二中的另一通信终端声音处理控制装置结构示意图;6 is a schematic structural diagram of another communication terminal sound processing control apparatus according to Embodiment 2 of the present invention;
图7为本发明实施例二中的通信终端麦克风和扬声器设置示意图;7 is a schematic diagram of setting a microphone and a speaker of a communication terminal according to Embodiment 2 of the present invention;
图8为图7中通信终端的声音处理控制装置结构示意图;8 is a schematic structural diagram of a sound processing control apparatus of the communication terminal of FIG. 7;
图9为对图7中通信终端的声音处理控制流程示意图;9 is a schematic diagram of a sound processing control process of the communication terminal in FIG. 7;
图10为计算图7中通信终端方位的坐标示意图;10 is a schematic diagram of calculating coordinates of the orientation of the communication terminal in FIG. 7;
图11为图7中通信终端旋转大于180°后的示意图;11 is a schematic diagram of the communication terminal of FIG. 7 after being rotated by more than 180 degrees;
图12为图11中通信终端旋转大于180°后左右声道设置示意图;12 is a schematic diagram of setting left and right channels after the communication terminal of FIG. 11 rotates by more than 180 degrees;
图13为图7中通信终端旋转30°后的示意图;Figure 13 is a schematic view of the communication terminal of Figure 7 after being rotated by 30°;
图14为图7中通信终端旋转90°后的示意图;Figure 14 is a schematic view of the communication terminal of Figure 7 after being rotated by 90°;
图15为图7中通信终端旋转160°后的示意图;Figure 15 is a schematic view of the communication terminal of Figure 7 after being rotated by 160°;
图16为图7中通信终端旋转180°后的示意图。FIG. 16 is a schematic diagram of the communication terminal of FIG. 7 rotated by 180 degrees.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例只是本发明中一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的 范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts are protected by the present invention. range.
实施例一:Embodiment 1:
本实施例可以检测通信终端上扬声器单元和/或麦克风单元当前的方位,根据声器单元和/或麦克风单元当前的方位对声器单元和/或麦克风单元的工作模式自动进行对应的调整,尽可能使得通信终端播放出来的声音效果达到最佳,提升用户体验的满意度。参见图1所示,本实施例中的通信终端声音处理控制方法包括:In this embodiment, the current orientation of the speaker unit and/or the microphone unit on the communication terminal can be detected, and the working mode of the sound unit and/or the microphone unit is automatically adjusted correspondingly according to the current orientation of the sound unit and/or the microphone unit. It may make the sound effect played by the communication terminal to the best, and improve the satisfaction of the user experience. Referring to FIG. 1, the communication terminal sound processing control method in this embodiment includes:
S101:获取通信终端上扬声器单元当前所在方位。S101: Acquire an orientation of a speaker unit on the communication terminal.
本实施例中,获取通信终端上扬声器单元所在方位可以根据通信终端当前的方位以及各扬声器单元在通信终端上的位置具体确定,当然也可以通过相应的传感器单独对通信终端上扬声器单元的方位进行检测。In this embodiment, obtaining the orientation of the speaker unit on the communication terminal may be specifically determined according to the current orientation of the communication terminal and the position of each speaker unit on the communication terminal, and of course, the orientation of the speaker unit on the communication terminal may be separately performed by the corresponding sensor. Detection.
本实施例提供的方案适用于对各具有扬声器的通信终端进行控制。由于本实施例涉及到多扬声器单元的多个工作模式的切换,本实施例可以针对具有多个扬声器单元的通信终端进行控制。例如具有双扬声器单元的通信终端,四扬声器单元的通信终端或者其他多个扬声器单元的通信终端。The solution provided by this embodiment is suitable for controlling each communication terminal having a speaker. Since the present embodiment relates to switching of a plurality of operation modes of the multi-speaker unit, the present embodiment can perform control for a communication terminal having a plurality of speaker units. For example, a communication terminal having a dual speaker unit, a communication terminal of a four-speaker unit, or a communication terminal of a plurality of other speaker units.
S102:判定扬声器单元当前的工作模式与当前所在方位是否匹配,如是,转至S103;否则,转至S104。S102: Determine whether the current working mode of the speaker unit matches the current location, and if yes, go to S103; otherwise, go to S104.
本实施例中,可以预先设置扬声器方位与工作模式对应关系表,该扬声器方位与工作模式对应关系表中包含不同场景中,扬声器单元的方位与工作模式的对应关系,这些对应关系可以是终端厂家出厂设定,也可由用户自己根据自身需求或应用场景灵活设定或调整。In this embodiment, a speaker orientation and a working mode correspondence table may be preset, and the speaker orientation and the working mode correspondence table include correspondences between the orientations of the speaker units and the working modes in different scenarios, and the corresponding relationship may be a terminal manufacturer. The factory setting can also be flexibly set or adjusted according to the user's own needs or application scenarios.
本实施例中,判断扬声器单元当前的工作模式与扬声器当前所在方位是否匹配参见图2所示,包括:In this embodiment, determining whether the current working mode of the speaker unit matches the current orientation of the speaker is as shown in FIG. 2, including:
S201:根据扬声器单元当前所在方位在预设的扬声器方位与工作模式对应关系表中匹配出第一目标工作模式。S201: Matching the first target working mode in the preset speaker orientation and the working mode correspondence table according to the current orientation of the speaker unit.
S202:判断第一目标工作模式与扬声器单元当前的工作模式是否相同, 如否,转至S203,否则,转至S204。S202: determining whether the first target working mode is the same as the current working mode of the speaker unit, If no, go to S203, otherwise, go to S204.
S203:判定扬声器单元当前的工作模式与其当前所在方位不匹配。S203: Determine that the current working mode of the speaker unit does not match the current orientation of the speaker unit.
S204:判定扬声器单元当前的工作模式与其当前所在方位匹配。S204: Determine that the current working mode of the speaker unit matches its current location.
S103:根据扬声器单元当前所在方位对扬声器单元的工作模式进行对应更新。S103: Correspondingly update the working mode of the speaker unit according to the current orientation of the speaker unit.
本实施例中,对扬声器单元的工作模式进行对应更新具体包括:将扬声器单元当前的工作模式更新为扬声器单元当前所在方位对应的第一目标工作模式。这样扬声器单元的工作模式与其当前所在方位匹配,使得播放声音的效果达到最佳。In this embodiment, the corresponding updating of the working mode of the speaker unit specifically includes: updating the current working mode of the speaker unit to a first target working mode corresponding to the current location of the speaker unit. In this way, the working mode of the speaker unit matches its current position, so that the effect of playing the sound is optimal.
S104:对扬声器单元的工作模式不做变动。S104: No change is made to the operating mode of the speaker unit.
应当理解的是,本实施例中的一个扬声器单元可以由一个扬声器(喇叭)组成,也可以由2个或2个以上的扬声器(喇叭)组成。It should be understood that one speaker unit in this embodiment may be composed of one speaker (horn), or may be composed of two or more speakers (horns).
通过图1所示的控制过程,可以根据通信终端当前所在方位完成对通信终端扬声器单元的工作模式进行对应的调整,尽可能使得通信终端播放出来的声音效果达到最佳,提升用户体验的满意度。Through the control process shown in FIG. 1, the working mode of the speaker unit of the communication terminal can be correspondingly adjusted according to the current location of the communication terminal, so as to maximize the sound effect played by the communication terminal and improve the satisfaction of the user experience. .
本实施例可以在通信终端不同的声音播放场景对扬声器的工作模式根据其当前方位进行更新控制。例如具体可以对多媒体播放场景和/或通话场景中扬声器单元的工作模式进行对应调整。下面分别对三种场景进行示例说明。In this embodiment, the operating mode of the speaker can be updated and controlled according to its current orientation in different sound playing scenes of the communication terminal. For example, the working mode of the speaker unit in the multimedia playing scene and/or the call scene may be adjusted correspondingly. The following three scenarios are illustrated separately.
场景一:仅对多媒体播放场景下扬声器单元的工作模式进行调整时,扬声器方位与工作模式对应关系表如表1所示:Scene 1: When only the working mode of the speaker unit in the multimedia playing scene is adjusted, the correspondence table between the speaker orientation and the working mode is as shown in Table 1:
表1Table 1
扬声器单元所在方位The location of the speaker unit 目标工作模式Target work mode
左方Left 左声道声音播放模式Left channel sound playback mode
右方Right side 右声道声音播放模式Right channel sound playback mode
下方Below 左声道声音播放模式Left channel sound playback mode
上方Above 右声道声音播放模式Right channel sound playback mode
场景二:仅对通话场景下扬声器单元的工作模式进行调整时,扬声器方位与工作模式对应关系表如表2所示:Scenario 2: When the working mode of the speaker unit is adjusted in the call scene, the correspondence between the speaker orientation and the working mode is shown in Table 2:
表2Table 2
扬声器单元所在方位The location of the speaker unit 目标工作模式Target work mode
下方Below 非听筒模式Non-alarm mode
上方Above 听筒模式Earpiece mode
场景三:对多媒体播放场景和通话场景都对扬声器单元的工作模式进行调整时,扬声器方位与工作模式对应关系表如表3所示:Scenario 3: When the working mode of the speaker unit is adjusted for both the multimedia playing scene and the calling scene, the correspondence table between the speaker orientation and the working mode is shown in Table 3:
表3table 3
终端工作场景Terminal work scene 扬声器单元所在方位The location of the speaker unit 目标工作模式Target work mode
多媒体播放Multimedia playback 左方Left 左声道声音播放模式Left channel sound playback mode
多媒体播放Multimedia playback 右方Right side 右声道声音播放模式Right channel sound playback mode
多媒体播放Multimedia playback 下方Below 左声道声音播放模式Left channel sound playback mode
多媒体播放Multimedia playback 上方Above 右声道声音播放模式Right channel sound playback mode
通话call 下方Below 非听筒模式Non-alarm mode
通话call 上方Above 听筒模式Earpiece mode
通过以上扬声器方位与工作模式对应关系表,在多媒体播放(包括但不限于声音播放和视频播放)过程中,不管用户怎么转动或翻转终端,可以保证扬声器单元处于下方和左方时处于左声道声音播放模式,扬声器单元处于右方和上方时处于右声道声音播放模式,以充分还原现场的立体声效果,保证用户体验。在通话过程中,不管用户怎么转动或翻转终端,可以保证处于上方的(也即距离用户耳朵最近的)扬声器单元处于听筒模式。下面基于上述表3对S103中,根据扬声器单元当前所在方位对扬声器单 元的工作模式进行对应更新进行示例说明。Through the above speaker orientation and working mode correspondence table, in the process of multimedia playback (including but not limited to sound playing and video playing), no matter how the user turns or flips the terminal, it can ensure that the speaker unit is in the left channel when it is below and left. The sound playback mode is in the right channel sound playback mode when the speaker unit is on the right and above, to fully restore the stereo effect of the scene to ensure the user experience. During the call, regardless of how the user turns or flips the terminal, it is ensured that the speaker unit that is above (ie, closest to the user's ear) is in the earpiece mode. In the following, based on the above Table 3, in S103, the speaker list is based on the current orientation of the speaker unit. The working mode of the meta is described in the corresponding update.
在多媒体播放阶段:In the multimedia playback phase:
当检测到扬声器单元当前方位为左方,而其当前工作模式为右声道声音播放模式时,则将其更新为左声道声音播放模式;When it is detected that the current orientation of the speaker unit is left and its current working mode is the right channel sound playing mode, it is updated to the left channel sound playing mode;
当检测到扬声器单元当前方位为右方,而其当前工作模式为左声道声音播放模式时,则将其更新为右声道声音播放模式;When it is detected that the current orientation of the speaker unit is right and its current working mode is the left channel sound playing mode, it is updated to the right channel sound playing mode;
当检测到扬声器单元当前方位为下方,而其当前工作模式为右声道声音播放模式时,则将其更新为左声道声音播放模式;When it is detected that the current orientation of the speaker unit is below, and its current working mode is the right channel sound playing mode, it is updated to the left channel sound playing mode;
当检测到扬声器单元当前方位为上方,而其当前工作模式为左声道声音播放模式时,则将其更新为右声道声音播放模式。When it is detected that the current orientation of the speaker unit is above and its current working mode is the left channel sound playing mode, it is updated to the right channel sound playing mode.
在通话阶段:During the call phase:
当检测到扬声器单元当前方位为下方,而其当前工作模式为听筒模式时,则将其更新为非听筒模式;When it is detected that the current orientation of the speaker unit is below, and its current working mode is the earpiece mode, it is updated to the non-handset mode;
当检测到扬声器单元当前方位为上方,而其当前工作模式为非听筒模式时,则将其更新为听筒模式。When it is detected that the current orientation of the speaker unit is above and its current working mode is the non-handset mode, it is updated to the earpiece mode.
本实施例中,除了对通信终端的扬声器工作模式进行上述控制外,还可以对通信终端的麦克风单元进行类似控制。且同样适用于具有多个麦克风通信单元的任意通信终端。本实施例中的麦克风单元可以由1个或2个以上的麦克风组成。对麦克风单元的控制过程参见图3所示,包括:In this embodiment, in addition to performing the above control on the speaker operating mode of the communication terminal, similar control can be performed on the microphone unit of the communication terminal. The same applies to any communication terminal having a plurality of microphone communication units. The microphone unit in this embodiment may be composed of one or two or more microphones. The control process for the microphone unit is shown in Figure 3, including:
S301:获取所通信终端上麦克风单元当前所在方位。S301: Acquire an orientation of a microphone unit on the communication terminal.
本实施例中,获取通信终端上麦克风单元所在方位可以根据通信终端当前的方位以及各麦克风单元在通信终端上的位置具体确定,当然也可以通过相应的传感器单独对通信终端上扬声器单元的方位进行检测。In this embodiment, obtaining the orientation of the microphone unit on the communication terminal may be specifically determined according to the current orientation of the communication terminal and the position of each microphone unit on the communication terminal. Of course, the orientation of the speaker unit on the communication terminal may be separately performed by the corresponding sensor. Detection.
S302:判定麦克风单元当前的工作模式与当前所在方位是否匹配,如是,转至S303;否则,转至S304。S302: Determine whether the current working mode of the microphone unit matches the current location, and if yes, go to S303; otherwise, go to S304.
本实施例中,可以预先设置麦克风方位与工作模式对应关系表,该麦 克风方位与工作模式对应关系表中包含不同场景中,麦克风单元的方位与工作模式的对应关系,这些对应关系可以是终端厂家出厂设定,也可由用户自己根据自身需求或应用场景灵活设定或调整。In this embodiment, a correspondence table between the microphone orientation and the working mode may be preset, the wheat Correspondence relationship between the wind direction and the working mode includes the correspondence between the orientation of the microphone unit and the working mode in different scenarios. These correspondences may be factory settings of the terminal manufacturer, or may be flexibly set by the user according to his own needs or application scenarios. Or adjust.
本实施例中,判断麦克风单元当前的工作模式与麦克风当前所在方位是否匹配参见图4所示,包括:In this embodiment, determining whether the current working mode of the microphone unit matches the current location of the microphone is as shown in FIG. 4, and includes:
S401:根据麦克风单元当前所在方位在预设的麦克风方位与工作模式对应关系表中匹配出第二目标工作模式。S401: Match the second target working mode in the preset microphone orientation and the working mode correspondence table according to the current orientation of the microphone unit.
S402:判断第二目标工作模式与麦克风单元当前的工作模式是否相同,如否,转至S403,否则,转至S404。S402: Determine whether the second target working mode is the same as the current working mode of the microphone unit. If no, go to S403; otherwise, go to S404.
S403:判定麦克风单元当前的工作模式与其当前所在方位不匹配。S403: Determine that the current working mode of the microphone unit does not match the current orientation of the microphone unit.
S404:判定麦克风单元当前的工作模式与其当前所在方位匹配。S404: Determine that the current working mode of the microphone unit matches its current location.
S303:根据所麦克风单元当前所在方位对麦克风单元的工作模式进行对应更新。本实施例中,对麦克风单元的工作模式进行对应更新具体包括:将麦克风单元当前的工作模式更新为麦克风单元当前所在方位对应的第二目标工作模式。这样麦克风单元的工作模式与其当前所在方位匹配,使得采集的声音效果达到最佳。S303: Correspondingly update the working mode of the microphone unit according to the current location of the microphone unit. In this embodiment, the corresponding updating of the working mode of the microphone unit specifically includes: updating a current working mode of the microphone unit to a second target working mode corresponding to a current location of the microphone unit. In this way, the working mode of the microphone unit matches its current position, so that the collected sound effect is optimal.
S304:对麦克风单元的工作模式不做变动。S304: No change is made to the working mode of the microphone unit.
集场景对麦克风的工作模式根据其当前方位进行更新控制。例如具体可以对在多媒体录制(包括但不限于视频录制和声音录制)过程中和/或通话场景中麦克风单元的工作模式进行对应调整。下面分别对三种场景进行示例说明。Set the scene to the microphone's working mode to update control according to its current orientation. For example, the working mode of the microphone unit in the multimedia recording (including but not limited to video recording and sound recording) and/or the call scene may be adjusted correspondingly. The following three scenarios are illustrated separately.
场景一:仅对多媒体录制场景下麦克风单元的工作模式进行调整时,麦克风方位与工作模式对应关系表如表4所示:Scenario 1: When the working mode of the microphone unit is adjusted in the multimedia recording scene, the correspondence between the microphone orientation and the working mode is shown in Table 4:
表4Table 4
麦克风单元所在方位Position of the microphone unit 目标工作模式Target work mode
左方Left 左声道声音采集模式Left channel sound collection mode
右方Right side 右声道声音采集模式Right channel sound collection mode
下方Below 左声道声音采集模式Left channel sound collection mode
上方Above 右声道声音采集模式Right channel sound collection mode
场景二:仅对通话场景下麦克风单元的工作模式进行调整时,麦克风方位与工作模式对应关系表如表5所示:Scenario 2: When the working mode of the microphone unit is adjusted in the call scenario, the correspondence between the microphone orientation and the working mode is as shown in Table 5:
表5table 5
麦克风单元所在方位Position of the microphone unit 目标工作模式Target work mode
下方Below 主声音采集模式Main sound collection mode
上方Above 消噪音模式Noise cancellation mode
场景三:对多媒体录制场景和通话场景都对麦克风单元的工作模式进行调整时,麦克风方位与工作模式对应关系表如表6所示:Scenario 3: When the working mode of the microphone unit is adjusted for both the multimedia recording scene and the call scene, the correspondence table between the microphone orientation and the working mode is as shown in Table 6:
表6Table 6
终端工作场景Terminal work scene 麦克风单元所在方位Position of the microphone unit 目标工作模式Target work mode
多媒体录制Multimedia recording 左方Left 左声道声音采集模式Left channel sound collection mode
多媒体录制Multimedia recording 右方Right side 右声道声音采集模式Right channel sound collection mode
多媒体录制Multimedia recording 下方Below 左声道声音采集模式Left channel sound collection mode
多媒体录制Multimedia recording 上方Above 右声道声音采集模式Right channel sound collection mode
通话call 下方Below 主声音采集模式Main sound collection mode
通话call 上方Above 消噪音模式Noise cancellation mode
通过以上麦克风方位与工作模式对应关系表,在多媒体录制过程中,不管用户怎么转动或翻转终端,可以保证麦克风单元处于下方和左方时处于左声道声音采集模式,麦克风单元处于右方和上方时处于右声道声音采集模式,以在后续播放时可以保证充分还原现场的立体声效果,保证用户体验。在通话过程中,不管用户怎么转动或翻转终端,可以保证处于上方的(也即距离用户耳朵最近的)麦克风单元处于消噪音模式,处于下方的 (也即距离用户嘴巴最近的)麦克风处于主声音采集模式,保证正常通话的进行。Through the correspondence table between the microphone orientation and the working mode, in the multimedia recording process, no matter how the user rotates or flips the terminal, the microphone unit can be in the left channel sound collection mode when the microphone unit is below and to the left, and the microphone unit is on the right and above. It is in the right channel sound collection mode to ensure full restoration of the live stereo effect during subsequent playback to ensure the user experience. During the call, regardless of how the user turns or flips the terminal, it can be ensured that the microphone unit above (ie, closest to the user's ear) is in the noise canceling mode, below The microphone (that is, closest to the user's mouth) is in the main sound collection mode to ensure normal call progress.
下面基于上述表6对S303中,根据麦克风单元当前所在方位对麦克风单元的工作模式进行对应更新进行示例说明。In the following, based on the above-mentioned Table 6 in S303, the corresponding update of the operating mode of the microphone unit according to the current orientation of the microphone unit is exemplified.
在多媒体录制阶段:In the multimedia recording phase:
当检测到麦克风单元当前方位为左方,而其当前工作模式为右声道声音采集模式时,则将其更新为左声道声音采集模式;When it is detected that the current orientation of the microphone unit is the left side and the current working mode is the right channel sound collection mode, it is updated to the left channel sound collection mode;
当检测到麦克风单元当前方位为右方,而其当前工作模式为左声道声音采集模式时,则将其更新为右声道声音采集模式;When it is detected that the current orientation of the microphone unit is right and its current working mode is the left channel sound collection mode, it is updated to the right channel sound collection mode;
当检测到麦克风单元当前方位为下方,而其当前工作模式为右声道声音采集模式时,则将其更新为左声道声音采集模式;When it is detected that the current orientation of the microphone unit is below, and its current working mode is the right channel sound collection mode, it is updated to the left channel sound collection mode;
当检测到麦克风单元当前方位为上方,而其当前工作模式为左声道声音采集模式时,则将其更新为右声道声音采集模式。When it is detected that the current orientation of the microphone unit is above and its current working mode is the left channel sound collection mode, it is updated to the right channel sound collection mode.
在通话阶段:During the call phase:
当检测到麦克风单元当前方位为下方,而其当前工作模式为消噪音模式时,则将其更新为主声音采集模式;When it is detected that the current orientation of the microphone unit is below, and its current working mode is the noise cancellation mode, it is updated to the main sound collection mode;
当检测到麦克风单元当前方位为上方,而其当前工作模式为主声音采集模式时,则将其更新为消噪音模式。When it is detected that the current orientation of the microphone unit is above and its current working mode is the main sound collection mode, it is updated to the noise cancellation mode.
通过图3所示的控制过程,可以根据通信终端当前所在方位完成对通信终端麦克风单元的工作模式进行对应的调整,尽可能使得通信终端采集的声音效果达到最佳,提升用户体验的满意度。Through the control process shown in FIG. 3, the working mode of the communication terminal microphone unit can be correspondingly adjusted according to the current location of the communication terminal, so that the sound effect collected by the communication terminal is optimized as much as possible, and the satisfaction of the user experience is improved.
实施例二:Embodiment 2:
本实施例还提供了通信终端,该通信终端具体可以是各种移动终端,该通信终端包括通信终端声音处理控制装置,参见图5所示,包括:The present embodiment further provides a communication terminal, which may be a variety of mobile terminals, and the communication terminal includes a communication terminal sound processing control device. As shown in FIG. 5, the method includes:
扬声器位置检测模块51,设置为获取通信终端上扬声器单元当前所在方位;扬声器位置检测模块51获取通信终端上扬声器单元所在方位可以 根据通信终端当前的方位以及各扬声器单元在通信终端上的位置具体确定,当然也可以通过相应的传感器单独对通信终端上扬声器单元的方位进行检测。The speaker position detecting module 51 is configured to acquire the current orientation of the speaker unit on the communication terminal; the speaker position detecting module 51 obtains the orientation of the speaker unit on the communication terminal. According to the current orientation of the communication terminal and the position of each speaker unit on the communication terminal, it is of course possible to separately detect the orientation of the speaker unit on the communication terminal through the corresponding sensor.
扬声器控制模块52,设置为判定扬声器单元当前的工作模式与当前所在方位是否匹配,如否,根据扬声器单元当前所在方位对扬声器单元的工作模式进行对应更新;如判断结果为二者匹配,则对扬声器单元的工作模式不做变动。The speaker control module 52 is configured to determine whether the current working mode of the speaker unit matches the current location, and if not, update the working mode of the speaker unit according to the current orientation of the speaker unit; if the judgment result is that the two match, then The operating mode of the speaker unit is not changed.
本实施例中的扬声器方位与工作模式对应关系表可以预先设置,该扬声器方位与工作模式对应关系表中包含不同场景中,扬声器单元的方位与工作模式的对应关系,这些对应关系可以是终端厂家出厂设定,也可由用户自己根据自身需求或应用场景灵活设定或调整。The speaker orientation and the working mode correspondence table in this embodiment may be preset. The speaker orientation and the working mode correspondence table include correspondences between the orientations of the speaker units and the working modes in different scenarios, and the corresponding relationship may be the terminal manufacturer. The factory setting can also be flexibly set or adjusted according to the user's own needs or application scenarios.
扬声器控制模块52判断扬声器单元当前的工作模式与其当前所在方位是否匹配包括:根据扬声器单元当前所在方位在预设的扬声器方位与工作模式对应关系表中匹配出第一目标工作模式;判断所述第一目标工作模式与扬声器单元当前的工作模式是否相同,如否,判定扬声器单元当前的工作模式与其当前所在方位不匹配。如相同,则判定扬声器单元当前的工作模式与其当前所在方位匹配。The speaker control module 52 determines whether the current working mode of the speaker unit matches the current location of the speaker unit, including: matching the first target working mode in the preset speaker orientation and the working mode correspondence table according to the current orientation of the speaker unit; Whether the target working mode is the same as the current operating mode of the speaker unit, and if not, it is determined that the current working mode of the speaker unit does not match its current position. If the same, it is determined that the current working mode of the speaker unit matches its current position.
扬声器控制模块52对扬声器单元的工作模式进行对应更新具体吸将扬声器单元当前的工作模式更新为扬声器单元当前所在方位对应的第一目标工作模式。The speaker control module 52 correspondingly updates the working mode of the speaker unit, and specifically updates the current working mode of the speaker unit to the first target working mode corresponding to the current location of the speaker unit.
本实施例可以在通信终端不同的声音播放场景对扬声器的工作模式根据其当前方位进行更新控制。例如具体可以对多媒体播放场景和/或通话场景中扬声器单元的工作模式进行对应调整。其中在不同声音播放场景下,扬声器方位与工作模式对应关系参见实施例一的表1至表3所示。对于具体更新过程也可以参见实施例一所示的示例,在此不再赘述。In this embodiment, the operating mode of the speaker can be updated and controlled according to its current orientation in different sound playing scenes of the communication terminal. For example, the working mode of the speaker unit in the multimedia playing scene and/or the call scene may be adjusted correspondingly. In the different sound playing scenes, the correspondence between the speaker orientation and the working mode is shown in Tables 1 to 3 of the first embodiment. For the specific update process, refer to the example shown in the first embodiment, and details are not described herein again.
参见图6所示,通信终端声音处理控制装置还包括:Referring to FIG. 6, the communication terminal sound processing control apparatus further includes:
麦克风位置检测模块53,设置为获取通信终端上麦克风单元当前所在 方位;麦克风位置检测模块53获取通信终端上麦克风单元所在方位可以根据通信终端当前的方位以及各麦克风单元在通信终端上的位置具体确定,当然也可以通过相应的传感器单独对通信终端上扬声器单元的方位进行检测。The microphone position detecting module 53 is configured to acquire the current microphone unit on the communication terminal. Positioning; the position of the microphone unit on the communication terminal can be determined according to the current orientation of the communication terminal and the position of each microphone unit on the communication terminal, and of course, the speaker unit on the communication terminal can be separately used by the corresponding sensor. Azimuth is detected.
麦克风控制模块54,设置为在麦克风单元当前的工作模式与当前所在方位不匹配时,根据麦克风单元当前所在方位对麦克风单元的工作模式进行对应更新。The microphone control module 54 is configured to update the working mode of the microphone unit according to the current location of the microphone unit when the current working mode of the microphone unit does not match the current orientation.
本实施例中,麦克风方位与工作模式对应关系表也可以预先设置,该麦克风方位与工作模式对应关系表中包含不同场景中,麦克风单元的方位与工作模式的对应关系,这些对应关系可以是终端厂家出厂设定,也可由用户自己根据自身需求或应用场景灵活设定或调整。In this embodiment, the correspondence between the microphone orientation and the working mode may also be preset. The correspondence between the microphone orientation and the working mode includes the correspondence between the orientation of the microphone unit and the working mode in different scenarios, and the corresponding relationship may be the terminal. The factory setting of the factory can also be flexibly set or adjusted according to the user's own needs or application scenarios.
麦克风控制模块54判断麦克风单元当前的工作模式与麦克风当前所在方位是否匹配包括:根据麦克风单元当前所在方位在预设的麦克风方位与工作模式对应关系表中匹配出第二目标工作模式;判断第二目标工作模式与所述麦克风单元当前的工作模式是否相同,如否,判定麦克风单元当前的工作模式与其当前所在方位不匹配;否则,判定麦克风单元当前的工作模式与其当前所在方位匹配。The microphone control module 54 determines whether the current working mode of the microphone unit matches the current orientation of the microphone, and includes: matching the second target working mode in the preset microphone orientation and the working mode correspondence table according to the current orientation of the microphone unit; determining the second Whether the target working mode is the same as the current working mode of the microphone unit. If not, it is determined that the current working mode of the microphone unit does not match its current position; otherwise, it is determined that the current working mode of the microphone unit matches its current position.
本实施例中,麦克风控制模块54对麦克风单元的工作模式进行对应更新具体包括:将麦克风单元当前的工作模式更新为麦克风单元当前所在方位对应的第二目标工作模式。这样麦克风单元的工作模式与其当前所在方位匹配,使得采集的声音效果达到最佳。In this embodiment, the corresponding update of the working mode of the microphone unit by the microphone control module 54 specifically includes: updating the current working mode of the microphone unit to a second target working mode corresponding to the current location of the microphone unit. In this way, the working mode of the microphone unit matches its current position, so that the collected sound effect is optimal.
本实施例可以在通信终端不同的声音采集场景对扬声器的工作模式根据其当前方位进行更新控制。例如具体可以对视频、声音播放和/或通话场景中麦克风单元的工作模式进行对应调整。其中在不同声音采集场景下,麦克风方位与工作模式对应关系参见实施例一的表4至表6所示。对于具体更新过程也可以参见实施例一所示的示例,在此不再赘述。In this embodiment, the working mode of the speaker can be updated and controlled according to the current orientation of the sound collection scene in the communication terminal. For example, the working mode of the microphone unit in the video, sound playing and/or calling scene can be adjusted correspondingly. For the relationship between the microphone orientation and the working mode in different sound collection scenarios, refer to Table 4 to Table 6 of the first embodiment. For the specific update process, refer to the example shown in the first embodiment, and details are not described herein again.
应当理解的是,本实施例中的扬声器位置检测模块51和麦克风位置 检测模块53可以由同一个位置检测模块实现,也可以由不同的位置检测模块实现,且其功能具体可以由通信终端中的处理器或控制器实现。本实施例中的扬声器控制模块52和麦克风控制模块54也可以同一个控制模块实现,也可以由不同的控制模块实现,且其功能具体可以由通信终端中的处理器或控制器实现。It should be understood that the speaker position detecting module 51 and the microphone position in this embodiment The detecting module 53 can be implemented by the same position detecting module, or can be implemented by different position detecting modules, and the functions thereof can be specifically implemented by a processor or a controller in the communication terminal. The speaker control module 52 and the microphone control module 54 in this embodiment may also be implemented by the same control module, or may be implemented by different control modules, and the functions thereof may be implemented by a processor or a controller in the communication terminal.
为了更好的理解本发明,下面以通信终端为移动终端,且移动终端的底部的一端设置有麦克风单元1、扬声器单元1,顶部设置有麦克风单元2、扬声器单元2,参见图7所示。且应当理解的是,本实施例中麦克风单元1、扬声器单元1以及麦克风单元2、扬声器单元2在底部和顶部设置的具体位置以及形状等可以根据不同终端的需求灵活设定,且顶部和底部之间的扬声器和麦克风设置的位置以及形状可以相同,也可以不同。本实施例中,扬声器位置检测模块51和麦克风位置检测模块53由一个位置检测模块实现,参见图8所示,本示例中称之为终端方位检测模块71,扬声器控制模块52和麦克风控制模块54由一个控制模块实现,本示例中称之为声音控制模块72,图8中还包含与声音控制模块72连接的音频播放模块73以及音频录音模块74。且在声音播放状态和声音录制状态,移动终端处于图7所示状态时,左、右声道的设置方式参见8所示。图7所示状态移动终端的底部可认为处于0°,顶部处于180°。在播放或录音状态,底部处于0°时,判定麦克风单元1、扬声器单元1处于下方,底部处于180°时,判定麦克风单元1、扬声器单元1处于上方;底部处于0°至180°之间,判定麦克风单元1、扬声器单元1处于左方;底部处于180°至360°之间,判定麦克风单元1、扬声器单元1处于右方。对于麦克风单元2、扬声器单元2的方位判断方式相同,在此不在赘述。基于上述设定,下面以声音录制过程为例对实施例的声音处理方法进行示例。参见图9所示,包括:For a better understanding of the present invention, the communication terminal is a mobile terminal, and one end of the bottom of the mobile terminal is provided with a microphone unit 1 and a speaker unit 1, and the top is provided with a microphone unit 2 and a speaker unit 2, as shown in FIG. It should be understood that the specific position and shape of the microphone unit 1, the speaker unit 1 and the microphone unit 2 and the speaker unit 2 disposed at the bottom and the top in the embodiment can be flexibly set according to the requirements of different terminals, and the top and bottom. The position and shape of the speaker and microphone settings between the two can be the same or different. In this embodiment, the speaker position detecting module 51 and the microphone position detecting module 53 are implemented by a position detecting module. Referring to FIG. 8, the terminal position detecting module 71, the speaker control module 52 and the microphone control module 54 are referred to in this example. It is implemented by a control module, referred to as a sound control module 72 in this example, and includes an audio playback module 73 and an audio recording module 74 coupled to the sound control module 72. In the sound playing state and the sound recording state, when the mobile terminal is in the state shown in FIG. 7, the setting manners of the left and right channels are as shown in FIG. 8. The bottom of the state mobile terminal shown in Figure 7 can be considered to be at 0° and the top at 180°. In the playback or recording state, when the bottom is at 0°, it is determined that the microphone unit 1 and the speaker unit 1 are below, and when the bottom is at 180°, it is determined that the microphone unit 1 and the speaker unit 1 are above; the bottom is between 0° and 180°, It is determined that the microphone unit 1 and the speaker unit 1 are on the left side; the bottom portion is between 180° and 360°, and it is determined that the microphone unit 1 and the speaker unit 1 are on the right side. The orientation determination manners of the microphone unit 2 and the speaker unit 2 are the same, and are not described herein. Based on the above settings, the sound processing method of the embodiment will be exemplified below by taking the sound recording process as an example. See Figure 9, which includes:
S801:音频录音模块74启动录音功能,下发对应的声道数和采样率的信息给到声音控制模块72。S801: The audio recording module 74 starts the recording function, and sends information corresponding to the number of channels and the sampling rate to the sound control module 72.
S802:终端方位检测模块71在收到声音控制模块72需要读取当前终 端方位信息的控制命令时实时获取移动终端当前重力加速度和地磁传感器的数据信息并计算出当前的移动终端旋转方位信息回传给终端方位检测模块71。S802: The terminal orientation detecting module 71 needs to read the current terminal after receiving the sound control module 72. When the control command of the end position information is obtained, the current gravity acceleration of the mobile terminal and the data information of the geomagnetic sensor are obtained in real time, and the current mobile terminal rotation orientation information is calculated and transmitted back to the terminal orientation detecting module 71.
S803:声音控制模块72收到对应的录音参数信息并根据移动终端旋转方位信息确定好左右声道通路配置(也即设置各麦克风单元的工作模式),开打对应的左、右麦克风单元进行录音。S803: The sound control module 72 receives the corresponding recording parameter information and determines the left and right channel path configuration according to the rotation direction information of the mobile terminal (that is, sets the working mode of each microphone unit), and opens the corresponding left and right microphone units for recording.
S804:声音控制模块72将获取到的左、右麦克风单元的录音数据回传给音频录音模块74保存。S804: The sound control module 72 returns the acquired recording data of the left and right microphone units to the audio recording module 74 for storage.
在音频录制过程中,可以按照一定规则重复上述S802和S803,以根据移动终端实时的方位信息对麦克风的工作模式进行快速灵活的调整。During the audio recording process, the above S802 and S803 may be repeated according to certain rules to quickly and flexibly adjust the working mode of the microphone according to the real-time orientation information of the mobile terminal.
对于音频播放过程的控制过程类似于音频录音控制过程,主要是通过声音控制模块72根据当前终端设备的旋转方向配置对应左、右声道扬声器单元即可。The control process for the audio playback process is similar to the audio recording control process, and is mainly configured by the sound control module 72 to configure the corresponding left and right channel speaker units according to the rotation direction of the current terminal device.
本实施例中,对于移动终端方位的检测可以采用现有任意能实现终端方位检测的方式。下面以通过移动终端内的加速度传感器的坐标来计算移动终端当前的旋转的方向及角度为例,进行示例说明。请参见图10所示的坐标系。计算过程如下:In this embodiment, for the detection of the orientation of the mobile terminal, any existing method for detecting the orientation of the terminal can be used. The following is an example of calculating the direction and angle of the current rotation of the mobile terminal by using the coordinates of the acceleration sensor in the mobile terminal as an example. See the coordinate system shown in Figure 10. The calculation process is as follows:
当移动终端垂直朝上时,x=0,y=9.8,z=0(其中z表示移动终端的朝向,一般情况下移动终端正面朝上,所以z的取值方位是0<z<9.8),测试可以定义为移动终端的基准方向(0度角方向)。When the mobile terminal is vertically upward, x=0, y=9.8, z=0 (where z represents the orientation of the mobile terminal, in general, the mobile terminal faces up, so the value of z is 0<z<9.8) The test can be defined as the reference direction of the mobile terminal (0 degree angle direction).
当x=-9.8y=0、z=0表示移动终端顺时针(向右)旋转90度。When x=-9.8y=0, z=0 means that the mobile terminal rotates 90 degrees clockwise (to the right).
当x=0、y=-9.8、z=0时表示移动终端相对基准方向顺时针旋转180度。When x=0, y=-9.8, and z=0, it means that the mobile terminal rotates 180 degrees clockwise with respect to the reference direction.
当x=9.8、y=0、x=0时说明移动终端相对基准方向顺时针旋转270度(逆时针旋转90度)。When x=9.8, y=0, and x=0, the mobile terminal is rotated 270 degrees clockwise (90 degrees counterclockwise) with respect to the reference direction.
参见图11所示,假设在音频录制或播放过程中,当移动终端底部在 图7所示基础上旋转角度大于180°时,则根据本实施例的规则在图8的基础上需要交换左右声道,交换后的图参见图12所示。Referring to Figure 11, it is assumed that during the audio recording or playback, when the bottom of the mobile terminal is When the rotation angle is greater than 180° on the basis of FIG. 7, the left and right channels need to be exchanged on the basis of FIG. 8 according to the rules of the present embodiment, and the exchanged figures are shown in FIG.
在音频录制或播放过程中,当移动终端底部在图7所示基础上旋转角度大于0°,小于180°时,则根据本实施例的规则左右声道设置同图8所示。优选的,例如参见图13、图14和图15所示分别在图7所示基础上旋转角度为30°,90°,160°。During audio recording or playback, when the bottom of the mobile terminal is rotated by more than 0° and less than 180° on the basis of FIG. 7, the regular left and right channel settings according to the present embodiment are the same as those shown in FIG. 8. Preferably, for example, referring to Figs. 13, 14, and 15, respectively, the rotation angles are 30, 90, and 160 on the basis of Fig. 7.
参见图16所示,假设在音频录制或播放过程中,当移动终端底部在图7所示基础上旋转角度等于180°时,则根据本实施例的规则在图8的基础上需要交换左右声道,交换后的图参见图12所示。Referring to FIG. 16, it is assumed that, during audio recording or playback, when the bottom of the mobile terminal is rotated by 180° on the basis of FIG. 7, the rule according to the embodiment needs to exchange left and right sounds on the basis of FIG. 8. The road after the exchange is shown in Figure 12.
在声音播放装置或录音状态,无论用户怎样拿移动终端,声音播放过程中,保持位于左方的扬声器单元处于左声道声音播放状态,位于右方的扬声器单元处于右声道声音播放状态;声音录制过程中,保持位于左方的麦克风单元处于左声道声音采集状态,位于右方的麦克风单元处于右声道声音采集状态。In the sound playback device or recording state, no matter how the user takes the mobile terminal, during the sound playback, the speaker unit located on the left side is in the left channel sound playing state, and the speaker unit located on the right side is in the right channel sound playing state; During the recording process, the microphone unit located on the left is in the left channel sound collection state, and the microphone unit on the right side is in the right channel sound collection state.
在移动终端通话状态,图7所示状态移动终端的底部可认为处于0°,顶部处于180°。在通话状态,底部处于0°至90°(可取0°和90°)或270°至360°(可取270°和360°)时,判定麦克风单元1、扬声器单元1处于下方,底部处于90°至180°(可取180°)时或180°至270°(可取270°),判定麦克风单元1、扬声器单元1处于上方。对于麦克风单元2、扬声器单元2的方位判断方式相同,In the mobile terminal call state, the bottom of the mobile terminal shown in FIG. 7 can be considered to be at 0° and the top at 180°. In the call state, when the bottom is between 0° and 90° (0° and 90°) or 270° to 360° (270° and 360°), it is determined that the microphone unit 1, the speaker unit 1 is below, and the bottom is at 90°. When it is 180° (180°) or 180° to 270° (270°), it is determined that the microphone unit 1 and the speaker unit 1 are above. For the microphone unit 2, the orientation of the speaker unit 2 is determined in the same manner.
在手持通话场景时,用户正常拿移动终端,底部麦克风单元1作为拾音主麦克风,顶部麦克风单元2为消燥音麦克风;顶部的扬声器单元2被配置为听筒模式作为通话下行数据的输出装置。用户上、下颠倒反拿移动终端时,顶部麦克风单元2作为拾音主麦克风,底部麦克风单元1为消燥音麦克风;底部的扬声器单元1被配置为听筒模式作为通话下行数据的输出装置。无论用户怎样拿移动终端,通话时始终保持距离说话处近的是主麦克风,距离说话处较远的是消燥音;距离耳朵较近扬声器单元的是听筒。 In the hand-held call scenario, the user normally takes the mobile terminal, the bottom microphone unit 1 serves as the pickup main microphone, and the top microphone unit 2 is the noise canceling microphone; the top speaker unit 2 is configured as the earpiece mode as the output device for the call downlink data. When the user reverses the mobile terminal upside down, the top microphone unit 2 serves as the pickup main microphone, and the bottom microphone unit 1 is the noise canceling microphone; the bottom speaker unit 1 is configured as the handset mode as the output device for the call downlink data. No matter how the user takes the mobile terminal, the main microphone is always close to the talking position during the call, and the noise is far away from the speaking position; the earpiece is closer to the speaker unit than the ear.
本领域的技术人员应该明白,上述本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以,本发明不限制于任何特定的硬件和软件结合。It should be understood by those skilled in the art that the modules or steps of the above embodiments of the present invention may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices. Alternatively, they may be implemented by program code executable by a computing device such that they may be stored in a computer storage medium (ROM/RAM, diskette, optical disk) by a computing device, and in some cases The steps shown or described may be performed in a different order than that herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of the modules or steps may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
本发明实施例提出的根据移动终端当前的旋转角度,在移动终端录音/播放或者通话的时候自动切换左右声道或者拾音麦克风和放音扬声器的位置。优选地,在摄像录音场景,不管移动终端是出于何种旋转角度,始终保持左边麦克风是左声道,右边麦克风是右声道,播放的时候也通话保持左边扬声器播放的是左麦克风录制的左声道数据,右边扬声器播放的是右麦克风录制的右声道数据,更能真实地还原现场的立体效果;在移动终端通话状态,不管移动终端是否被拿倒,始终保持距离嘴巴进的是麦克风,距离耳朵近的是听筒。且所有旋转角度判断仅仅只是依赖于移动终端常用的地磁传感器(水平放置的旋转角度判断依据)和重力加速度传感器(垂直旋转角度判断依据)。并不会额外增加硬件成本。According to the current rotation angle of the mobile terminal, the position of the left and right channels or the sound collecting microphone and the sound emitting speaker is automatically switched when the mobile terminal records/plays or talks. Preferably, in the recording and recording scene, regardless of the rotation angle of the mobile terminal, the left microphone is always the left channel, the right microphone is the right channel, and the call is also played during the playback to keep the left speaker playing the left microphone recording. Left channel data, the right speaker plays the right channel data recorded by the right microphone, which can truly restore the stereo effect of the scene; in the mobile terminal call state, regardless of whether the mobile terminal is taken down, it is always kept from the mouth. The microphone, close to the ear is the earpiece. And all the rotation angle judgments only depend on the geomagnetic sensor (the horizontal rotation direction judgment basis) and the gravity acceleration sensor (the vertical rotation angle judgment basis) commonly used in the mobile terminal. There is no additional hardware cost.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质中存储有执行指令,该执行指令用于执行上述的方法。Embodiments of the present invention also provide a storage medium. Optionally, in this embodiment, an execution instruction is stored in the storage medium, and the execution instruction is used to execute the foregoing method.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
以上内容是结合具体的实施方式对本发明实施例所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出 若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a detailed description of the embodiments of the present invention in conjunction with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. For those skilled in the art to which the present invention pertains, it can also be made without departing from the inventive concept. A number of simple deductions or substitutions are considered to be within the scope of the invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种通信终端声音处理控制方法、装置及通信终端具有以下有益效果:可以实现根据通信终端当前所在方位完成对通信终端扬声器单元的工作模式进行对应的调整,尽可能使得通信终端播放出来的声音效果达到最佳,提升用户体验的满意度。 As described above, the communication terminal sound processing control method and apparatus and the communication terminal provided by the embodiments of the present invention have the following beneficial effects: the corresponding adjustment of the working mode of the communication terminal speaker unit can be completed according to the current location of the communication terminal, As far as possible, the sound effect played by the communication terminal is optimized to improve the satisfaction of the user experience.

Claims (11)

  1. 一种通信终端声音处理控制方法,包括:A communication terminal sound processing control method includes:
    获取所述通信终端上扬声器单元当前所在方位;Obtaining an orientation of a speaker unit on the communication terminal;
    在判定所述扬声器单元当前的工作模式与当前所在方位不匹配时,根据所述扬声器单元当前所在方位对所述扬声器单元的工作模式进行对应更新。When it is determined that the current working mode of the speaker unit does not match the current location, the operating mode of the speaker unit is correspondingly updated according to the current location of the speaker unit.
  2. 如权利要求1所述的通信终端声音处理控制方法,其中,判断所述扬声器单元当前的工作模式与其当前所在方位是否匹配包括:The communication terminal sound processing control method according to claim 1, wherein determining whether the current operating mode of the speaker unit matches its current location includes:
    根据所述扬声器单元当前所在方位在预设的扬声器方位与工作模式对应关系表中匹配出第一目标工作模式;Matching the first target working mode in the preset speaker orientation and the working mode correspondence table according to the current orientation of the speaker unit;
    判断所述第一目标工作模式与所述扬声器单元当前的工作模式是否相同,如否,判定所述扬声器单元当前的工作模式与其当前所在方位不匹配。Determining whether the first target working mode is the same as the current working mode of the speaker unit, and if not, determining that the current operating mode of the speaker unit does not match the current location thereof.
  3. 如权利要求2所述的通信终端声音处理控制方法,其中,根据所述扬声器单元当前所在方位对所述扬声器单元当前的工作模式进行更新包括:The communication terminal sound processing control method according to claim 2, wherein updating the current operating mode of the speaker unit according to the current orientation of the speaker unit comprises:
    将所述扬声器单元当前的工作模式更新为所述扬声器单元当前所在方位对应的第一目标工作模式。Updating a current working mode of the speaker unit to a first target working mode corresponding to a current location of the speaker unit.
  4. 如权利要求3所述的通信终端声音处理控制方法,其中,所述扬声器方位与工作模式对应关系表包括以下对应关系:The communication terminal sound processing control method according to claim 3, wherein said speaker orientation and operation mode correspondence table includes the following correspondence:
    在多媒体播放过程中:扬声器单元所在方位为左方或下方时,对应的工作模式为左声道声音播放模式;扬声器单元所在方位为右方或上方时,对应的工作模式为右声道声音播放模式;During multimedia playback: when the orientation of the speaker unit is left or below, the corresponding working mode is the left channel sound playback mode; when the speaker unit is located to the right or above, the corresponding working mode is the right channel sound playback. mode;
    和/或,and / or,
    在通话过程中:扬声器单元方位为上方时,对应的第一目标工作模式为听筒模式。 During the call: when the speaker unit orientation is above, the corresponding first target working mode is the earpiece mode.
  5. 如权利要求1-4任一项所述的通信终端声音处理控制方法,其中,还包括:The communication terminal sound processing control method according to any one of claims 1 to 4, further comprising:
    获取所述通信终端上麦克风单元当前所在方位;Obtaining a current location of the microphone unit on the communication terminal;
    在所述麦克风单元当前的工作模式与当前所在方位不匹配时,根据所述麦克风单元当前所在方位对所述麦克风单元的工作模式进行对应更新。When the current working mode of the microphone unit does not match the current location, the working mode of the microphone unit is updated correspondingly according to the current location of the microphone unit.
  6. 如权利要求5所述的通信终端声音处理控制方法,其中,判断所述麦克风单元当前的工作模式与其当前所在方位是否匹配包括:The communication terminal sound processing control method according to claim 5, wherein determining whether the current operating mode of the microphone unit matches its current location includes:
    根据所述麦克风单元当前所在方位在预设的麦克风方位与工作模式对应关系表中匹配出第二目标工作模式;And matching the second target working mode in the preset microphone orientation and the working mode correspondence table according to the current orientation of the microphone unit;
    判断所述第二目标工作模式与所述麦克风单元当前的工作模式是否相同,如否,判定所述麦克风单元当前的工作模式与其当前所在方位不匹配。Determining whether the second target working mode is the same as the current working mode of the microphone unit, and if not, determining that the current working mode of the microphone unit does not match the current location thereof.
  7. 如权利要求6所述的通信终端声音处理控制方法,其中,根据所述麦克风单元当前所在方位对所述麦克风单元当前的工作模式进行更新包括:The communication terminal sound processing control method of claim 6, wherein updating the current working mode of the microphone unit according to the current location of the microphone unit comprises:
    将所述麦克风单元当前的工作模式更新为所述麦克风单元当前所在方位对应的第二目标工作模式。Updating a current working mode of the microphone unit to a second target working mode corresponding to a current location of the microphone unit.
  8. 如权利要求7所述的通信终端声音处理控制方法,其中,所述麦克风方位与工作模式对应关系表包括以下对应关系:The communication terminal sound processing control method according to claim 7, wherein the microphone orientation and operation mode correspondence table includes the following correspondence:
    在多媒体录制过程中:麦克风单元所在方位为左方或下方时,对应的工作模式为左声道声音采集状态;麦克风单元所在方位为右方或上方时,对应的工作模式为右声道声音采集状态;In the multimedia recording process: when the orientation of the microphone unit is left or below, the corresponding working mode is the left channel sound collection state; when the microphone unit is located to the right or above, the corresponding working mode is the right channel sound collection. status;
    和/或,and / or,
    在通话过程中:麦克风单元方位为上方时,对应的第二目标工作 模式为消噪音模式;麦克风单元方位为下方时,对应的第二目标工作模式为主声音采集模式。During the call: when the microphone unit is in the upper position, the corresponding second target works The mode is the noise canceling mode; when the microphone unit orientation is below, the corresponding second target working mode is the main sound collecting mode.
  9. 一种通信终端声音处理控制装置,包括:A communication terminal sound processing control device includes:
    扬声器位置检测模块,设置为获取所述通信终端上扬声器单元当前所在方位;a speaker position detecting module configured to acquire an orientation of a speaker unit on the communication terminal;
    扬声器控制模块,设置为在判定所述扬声器单元当前的工作模式与当前所在方位不匹配时,根据所述扬声器单元当前所在方位对所述扬声器单元的工作模式进行对应更新。The speaker control module is configured to, when determining that the current working mode of the speaker unit does not match the current orientation, update the working mode of the speaker unit according to the current orientation of the speaker unit.
  10. 如权利要求9所述的通信终端声音处理控制装置,其中,还包括:The communication terminal sound processing control apparatus according to claim 9, further comprising:
    麦克风位置检测模块,设置为获取所述通信终端上麦克风单元当前所在方位;a microphone position detecting module, configured to acquire an orientation of a microphone unit on the communication terminal;
    麦克风控制模块,设置为在所述麦克风单元当前的工作模式与当前所在方位不匹配时,根据所述麦克风单元当前所在方位对所述麦克风单元的工作模式进行对应更新。The microphone control module is configured to update the working mode of the microphone unit according to the current location of the microphone unit when the current working mode of the microphone unit does not match the current orientation.
  11. 一种通信终端,包括如权利要求9或10任一项所述的通信终端声音处理控制装置。 A communication terminal comprising the communication terminal sound processing control device according to any one of claims 9 or 10.
PCT/CN2016/101802 2016-06-17 2016-10-11 Communication terminal sound processing control method, device and communication terminal WO2017215158A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610437905.4 2016-06-17
CN201610437905.4A CN107517302A (en) 2016-06-17 2016-06-17 Communication terminal acoustic processing control method, device and communication terminal

Publications (1)

Publication Number Publication Date
WO2017215158A1 true WO2017215158A1 (en) 2017-12-21

Family

ID=60663906

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/101802 WO2017215158A1 (en) 2016-06-17 2016-10-11 Communication terminal sound processing control method, device and communication terminal

Country Status (2)

Country Link
CN (1) CN107517302A (en)
WO (1) WO2017215158A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297521B (en) * 2019-06-24 2021-06-15 Oppo广东移动通信有限公司 Working mode switching method and device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5224151A (en) * 1992-04-01 1993-06-29 At&T Bell Laboratories Automatic handset-speakephone switching arrangement for portable communication device
CN1372752A (en) * 1999-03-19 2002-10-02 艾利森公司 Communications devices and methods that operate according to communications device orientations determined by reference to gravitational sensors
CN101489168A (en) * 2008-01-18 2009-07-22 宏达国际电子股份有限公司 Handhold apparatus and switching method for audio signal outputting
CN102595304A (en) * 2012-03-15 2012-07-18 国光电器股份有限公司 Sound channel automatic switching device
CN103167383A (en) * 2011-12-15 2013-06-19 冠捷投资有限公司 Electronic device capable of automatically using correct sound channels for output
CN103227863A (en) * 2013-04-05 2013-07-31 瑞声科技(南京)有限公司 System and method of automatically switching call direction and mobile terminal applying system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5224151A (en) * 1992-04-01 1993-06-29 At&T Bell Laboratories Automatic handset-speakephone switching arrangement for portable communication device
CN1372752A (en) * 1999-03-19 2002-10-02 艾利森公司 Communications devices and methods that operate according to communications device orientations determined by reference to gravitational sensors
CN101489168A (en) * 2008-01-18 2009-07-22 宏达国际电子股份有限公司 Handhold apparatus and switching method for audio signal outputting
CN103167383A (en) * 2011-12-15 2013-06-19 冠捷投资有限公司 Electronic device capable of automatically using correct sound channels for output
CN102595304A (en) * 2012-03-15 2012-07-18 国光电器股份有限公司 Sound channel automatic switching device
CN103227863A (en) * 2013-04-05 2013-07-31 瑞声科技(南京)有限公司 System and method of automatically switching call direction and mobile terminal applying system

Also Published As

Publication number Publication date
CN107517302A (en) 2017-12-26

Similar Documents

Publication Publication Date Title
US11375329B2 (en) Systems and methods for equalizing audio for playback on an electronic device
WO2018126632A1 (en) Loudspeaker control method and mobile terminal
EP2926570B1 (en) Image generation for collaborative sound systems
KR102035477B1 (en) Audio processing based on camera selection
TWI473009B (en) Systems for enhancing audio and methods for output audio from a computing device
WO2018149275A1 (en) Method and apparatus for adjusting audio output by speaker
US11791790B2 (en) Method and system for a headset with integrated environmental sensors
CN104012074A (en) Smart audio and video capture systems for data processing systems
US9241215B2 (en) Mobile apparatus and control method thereof
WO2014087195A1 (en) Orientation Based Microphone Selection Apparatus
WO2017020422A1 (en) Audio circuit selection method, device, circuit, and handheld terminal
CN110035372B (en) Output control method and device of sound amplification system, sound amplification system and computer equipment
US20210037336A1 (en) An apparatus and associated methods for telecommunications
WO2015124059A1 (en) Communication method and terminal
CN115699718A (en) System, device and method for operating on audio data based on microphone orientation
CN108551608A (en) A kind of control method of intelligent sound box, device, storage medium and intelligent sound box
CN112153527B (en) Voice playing control method and related device
WO2017215158A1 (en) Communication terminal sound processing control method, device and communication terminal
KR20170013359A (en) Mobile device including a centrally located earpiece
CN111770404A (en) Recording method, recording device, electronic equipment and readable storage medium
CN112612444A (en) Sound source position positioning method, sound source position positioning device, electronic equipment and storage medium
CN109429152A (en) Speaker unit, electronic equipment, effect adjusting method and device
EP3941027A1 (en) Adaptive method and apparatus for intelligent terminal, and terminal
US11586407B2 (en) Systems, devices, and methods of manipulating audio data based on display orientation
CN115769566A (en) System, device and method for acoustic echo cancellation based on display orientation

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: 16905270

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: 16905270

Country of ref document: EP

Kind code of ref document: A1