WO2018076434A1 - 声音信号的输出方法及装置、耳机状态的检测方法及装置 - Google Patents
声音信号的输出方法及装置、耳机状态的检测方法及装置 Download PDFInfo
- Publication number
- WO2018076434A1 WO2018076434A1 PCT/CN2016/107777 CN2016107777W WO2018076434A1 WO 2018076434 A1 WO2018076434 A1 WO 2018076434A1 CN 2016107777 W CN2016107777 W CN 2016107777W WO 2018076434 A1 WO2018076434 A1 WO 2018076434A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- earphone device
- terminal
- sound signal
- state
- real
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/6058—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/6058—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
- H04M1/6066—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User 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 technologies, and in particular, to a method for outputting a sound signal, an output device for a sound signal, a state detecting method for a headphone device, and a state detecting device for a headphone device.
- earphone devices have been widely used as an accessory for terminal devices (such as mobile phones, tablet computers, etc.). Headphone devices are generally classified into wired headsets and wireless headsets (such as Bluetooth headsets). Whether it is a wired headset or a wireless headset, when the headset is connected to the terminal device, the sound signal of the terminal device is output from the headset by default.
- the terminal device When the terminal device is connected to the earphone, if the sound signal of the terminal device is always output from the earphone, there may be inconvenience in the user's use. For example, if the user uses a Bluetooth headset to connect with the mobile phone, if the user does not wear the Bluetooth headset at a certain moment and the mobile phone receives the incoming call, even if the user puts the handset of the handset close to the ear, the call voice cannot be heard, obviously this fixed sound output. The way affects the user experience.
- the invention is based on at least one of the above technical problems, and proposes a new sound signal output scheme and a state detection scheme of the earphone device, which can intelligently determine that the sound signal of the terminal is determined by detecting the state of the earphone device.
- the output of the headphone device is also directly output by the terminal, which has great flexibility and is beneficial to improving the user experience.
- a method for outputting a sound signal comprising: after the terminal establishes a connection with the earphone device, if the terminal needs to output a sound signal, acquiring real time of the earphone device a state in which the sound signal is output by the earphone device when the real-time state of the earphone device is a use state; and the sound signal is directly output through the terminal when the real-time state of the earphone device is an unused state .
- the terminal when the terminal establishes a connection with the earphone device, and the terminal needs to output a sound signal, by acquiring the real-time state of the earphone device, when the earphone device is in the use state, such as when the user has worn the earphone device, the terminal The sound signal can be output through the earphone device to ensure that the user uses the earphone device to listen to the sound signal; and when the earphone device is in an unused state, such as when the user does not wear the earphone device, the sound signal of the terminal can be directly output through the terminal, ensuring the user Even if the earphone device is not worn, the sound signal can be heard, and the problem that the user cannot wear the earphone device and the sound signal cannot be heard after the earphone device is connected to the terminal is avoided. It can be seen that the technical solution of the present invention can intelligently judge whether the sound signal of the terminal is output by the earphone device or directly output by the terminal, which has great flexibility and is beneficial to improving the user experience.
- the earphone device may be a wired earphone device or a wireless earphone device (such as a Bluetooth earphone device).
- the step of acquiring the real-time status of the earphone device includes: sending a notification message to the earphone device, where the notification message is used to notify the earphone device to detect whether the user wears the earphone Receiving a detection result sent by the earphone device; determining a real-time state of the earphone device according to the detection result.
- the headset device since the earphone device is in direct contact with the user, the headset device itself detects the wearing condition of the earphone device by sending the notification message to the earphone device, so that the earphone device can be accurately detected to be in use. It is still unused, which can be used to accurately determine which way the sound signal is output, ensuring that the user can listen to the sound signal.
- the step of determining the real-time status of the earphone device according to the detection result specifically, if the detection result indicates that the user wears the earphone device, determining the The earphone device is in the use state; if the detection result indicates that the user does not wear the earphone device, determining that the earphone device is in the unused state.
- the method for outputting the sound signal further comprises: detecting whether the terminal receives a voice or video communication request, and/or detecting whether the terminal initiates a voice or video communication request, And/or detecting whether the terminal needs to play an audio file or a video file; if detecting that the terminal receives a voice or video communication request, or detecting that the terminal initiates a voice or video communication request, or detecting the terminal If an audio file or a video file needs to be played, it is determined that the terminal needs to output a sound signal.
- the terminal when detecting that the terminal receives a voice or video communication request (including receiving a call, receiving a voice chat or a video chat, etc.), or detecting that the terminal initiates a voice or video communication request (including making a call, initiating a voice chat, or In the case of video chat, etc., if the earphone device is in an unused state, the terminal directly outputs a sound signal through its earpiece, and of course, the terminal can also output a sound signal through its speaker. When it is detected that the terminal needs to play an audio file or a video file, if the earphone device is in an unused state, the terminal directly outputs a sound signal through its speaker.
- a method for detecting a state of a headphone device is provided.
- the headset device is provided with a sensor for detecting a state.
- the state detecting method includes: after the headset device establishes a connection with the terminal, detecting Receiving a notification message sent by the terminal, the notification message is used to notify the earphone device to detect its real-time status; when receiving the notification message sent by the terminal, detecting the earphone by the sensor The real-time status of the device; the detected real-time status is sent to the terminal.
- the step of detecting the real-time status of the earphone device by using the sensor specifically: detecting, by the sensor, whether the user wears the earphone device, to obtain the earphone device Real-time status.
- the sensor provided on the earphone device may be a gravity sensor and/or an optical sensor.
- an output device for a sound signal comprising: an obtaining unit, configured to acquire the earphone device if the terminal needs to output a sound signal after the terminal establishes a connection with the earphone device a real-time state; the control unit is configured to output the sound signal through the earphone device when the real-time state of the earphone device is in a use state, and set to be in an unused state when the real-time state of the earphone device is in an unused state The sound signal is directly output through the terminal.
- the terminal when the terminal establishes a connection with the earphone device, and the terminal needs to output a sound signal, by acquiring the real-time state of the earphone device, when the earphone device is in the use state, such as when the user has worn the earphone device, the terminal The sound signal can be output through the earphone device to ensure that the user uses the earphone device to listen to the sound signal; and when the earphone device is in an unused state, such as when the user does not wear the earphone device, the sound signal of the terminal can be directly output through the terminal, ensuring the user Even if the earphone device is not worn, the sound signal can be heard, and the problem that the user cannot wear the earphone device and the sound signal cannot be heard after the earphone device is connected to the terminal is avoided. It can be seen that the technical solution of the present invention can intelligently judge whether the sound signal of the terminal is output by the earphone device or directly output by the terminal, which has great flexibility and is beneficial to improving the user experience.
- the obtaining unit includes: a sending unit, configured to send a notification message to the earphone device, where the notification message is used to notify the earphone device to detect whether the user wears the earphone device; a unit, configured to receive a detection result sent by the earphone device; and a first determining unit configured to determine a real-time state of the earphone device according to the detection result.
- the headset device since the earphone device is in direct contact with the user, the headset device itself detects the wearing condition of the earphone device by sending the notification message to the earphone device, so that the earphone device can be accurately detected to be in use. It is still unused, which can be used to accurately determine which way the sound signal is output, ensuring that the user can listen to the sound signal.
- the first determining unit is specifically configured to: when the detection result indicates that the user wears the earphone device, determine that the earphone device is in the use state; The detection result indicates that when the user does not wear the earphone device, it is determined that the earphone device is in the unused state.
- the output device of the sound signal further comprises: a detecting unit configured to detect whether the terminal receives a voice or video communication request, and/or detect whether the terminal initiates a voice Or a video communication request, and/or detecting whether the terminal needs to play an audio file or a video file; the second determining unit is configured to detect, at the detecting unit, that the terminal receives a voice or video communication request, or detects the location When the terminal initiates a voice or video communication request, or detects that the terminal needs to play an audio file or a video file, it is determined that the terminal needs to output a sound signal.
- the terminal when detecting that the terminal receives the voice or video communication request, or detecting that the terminal initiates a voice or video communication request, if the earphone device is in an unused state, the terminal directly outputs a sound signal through the earpiece thereof, of course, the terminal may also The sound signal is output through its speaker.
- the terminal When it is detected that the terminal needs to play an audio file or a video file, if the earphone device is in an unused state, the terminal directly outputs a sound signal through its speaker.
- a state detecting device for a headphone device, wherein the earphone device is provided with a sensor for detecting a state, the state detecting device comprising: a first detecting unit, configured to be in the earphone device After establishing a connection with the terminal, detecting whether the notification message sent by the terminal is received, the notification message is used to notify the headset device to detect its real-time status; and the second detecting unit is configured to receive the transmission sent by the terminal. And detecting, by the sensor, a real-time status of the earphone device; and the sending unit is configured to send the real-time status detected by the second detecting unit to the terminal.
- the second detecting unit is specifically configured to: detect, by the sensor, whether the user wears the earphone device to obtain a real-time state of the earphone device.
- the sensor provided on the earphone device may be a gravity sensor and/or an optical sensor.
- a terminal comprising: the output device of the sound signal according to the above third aspect.
- a headphone device comprising: a headphone device body, a sensor disposed on the headphone device body, and a state detecting device of the earphone device according to the above fourth aspect.
- the earphone device may be a wired earphone device or a wireless earphone device (such as a Bluetooth earphone device).
- the detection of the state of the earphone device can be realized, and the smart signal of the terminal can be intelligently judged whether it is output by the earphone device or directly output by the terminal, which has great flexibility and is beneficial to improving the user experience.
- FIG. 1 is a flow chart showing a method of outputting a sound signal according to an embodiment of the present invention
- FIG. 2 is a flow chart showing the real-time state of acquiring the earphone device shown in FIG. 1;
- Figure 3 is a schematic block diagram showing an output device of a sound signal according to a first embodiment of the present invention
- Figure 4 is a schematic block diagram showing an output device of a sound signal according to a second embodiment of the present invention.
- FIG. 5 is a schematic view showing the internal structure of the acquisition unit shown in FIGS. 3 and 4;
- FIG. 6 is a flow chart showing a state detecting method of a headphone device according to an embodiment of the present invention.
- FIG. 7 is a schematic block diagram of a state detecting device of a headphone device according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram showing an interaction process between a mobile phone and a Bluetooth headset according to an embodiment of the present invention.
- Figure 9 shows a schematic block diagram of a terminal in accordance with an embodiment of the present invention.
- FIG. 10 shows a schematic block diagram of a headphone device in accordance with an embodiment of the present invention.
- FIG. 1 is a flow chart showing a method of outputting a sound signal according to an embodiment of the present invention.
- a method for outputting a sound signal includes:
- Step S10 After establishing a connection with the earphone device, if the terminal needs to output a sound signal, the terminal acquires a real-time state of the earphone device.
- step S10 for how to determine whether the terminal needs to output a sound signal, the solution proposed by the embodiment of the present invention is as follows: detecting whether the terminal receives a voice or video communication request, and/or detecting whether the terminal initiates a voice or video communication request, And/or detecting whether the terminal needs to play an audio file or a video file; if detecting that the terminal receives a voice or video communication request, or detecting that the terminal initiates a voice or video communication request, or detecting that the terminal needs to play An audio file or a video file determines that the terminal needs to output a sound signal.
- the method for outputting the sound signal shown in FIG. 1 further includes:
- Step S12 When the real-time state of the earphone device is the use state, the sound signal is output through the earphone device.
- Step S14 When the real-time state of the earphone device is an unused state, the sound signal is directly output through the terminal.
- step S14 when the real-time status of the earphone device is in an unused state, if it is detected that the terminal receives a voice or video communication request, or detects that the terminal initiates a voice or video communication request, the terminal directly outputs a sound signal through the handset thereof.
- the terminal can also output a sound signal through its speaker; if it detects that the terminal needs to play an audio file or a video file, the terminal directly outputs a sound signal through its speaker.
- the step of acquiring the real-time status of the earphone device in step S10, as shown in FIG. 2 includes:
- Step S101 Send a notification message to the earphone device, where the notification message is used to notify the earphone device whether the user wears the earphone device.
- Step S102 Receive a detection result sent by the earphone device.
- Step S103 determining a real-time status of the earphone device according to the detection result.
- the headset device since the earphone device is in direct contact with the user, the headset device itself detects the wearing condition of the earphone device by sending the notification message to the earphone device, so that the earphone device can be accurately detected to be in use. It is still unused, which can be used to accurately determine which way the sound signal is output, ensuring that the user can listen to the sound signal.
- step S103 specifically includes: if the detection result indicates that the user wears the earphone device, determining that the earphone device is in the use state; if the detection result indicates that the user does not wear the earphone The device determines that the headset device is in the unused state.
- the terminal when the terminal establishes a connection with the earphone device, and the terminal needs to output a sound signal, by acquiring the real-time state of the earphone device, when the earphone device is in the use state, such as when the user has worn the earphone device, The sound signal of the terminal can be output through the earphone device to ensure that the user uses the earphone device to listen to the sound signal; and when the earphone device is in an unused state, such as when the user does not wear the earphone device, the sound signal of the terminal can be directly output through the terminal, ensuring Even if the user does not wear the earphone device, the user can listen to the sound signal, and avoid the problem that the user cannot listen to the sound signal after the earphone device is connected to the terminal without the user wearing the earphone device. It can be seen that the technical solution of the present invention can intelligently judge whether the sound signal of the terminal is output by the earphone device or directly output by the terminal, which has great flexibility and is beneficial to improving the
- Fig. 3 is a schematic block diagram showing an output device of a sound signal according to a first embodiment of the present invention.
- an output device 300 for a sound signal includes an acquisition unit 302 and a control unit 304.
- the obtaining unit 302 is configured to acquire a real-time status of the earphone device if the terminal needs to output a sound signal after establishing a connection between the terminal and the earphone device; and the control unit 304 is configured to use the real-time state of the earphone device.
- the sound signal is output by the earphone device, and is set to directly output the sound signal through the terminal when the real-time state of the earphone device is an unused state.
- the terminal when the terminal establishes a connection with the earphone device, and the terminal needs to output a sound signal, by acquiring the real-time state of the earphone device, when the earphone device is in the use state, such as when the user has worn the earphone device, the terminal The sound signal can be output through the earphone device to ensure that the user uses the earphone device to listen to the sound signal; and when the earphone device is in an unused state, such as when the user does not wear the earphone device, the sound signal of the terminal can be directly output through the terminal, ensuring the user Even if the earphone device is not worn, the sound signal can be heard, and the problem that the user cannot wear the earphone device and the sound signal cannot be heard after the earphone device is connected to the terminal is avoided. It can be seen that the technical solution of the present invention can intelligently judge whether the sound signal of the terminal is output by the earphone device or directly output by the terminal, which has great flexibility and is beneficial to improving the user experience.
- the sound signal output device 400 further includes: a detecting unit, based on the acquiring unit 302 and the control unit 304 shown in FIG. 402 and second determining unit 404.
- the detecting unit 402 is configured to detect whether the terminal receives a voice or video communication request, and/or detect whether the terminal initiates a voice or video communication request, and/or detect whether the terminal needs to play an audio file or video.
- a second determining unit 404 is configured to detect, at the detecting unit 402, that the terminal receives a voice or video communication request, or detects that the terminal initiates a voice or video communication request, or detects that the terminal needs to play When an audio file or a video file is used, it is determined that the terminal needs to output a sound signal.
- the terminal when detecting that the terminal receives the voice or video communication request, or detecting that the terminal initiates a voice or video communication request, if the earphone device is in an unused state, the terminal directly outputs a sound signal through the earpiece thereof, of course, the terminal may also The sound signal is output through its speaker.
- the terminal When it is detected that the terminal needs to play an audio file or a video file, if the earphone device is in an unused state, the terminal directly outputs a sound signal through its speaker.
- the foregoing acquiring unit 302 includes: a sending unit 3022, a receiving unit 3024, and a first determining unit 3026.
- the sending unit 3022 is configured to send a notification message to the earphone device, where the notification message is used to notify the earphone device to detect whether the user wears the earphone device; and the receiving unit 3024 is configured to receive the detection result sent by the earphone device.
- the first determining unit 3026 is configured to determine a real-time status of the earphone device based on the detection result.
- the headset device since the earphone device is in direct contact with the user, the headset device itself detects the wearing condition of the earphone device by sending the notification message to the earphone device, so that the earphone device can be accurately detected to be in use. It is still unused, which can be used to accurately determine which way the sound signal is output, ensuring that the user can listen to the sound signal.
- the first determining unit 3026 is specifically configured to: when the detection result indicates that the user wears the earphone device, determine that the earphone device is in the use state; The detection result indicates that when the user does not wear the earphone device, it is determined that the earphone device is in the unused state.
- the present invention also proposes a terminal comprising: an output device 300 of a sound signal as shown in Fig. 3 or an output device 400 of a sound signal as shown in Fig. 4.
- FIG. 6 is a flow chart showing a state detecting method of a headphone device according to an embodiment of the present invention, wherein a sensor for detecting a state is provided on the earphone device.
- a method for detecting a state of a headphone device includes:
- Step S60 After establishing a connection with the terminal, the headset device detects whether a notification message sent by the terminal is received, and the notification message is used to notify the headset device to detect its real-time status.
- Step S62 When receiving the notification message sent by the terminal, detecting, by the sensor, a real-time status of the earphone device.
- Step S64 the detected real-time status is sent to the terminal.
- step S62 specifically includes: detecting, by the sensor, whether the user wears the earphone device to obtain a real-time state of the earphone device.
- the sensor provided on the earphone device may be a gravity sensor and/or an optical sensor.
- Fig. 7 shows a schematic block diagram of a state detecting device of a headphone device in which a sensor for detecting a state is provided, according to an embodiment of the present invention.
- the state detecting device 700 of the earphone device includes: a first detecting unit 702, a second detecting unit 704, and a transmitting unit 706.
- the first detecting unit 702 is configured to detect, after the headset device establishes a connection with the terminal, whether to receive the notification message sent by the terminal, where the notification message is used to notify the headset device to detect its real-time status;
- the unit 704 is configured to detect a real-time status of the earphone device by the sensor when receiving the notification message sent by the terminal;
- the sending unit 706 is configured to send the real-time status detected by the second detecting unit 704 To the terminal.
- the second detecting unit 704 is specifically configured to: detect, by the sensor, whether the user wears the earphone device to obtain a real-time state of the earphone device.
- the sensor provided on the earphone device may be a gravity sensor and/or an optical sensor.
- the present invention also proposes a headphone device comprising: a headphone device body, a sensor disposed on the headphone device body, and a state detecting device 700 of the earphone device as shown in FIG.
- the earphone device may be a wired earphone device or a wireless earphone device (such as a Bluetooth earphone device).
- the technical solution of the present invention is separately described from the aspects of the terminal and the earphone device.
- the following describes the interaction process between the two in the following with reference to FIG. 8 , taking the terminal as the mobile phone and the earphone device as the Bluetooth headset as an example.
- the interaction process between the mobile phone and the Bluetooth headset according to the embodiment of the present invention includes:
- step 801 the mobile phone establishes a connection with the Bluetooth headset. Specifically, the mobile phone establishes a wireless connection with the Bluetooth headset through Bluetooth.
- Step 802 The mobile phone sends a notification message to the Bluetooth headset when it needs to output a sound signal.
- the mobile phone is making a voice or video communication request (including making a call, initiating a voice chat or video chat, etc.), or the mobile phone is receiving a voice or video communication request (including receiving a phone call, receiving a voice chat or video chat, etc.) ), or the mobile phone sends a notification message to the Bluetooth headset when it needs to play an audio file or a video file.
- the Bluetooth headset uses the sensor to identify whether the Bluetooth headset is worn on the user's ear.
- an optical sensor, a gravity sensor, or the like may be disposed on the Bluetooth headset, and the sensors are set to detect whether the Bluetooth headset is worn on the user's ear.
- step 804 the Bluetooth headset notifies the mobile phone of the detection result. That is, the Bluetooth headset notifies the mobile phone of the detection result of whether the user wears the Bluetooth headset.
- Step 805 The mobile phone determines, according to the detection result sent by the Bluetooth headset, a device that outputs a sound signal. Specifically, when the Bluetooth headset is in use, that is, when the user wears the Bluetooth headset, the sound signal can be output through the Bluetooth headset; when the Bluetooth headset is in an unused state, that is, the user does not wear the Bluetooth headset, the mobile phone outputs a sound through the handset or the speaker. signal.
- the mobile phone may be replaced by other devices, such as a tablet computer, an MP3, etc.
- the Bluetooth headset may be replaced by a wired headset or other type of wireless headset.
- Figure 9 shows a schematic block diagram of a terminal in accordance with an embodiment of the present invention.
- a terminal includes a processor 1, an input device 2, an output device 3, and a memory 5.
- the processor 1, the input device 2, the output device 3, and the memory 5 may be connected by a bus 4 or the like, as exemplified by the connection through the bus 4 in FIG.
- the memory 5 is used to store a set of program codes, and the processor 1 calls the program code stored in the memory 5 for performing the following operations:
- the terminal After the terminal establishes a connection with the earphone device, if the terminal needs to output a sound signal, the real-time state of the earphone device is acquired through the input device 2;
- the sound signal is output by the output device 3 through the earphone device;
- the sound signal is directly output by the output device 3 through the terminal.
- the processor 1 calls the program code stored in the memory 5, and is also used to perform the following operations:
- the processor 1 calls the program code stored in the memory 5, and is also used to perform the following operations:
- the detection result indicates that the user wears the earphone device, determining that the earphone device is in the use state;
- the detection result indicates that the user does not wear the earphone device, it is determined that the earphone device is in the unused state.
- the processor 1 calls the program code stored in the memory 5, and is also used to perform the following operations:
- the terminal If it is detected that the terminal receives a voice or video communication request, or detects that the terminal initiates a voice or video communication request, or detects that the terminal needs to play an audio file or a video file, it is determined that the terminal needs to output a sound. signal.
- FIG. 10 shows a schematic block diagram of a headphone device in accordance with an embodiment of the present invention.
- a headphone device includes a processor 1', an input device 2', an output device 3', and a memory 5'.
- the processor 1', the input device 2', the output device 3', and the memory 5' may be connected by a bus 4' or other means, as exemplified by the connection through the bus 4' in FIG.
- the memory 5' is used to store a set of program codes, and the processor 1' calls the program code stored in the memory 5' for performing the following operations:
- the headset device After the headset device establishes a connection with the terminal, detecting whether the input device 2 ′ receives the notification message sent by the terminal, where the notification message is used to notify the headset device to detect its real-time status;
- the input device 2 ′ When the input device 2 ′ receives the notification message sent by the terminal, detecting a real-time state of the earphone device by using a sensor disposed on the earphone device;
- the detected real-time status is transmitted to the terminal by the output device 3'.
- the processor 1' calls the program code stored in the memory 5', specifically for performing the following operations:
- the sensor is used to detect whether the user wears the earphone device to obtain a real-time state of the earphone device.
- the output device of the sound signal, the state detecting device of the earphone device, the terminal, and the unit in the earphone device of the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
- ROM Read-Only Memory
- RAM Random Access Memory
- PROM Programmable Read-Only Memory
- EPROM Erasable Programmable Read Only Memory
- OTPROM One-Time Programmable Read-Only Memory
- EEPROM Electronically-Erasable Programmable Read-Only Memory
- CD-ROM Compact Disc Read-Only Memory
- the present invention provides a new audio signal output scheme and a state detection scheme for the earphone device, which can intelligently determine the sound of the terminal by detecting the state of the earphone device. Whether the signal is output by the headphone device or directly output by the terminal has great flexibility and is beneficial to enhance the user experience.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
Abstract
一种声音信号的输出方法及装置、耳机状态的检测方法及装置,其中,声音信号的输出方法包括:终端在与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态(S10);在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号(S12);在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号(S14)。通过对耳机设备的状态进行检测,以智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
Description
本申请要求于2016年10月27日提交中国专利局,申请号为201610952326.3、发明名称为“声音信号的输出方法及装置、耳机状态的检测方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及终端技术领域,具体而言,涉及一种声音信号的输出方法、一种声音信号的输出装置、一种耳机设备的状态检测方法和一种耳机设备的状态检测装置。
目前,耳机设备作为终端设备(如手机、平板电脑等)的一种配件已经得到了广泛普及。耳机设备一般分为有线耳机和无线耳机(如蓝牙耳机),不管是有线耳机还是无线耳机,当耳机与终端设备连接时,终端设备的声音信号默认是从耳机输出。
当终端设备与耳机连接后,若终端设备的声音信号总是从耳机输出,那么在用户的使用过程中可能会存在不便。譬如,用户使用蓝牙耳机与手机连接,若某一时刻用户并未佩戴蓝牙耳机且手机接收到来电,这时即便用户将手机听筒靠近耳朵,也无法听到通话语音,显然这种固定的声音输出方式影响了用户的使用体验。
本发明正是基于上述技术问题至少之一,提出了一种新的声音信号的输出方案及耳机设备的状态检测方案,可以通过对耳机设备的状态进行检测,以智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
有鉴于此,根据本发明的第一方面,提出了一种声音信号的输出方法,包括:终端在与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态;在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号;在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号。
在该技术方案中,当终端与耳机设备建立连接之后,且终端需要输出声音信号时,通过获取耳机设备的实时状态,使得耳机设备在处于使用状态时,如用户已佩戴了耳机设备时,终端的声音信号可以通过耳机设备输出,以保证用户使用耳机设备来收听声音信号;而在耳机设备处于未使用状态时,如用户未佩戴耳机设备时,终端的声音信号可以通过终端直接输出,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题。可见,本发明的技术方案能够智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
其中,耳机设备可以是有线耳机设备,也可以是无线耳机设备(如蓝牙耳机设备等)。
在上述技术方案中,优选地,获取所述耳机设备的实时状态的步骤,具体包括:向所述耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备;接收所述耳机设备发送的检测结果;根据所述检测结果确定所述耳机设备的实时状态。
在该技术方案中,由于耳机设备与用户是直接接触的,因此通过向耳机设备发送通知消息,由耳机设备自身来检测用户对耳机设备的佩戴情况,使得能够准确检测到耳机设备是处于使用状态还是未使用状态,进而能够便于准确确定声音信号通过哪种方式进行输出,保证用户能够收听到声音信号。
在上述技术方案中,优选地,所述根据所述检测结果确定所述耳机设备的实时状态的步骤,具体包括:若所述检测结果表明所述用户佩戴了所述耳机设备,则确定所述耳机设备处于所述使用状态;若所述检测结果表明所述用户未佩戴所述耳机设备,则确定所述耳机设备处于所述未使用状态。
在该技术方案中,当用户佩戴了耳机设备时,说明用户正在使用耳机设备,此时可以确定耳机设备处于使用状态;相反地,当用户未佩戴耳机设备时,说明用户当前并未使用耳机设备,因此可以确定耳机设备处于未使用状态。
在上述任一技术方案中,优选地,所述声音信号的输出方法还包括:检测所述终端是否接收到语音或视频通信请求,和/或检测所述终端是否发起了语音或视频通信请求,和/或检测所述终端是否需要播放音频文件或视频文件;若检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件,则确定所述终端需要输出声音信号。
其中,当检测到终端接收到语音或视频通信请求(包括接到电话、接收到语音聊天或视频聊天等),或检测到终端发起了语音或视频通信请求(包括拨出电话、发起语音聊天或视频聊天等)时,若耳机设备处于未使用状态,则终端直接通过其听筒输出声音信号,当然,终端也可以通过其扬声器输出声音信号。当检测到终端需要播放音频文件或视频文件时,若耳机设备处于未使用状态,则终端直接通过其扬声器输出声音信号。
根据本发明的第二方面,还提出了一种耳机设备的状态检测方法,所述耳机设备上设置有用于检测状态的传感器,所述状态检测方法包括:耳机设备在与终端建立连接之后,检测是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态;在接收到所述终端发送的所述通知消息时,通过所述传感器检测所述耳机设备的实时状态;将检测到的所述实时状态发送至所述终端。
在该技术方案中,通过在耳机设备上设置用于检测状态的传感器,并在接收到终端发送的通知消息时,对耳机设备的实时状态进行检测,使得终端能够根据耳机设备的实时状态来确定是由耳机设备输出声音信号还是由终端直接输出声音信号,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题,有利于提升用户的使用体验。
在上述技术方案中,优选地,所述通过所述传感器检测所述耳机设备的实时状态的步骤,具体包括:通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。其中,耳机设备上设置的传感器可以是重力传感器和/或光学传感器。
根据本发明的第三方面,还提出了一种声音信号的输出装置,包括:获取单元,设置为在终端与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态;控制单元,设置为在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号,并设置为在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号。
在该技术方案中,当终端与耳机设备建立连接之后,且终端需要输出声音信号时,通过获取耳机设备的实时状态,使得耳机设备在处于使用状态时,如用户已佩戴了耳机设备时,终端的声音信号可以通过耳机设备输出,以保证用户使用耳机设备来收听声音信号;而在耳机设备处于未使用状态时,如用户未佩戴耳机设备时,终端的声音信号可以通过终端直接输出,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题。可见,本发明的技术方案能够智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
在上述技术方案中,优选地,所述获取单元包括:发送单元,设置为向所述耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备;接收单元,设置为接收所述耳机设备发送的检测结果;第一确定单元,设置为根据所述检测结果确定所述耳机设备的实时状态。
在该技术方案中,由于耳机设备与用户是直接接触的,因此通过向耳机设备发送通知消息,由耳机设备自身来检测用户对耳机设备的佩戴情况,使得能够准确检测到耳机设备是处于使用状态还是未使用状态,进而能够便于准确确定声音信号通过哪种方式进行输出,保证用户能够收听到声音信号。
在上述技术方案中,优选地,所述第一确定单元具体设置为:在所述检测结果表明所述用户佩戴了所述耳机设备时,确定所述耳机设备处于所述使用状态;在所述检测结果表明所述用户未佩戴所述耳机设备时,确定所述耳机设备处于所述未使用状态。
在该技术方案中,当用户佩戴了耳机设备时,说明用户正在使用耳机设备,此时可以确定耳机设备处于使用状态;相反地,当用户未佩戴耳机设备时,说明用户当前并未使用耳机设备,因此可以确定耳机设备处于未使用状态。
在上述任一技术方案中,优选地,所述声音信号的输出装置还包括:检测单元,设置为检测所述终端是否接收到语音或视频通信请求,和/或检测所述终端是否发起了语音或视频通信请求,和/或检测所述终端是否需要播放音频文件或视频文件;第二确定单元,设置为在所述检测单元检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件时,确定所述终端需要输出声音信号。
其中,当检测到终端接收到语音或视频通信请求,或检测到终端发起了语音或视频通信请求时,若耳机设备处于未使用状态,则终端直接通过其听筒输出声音信号,当然,终端也可以通过其扬声器输出声音信号。当检测到终端需要播放音频文件或视频文件时,若耳机设备处于未使用状态,则终端直接通过其扬声器输出声音信号。
根据本发明的第四方面,还提出了一种耳机设备的状态检测装置,所述耳机设备上设置有用于检测状态的传感器,所述状态检测装置包括:第一检测单元,设置为在耳机设备与终端建立连接之后,检测是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态;第二检测单元,设置为在接收到所述终端发送的所述通知消息时,通过所述传感器检测所述耳机设备的实时状态;发送单元,设置为将所述第二检测单元检测到的所述实时状态发送至所述终端。
在该技术方案中,通过在耳机设备上设置用于检测状态的传感器,并在接收到终端发送的通知消息时,对耳机设备的实时状态进行检测,使得终端能够根据耳机设备的实时状态来确定是由耳机设备输出声音信号还是由终端直接输出声音信号,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题,有利于提升用户的使用体验。
在上述技术方案中,优选地,所述第二检测单元具体设置为:通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。其中,耳机设备上设置的传感器可以是重力传感器和/或光学传感器。
根据本发明的第五方面,还提出了一种终端,包括:如上述第三方面所述的声音信号的输出装置。
根据本发明的第六方面,还提出了一种耳机设备,包括:耳机设备本体、设置在耳机设备本体上的传感器,以及如上述第四方面所述的耳机设备的状态检测装置。其中,耳机设备可以是有线耳机设备,也可以是无线耳机设备(如蓝牙耳机设备等)。
通过以上技术方案,可以实现对耳机设备状态的检测,进而能够智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
图1示出了根据本发明的实施例的声音信号的输出方法的流程示意图;
图2示出了图1中所示的获取耳机设备的实时状态的流程示意图;
图3示出了根据本发明的第一个实施例的声音信号的输出装置的示意框图;
图4示出了根据本发明的第二个实施例的声音信号的输出装置的示意框图;
图5示出了图3和图4中所示的获取单元的内部结构示意图;
图6示出了根据本发明的实施例的耳机设备的状态检测方法的流程示意图;
图7示出了根据本发明的实施例的耳机设备的状态检测装置的示意框图;
图8示出了根据本发明的实施例的手机与蓝牙耳机之间的交互过程示意图;
图9示出了根据本发明的实施例的终端的示意框图;
图10示出了根据本发明的实施例的耳机设备的示意框图。
为了能够更清楚地理解本发明的上述目的、特征和优点,下面结合附图和具体实施方式对本发明进行进一步的详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本发明,但是,本发明还可以采用其他不同于在此描述的其他方式来实施,因此,本发明的保护范围并不受下面公开的具体实施例的限制。
图1示出了根据本发明的实施例的声音信号的输出方法的流程示意图。
如图1所示,根据本发明的实施例的声音信号的输出方法,包括:
步骤S10,终端在与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态。
在步骤S10中,对于如何确定终端是否需要输出声音信号,本发明的实施例提出的方案如下:检测终端是否接收到语音或视频通信请求,和/或检测终端是否发起了语音或视频通信请求,和/或检测终端是否需要播放音频文件或视频文件;若检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件,则确定所述终端需要输出声音信号。
图1所示的声音信号的输出方法还包括:
步骤S12,在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号。
步骤S14,在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号。
在步骤S14中,当耳机设备的实时状态为未使用状态时,若检测到终端接收到语音或视频通信请求,或检测到终端发起了语音或视频通信请求,则终端直接通过其听筒输出声音信号,当然,终端也可以通过其扬声器输出声音信号;若检测到终端需要播放音频文件或视频文件,则终端直接通过其扬声器输出声音信号。
在本发明的一个实施例中,步骤S10中获取耳机设备的实时状态的步骤,具体如图2所示,包括:
步骤S101,向耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备。
步骤S102,接收所述耳机设备发送的检测结果。
步骤S103,根据所述检测结果确定所述耳机设备的实时状态。
在该技术方案中,由于耳机设备与用户是直接接触的,因此通过向耳机设备发送通知消息,由耳机设备自身来检测用户对耳机设备的佩戴情况,使得能够准确检测到耳机设备是处于使用状态还是未使用状态,进而能够便于准确确定声音信号通过哪种方式进行输出,保证用户能够收听到声音信号。
进一步地,步骤S103具体包括:若所述检测结果表明所述用户佩戴了所述耳机设备,则确定所述耳机设备处于所述使用状态;若所述检测结果表明所述用户未佩戴所述耳机设备,则确定所述耳机设备处于所述未使用状态。
在上述的技术方案中,当终端与耳机设备建立连接之后,且终端需要输出声音信号时,通过获取耳机设备的实时状态,使得耳机设备在处于使用状态时,如用户已佩戴了耳机设备时,终端的声音信号可以通过耳机设备输出,以保证用户使用耳机设备来收听声音信号;而在耳机设备处于未使用状态时,如用户未佩戴耳机设备时,终端的声音信号可以通过终端直接输出,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题。可见,本发明的技术方案能够智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
图3示出了根据本发明的第一个实施例的声音信号的输出装置的示意框图。
如图3所示,根据本发明的第一个实施例的声音信号的输出装置300,包括:获取单元302和控制单元304。
其中,获取单元302设置为在终端与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态;控制单元304设置为在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号,并设置为在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号。
在该技术方案中,当终端与耳机设备建立连接之后,且终端需要输出声音信号时,通过获取耳机设备的实时状态,使得耳机设备在处于使用状态时,如用户已佩戴了耳机设备时,终端的声音信号可以通过耳机设备输出,以保证用户使用耳机设备来收听声音信号;而在耳机设备处于未使用状态时,如用户未佩戴耳机设备时,终端的声音信号可以通过终端直接输出,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题。可见,本发明的技术方案能够智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
进一步地,如图4所示,根据本发明的第二个实施例的声音信号的输出装置400,在具有图3中所示的获取单元302和控制单元304的基础上,还包括:检测单元402和第二确定单元404。
其中,检测单元402设置为检测所述终端是否接收到语音或视频通信请求,和/或检测所述终端是否发起了语音或视频通信请求,和/或检测所述终端是否需要播放音频文件或视频文件;第二确定单元404设置为在所述检测单元402检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件时,确定所述终端需要输出声音信号。
其中,当检测到终端接收到语音或视频通信请求,或检测到终端发起了语音或视频通信请求时,若耳机设备处于未使用状态,则终端直接通过其听筒输出声音信号,当然,终端也可以通过其扬声器输出声音信号。当检测到终端需要播放音频文件或视频文件时,若耳机设备处于未使用状态,则终端直接通过其扬声器输出声音信号。
进一步地,在本发明的一个实施例中,如图5所示,上述的获取单元302包括:发送单元3022、接收单元3024和第一确定单元3026。
其中,发送单元3022设置为向所述耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备;接收单元3024设置为接收所述耳机设备发送的检测结果;第一确定单元3026设置为根据所述检测结果确定所述耳机设备的实时状态。
在该技术方案中,由于耳机设备与用户是直接接触的,因此通过向耳机设备发送通知消息,由耳机设备自身来检测用户对耳机设备的佩戴情况,使得能够准确检测到耳机设备是处于使用状态还是未使用状态,进而能够便于准确确定声音信号通过哪种方式进行输出,保证用户能够收听到声音信号。
在上述技术方案中,优选地,所述第一确定单元3026具体设置为:在所述检测结果表明所述用户佩戴了所述耳机设备时,确定所述耳机设备处于所述使用状态;在所述检测结果表明所述用户未佩戴所述耳机设备时,确定所述耳机设备处于所述未使用状态。
在该技术方案中,当用户佩戴了耳机设备时,说明用户正在使用耳机设备,此时可以确定耳机设备处于使用状态;相反地,当用户未佩戴耳机设备时,说明用户当前并未使用耳机设备,因此可以确定耳机设备处于未使用状态。
本发明还提出了一种终端,包括:如图3中所示的声音信号的输出装置300或如图4中所示的声音信号的输出装置400。
图6示出了根据本发明的实施例的耳机设备的状态检测方法的流程示意图,其中,耳机设备上设置有用于检测状态的传感器。
如图6所示,根据本发明的实施例的耳机设备的状态检测方法,包括:
步骤S60,耳机设备在与终端建立连接之后,检测是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态。
步骤S62,在接收到所述终端发送的所述通知消息时,通过所述传感器检测所述耳机设备的实时状态。
步骤S64,将检测到的所述实时状态发送至所述终端。
在该技术方案中,通过在耳机设备上设置用于检测状态的传感器,并在接收到终端发送的通知消息时,对耳机设备的实时状态进行检测,使得终端能够根据耳机设备的实时状态来确定是由耳机设备输出声音信号还是由终端直接输出声音信号,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题,有利于提升用户的使用体验。
进一步地,步骤S62具体包括:通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。其中,耳机设备上设置的传感器可以是重力传感器和/或光学传感器。
图7示出了根据本发明的实施例的耳机设备的状态检测装置的示意框图,其中,耳机设备上设置有用于检测状态的传感器。
如图7所示,根据本发明的实施例的耳机设备的状态检测装置700,包括:第一检测单元702、第二检测单元704和发送单元706。
其中,第一检测单元702设置为在耳机设备与终端建立连接之后,检测是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态;第二检测单元704设置为在接收到所述终端发送的所述通知消息时,通过所述传感器检测所述耳机设备的实时状态;发送单元706设置为将第二检测单元704检测到的所述实时状态发送至所述终端。
在该技术方案中,通过在耳机设备上设置用于检测状态的传感器,并在接收到终端发送的通知消息时,对耳机设备的实时状态进行检测,使得终端能够根据耳机设备的实时状态来确定是由耳机设备输出声音信号还是由终端直接输出声音信号,确保用户即便未佩戴耳机设备,也能够收听到声音信号,避免了在耳机设备与终端连接后,用户没有佩戴耳机设备而导致无法收听到声音信号的问题,有利于提升用户的使用体验。
进一步地,第二检测单元704具体设置为:通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。其中,耳机设备上设置的传感器可以是重力传感器和/或光学传感器。
本发明还提出了一种耳机设备,该耳机设备包括:耳机设备本体、设置在耳机设备本体上的传感器,以及如图7中所示的耳机设备的状态检测装置700。其中,耳机设备可以是有线耳机设备,也可以是无线耳机设备(如蓝牙耳机设备等)。
以上从终端和耳机设备两方面分别阐述了本发明的技术方案,以下结合图8,以终端为手机、耳机设备为蓝牙耳机为例,详细说明二者之间的交互过程。
如图8所示,根据本发明的实施例的手机与蓝牙耳机之间的交互过程,包括:
步骤801,手机与蓝牙耳机建立连接。具体地,手机通过蓝牙与蓝牙耳机建立无线连接。
步骤802,手机在需要输出声音信号时,向蓝牙耳机发送通知消息。比如,手机在发出语音或视频通信请求(包括拨出电话、发起语音聊天或视频聊天等),或者手机在接收到语音或视频通信请求(包括接到电话呼叫、收到语音聊天或视频聊天等),或者手机在需要播放音频文件或视频文件时,向蓝牙耳机发送通知消息。
步骤803,蓝牙耳机通过传感器识别蓝牙耳机是否佩戴在用户耳朵上。具体地,蓝牙耳机上可以设置有光学传感器或重力传感器等,通过设置的这些传感器来检测蓝牙耳机是否佩戴在用户耳朵上。
步骤804,蓝牙耳机将检测结果通知给手机。即蓝牙耳机将用户是否佩戴了蓝牙耳机的检测结果通知给手机。
步骤805,手机根据蓝牙耳机发送的检测结果确定输出声音信号的设备。具体地,当蓝牙耳机处于使用状态,即用户佩戴了蓝牙耳机时,可以通过蓝牙耳机输出声音信号;当蓝牙耳机处于未使用状态,即用户未佩戴蓝牙耳机时,手机通过其听筒或者扬声器输出声音信号。
其中,对于图8所示的实施例,其中的手机也可以由其它设备代替,如可以由平板电脑、MP3等代替;其中的蓝牙耳机也可以由有线耳机或其它类型的无线耳机代替。
图9示出了根据本发明的实施例的终端的示意框图。
如图9所示,根据本发明的实施例的终端,包括:处理器1、输入装置2、输出装置3和存储器5。在本发明的一些实施例中,处理器1、输入装置2、输出装置3和存储器5可以通过总线4或其他方式连接,图9中以通过总线4连接为例。
其中,存储器5用于存储一组程序代码,处理器1调用存储器5中存储的程序代码,用于执行以下操作:
在终端与耳机设备建立连接之后,若所述终端需要输出声音信号,则通过输入装置2获取所述耳机设备的实时状态;
在所述耳机设备的实时状态为使用状态时,由所述输出装置3通过所述耳机设备输出所述声音信号;
在所述耳机设备的实时状态为未使用状态时,由所述输出装置3通过所述终端直接输出所述声音信号。
作为一种可选的实施方式,处理器1调用存储器5中存储的程序代码,还用于执行以下操作:
通过输出装置3向所述耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备;
通过输入装置2接收所述耳机设备发送的检测结果;
根据所述检测结果确定所述耳机设备的实时状态。
作为一种可选的实施方式,处理器1调用存储器5中存储的程序代码,还用于执行以下操作:
若所述检测结果表明所述用户佩戴了所述耳机设备,则确定所述耳机设备处于所述使用状态;
若所述检测结果表明所述用户未佩戴所述耳机设备,则确定所述耳机设备处于所述未使用状态。
作为一种可选的实施方式,处理器1调用存储器5中存储的程序代码,还用于执行以下操作:
检测所述终端是否接收到语音或视频通信请求,和/或检测所述终端是否发起了语音或视频通信请求,和/或检测所述终端是否需要播放音频文件或视频文件;
若检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件,则确定所述终端需要输出声音信号。
图10示出了根据本发明的实施例的耳机设备的示意框图。
如图10所示,根据本发明的实施例的耳机设备,包括:处理器1'、输入装置2'、输出装置3'和存储器5'。在本发明的一些实施例中,处理器1'、输入装置2'、输出装置3'和存储器5'可以通过总线4'或其他方式连接,图10中以通过总线4'连接为例。
其中,存储器5'用于存储一组程序代码,处理器1'调用存储器5'中存储的程序代码,用于执行以下操作:
在耳机设备与终端建立连接之后,检测输入装置2'是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态;
在输入装置2'接收到所述终端发送的所述通知消息时,通过设置在耳机设备上的传感器检测所述耳机设备的实时状态;
通过输出装置3'将检测到的所述实时状态发送至所述终端。
作为一种可选的实施方式,处理器1'调用存储器5'中存储的程序代码,具体用于执行以下操作:
通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。
本发明实施例的方法中的步骤可以根据实际需要进行顺序调整、合并和删减。
本发明实施例的声音信号的输出装置、耳机设备的状态检测装置、终端和耳机设备中的单元可以根据实际需要进行合并、划分和删减。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。
以上结合附图详细说明了本发明的技术方案,本发明提出了一种新的声音信号的输出方案及耳机设备的状态检测方案,可以通过对耳机设备的状态进行检测,以智能判断终端的声音信号是由耳机设备输出还是由终端直接输出,具有极大的灵活性,有利于提升用户的使用体验。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
Claims (12)
- 一种声音信号的输出方法,其特征在于,包括:终端在与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态;在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号;在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号。
- 根据权利要求1所述的声音信号的输出方法,其特征在于,所述获取所述耳机设备的实时状态的步骤,具体包括:向所述耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备;接收所述耳机设备发送的检测结果;根据所述检测结果确定所述耳机设备的实时状态。
- 根据权利要求2所述的声音信号的输出方法,其特征在于,所述根据所述检测结果确定所述耳机设备的实时状态的步骤,具体包括:若所述检测结果表明所述用户佩戴了所述耳机设备,则确定所述耳机设备处于所述使用状态;若所述检测结果表明所述用户未佩戴所述耳机设备,则确定所述耳机设备处于所述未使用状态。
- 根据权利要求1至3中任一项所述的声音信号的输出方法,其特征在于,还包括:检测所述终端是否接收到语音或视频通信请求,和/或检测所述终端是否发起了语音或视频通信请求,和/或检测所述终端是否需要播放音频文件或视频文件;若检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件,则确定所述终端需要输出声音信号。
- 一种耳机设备的状态检测方法,其特征在于,所述耳机设备上设置有用于检测状态的传感器,所述状态检测方法包括:耳机设备在与终端建立连接之后,检测是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态;在接收到所述终端发送的所述通知消息时,通过所述传感器检测所述耳机设备的实时状态;将检测到的所述实时状态发送至所述终端。
- 根据权利要求5所述的耳机设备的状态检测方法,其特征在于,所述通过所述传感器检测所述耳机设备的实时状态的步骤,具体包括:通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。
- 一种声音信号的输出装置,其特征在于,包括:获取单元,设置为在终端与耳机设备建立连接之后,若所述终端需要输出声音信号,则获取所述耳机设备的实时状态;控制单元,设置为在所述耳机设备的实时状态为使用状态时,通过所述耳机设备输出所述声音信号,并设置为在所述耳机设备的实时状态为未使用状态时,通过所述终端直接输出所述声音信号。
- 根据权利要求7所述的声音信号的输出装置,其特征在于,所述获取单元包括:发送单元,设置为向所述耳机设备发送通知消息,所述通知消息用于通知所述耳机设备检测用户是否佩戴所述耳机设备;接收单元,设置为接收所述耳机设备发送的检测结果;第一确定单元,设置为根据所述检测结果确定所述耳机设备的实时状态。
- 根据权利要求8所述的声音信号的输出装置,其特征在于,所述第一确定单元具体设置为:在所述检测结果表明所述用户佩戴了所述耳机设备时,确定所述耳机设备处于所述使用状态;在所述检测结果表明所述用户未佩戴所述耳机设备时,确定所述耳机设备处于所述未使用状态。
- 根据权利要求7至9中任一项所述的声音信号的输出装置,其特征在于,还包括:检测单元,设置为检测所述终端是否接收到语音或视频通信请求,和/或检测所述终端是否发起了语音或视频通信请求,和/或检测所述终端是否需要播放音频文件或视频文件;第二确定单元,设置为在所述检测单元检测到所述终端接收到语音或视频通信请求,或检测到所述终端发起了语音或视频通信请求,或检测到所述终端需要播放音频文件或视频文件时,确定所述终端需要输出声音信号。
- 一种耳机设备的状态检测装置,其特征在于,所述耳机设备上设置有用于检测状态的传感器,所述状态检测装置包括:第一检测单元,设置为在耳机设备与终端建立连接之后,检测是否接收到所述终端发送的通知消息,所述通知消息用于通知所述耳机设备检测自身的实时状态;第二检测单元,设置为在接收到所述终端发送的所述通知消息时,通过所述传感器检测所述耳机设备的实时状态;发送单元,设置为将所述第二检测单元检测到的所述实时状态发送至所述终端。
- 根据权利要求11所述的耳机设备的状态检测装置,其特征在于,所述第二检测单元具体设置为:通过所述传感器检测用户是否佩戴了所述耳机设备,以得到所述耳机设备的实时状态。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610952326.3A CN106453791A (zh) | 2016-10-27 | 2016-10-27 | 声音信号的输出方法及装置、耳机状态的检测方法及装置 |
CN201610952326.3 | 2016-10-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018076434A1 true WO2018076434A1 (zh) | 2018-05-03 |
Family
ID=58179339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/107777 WO2018076434A1 (zh) | 2016-10-27 | 2016-11-29 | 声音信号的输出方法及装置、耳机状态的检测方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106453791A (zh) |
WO (1) | WO2018076434A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110175014A (zh) * | 2019-05-28 | 2019-08-27 | 歌尔科技有限公司 | 一种无线耳机音量控制方法、系统及无线耳机和存储介质 |
CN113840200A (zh) * | 2020-06-23 | 2021-12-24 | 深圳市万普拉斯科技有限公司 | 播放设备确定方法、装置、耳机收纳系统及电子设备 |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107566604B (zh) * | 2017-07-12 | 2020-04-07 | 广东小天才科技有限公司 | 一种消息提醒的控制方法及用户终端 |
CN108924330A (zh) * | 2018-07-25 | 2018-11-30 | 联想(北京)有限公司 | 信息处理方法、装置及电子设备 |
CN109195053A (zh) * | 2018-09-14 | 2019-01-11 | 歌尔科技有限公司 | 一种无线耳机连接的方法、装置及无线耳机 |
CN112771889A (zh) * | 2018-10-27 | 2021-05-07 | 深圳市欢太科技有限公司 | 音频通道更换方法及相关设备 |
CN114077414A (zh) * | 2020-08-14 | 2022-02-22 | Oppo广东移动通信有限公司 | 音频播放控制方法、装置、电子设备及存储介质 |
CN113472379B (zh) * | 2021-06-23 | 2023-03-14 | 芯海科技(深圳)股份有限公司 | 一种对讲通信方法、耳机盒、耳机及存储介质 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100150368A1 (en) * | 2008-12-12 | 2010-06-17 | Cisco Technology, Inc. | Apparatus, System, and Method for Audio Communications |
CN101951534A (zh) * | 2010-07-09 | 2011-01-19 | 深圳桑菲消费通信有限公司 | 一种在耳机上增设传感器以调节移动终端状态的方法 |
CN104427101A (zh) * | 2013-08-27 | 2015-03-18 | 联想(北京)有限公司 | 电子设备、可佩戴设备、状态切换及标识信息发送方法 |
CN105554217A (zh) * | 2015-12-24 | 2016-05-04 | 联想(北京)有限公司 | 一种控制方法以及电子设备 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024193A (zh) * | 2012-12-25 | 2013-04-03 | 北京百度网讯科技有限公司 | 用于移动终端的播放控制方法、装置和移动终端 |
-
2016
- 2016-10-27 CN CN201610952326.3A patent/CN106453791A/zh active Pending
- 2016-11-29 WO PCT/CN2016/107777 patent/WO2018076434A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100150368A1 (en) * | 2008-12-12 | 2010-06-17 | Cisco Technology, Inc. | Apparatus, System, and Method for Audio Communications |
CN101951534A (zh) * | 2010-07-09 | 2011-01-19 | 深圳桑菲消费通信有限公司 | 一种在耳机上增设传感器以调节移动终端状态的方法 |
CN104427101A (zh) * | 2013-08-27 | 2015-03-18 | 联想(北京)有限公司 | 电子设备、可佩戴设备、状态切换及标识信息发送方法 |
CN105554217A (zh) * | 2015-12-24 | 2016-05-04 | 联想(北京)有限公司 | 一种控制方法以及电子设备 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110175014A (zh) * | 2019-05-28 | 2019-08-27 | 歌尔科技有限公司 | 一种无线耳机音量控制方法、系统及无线耳机和存储介质 |
CN110175014B (zh) * | 2019-05-28 | 2023-03-21 | 歌尔科技有限公司 | 一种无线耳机音量控制方法、系统及无线耳机和存储介质 |
CN113840200A (zh) * | 2020-06-23 | 2021-12-24 | 深圳市万普拉斯科技有限公司 | 播放设备确定方法、装置、耳机收纳系统及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN106453791A (zh) | 2017-02-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018076434A1 (zh) | 声音信号的输出方法及装置、耳机状态的检测方法及装置 | |
WO2014021670A1 (en) | Mobile apparatus and control method thereof | |
WO2020155088A1 (zh) | 耳机降噪方法、智能蓝牙耳机及计算机可读存储介质 | |
WO2020155090A1 (zh) | 音频的蓝牙传输方法、蓝牙收发器及计算机可读存储介质 | |
WO2014048175A1 (zh) | 蓝牙耳机助听及抗噪方法和装置 | |
WO2020155089A1 (zh) | 蓝牙耳机的控制方法、蓝牙耳机及计算机可读存储介质 | |
WO2016029659A1 (zh) | 同步智能设备音乐播放器功能的方法、系统及蓝牙耳机 | |
WO2011150814A1 (zh) | 信息处理方法及用户设备 | |
WO2017166764A1 (zh) | 基于蓝牙信标的到站提醒方法及到站提醒装置 | |
WO2017219665A1 (zh) | 移动终端、及其未接来电的处理方法及系统 | |
WO2018018691A1 (zh) | 一种eSIM切换方法及终端设备 | |
WO2017012376A1 (zh) | 一种移动终端麦克风功能切换的方法及系统 | |
WO2018171534A1 (zh) | 基于移动终端的双摄像头供电控制方法、系统及移动终端 | |
WO2016095364A1 (zh) | 基于蓝牙协议实现通话音频切换的方法及移动终端 | |
WO2016123898A1 (zh) | 一种短信管理方法及其移动终端 | |
WO2017092387A1 (zh) | 一种可穿戴设备的通信实现方法及系统 | |
WO2020032363A1 (ko) | 외부 전자 장치와의 거리에 기반하여 스피커의 출력 세기를 조정하기 위한 방법 및 전자 장치 | |
WO2018058835A1 (zh) | 一种通话模式监控方法、系统及通信终端 | |
WO2016119106A1 (zh) | 一种耳机降噪方法及装置 | |
WO2017010609A1 (ko) | 헤드셋의 하울링 및 에코 제거 방법 및 컴퓨터 프로그램 | |
WO2010087632A2 (en) | Portable terminal and sound detector, which both communicate using body area network, and data controlling method therefor | |
WO2016148474A1 (ko) | 모바일 디바이스 및 알림 출력 방법 | |
WO2017096955A1 (zh) | 来电提醒设置方法、装置及相关设备 | |
WO2016163610A1 (ko) | 전자장치 | |
WO2017215237A1 (zh) | 用于耳机耳塞的3d音效处理电路及其处理方法 |
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: 16920379 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: 16920379 Country of ref document: EP Kind code of ref document: A1 |