CN105991836A - Communication sound switching method and device - Google Patents

Communication sound switching method and device Download PDF

Info

Publication number
CN105991836A
CN105991836A CN201510098538.5A CN201510098538A CN105991836A CN 105991836 A CN105991836 A CN 105991836A CN 201510098538 A CN201510098538 A CN 201510098538A CN 105991836 A CN105991836 A CN 105991836A
Authority
CN
China
Prior art keywords
terminal
distance
threshold value
predetermined threshold
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510098538.5A
Other languages
Chinese (zh)
Inventor
廖柏树
文红
李晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510098538.5A priority Critical patent/CN105991836A/en
Publication of CN105991836A publication Critical patent/CN105991836A/en
Pending legal-status Critical Current

Links

Landscapes

  • Telephone Function (AREA)

Abstract

The invention discloses a communication sound switching method and device. The method comprises a step of determining whether a terminal is in a communication state, a step of detecting the distance between a preset position in the terminal and a human body when the terminal is in the communication state, and a step of switching to the speaker of the terminal to output communication sound when the distance is larger than a preset threshold. The invention is used for automatically starting a hands-free mode for a user in communication.

Description

Call sound switching method and device
Technical field
It relates to technical field of mobile terminals, particularly relate to a kind of call sound switching method and device.
Background technology
With the progressively development of smart mobile phone, mobile phone is applied to as product indispensable in people's life. When using mobile phone communication, the conversion between hand-held mode and hands-free mode must click on screen by user, Manually operated just can complete.
Content of the invention
Disclosure embodiment provides one call sound switching method and device.
According to the first aspect of disclosure embodiment, provide one call sound switching method, comprising:
Determine whether terminal is in talking state;
When terminal is in talking state, the distance between predeterminated position and human body in detection terminal;
When described distance is more than predetermined threshold value, switch to the loudspeaker output call sound of described terminal.
In the present embodiment, when user's communication, when the range sensor being positioned in terminal detects in terminal pre- If the position such as distance between receiver and human body is relatively big, i.e. user not by terminal near ear when, be user Open hands-free mode, i.e. with the loudspeaker output call sound of terminal.So, mobile phone is used according to user Situation opens hands-free mode for user automatically, it is not necessary to user is manually operated so that terminal is more intelligent, improves User experience.
Optionally, described method also includes: when described distance is less than or equal to predetermined threshold value, switch to institute State the receiver output call sound of terminal.
In alternative, when the range sensor being positioned in terminal detects predeterminated position such as receiver in terminal And the distance between human body is less, i.e. user by terminal near ear when, open hand-held mode for user, i.e. With the receiver output call sound of terminal.So, the situation of mobile phone is used automatically to convert call according to user For hand-held mode, it is not necessary to user is manually operated so that terminal is more intelligent, improve user experience.
Optionally, when described distance is less than or equal to predetermined threshold value, described method also includes: close described The screen of terminal.
In alternative, when terminal call is in hand-held mode, screen of closing a terminal, prevent user from beating The maloperation that on screen, other buttons produce is touched during phone.
Optionally, when described distance is more than predetermined threshold value, described method also includes: open described terminal Screen.
In alternative, when terminal call is in hands-free mode, terminal screen can be opened, it is simple to use Family performs other operations on screen.
According to the second aspect of disclosure embodiment, provide one call sound switching device, it is characterised in that Including:
Determining module, is used for determining whether terminal is in talking state;
Detection module, is used for when terminal is in talking state, in detection terminal between predeterminated position and human body Distance;
Handover module, for when described distance is more than predetermined threshold value, the loudspeaker switching to described terminal is defeated Go out sound of conversing.
Optionally, described handover module, is additionally operable to when described distance is less than or equal to predetermined threshold value, switching Receiver output call sound to described terminal.
Optionally, described device also includes:
Close module, for when described distance is less than or equal to predetermined threshold value, closing the screen of described terminal.
Optionally, described device also includes:
Opening module, for when described distance is more than predetermined threshold value, opening the screen of described terminal.
According to the third aspect of disclosure embodiment, provide one call sound switching device, comprising:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
Determine whether terminal is in talking state;
When terminal is in talking state, the distance between predeterminated position and human body in detection terminal;
When described distance is more than predetermined threshold value, switch to the loudspeaker output call sound of described terminal.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe , the disclosure can not be limited.
Brief description
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows and meets the disclosure Embodiment, and for explaining the principle of the disclosure together with specification.
Fig. 1 is the flow chart of a kind of sound switching method of conversing according to an exemplary embodiment;
Fig. 2 is the block diagram of a kind of sound switching device of conversing according to an exemplary embodiment;
Fig. 3 is the block diagram of a kind of sound switching device of conversing according to another exemplary embodiment;
Fig. 4 is the block diagram of a kind of sound switching device of conversing according to another exemplary embodiment;
Fig. 5 is the block diagram of a kind of device for sound switching of conversing according to an exemplary embodiment.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all enforcements consistent with the disclosure Mode.On the contrary, they only with describe in detail in appended claims, the disclosure some in terms of phase The example of consistent apparatus and method.
The receiver position of terminal is provided with range sensor, when call, when experiencing the thing pressed close to, When ear blocks sensor when i.e. making a phone call, screen can be automatically switched off, prevent face's contact mobile phone from causing behaviour by mistake Make.
Fig. 1 is the flow chart of a kind of sound switching method of conversing according to an exemplary embodiment, such as figure Shown in 1, call sound switching method is for, in terminal, comprising the following steps.
In step s 11, determine whether terminal is in talking state;
In step s 12, when terminal is in talking state, in detection terminal between predeterminated position and human body Distance;
In step s 13, when described distance is more than predetermined threshold value, the loudspeaker switching to described terminal is defeated Go out sound of conversing.
In the present embodiment, when user's communication, when the range sensor being positioned in terminal detects in terminal pre- If the position such as distance between receiver and human body is relatively big, i.e. user not by terminal near ear when, be user Open hands-free mode, i.e. with the loudspeaker output call sound of terminal.So, mobile phone is used according to user Situation opens hands-free mode for user automatically, it is not necessary to user is manually operated so that terminal is more intelligent, improves User experience.
Optionally, the method also includes:
When described distance is less than or equal to predetermined threshold value, switch to the receiver output call sound of described terminal Sound.
In alternative, when the range sensor being positioned in terminal detects predeterminated position such as receiver in terminal And the distance between human body is less, i.e. user by terminal near ear when, open hand-held mode for user, i.e. With the receiver output call sound of terminal.So, the situation of mobile phone is used automatically to convert call according to user For hand-held mode, it is not necessary to user is manually operated so that terminal is more intelligent, improve user experience.
Optionally, when described distance is less than or equal to predetermined threshold value, described method also includes:
Close the screen of described terminal.
In alternative, when terminal call is in hand-held mode, screen of closing a terminal, prevent user from beating The maloperation that on screen, other buttons produce is touched during phone.
Optionally, when described distance is more than predetermined threshold value, described method also includes:
Open the screen of described terminal.
In alternative, when terminal call is in hands-free mode, terminal screen can be opened, it is simple to use Family performs other operations on screen.
Fig. 2 is the block diagram of a kind of sound switching device of conversing according to an exemplary embodiment.Such as Fig. 2 Shown in, this device includes:
Determining module 21 is configured to determine that whether terminal is in talking state;
Detection module 22 is configured as terminal when being in talking state, predeterminated position and people in detection terminal Distance between body;
When handover module 23 is configured as described distance more than predetermined threshold value, switch to raising of described terminal Sound device output call sound.
Optionally, described handover module 23 is additionally configured to when described distance is less than or equal to predetermined threshold value, Switch to the receiver output call sound of described terminal.
Fig. 3 is the block diagram of a kind of sound switching device of conversing according to another exemplary embodiment.Such as figure Shown in 3, optionally, described device also includes:
When closedown module 24 is configured as described distance less than or equal to predetermined threshold value, close described terminal Screen.
Fig. 4 is the block diagram of a kind of sound switching device of conversing according to another exemplary embodiment.Such as figure Shown in 4, optionally, described device also includes:
When opening module 25 is configured as described distance more than predetermined threshold value, open the screen of described terminal.
With regard to the device in above-described embodiment, wherein modules performs the concrete mode of operation relevant The embodiment of the method is described in detail, explanation will be not set forth in detail herein.
The disclosure also provides a kind of call sound switching device, comprising:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
Determine whether terminal is in talking state;
When terminal is in talking state, the distance between predeterminated position and human body in detection terminal;
When described distance is more than predetermined threshold value, switch to the loudspeaker output call sound of described terminal.
Fig. 5 is the block diagram of a kind of device for sound switching of conversing according to an exemplary embodiment. For example, device 1300 can be mobile phone, computer, digital broadcast terminal, messaging devices, Game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc..
As it is shown in figure 5, device 1300 can include following one or more assembly: process assembly 1302, Memory 1304, power supply module 1306, multimedia groupware 1308, audio-frequency assembly 1310, input/output (I/ O) interface 1312, sensor cluster 1314, and communications component 1316.
Process assembly 1302 and generally control the integrated operation of device 1300, such as with display, call, The operation that data communication, camera operation and record operation are associated.Process assembly 1302 and can include one Or multiple processor 1320 performs instruction, to complete all or part of step of above-mentioned method.Additionally, Process assembly 1302 and can include one or more module, it is simple to process between assembly 1302 and other assemblies Mutual.For example, process assembly 1302 and can include multi-media module, to facilitate multimedia groupware 1308 And process between assembly 1302 mutual.
Memory 1304 is configured to store various types of data to support the operation at equipment 1300.This The example of a little data includes the instruction of any application program for operation on device 1300 or method, connection It is personal data, telephone book data, message, picture, video etc..Memory 1304 can be by any type Volatibility or non-volatile memory device or combinations thereof realize, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), the read-only storage of erasable programmable Device (EPROM), programmable read only memory (PROM), read-only storage (ROM), magnetic memory, Flash memory, disk or CD.
The various assembly that power supply module 1306 is device 1300 provides electric power.Power supply module 1306 can wrap Include power-supply management system, one or more power supplys, and other generate with for device 1300, manage and distribute The assembly that electric power is associated.
Multimedia groupware 1308 includes one output interface of offer between described device 1300 and user Screen.In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP). If screen includes touch panel, screen may be implemented as touch-screen, to receive the input letter from user Number.Touch panel includes one or more touch sensor to sense touch, to slide and the hand on touch panel Gesture.Described touch sensor can not only sense touch or the border of sliding action, but also detection with described Touch or duration that slide is related and pressure.In certain embodiments, multimedia groupware 1308 Including a front-facing camera and/or post-positioned pick-up head.When equipment 1300 is in operator scheme, such as shooting mould When formula or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside.Often Individual front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and light Learn zoom capabilities.
Audio-frequency assembly 1310 is configured to output and/or input audio signal.For example, audio-frequency assembly 1310 Including a microphone (MIC), when device 1300 is in operator scheme, such as call model, logging mode During with speech recognition mode, microphone is configured to receive external audio signal.The audio signal being received can Send at memory 1304 or via communications component 1316 to be further stored.In certain embodiments, Audio-frequency assembly 1310 also includes a loudspeaker, is used for exporting audio signal.
I/O interface 1312 provides interface, above-mentioned periphery for processing between assembly 1302 and peripheral interface module Interface module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button, Volume button, start button and locking press button.
Sensor cluster 1314 includes one or more sensor, for providing various aspects for device 1300 State estimation.For example, what sensor cluster 1314 can detect equipment 1300 opens/closed mode, The relative positioning of assembly, for example described assembly is display and the keypad of device 1300, sensor cluster 1314 position change, user and the devices 1300 that can also detect device 1300 or 1,300 1 assemblies of device Contact is presence or absence of, the temperature change of device 1300 orientation or acceleration/deceleration and device 1300.Pass Sensor assembly 1314 can include proximity transducer, is configured to examine when not having any physical contact The existence of object near surveying.Sensor cluster 1314 can also include optical sensor, such as CMOS or CCD Imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 1314 Acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or TEMP can also be included Device.
Communications component 1316 is configured to facilitate wired or wireless mode between device 1300 and other equipment Communication.Device 1300 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or Combinations thereof.In one exemplary embodiment, communications component 1316 via broadcast channel receive from The broadcast singal of external broadcasting management system or broadcast related information.In one exemplary embodiment, described Communications component 1316 also includes near-field communication (NFC) module, to promote junction service.For example, at NFC Module can be based on RF identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra broadband (UWB) Technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1300 can be by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), FPGA Device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or Other electronic components realize, are used for performing said method.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instruction is additionally provided Matter, for example, include the memory 1304 of instruction, and above-mentioned instruction can be performed by the processor 1320 of device 1300 To complete said method.For example, described non-transitory computer-readable recording medium can be ROM, with Machine access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by mobile terminal Processor when performing so that mobile terminal is able to carry out a kind of call sound switching method, described method bag Include:
Determine whether terminal is in talking state;
When terminal is in talking state, the distance between predeterminated position and human body in detection terminal;
When described distance is more than predetermined threshold value, switch to the loudspeaker output call sound of described terminal.
Optionally, described method also includes: when described distance is less than or equal to predetermined threshold value, switch to institute State the receiver output call sound of terminal.
Optionally, when described distance is less than or equal to predetermined threshold value, described method also includes: close described The screen of terminal.
Optionally, when described distance is more than predetermined threshold value, described method also includes: open described terminal Screen.
Those skilled in the art, after considering specification and putting into practice invention disclosed herein, will readily occur to these public affairs Other embodiments opened.The application is intended to any modification, purposes or the adaptations of the disclosure, These modification, purposes or adaptations are followed the general principle of the disclosure and include that the disclosure is not disclosed Common knowledge in the art or conventional techniques means.Description and embodiments is considered only as exemplary , the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure is not limited to accurate knot described above and illustrated in the accompanying drawings Structure, and various modifications and changes can carried out without departing from the scope.The scope of the present disclosure is only by appended Claim limits.

Claims (9)

1. a call sound switching method, it is characterised in that include:
Determine whether terminal is in talking state;
When terminal is in talking state, the distance between predeterminated position and human body in detection terminal;
When described distance is more than predetermined threshold value, switch to the loudspeaker output call sound of described terminal.
2. method according to claim 1, it is characterised in that described method also includes:
When described distance is less than or equal to predetermined threshold value, switch to the receiver output call sound of described terminal Sound.
3. method according to claim 2, it is characterised in that when described distance is less than or equal in advance If during threshold value, described method also includes:
Close the screen of described terminal.
4. method according to claim 1, it is characterised in that when described distance is more than predetermined threshold value When, described method also includes:
Open the screen of described terminal.
5. a call sound switching device, it is characterised in that include:
Determining module, is used for determining whether terminal is in talking state;
Detection module, is used for when terminal is in talking state, in detection terminal between predeterminated position and human body Distance;
Handover module, for when described distance is more than predetermined threshold value, the loudspeaker switching to described terminal is defeated Go out sound of conversing.
6. device according to claim 5, it is characterised in that described handover module, is additionally operable to work as When described distance is less than or equal to predetermined threshold value, switch to the receiver output call sound of described terminal.
7. device according to claim 6, it is characterised in that described device also includes:
Close module, for when described distance is less than or equal to predetermined threshold value, closing the screen of described terminal.
8. device according to claim 5, it is characterised in that described device also includes:
Opening module, for when described distance is more than predetermined threshold value, opening the screen of described terminal.
9. a call sound switching device, it is characterised in that include:
Processor;
For storing the memory of processor executable;
Wherein, described processor is configured to:
Determine whether terminal is in talking state;
When terminal is in talking state, the distance between predeterminated position and human body in detection terminal;
When described distance is more than predetermined threshold value, switch to the loudspeaker output call sound of described terminal.
CN201510098538.5A 2015-03-05 2015-03-05 Communication sound switching method and device Pending CN105991836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510098538.5A CN105991836A (en) 2015-03-05 2015-03-05 Communication sound switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510098538.5A CN105991836A (en) 2015-03-05 2015-03-05 Communication sound switching method and device

Publications (1)

Publication Number Publication Date
CN105991836A true CN105991836A (en) 2016-10-05

Family

ID=57039373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510098538.5A Pending CN105991836A (en) 2015-03-05 2015-03-05 Communication sound switching method and device

Country Status (1)

Country Link
CN (1) CN105991836A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377298A (en) * 2018-02-07 2018-08-07 广东欧珀移动通信有限公司 A kind of method, apparatus and computer readable storage medium of switching answer mode

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964844A (en) * 2010-09-26 2011-02-02 中兴通讯股份有限公司 Method and device for automatically regulating audio playing in handhold verbal equipment
CN103384288A (en) * 2012-05-02 2013-11-06 中兴通讯股份有限公司 Method for automatically controlling terminal voice channel and terminal
CN104092836A (en) * 2014-06-11 2014-10-08 小米科技有限责任公司 Power-saving method and apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964844A (en) * 2010-09-26 2011-02-02 中兴通讯股份有限公司 Method and device for automatically regulating audio playing in handhold verbal equipment
CN103384288A (en) * 2012-05-02 2013-11-06 中兴通讯股份有限公司 Method for automatically controlling terminal voice channel and terminal
CN104092836A (en) * 2014-06-11 2014-10-08 小米科技有限责任公司 Power-saving method and apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108377298A (en) * 2018-02-07 2018-08-07 广东欧珀移动通信有限公司 A kind of method, apparatus and computer readable storage medium of switching answer mode
CN108377298B (en) * 2018-02-07 2020-09-25 Oppo广东移动通信有限公司 Method and device for switching answering mode, mobile terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN105117033A (en) Connection method and device of external equipment
CN104238912A (en) Application control method and application control device
CN105242828A (en) Method and apparatus for displaying control on interface of mobile terminal
CN105516587A (en) Method for switching cameras and mobile terminal
CN104486451A (en) Application program recommendation method and device
CN105260247A (en) Method and device for controlling terminal application
CN104506443A (en) Router setting interface display method and device
CN105530384A (en) Method and device for power reminding based on alarm clock
CN104869595A (en) Method and device for controlling data traffic
CN104735670A (en) Network access method and device
CN104537380A (en) Clustering method and device
CN104378715A (en) Device and method for lowering earphone POP sound
CN105282446A (en) Camera management method and device
CN106095073A (en) The sending method of control instruction and device
CN105224171A (en) icon display method, device and terminal
CN105515952A (en) Multimedia message sending method and device
CN105224174A (en) The display packing of Paste and device
CN104375760B (en) Method for information display and device
CN105187671A (en) Recording method and device
CN105516469A (en) Clock control method and device
CN107368280A (en) Method for controlling volume, device and the interactive voice equipment of interactive voice
CN104780574A (en) Method and device for network switchover
CN107132983A (en) Split screen window operation method and device
CN105450861A (en) Information prompt method and information prompt device
CN104731615A (en) Intelligent device configuration method and device

Legal Events

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

Application publication date: 20161005

RJ01 Rejection of invention patent application after publication