WO2021000817A1 - Ambient sound processing method and related device - Google Patents

Ambient sound processing method and related device Download PDF

Info

Publication number
WO2021000817A1
WO2021000817A1 PCT/CN2020/098733 CN2020098733W WO2021000817A1 WO 2021000817 A1 WO2021000817 A1 WO 2021000817A1 CN 2020098733 W CN2020098733 W CN 2020098733W WO 2021000817 A1 WO2021000817 A1 WO 2021000817A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
head
electronic device
scene
mounted device
Prior art date
Application number
PCT/CN2020/098733
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 WO2021000817A1 publication Critical patent/WO2021000817A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
    • 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
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1091Details not provided for in groups H04R1/1008 - H04R1/1083
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Definitions

  • This application relates to the field of terminals and communication technologies, and in particular to environmental sound processing methods and related devices.
  • Bluetooth headsets and noise-cancelling headsets are becoming more and more popular due to their good sound effects and portability.
  • users cannot hear outside sounds clearly when wearing headphones, especially noise-canceling headphones that cancel out all the sounds in the external environment, even the car horns and alarm sounds used to remind users. This will bring users To a certain degree of danger.
  • the user After the earphone shields the ambient sound, the user cannot perceive the external environment, which is not what the user wants.
  • a user wears a headset When a user wears a headset, he needs to perceive the external environment and make a corresponding response.
  • users have different perception requirements for the external environment. For example, when a user wears a headset while walking on a road, he needs to know whether there is a vehicle on the road and the direction of the vehicle to avoid possible safety hazards. For another example, when the user wears headphones in the living room, he needs to know whether there are visitors. How to meet the user's perception needs of the external environment in different scenarios is a technical problem that needs to be solved currently.
  • the present application provides an environmental sound processing method and related devices, which can meet the user's perception needs of the external environment in different scenarios, so that the user can respond accordingly.
  • the present application provides an environmental sound processing method, which may include: a head-mounted device determining a scene where a user is currently located; and the head-mounted device collecting an external environment according to the scene where the user is currently located When the collected sound signal matches the preset environmental sound corresponding to the current scene, the head-mounted device outputs the sound signal of the external environment or outputs prompt information.
  • the technical solution described in the first aspect can enable the user to output the sound signal of the external environment or output prompt information to remind the user when the user has the need to perceive the external environment, so that the user can pay attention to the external environment and make a corresponding response. Reaction.
  • the head-mounted device determining the user's current scene includes one or more of the following: the head-mounted device determines the user according to the user's current location information The current scene; or, the head-mounted device determines the user's current scene based on the user's behavioral sign information; or, the head-mounted device determines the user's current scene based on the recognized voice content .
  • the head-mounted device can automatically determine the user's current scene based on the acquired data, avoiding manual settings, and improving user experience.
  • the user's location information can be determined by at least one of the global navigation satellite system, base station positioning technology, wireless indoor positioning technology, or data collected by sensors;
  • the user's behavioral sign information can be determined by acceleration sensors, temperature sensors, and heart rate sensors. Or it can be determined by the data sensed by at least one of the pulse sensors;
  • the voice content can be collected by a sound pickup device such as a microphone.
  • the head-mounted device determines the scene in which the user is located according to the received user operation. Specifically, the "settings” application starts the “manual mode” according to the received user's operation, and then monitors the user's operation to set the corresponding scene.
  • the preset environmental sound is obtained from the corresponding relationship between the scene and the preset environmental sound.
  • the corresponding relationship between the scene and the preset environmental sound is preset, or is obtained through a machine learning algorithm.
  • the corresponding preset environmental sound in the scene can be obtained according to the scene, that is, the preset environmental sound can be changed according to the change of the scene, which more satisfies the user's needs for perception of the external environment in different scenes.
  • the preset environmental sound is set by the user. Specifically, the "settings” application starts the “manual mode” according to the received user's operation, and then monitors the user's operation to set the corresponding scene and the preset environmental sound corresponding to each scene.
  • the collected sound signal when the collected sound signal includes the preset environmental sound, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene; Alternatively, when the collected sound signal includes the preset environmental sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene. In this way, the user can be reminded only when the user needs to perceive the external environment, which avoids interference to the user due to excessive reminders.
  • the threshold includes at least one of a loudness threshold, a duration threshold, or a repetition threshold of a preset environment.
  • the prompt information includes one or more of the following: voice, vibration feedback, or light feedback.
  • the voice includes any one of the following: voice content matching the preset environmental sound, or preset specific voice prompt content.
  • the head-mounted device pauses playing the current audio data of the head-mounted device when outputting the prompt voice, and when the prompt voice is stopped, the head-mounted device It can detect the duration of stopping the prompt voice, and when the duration of stopping the prompt voice reaches the preset duration threshold, the current audio data will continue to be played. In this way, the current audio data playback is resumed after the preset time is passed after the prompt voice playback is completed, which can leave time for the user to respond to a specific sound signal.
  • the method further stops sending the prompt information by any one of the following methods: when the duration of the prompt information reaches a preset time When time, stop sending the prompt message; or, when the detected sound signal of the external environment does not include the preset environmental sound, stop sending the prompt message; or, in response to the user's operation, stop sending the prompt message Prompt information. In this way, interference caused by excessive reminding to the user can be avoided.
  • the present application also provides a head-mounted device, including: one or more processors, a memory, and a communication module; the memory is coupled with the one or more processors, and the memory is used to store the computer Program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the head-mounted device to execute:
  • the head-mounted device When the collected sound signal matches the preset environmental sound corresponding to the current scene, the head-mounted device outputs the sound signal of the external environment or outputs prompt information.
  • the technical solution described in the second aspect can enable the user to output the sound signal of the external environment or output the prompt information to remind the user when the user has the need to perceive the external environment, so that the user can pay attention to the external environment and make a corresponding response. Reaction.
  • determining the current scene of the user includes one or more of the following: determining the current scene of the user according to the user's current location information; or, according to the user's behavior
  • the physical sign information determines the current scene of the user; or, according to the recognized voice content, the current scene of the user is determined.
  • the head-mounted device uses at least one of global navigation satellite systems, base station positioning technology, wireless indoor positioning technology, or data collected by sensors to determine the user's location information; the head-mounted device uses acceleration sensors, temperature sensors, and heart rate The data sensed by at least one of the sensor or the pulse sensor is used to determine the user's behavioral sign information; the head-mounted device collects voice content through a pickup device such as a microphone.
  • a pickup device such as a microphone.
  • the preset environmental sound is obtained from the corresponding relationship between the scene and the preset environmental sound.
  • the corresponding relationship between the scene and the preset environmental sound is preset, or is obtained through a machine learning algorithm.
  • the corresponding preset environmental sound in the scene can be obtained according to the scene, that is, the preset environmental sound can be changed according to the change of the scene, which more satisfies the user's needs for perception of the external environment in different scenes.
  • the preset environmental sound is set by the user. Specifically, the "settings” application starts the “manual mode” according to the received user's operation, and then monitors the user's operation to set the corresponding scene and the preset environmental sound corresponding to each scene.
  • the collected sound signal when the collected sound signal includes the preset environmental sound, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene; Alternatively, when the collected sound signal includes the preset environmental sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene. In this way, the user can be reminded only when the user needs to perceive the external environment, which avoids interference to the user due to excessive reminders.
  • the threshold includes at least one of a loudness threshold, a duration threshold, or a repetition threshold of a preset environment.
  • the prompt information includes one or more of the following: voice, vibration feedback, or light feedback.
  • the voice includes any one of the following: voice content matching the preset environmental sound, or preset specific voice prompt content.
  • the one or more processors are further configured to invoke the computer instruction to cause the head-mounted device to execute: pause playback
  • the head-mounted device can detect the duration of stopping the prompt voice, and continue to play the current audio when the duration of stopping the prompt voice reaches the preset duration threshold data. In this way, the current audio data playback is resumed after the preset time is passed after the prompt voice playback is completed, which can leave time for the user to respond to a specific sound signal.
  • the one or more processors are further configured to call the computer instructions to make the head-mounted device execute: When the duration of the prompt information reaches a preset time, terminate the prompt information; or, when the detected sound signal of the external environment does not include the preset environmental sound, terminate the prompt information; or, In response to the user's operation, the displayed prompt message is terminated. In this way, interference caused by excessive reminding to the user can be avoided.
  • the present application also provides an audio playback system.
  • the audio playback system may include an electronic device and a head-mounted device.
  • the head-mounted device may be any possible implementation manner as in the second aspect.
  • the present application provides a computer program product containing instructions.
  • the computer program product When the computer program product is run on an electronic device, the electronic device is caused to perform the operations described in the first aspect and any possible implementation manner in the first aspect. method.
  • the present application provides a computer-readable storage medium, including instructions.
  • the instructions When the instructions are executed on an electronic device, the electronic device is caused to perform the operations described in the first aspect and any possible implementation manner in the first aspect. method.
  • Fig. 1 is a schematic structural diagram of an audio playback system provided by an embodiment of the application.
  • FIG. 2 is a schematic diagram of the structure of an electronic device provided by an embodiment of the application.
  • FIG. 3 is a schematic diagram of the structure of a head-mounted device provided by an embodiment of the application.
  • 4A-4B are schematic diagrams of enabling the "reminder function" provided by an embodiment of this application.
  • FIG. 5 is a schematic flowchart of an environmental sound processing method provided by an embodiment of the application.
  • 6A-6D are schematic diagrams of an interface for manually setting environmental sound content and thresholds according to an embodiment of the application.
  • the electronic device or head-mounted device can determine whether the user has a need to perceive the external environment in the current scene based on the environmental sound. If so, the electronic device or head The wearable device can output prompt information or sound signals of the external environment, so that the user can perceive the external environment and make corresponding responses.
  • the electronic device or head-mounted device can automatically recognize the scene the user is in, and perform actions on the user according to the scene the user is in. Prompts, in turn, can meet the user's perception needs of the external environment in different scenarios.
  • the “reminder function” may be a service or function provided by the electronic device, and may be installed in the electronic device in the form of an APP.
  • the “reminder function” can support the electronic device to prompt the user when the user uses the head-mounted device.
  • the electronic device prompting the user when the user uses the head-mounted device means that when the user uses the head-mounted device, the electronic device or the head-mounted device can determine the current scene according to the preset environmental sound Whether the user needs to perceive the external environment, when it is determined that the user needs to perceive the external environment, the electronic device or head-mounted device sends out a prompt message or a sound signal of the external environment to remind the user to pay attention to the external environment in the current scene.
  • the "reminder function” supports the reminder function provided by the electronic device when the user uses the head-mounted device, refer to the related description of the subsequent embodiments, and will not be repeated here.
  • the electronic device or the head-mounted device can determine whether the user needs to perceive the external environment in the current scene according to the environmental sound. If so, the electronic device or the head-mounted device can output prompt information or sound signals of the external environment, so that the user can perceive the external environment, so as to make a corresponding response, thereby improving the safety of the user using the head-mounted device.
  • the electronic device and the head-mounted device will not determine whether the user has a need to perceive the external environment, and will not send out prompt messages.
  • the user can choose whether to activate the reminder function according to his own needs. For example, when a user is resting at home and only wants to listen to beautiful music through a head-mounted device and does not want to be disturbed by the external environment, he can choose to turn off the "reminder function". When the user is walking on the road and using the head-mounted device to make a phone call, at this time, he wants to know the whistle of the vehicles on the road to improve the safety of walking. At this time, he can choose to turn on the "reminder function". In this way, the needs of users can be better met and user experience can be improved.
  • reminder function is only a word used in this embodiment, and its representative meaning has been recorded in this embodiment, and its name does not constitute any limitation on this embodiment.
  • FIG. 1 shows a schematic structural diagram of an audio playback system 1000 provided by an embodiment of the present application.
  • the audio playback system 1000 may include: an electronic device 100 and a head-mounted device 300.
  • the electronic device 100 is used to send audio signals to the head-mounted device 300 for playback.
  • the electronic device 100 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), and a wearable device.
  • portable electronic devices include but are not limited to portable electronic devices equipped with iOS, Android, Microsoft or other operating systems.
  • the aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (such as a touch panel).
  • the electronic device 100 may not be a portable electronic device, but a desktop computer or a vehicle-mounted device with a touch-sensitive surface (such as a touch panel).
  • the electronic device 100 may obtain the current scene, determine the preset environmental sound in the current scene, collect the sound signal of the external environment, match the preset environmental sound, and prompt the user.
  • the electronic device may determine the current scene of the user according to at least one of the user's current location information, the user's behavior sign information, and the voice content of the external environment.
  • the head-mounted device 300 is used to convert the audio signal provided by the electronic device 100 into a sound signal for the user to listen to.
  • the headset 300 is a headset.
  • the earphone 300 may also be an in-ear earphone, a headphone or an earbud earphone.
  • the head-mounted device 300 may be a wired head-mounted device or a wireless head-mounted device.
  • the head-mounted device 300 when the head-mounted device 300 is a wired head-mounted device, it can communicate with the electronic device 100 in a plug-in manner.
  • the head-mounted device 300 is a wireless head-mounted device, it may establish a communication connection with the electronic device 100 through a cellular network, a WiFi network, a Bluetooth network, or other wireless communication methods.
  • the head-mounted device 300 when the head-mounted device 300 is in communication with the electronic device 100, the head-mounted device 300 converts the electrical signal emitted by the media player in the electronic device 100 into a sound signal and plays it through the speaker close to the ear, thereby enabling Users can listen to various audio signals without affecting others.
  • the media player refers to an application program used in the electronic device 100 to play multimedia files, for example, "Kugou Music", “Youku Video", and "QQ Music”.
  • the head-mounted device 300 may also obtain the current scene, determine the preset environmental sound in the current scene, collect the sound signal of the external environment, match the preset environmental sound, and prompt the user.
  • the head-mounted device 300 may also determine the current scene of the user according to at least one of the user's current location information, the user's behavior sign information, and the voice content of the external environment.
  • FIG. 2 shows a schematic diagram of the structure of the electronic device 100.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
  • SIM Subscriber identification module
  • the sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • GPU graphics processing unit
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the electronic device 100 may also include one or more processors 110.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 100 is improved.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple sets of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to realize the touch function of the electronic device 100.
  • the I2S interface can be used for audio communication.
  • the processor 110 may include multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
  • the MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc.
  • the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
  • the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
  • GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
  • the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
  • the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1.
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low-frequency baseband signal is processed by the baseband processor and then passed to the application processor.
  • the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication technology
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2.
  • the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite-based augmentation systems
  • the electronic device 100 can implement a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs, which execute instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
  • the electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats.
  • the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, MPEG-4, etc.
  • MPEG moving picture experts group
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • the NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, photos, videos and other data in an external memory card.
  • the internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions.
  • the processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the environmental sound processing methods provided in some embodiments of the present application, as well as various functional applications and data processing.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.) and so on.
  • the data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • the internal memory 121 may be used to store multiple preset scenes, the preset environmental sounds in each scene, and the association relationship between each scene and the corresponding preset environmental sounds in the scene.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
  • the speaker 170A also called a “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions. In some embodiments of the present application, the electronic device 100 may collect sound signals of the external environment through the microphone 170C.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA, CTIA
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
  • features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc. In the embodiment of the present application, the electronic device 100 may determine the user's motion behavior through the acceleration sensor 180E.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180K can also be called a touch panel or a touch-sensitive surface.
  • the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
  • the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
  • the application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
  • the button 190 includes a power button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the electronic device 100 can receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
  • touch operations applied to different applications can correspond to different vibration feedback effects.
  • Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
  • the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
  • the same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 may also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • the electronic device 100 exemplarily shown in FIG. 2 may display various user interfaces described in the following embodiments through a display screen 194.
  • the electronic device 100 can detect touch operations in various user interfaces through the touch sensor 180K, such as a click operation in each user interface (such as a touch operation on an icon, a double-click operation), and for example, up or up in each user interface. Swipe down, or perform circle-drawing gestures, etc.
  • the electronic device 100 may detect the motion gesture performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like.
  • the electronic device 100 can detect non-touch gesture operations through the camera 193 (such as a 3D camera, a depth camera).
  • FIG. 3 shows a schematic diagram of the structure of the earphone 300.
  • the headset 300 may include: a processor 310, a memory 320, a wireless communication processing module 330, a power management module 340, a wired communication module 350, a speaker 360, a microphone 370, a button control module 380, and a sensor module 390.
  • the processor 310 may be used to read and execute computer readable instructions.
  • the processor 310 may mainly include a controller, an arithmetic unit, and a register.
  • the controller is mainly responsible for instruction decoding, and sends out control signals for the operation corresponding to the instruction.
  • the arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations and logical operations, etc., and can also perform address operations and conversions.
  • the register is mainly responsible for storing the register operands and intermediate operation results temporarily stored during the execution of the instruction.
  • the hardware architecture of the processor 310 may be an application specific integrated circuit (ASIC) architecture, MIPS architecture, ARM architecture, or NP architecture, and so on.
  • ASIC application specific integrated circuit
  • the processor 310 may be used to analyze signals received by the wireless communication processing module 330 and/or the wired communication module 350, such as a detection request broadcast by the electronic device 100, a connection request sent by the electronic device 100, and 100 audio data sent, and so on.
  • the processor 310 may be configured to perform corresponding processing operations according to the analysis result, such as generating a detection response, or controlling the speaker module 360 to play corresponding sound signals according to the audio data, and so on.
  • the processor 310 may also be used to generate signals sent by the wireless communication processing module 330 and/or the wired communication module 350, such as Bluetooth broadcast signals, beacon signals, and for example, signals sent to electronic devices. Feedback connection status (such as connection success, connection failure, etc.) signals.
  • the memory 320 is coupled with the processor 310, and is used to store various software programs and/or multiple sets of instructions.
  • the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
  • the memory 320 may store an operating system, such as embedded operating systems such as uCOS, VxWorks, and RTLinux.
  • the memory 320 may also store a communication program, which may be used to communicate with the electronic device 100, one or more servers, or additional devices.
  • the memory 320 may be used to store multiple preset scenes, preset environmental sounds in each scene, and an association relationship between each scene and the corresponding preset environmental sounds in the scene.
  • the wireless communication processing module 330 may include one or more of a Bluetooth (BT) communication processing module 330A and a Wi-Fi communication processing module 330B.
  • BT Bluetooth
  • Wi-Fi Wi-Fi
  • one or more of the Bluetooth (BT) communication processing module and the Wi-Fi communication processing module are used to establish a communication connection with the electronic device 100, and receive the electronic device 100 after the communication connection is established. And send the received audio signal to the processor 310 for processing.
  • BT Bluetooth
  • Wi-Fi Wi-Fi
  • the wireless communication processing module 330 may also include a cellular mobile communication processing module (not shown).
  • the cellular mobile communication processing module can communicate with other devices (such as servers) through cellular mobile communication technology.
  • the power management module 340 is used to receive charging input from the charger to charge the battery (not shown). Among them, the charger can be a wireless charger or a wired charger. The power management module 340 is also used to connect to the processor 310. The power management module 340 receives input from the battery and/or charger, and supplies power to the processor 310, the memory 320, the wireless communication module 330, and the like.
  • the speaker 360 also called a "speaker" is used to convert audio electrical signals into sound signals.
  • the head-mounted device 300 includes a left speaker and a right speaker, so as to provide sounds to the user's left and right ears, respectively.
  • the microphone 370 also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the head-mounted device 300 can pick up ambient sounds around the user through a microphone. When the user wears the head-mounted device 300 to make a call or send voice information, the user can approach the microphone 370 through the mouth to make a sound and input the sound signal into the microphone 370.
  • the microphone 370 converts the sound signal into an electric signal and then transmits it to the electronic device 100 through the wireless communication processing module 330 or the wired communication module 350.
  • the head-mounted device 300 may include a left pickup microphone and a right pickup microphone. In some embodiments of the present application, the head-mounted device 300 may collect sound signals of the external environment through the microphone 370.
  • the key control module 380 includes keys and peripheral circuits for realizing key functions.
  • the buttons include power-on button, volume button and so on. The functions of turning on, adjusting the volume and answering calls can be realized through the buttons.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the sensor module 390 includes one or more of a heart rate sensor, a temperature sensor, and a pulse sensor.
  • the sensor module 390 may collect vital signs information of the user.
  • the sensor module 390 includes a temperature sensor to detect the body temperature of the user.
  • the sensor module 390 includes a heart rate sensor, it can detect the user's heart rate.
  • the sensor module 390 may also include motion sensors such as acceleration sensors.
  • the head-mounted device 300 may determine the vital signs of the user through at least one of a heart rate sensor, a temperature sensor, and a pulse sensor. The head-mounted device 300 can also determine the user's motion behavior through an acceleration sensor.
  • the structure illustrated in FIG. 3 does not constitute a specific limitation on the head-mounted device 300.
  • the head-mounted device 300 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components.
  • the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
  • GUI graphical user interface
  • the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. Visual interface elements.
  • FIG. 4A exemplarily shows an exemplary user interface 21 on the electronic device 100 for displaying application programs installed by the electronic device 100.
  • the user interface 21 may include: a status bar 201, a calendar indicator 202, a weather indicator 203, a tray 204 with commonly used application icons, a navigation bar 205, and other application icons. among them:
  • the status bar 201 may include: one or more signal strength indicators 201A of mobile communication signals (also called cellular signals), the name of the operator (for example, "China Mobile") 201B, and wireless fidelity (Wi-Fi) )
  • One or more signal strength indicators 201C, battery status indicator 201D, and time indicator 201E of the signal are included in the signal.
  • the calendar indicator 202 can be used to indicate the current time, such as date, day of the week, hour and minute information, etc.
  • the weather indicator 203 can be used to indicate the type of weather, such as cloudy to clear, light rain, etc., and can also be used to indicate information such as temperature.
  • the tray 204 with icons of commonly used application programs can display: a phone icon 204A, a contact icon 204B, a short message icon 204C, and a camera icon 204D.
  • the navigation bar 205 may include system navigation keys such as a return key 205A, a home screen key 205B, and a multi-task key 205C.
  • system navigation keys such as a return key 205A, a home screen key 205B, and a multi-task key 205C.
  • the electronic device 100 may display the previous page of the current page.
  • the electronic device 100 may display the home interface.
  • the electronic device 100 may display the task recently opened by the user.
  • the naming of each navigation key can also be other, which is not limited in this application. It is not limited to virtual keys, and each navigation key in the navigation bar 205 can also be implemented as a physical key.
  • Other application icons can be for example: Wechat icon 206, QQ icon 207, Twitter icon 208, Facebook icon 209, mailbox icon 210, cloud sharing icon 211, memo The icon 212 of, the icon 213 of Alipay, the icon 214 of gallery, and the icon 215 of settings.
  • the user interface 21 may also include a page indicator 216.
  • Other application program icons may be distributed on multiple pages, and the page indicator 216 may be used to indicate which application program in which page the user is currently browsing. The user can slide the area of other application icons left and right to browse application icons in other pages.
  • the user interface 21 exemplarily shown in FIG. 4A may be a home screen (Home screen).
  • FIG. 4A only exemplarily shows the user interface on the electronic device 100, and should not constitute a limitation to the embodiment of the present application.
  • FIGS. 4A and 4B exemplarily show an operation of turning on the "reminder function" on the electronic device 100.
  • the electronic device 100 when the electronic device 100 detects a downward sliding gesture on the status bar 201, in response to the gesture, the electronic device 100 may display a window 217 on the user interface 21. As shown in FIG. 4B, the window 217 may display a switch control 217A of "reminder function", and may also display switch controls of other functions (such as Wi-Fi, Bluetooth, flashlight, etc.). When an operation on the switch control 217A in the window 217 (such as a touch operation on the switch control 217A) is detected, in response to the operation, the electronic device 100 can turn on the "reminder function".
  • a switch control 217A such as a touch operation on the switch control 217A
  • the user can make a downward sliding gesture on the status bar 201 to open the window 217, and can click the switch control 217A of the "reminder function” in the window 217 to conveniently turn on the "reminder function".
  • the expression form of the switch control 217A of the "reminder function” may be text information or icons.
  • the "reminder function” can also be turned on by the user's settings in the "Settings” application.
  • setting the setting item of "Reminder Function” from “OFF” to “ON” can turn on the “Reminder Function” of the electronic device 100.
  • the "settings” application is an application installed on electronic devices such as smart phones, tablet computers and the like for setting various functions of the electronic device, and the name of the application is not limited in the embodiment of the application.
  • it can also be opened by inputting a specific gesture operation on the display screen 194 of the electronic device 100.
  • a specific gesture operation on the display screen 194 of the electronic device 100.
  • the user turns on the "reminder function” by inputting a gesture operation of drawing a circle or a star on the display 194.
  • the "reminder function" of the electronic device 100 can also be turned on through voice input. For example, when the user says “enable the reminder function” or "please turn on the reminder function" to the electronic device 100, the electronic device 100 can turn on the "reminder function".
  • the "reminder function” is enabled by default. It may also be that after the head-mounted device 300 is connected to the electronic device 100, a prompt box is displayed on the display screen of the electronic device 100 to prompt the user whether the "reminder function” needs to be turned on. For example, when the head mounted device 300 is connected to the electronic device 100, the display screen of the electronic device 100 displays whether the "reminder function" is turned on. When the user selects “Yes”, the “reminder function” is turned on, and when the user selects " If no, the "reminder function” is not turned on.
  • the head-mounted device 300 when the head-mounted device 300 is a wired head-mounted device, “the head-mounted device 300 is connected to the electronic device 100” means that the head-mounted device 300 is inserted into the head-mounted device interface of the electronic device 100.
  • the head-mounted device 300 is a wireless head-mounted device, “the head-mounted device 300 is connected to the electronic device 100” means that the head-mounted device 300 establishes a communication connection with the electronic device 100.
  • the electronic device 100 or the head-mounted device 300 can be based on the preset environment To determine whether the user has a need to perceive the external environment in the current scene. If so, the electronic device 100 or the head-mounted device 300 can output prompt information so that the user can perceive the external environment and respond accordingly.
  • the following describes in detail the process of the electronic device 100 or the head mounted device 300 prompting the user according to the user's scene.
  • FIG. 5 shows a schematic flow chart of a method for the electronic device 100 or the head-mounted device 300 provided in an embodiment of the present application to process environmental sounds according to the scene where the user is located.
  • the method may include the following steps:
  • Step S101 Determine the current scene of the user.
  • the following describes in detail how the electronic device 100 or the head-mounted device 300 determines the scene in which the user is located.
  • the electronic device 100 or the head-mounted device 300 can determine the scene where the user is currently located according to the current location information of the user. For example, when the user's location information is a commercial plaza, it can be determined that the user is in a shopping mall scene; when the user's location information is on a street, it can be determined that the user is in a road scene; when the user's location information is a residential area, it can be It is determined that the user is in the home scene; when the location information of the user is a certain park, it can be determined that the user is in the park scene. Specifically, the electronic device 100 or the head-mounted device 300 may obtain the user's location information in any of the following ways or a combination of the following ways:
  • the electronic device 100 or the head-mounted device 300 obtains the longitude and latitude coordinates or the geographic location name through a global navigation satellite system, such as GPS, GLONASS, BDS, QZSS, or SBAS.
  • a global navigation satellite system such as GPS, GLONASS, BDS, QZSS, or SBAS.
  • the electronic device 100 or the head-mounted device 300 acquires the latitude and longitude coordinates by means of base station positioning.
  • the electronic device 100 or the head-mounted device 300 adopts wireless indoor positioning technology to obtain the longitude and latitude coordinates or geographic location name.
  • Wireless indoor positioning technologies may include short-range wireless technologies such as Wi-Fi, radio frequency identification (RFID), Bluetooth, infrared, and ultrasonic.
  • RFID radio frequency identification
  • Bluetooth infrared
  • ultrasonic ultrasonic
  • the electronic device 100 or the head-mounted device 300 obtains location information through the data collected by the sensor.
  • the electronic device 100 may measure the air pressure value through the air pressure sensor 170B, and calculate the altitude based on the measured air pressure value.
  • the electronic device 100 can also measure the speed and acceleration through the acceleration sensor 170C, and calculate the latitude and longitude coordinates of the current time point based on the measured speed, acceleration, and the latitude and longitude coordinates of a previous time point.
  • the electronic device 100 can also measure the distance to an object through the distance sensor 170D, and calculate its own longitude and latitude coordinates based on the measured distance and the longitude and latitude coordinates of the object.
  • some sensors of the electronic device 100 can work continuously for a long time to collect data, so as to obtain the user's location information.
  • the location information acquired by the electronic device 100 and the head-mounted device 300 is the user's location information. Therefore, in the embodiment of the present application, The location information of the user can be acquired through the electronic device 100 or the location information of the user can be acquired through the head-mounted device 300. That is, in practical applications, the device required for acquiring location information can be set in the electronic device according to specific needs. 100 or the head-mounted device 300, there is no limitation here.
  • the electronic device 100 or the head-mounted device 300 can determine the scene where the user is currently located according to the user's behavioral sign information.
  • the behavioral sign information includes sports behavior and vital sign information. For example, when it is detected that the user is running, it can be determined that the user is in a gym scene or a park scene; since the body temperature will drop when the person is in a sleep or light rest state, when it is detected that the user's body temperature is low, it can be determined The user is in a home scene; in addition, when the user is in an exercise state, the heart rate will increase, so when the user's heart rate is detected to increase, it can be determined that the user is in an exercise state, and then the user is in a gym scene or a park scene.
  • the electronic device 100 or the head-mounted device 300 can obtain the user's behavioral sign information through any one of the following methods or a combination of the following methods:
  • the electronic device 100 or the head-mounted device 300 measures the speed and acceleration through an acceleration sensor to determine the user's motion behavior.
  • the electronic device 100 or the head-mounted device 300 measures the vital signs of the user through a temperature sensor, a heart rate sensor, or a pulse sensor.
  • the temperature sensor is used to measure the user's body temperature
  • the heart rate sensor is used to measure the user's heart rate
  • the heart rate sensor can be a photoelectric heart rate sensor, a vibrating heart rate sensor, etc.
  • the pulse sensor is used to measure the user's pulse.
  • vital signs information needs to be close to the user’s skin to be measured, and the electronic device 100 is often carried within a certain distance from the user, these sensors are set on the head-mounted device 300 worn on the user’s ears. It is easier to measure the user’s vital signs information.
  • the heart rate sensor fits the skin of the user's ears, and the photoelectric heart rate sensor can convert the heart rate signal into a corresponding electrical signal and output it to the processor 310.
  • the electronic device 100 or the head-mounted device 300 can determine the current scene of the user according to the recognized voice content. Specifically, the electronic device 100 or the head-mounted device 300 collects voice content through a microphone, and when it is recognized that the voice content contains specific voice content, the scene where the user is located can be determined. For example, when it is recognized that the voice content includes: “Start meeting", “Good morning everyone", etc., it can be determined that the user is currently in a meeting scene. It is understandable that specific voice content may be stored in the memory of the electronic device 100 or the head-mounted device 300 in advance.
  • the electronic device 100 or the head-mounted device 300 may determine the current scene of the user according to the received user input or selected scene.
  • the user can set the current scene as a road scene or a home scene.
  • For setting the scene please refer to the description of the subsequent embodiments, which will not be repeated here.
  • the electronic device 100 or the head-mounted device 300 can automatically determine the scene where the user is located, avoiding the manual setting process, and is convenient.
  • the methods for determining the scene where the user is located in the above-mentioned first to third embodiments may be used in combination or alone, which is not limited here.
  • Step S102 Determine a preset environmental sound corresponding to the scene according to the scene where the user is.
  • the electronic device 100 or the head-mounted device 300 may determine the preset environmental sound in the current scene according to the correspondence between the pre-stored scene and the preset environmental sound. That is, when determining the scene the user is currently in, the preset environmental sound can be determined according to the corresponding relationship.
  • the electronic device 100 or the head-mounted device 300 can learn preset environmental sounds in different scenarios where the user is located. Among them, various scenes and the preset environmental sounds in each scene can be preset according to empirical data. For example, the R&D personnel can determine the preset environmental sounds suitable for different scenes through research and other methods, and preset them in the electronic device 100.
  • the head-mounted device 300 or the cloud server (not shown). When the pre-stored scene, the pre-stored preset environmental sounds, and the correspondence between the scene and the preset environmental sounds are stored in the cloud server, the electronic device 100 or the head-mounted device 300 needs to obtain the stored data first.
  • the electronic device 100 or the head-mounted device 300 needs to determine the content of the corresponding preset environmental sound in the scene according to the scene in which the user is located. For example, please refer to Table 1. Table 1 shows the contents of preset environmental sounds corresponding to several scenarios.
  • Table 1 Contents of preset environmental sounds corresponding to different scenarios
  • Scenes The content of the preset ambient sound Home scene Knocking at the door, home appliance alarm sound, alarm clock, children crying Park scene Thunderstorm, shouting, dog barking, greeting (Hi, hello, hello, etc.) Mall scene Greetings, alarms, user names Road scene Whistle, bicycle bell, stop announcement, alarm Meeting scene User name, greeting, door opening, cell phone ringtone
  • Table 1 is only an example, and the preset environmental sound content in each scene in Table 1 may be partially the same.
  • both the park scene and the meeting scene include "hello.”
  • the types of scenes are not limited to the various scenes shown in Table 1, and the content of the preset environmental sounds in each scene is not limited to the examples shown in Table 1 above.
  • the electronic device 100 or the head-mounted device 300 needs to determine the content of the corresponding preset environmental sounds in the scene and the threshold corresponding to each preset environmental sound according to the scene where the user is located.
  • Table 2 shows the preset environmental sound content corresponding to several scenarios and the threshold corresponding to each preset environmental sound.
  • the threshold includes the loudness threshold, the duration threshold and the repeat At least one of the thresholds of the number of times.
  • Table 2 The content of the preset environmental sounds corresponding to different scenarios and the corresponding thresholds
  • Table 2 is only an example.
  • the loudness thresholds of different preset environmental sounds in each scene are the same. It can be understood that in practical applications, different preset environmental sounds in the same scene can also be set to different
  • the loudness threshold and the types of scenes are not limited to the various scenes shown in Table 2, and the content of the preset ambient sound in each scene and the corresponding threshold are not limited to the examples shown in Table 2 above.
  • the loudness threshold is a threshold of sound loudness, which can be preset according to different scenarios. For example, for the sound information of dangerous signals such as car horns, bicycle bells, and alarm sounds in a road scene, a higher loudness threshold (such as 75 decibels) can be adopted so that the user can avoid dangerous signals in time when hearing the sound signal. Set the situation; another example: In the meeting scene, the minimum loudness threshold (for example, 45 decibels) can be adopted for the name of the name called by others, to pick up the sound sensitively, and avoid the phenomenon of being handed over but not audible.
  • different loudness thresholds are set according to different scenes, which can not only avoid excessively sensitive collection of environmental signals and interfere with the normal operation of the head-mounted device 300, so as to ensure the normal operation of the head-mounted device 300, but also sensitive sound.
  • the picking up it is a good way to inform the user of the effective external sound signal.
  • the electronic device 100 or the head-mounted device 300 can determine the preset ambient sound in the current scene according to the received user input or selection.
  • the electronic device 100 is taken as an example for description.
  • the "Settings" application (215 in FIG. 4A) receives a user's operation (such as a touch operation), it can enter the setting interface as shown in FIG. 6A .
  • the user interface 10 may include a status bar 101, a title bar 102, a switch control 103 for "manual mode", and prompt information 104.
  • the status bar 101 can refer to the status bar 201 in the user interface 21 shown in FIG. 4A, which will not be repeated here.
  • the title bar 102 may include current page indicators 102A and 102B.
  • the current page indicators 102A and 102B can be used to indicate the current page.
  • the text information "settings” and "reminder function” can be used to indicate that the current page is used to display the corresponding content of the reminder function setting items. It is not limited to text information, the current page indicator 102A and 102B may also be icons.
  • the switch control 103 is used to monitor the operation (for example, touch operation) of turning on/off the "manual mode". As shown in FIG. 6B, when an operation on the switch control 103 (such as a touch operation on the switch control 103) is detected, in response to the operation, the electronic device 100 can turn on the "manual mode".
  • the form of the switch control 103 can be text information or icons.
  • the prompt message 104 can be used to introduce the "manual mode" and prompt the user the function of the "manual mode".
  • the presentation form of the prompt information 104 may be text information or an icon.
  • the electronic device 100 may determine the current scene according to the content manually input by the user. For example, if the user manually enters "road scene” in the "please select or input scene” area, the words “road scene” are displayed in this area (refer to FIG. 6C). In another embodiment, the electronic device 100 may also determine the scene the user is currently in according to the scene selected by the user.
  • the electronic device 100 may display a list including various scenes, and when the user selects a road scene, the scene is displayed in the "Please select or enter Scene” area (see Figure 6C). After the scene is set, the electronic device 100 also determines the preset environmental sound in the scene according to the user's input or selection.
  • the setting method of the preset environmental sound can refer to the setting method of the scene, which will not be repeated here.
  • the content of the preset environmental sound in the scene in the automatic mode can also be corrected according to the content of the environmental sound set by the user.
  • the preset environmental sound threshold in the automatic mode may be corrected according to the threshold set by the user. In this way, the accuracy of determining the preset environmental sound in the automatic mode can be improved, and the user experience can be better.
  • preset environmental sound content and corresponding thresholds in different scenarios may also be stored in a cloud server, and the electronic device 100 or the head-mounted device 300 obtains the content from the cloud server 500. Since the cloud server communicates with different head-mounted devices 300 and electronic devices 100, as more and more electronic devices 100 or head-mounted devices 300 are put into use, more and more abundant data will be generated.
  • the cloud server can obtain these data and perform statistics and analysis on the preset environmental sound content and corresponding thresholds in different scenarios according to the big data statistical algorithm, and then can periodically check the preset environmental sound content in different scenarios based on the statistics and analysis results And the corresponding threshold value is revised and updated, so that it can be closer to the needs of users and improve user experience.
  • the environmental sound content set by the user is mostly alarms and door knocks, and the loudness threshold is set to 45 decibels. Therefore, the environmental sound content and loudness threshold can be preset based on the result Make adjustments.
  • the electronic device 100 may also determine the preset environmental sound according to the received user input or selection.
  • the corresponding preset environmental sound content or the corresponding preset environmental sound content and threshold are the same. That is, the preset environmental sound content or the preset environmental sound content and threshold will not change with the change of the scene.
  • the user sets the preset environmental sounds as a whistle sound and an alarm sound.
  • the content of the preset environmental sound is a whistle sound and an alarm sound. In this way, the special needs of different special users can be met, making the electronic device 100 more practical.
  • Step S103 Collect sound signals of the external environment.
  • the external environment sound signal refers to all the sound signals that can be picked up in the external environment, including car horns, pedestrian voices, bicycle ringtones, music played outside, dog barking, alarm bells, etc.
  • a microphone on the electronic device 100 or the head-mounted device 300 may be used to collect sound signals in the external environment.
  • at least one common omnidirectional microphone can be used to pick up the sound, and the sound signal in the external environment can also be collected through a sound sensor or other devices with a sound pickup function, which is not limited here.
  • Step S104 When the collected sound signal matches the preset environmental sound corresponding to the current scene, output the sound signal of the external environment or output prompt information.
  • the collected sound signal when the collected sound signal includes the preset environmental sound, it can be determined that the collected sound signal matches the preset environmental sound corresponding to the current scene. For example, when it is determined that the scene where the current user is located is a road scene, the corresponding environmental sound content is whistle, bicycle bell, and stop announcement. After identifying the collected sound signals of the external environment, it is found that the current environment The sound signal includes the car whistle sound. At this time, it can be determined that the sound signal of the external environment matches the preset environmental sound.
  • the threshold includes at least one of a loudness threshold, a duration threshold, and a repetition threshold. For example, when the collected sound signal includes a preset ambient sound and the loudness of the sound signal is greater than a preset loudness threshold (such as 55 decibels), it can be determined that the collected sound signal matches the preset ambient sound corresponding to the current scene .
  • a preset loudness threshold such as 55 decibels
  • the collected sound signal includes a preset ambient sound and the loudness of the sound signal is greater than the preset loudness threshold (such as 55 decibels), and the duration is greater than the preset time threshold (such as 5s), it can be determined
  • the collected sound signal matches the preset environmental sound corresponding to the current scene.
  • the electronic device 100 or the head-mounted device 300 may send out prompt information so that the user perceives the external environment.
  • the prompt information may include, but is not limited to: voice prompt information, vibration prompt information, light prompt information, and display prompt information.
  • the electronic device 100 or the head-mounted device 300 may send out voice prompts to respond The user is reminded.
  • the electronic device 100 or the head-mounted device 300 may emit a light prompt Information to remind users.
  • the electronic device 100 or the head-mounted device 300 may emit a vibration prompt Information to remind users.
  • the electronic device 100 or the head-mounted device 300 may prompt the user through any one of the following methods or a combination of the following methods:
  • the current audio data of the head-mounted device 300 may be paused.
  • the electronic device 100 can pause the video or music that the user is watching, that is, pause the playback of the current audio data of the head-mounted device 300, and emit a voice through the head-mounted device 300 to remind the user that there may be danger or There is a sound signal that needs to be responded to.
  • the electronic device 100 or the head-mounted device 300 can detect the duration of stopping the prompt voice, and when the duration of the stop playing the prompt voice reaches a preset duration threshold (for example, 2s), it can continue to play The current audio data. In this way, the current audio data playback is resumed after the preset time is passed after the prompt voice playback is completed, which can leave time for the user to respond to a specific sound signal.
  • a preset duration threshold for example, 2s
  • the electronic device 100 or the head-mounted device 300 can detect that the user is currently in a road scene, and if the microphone detects the sound of the external environment When the signal matches the preset whistle sound, the current music playback is paused, and a prompt voice is output through the headset 300.
  • the prompt voice playback is completed, the time to stop playing the prompt voice is detected, and when the duration of stopping the prompt voice reaches the preset duration threshold, the music that the user is listening to can continue to be played. In this way, time can be reserved for the user to view the location of the vehicle and dodge the vehicle, and after the user dodges the vehicle, the music that the user is listening to is automatically played.
  • the prompt voice can be implemented in the following ways.
  • the prompt voice can be a sound content that matches the preset environmental sound. For example, when the collected sound signal of the external environment matches the horn sound in the preset environmental sound content, the horn sound is played through the head-mounted device 300; and when the collected sound signal of the external environment matches the preset sound When the alarm sound in the ambient sound content matches, the head-mounted device 300 plays the alarm sound.
  • the prompt voice can be a preset specific voice prompt content.
  • the electronic device 100 or the head-mounted device 300 may pre-store specific voice prompt content for reminding the user.
  • the pre-stored specific voice prompt content can be played through the head-mounted device 300.
  • the specific voice prompt content of "A vehicle approaching, please avoid” can be played; the specific voice prompt of "Someone knocks on the door, please open the door” can also be played.
  • the specific voice broadcast content in different scenarios can be different, and it can be set when the content of the preset environmental sound is set.
  • the LED (Light Emitting Display, light emitting diode) of the electronic device 100 flashes, or the button light flashes, etc., to remind the user to pay attention to the external environment.
  • the prompt content can be any of pictures, text, or symbols.
  • the prompt content can be any of pictures, text, or symbols.
  • a "bell" can be displayed on the display 194 of the electronic device 100 To prompt the user.
  • the prompt message can be terminated. For example, when the duration of the notification message reaches 30s, the notification message is terminated.
  • the prompt message is terminated. For example, when a car passes by, the whistle sound may have disappeared, so when there is no whistle sound in the ambient sound, the prompt message can be terminated.
  • the first method is selected to send the prompt message, when the prompt message is terminated, the current audio data can continue to be played through the head-mounted device 300. In this way, manual operation by the user can be avoided and the user can be improved Experience.
  • the prompt message is terminated.
  • the volume key or the power key can be assigned to terminate the function of prompting information.
  • the user can control the electronic device 100 to stop the vibration by operating the volume key.
  • all steps can be performed by the electronic device 100, or all of the head-mounted devices
  • the device 300 can also be executed by the electronic device 100 and the head-mounted device 300 together.
  • a trigger signal can be sent to remind another subject to complete the corresponding step.
  • the electronic device 100 sends a The trigger signal is sent to the head-mounted device 300 to remind the head-mounted device 300 to perform corresponding steps.
  • the trigger signal may be a high-level signal or a low-level signal, which is not limited here.
  • the electronic device 100 or the head-mounted device 300 can determine the preset environment according to the current scene of the user, and When the collected sound signal of the external environment matches the preset environmental sound, a prompt message is issued, so that the user can learn the external environment in different scenarios while using the head-mounted device 300, so as to make a corresponding response , Improve the safety of using the head-mounted device 300.
  • the electronic device 100 can send a control command to the head-mounted device 300 according to whether the "prompt function" is turned on to inform the head-mounted device 300 whether Need to perform the above method.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Acoustics & Sound (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

Provided are an ambient sound processing method and related device; in the method, when a user wears a head-mountable device (300), an electronic device (100) or the head-mounted device (300) can determine the current surroundings of the user, and determine a preset ambient sound in said surroundings according to the current surroundings of the user; if a collected sound signal of the external environment matches the preset ambient sound in said surroundings, then the electronic device (100) or the head-mountable device (300) can output a sound signal of the external environment or output prompt information so that the user can perceive the external environment and respond accordingly, thus the safety of the user using the head-mountable device (300) is improved.

Description

环境音处理方法及相关装置Environmental sound processing method and related device
本申请要求在2019年6月29日提交中国国家知识产权局、申请号为201910581121.2、发明名称为“环境音处理方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China, the application number is 201910581121.2, and the invention title is "Environmental Sound Processing Method and Related Devices" on June 29, 2019. The entire content is incorporated herein by reference. Applying.
技术领域Technical field
本申请涉及终端及通信技术领域,特别涉及环境音处理方法及相关装置。This application relates to the field of terminals and communication technologies, and in particular to environmental sound processing methods and related devices.
背景技术Background technique
随着可穿戴设备技术的发展,蓝牙耳机及降噪耳机因其音效好及便携性越来越受到人们的欢迎。然而,用户在佩戴耳机时,无法听清外界声音,尤其是降噪耳机对外界环境音中的所有声音,甚至是用于提醒用户的汽车喇叭、报警声音进行了抵消,如此,为用户带来了一定的危险性。With the development of wearable device technology, Bluetooth headsets and noise-cancelling headsets are becoming more and more popular due to their good sound effects and portability. However, users cannot hear outside sounds clearly when wearing headphones, especially noise-canceling headphones that cancel out all the sounds in the external environment, even the car horns and alarm sounds used to remind users. This will bring users To a certain degree of danger.
耳机屏蔽环境音后,用户无法感知外界环境,这并不是用户所希望的。用户在佩戴耳机时,需要感知外界环境,从而做出对应的反应。并且,在不同的场景下,用户对于外界环境的感知需求不同。例如,用户佩戴耳机行走在马路上时,需要获知路上是否有车辆、车辆的方向,避免可能的安全隐患。又例如,当用户佩戴耳机在客厅时,需要获知是否有来客。如何满足在不同场景下,用户对于外界环境的感知需求,是当前需要解决的技术问题。After the earphone shields the ambient sound, the user cannot perceive the external environment, which is not what the user wants. When a user wears a headset, he needs to perceive the external environment and make a corresponding response. Moreover, in different scenarios, users have different perception requirements for the external environment. For example, when a user wears a headset while walking on a road, he needs to know whether there is a vehicle on the road and the direction of the vehicle to avoid possible safety hazards. For another example, when the user wears headphones in the living room, he needs to know whether there are visitors. How to meet the user's perception needs of the external environment in different scenarios is a technical problem that needs to be solved currently.
发明内容Summary of the invention
本申请提供了环境音处理方法及相关装置,可以满足用户在不同场景下对于外界环境的感知需求,从而使用户做出对应的反应。The present application provides an environmental sound processing method and related devices, which can meet the user's perception needs of the external environment in different scenarios, so that the user can respond accordingly.
上述目标和其他目标将通过独立权利要求中的特征来达成。进一步的实现方式在从属权利要求、说明书和附图中体现。The above goals and other goals will be achieved through the features in the independent claims. Further implementations are embodied in the dependent claims, description and drawings.
第一方面,本申请提供了一种环境音处理方法,该方法可包括:头戴式设备确定用户当前所处的场景;所述头戴式设备根据所述用户当前所处的场景采集外界环境的声音信号;所述采集到的所述声音信号与当前场景对应的预设环境音匹配时,所述头戴式设备输出所述外界环境的声音信号或输出提示信息。In the first aspect, the present application provides an environmental sound processing method, which may include: a head-mounted device determining a scene where a user is currently located; and the head-mounted device collecting an external environment according to the scene where the user is currently located When the collected sound signal matches the preset environmental sound corresponding to the current scene, the head-mounted device outputs the sound signal of the external environment or outputs prompt information.
第一方面所描述的技术方案,可使得在用户有感知外界环境的需求的情况下,输出外界环境的声音信号或者输出提示信息以对用户进行提醒,使得用户能够留意外界环境,从而做出对应的反应。The technical solution described in the first aspect can enable the user to output the sound signal of the external environment or output prompt information to remind the user when the user has the need to perceive the external environment, so that the user can pay attention to the external environment and make a corresponding response. Reaction.
根据第一方面,在一种可能的实现方式中,所述头戴式设备确定用户当前所处的场景,包括以下一项或多项:所述头戴式设备根据用户当前的位置信息确定用户当前所处的场景;或者,所述头戴式设备根据用户的行为体征信息确定用户当前所处的场景;或者,所述头戴式设备根据所识别到的语音内容确定用户当前所处的场景。如此,头戴式设备可以根据获取的数据自动确定用户当前所处的场景,避免的手动设置,提高了用户体验。According to the first aspect, in a possible implementation manner, the head-mounted device determining the user's current scene includes one or more of the following: the head-mounted device determines the user according to the user's current location information The current scene; or, the head-mounted device determines the user's current scene based on the user's behavioral sign information; or, the head-mounted device determines the user's current scene based on the recognized voice content . In this way, the head-mounted device can automatically determine the user's current scene based on the acquired data, avoiding manual settings, and improving user experience.
其中,用户的位置信息可以通过全球导航卫星系统、基站定位技术、无线室内定位技术 或传感器采集到的数据中的至少一种来确定;用户的行为体征信息可以通过加速度传感器、温度传感器、心率传感器或者脉搏传感器中的至少一种所感测到的数据来确定;语音内容可以通过麦克风等拾音装置来采集。Among them, the user's location information can be determined by at least one of the global navigation satellite system, base station positioning technology, wireless indoor positioning technology, or data collected by sensors; the user's behavioral sign information can be determined by acceleration sensors, temperature sensors, and heart rate sensors. Or it can be determined by the data sensed by at least one of the pulse sensors; the voice content can be collected by a sound pickup device such as a microphone.
在另一实施方式中,头戴式设备根据接收到的用户操作确定用户所处的场景。具体地,“设置”应用根据接收到用户的操作开启“手动模式”,接着监控用户的操作设置相应的场景。In another embodiment, the head-mounted device determines the scene in which the user is located according to the received user operation. Specifically, the "settings" application starts the "manual mode" according to the received user's operation, and then monitors the user's operation to set the corresponding scene.
根据第一方面,在一种可能的实现方式中,所述预设环境音由所述场景与所述预设环境音的对应关系获得。其中,所述场景与所述预设环境音的对应关系是预先设置的,或者,是通过机器学习算法获得的。这样,可以根据场景获得该场景下对应的预设环境音,即预设环境音可以根据场景的改变而发生变化,更满足用户在不同场景下对外界环境感知的需求。According to the first aspect, in a possible implementation manner, the preset environmental sound is obtained from the corresponding relationship between the scene and the preset environmental sound. Wherein, the corresponding relationship between the scene and the preset environmental sound is preset, or is obtained through a machine learning algorithm. In this way, the corresponding preset environmental sound in the scene can be obtained according to the scene, that is, the preset environmental sound can be changed according to the change of the scene, which more satisfies the user's needs for perception of the external environment in different scenes.
在另一种可能实现的方式中,所述预设环境音是由用户设置的。具体地,“设置”应用根据接收到用户的操作开启“手动模式”,接着监控用户的操作设置相应的场景以及每个场景对应的预设环境音。In another possible implementation manner, the preset environmental sound is set by the user. Specifically, the "settings" application starts the "manual mode" according to the received user's operation, and then monitors the user's operation to set the corresponding scene and the preset environmental sound corresponding to each scene.
根据第一方面,在一种可能的实现方式中,当采集到的所述声音信号包括所述预设环境音时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配;或者,当采集到的所述声音信号包括所述预设环境音且阈值达到预设阈值时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配。如此,可以在用户需要感知外界环境的情况下才对用户进行提醒,避免了因过多的提醒而对用户产生干扰的情况。According to the first aspect, in a possible implementation manner, when the collected sound signal includes the preset environmental sound, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene; Alternatively, when the collected sound signal includes the preset environmental sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene. In this way, the user can be reminded only when the user needs to perceive the external environment, which avoids interference to the user due to excessive reminders.
其中,阈值包括预设环境的响度阈值、持续时间阈值或重复次数阈值中的至少一种。Wherein, the threshold includes at least one of a loudness threshold, a duration threshold, or a repetition threshold of a preset environment.
根据第一方面,在一种可能的实现方式中,所述提示信息包括以下一项或多项:语音、振动反馈或者灯光反馈。其中,所述语音包括以下的任意一项:与所述预设环境音相匹配的声音内容,或者,预设的特定语音提示内容。According to the first aspect, in a possible implementation manner, the prompt information includes one or more of the following: voice, vibration feedback, or light feedback. Wherein, the voice includes any one of the following: voice content matching the preset environmental sound, or preset specific voice prompt content.
根据第一方面,在一种可能的实现方式中,头戴式设备在输出所述提示语音时,暂停播放所述头戴式设备当前的音频数据,当停止播放提示语音时,头戴式设备可以检测停止播放提示语音的时长,当停止播放提示语音的时长达到预设时长阈值时,继续播放当前的音频数据。这样,当提示语音播放完成后再过预设时间才恢复当前的音频数据的播放,可以给用户留有响应特定声音信号的时间。According to the first aspect, in a possible implementation manner, the head-mounted device pauses playing the current audio data of the head-mounted device when outputting the prompt voice, and when the prompt voice is stopped, the head-mounted device It can detect the duration of stopping the prompt voice, and when the duration of stopping the prompt voice reaches the preset duration threshold, the current audio data will continue to be played. In this way, the current audio data playback is resumed after the preset time is passed after the prompt voice playback is completed, which can leave time for the user to respond to a specific sound signal.
根据第一方面,在一种可能的实现方式中,所述方法在所述输出提示信息后还通过以下方式中的任意一种,停止发出提示信息:当所述提示信息的持续时间达到预设时间时,终止发出所述提示信息;或者,当检测到的外界环境的声音信号不包括所述预设的环境音时,终止发出所述提示信息;或者,响应用户的操作而终止发出所示提示信息。如此,可以避免因对用户过度提醒而产生干扰的情况发生。According to the first aspect, in a possible implementation manner, after the prompt information is output, the method further stops sending the prompt information by any one of the following methods: when the duration of the prompt information reaches a preset time When time, stop sending the prompt message; or, when the detected sound signal of the external environment does not include the preset environmental sound, stop sending the prompt message; or, in response to the user's operation, stop sending the prompt message Prompt information. In this way, interference caused by excessive reminding to the user can be avoided.
第二方面,本申请还提供一种头戴式设备,包括:一个或多个处理器、存储器和通信模块;所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述头戴式设备执行:In a second aspect, the present application also provides a head-mounted device, including: one or more processors, a memory, and a communication module; the memory is coupled with the one or more processors, and the memory is used to store the computer Program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the head-mounted device to execute:
确定用户当前所处的场景;Determine the scene the user is currently in;
根据所述用户当前所处的场景采集外界环境的声音信号;Collecting sound signals of the external environment according to the scene where the user is currently located;
所述采集到的所述声音信号与当前场景对应的预设环境音匹配时,所述头戴式设备输出所述外界环境的声音信号或输出提示信息。When the collected sound signal matches the preset environmental sound corresponding to the current scene, the head-mounted device outputs the sound signal of the external environment or outputs prompt information.
第二方面所描述的技术方案,可使得在用户有感知外界环境的需求的情况下,输出外界 环境的声音信号或者输出提示信息以对用户进行提醒,使得用户能够留意外界环境,从而做出对应的反应。The technical solution described in the second aspect can enable the user to output the sound signal of the external environment or output the prompt information to remind the user when the user has the need to perceive the external environment, so that the user can pay attention to the external environment and make a corresponding response. Reaction.
根据第二方面,在一种可能的实现方式中,确定用户当前所处的场景,包括以下一项或多项:根据用户当前的位置信息确定用户当前所处的场景;或者,根据用户的行为体征信息确定用户当前所处的场景;或者,根据所识别到的语音内容确定用户当前所处的场景。According to the second aspect, in a possible implementation manner, determining the current scene of the user includes one or more of the following: determining the current scene of the user according to the user's current location information; or, according to the user's behavior The physical sign information determines the current scene of the user; or, according to the recognized voice content, the current scene of the user is determined.
其中,头戴式设备通过全球导航卫星系统、基站定位技术、无线室内定位技术或传感器采集到的数据中的至少一种来确定用户的位置信息;头戴式设备通过加速度传感器、温度传感器、心率传感器或者脉搏传感器中的至少一种所感测到的数据来确定用户的行为体征信息;头戴式设备通过麦克风等拾音装置来采集语音内容。Among them, the head-mounted device uses at least one of global navigation satellite systems, base station positioning technology, wireless indoor positioning technology, or data collected by sensors to determine the user's location information; the head-mounted device uses acceleration sensors, temperature sensors, and heart rate The data sensed by at least one of the sensor or the pulse sensor is used to determine the user's behavioral sign information; the head-mounted device collects voice content through a pickup device such as a microphone.
根据第二方面,在一种可能的实现方式中,所述预设环境音由所述场景与所述预设环境音的对应关系获得。其中,所述场景与所述预设环境音的对应关系是预先设置的,或者,是通过机器学习算法获得的。这样,可以根据场景获得该场景下对应的预设环境音,即预设环境音可以根据场景的改变而发生变化,更满足用户在不同场景下对外界环境感知的需求。According to the second aspect, in a possible implementation manner, the preset environmental sound is obtained from the corresponding relationship between the scene and the preset environmental sound. Wherein, the corresponding relationship between the scene and the preset environmental sound is preset, or is obtained through a machine learning algorithm. In this way, the corresponding preset environmental sound in the scene can be obtained according to the scene, that is, the preset environmental sound can be changed according to the change of the scene, which more satisfies the user's needs for perception of the external environment in different scenes.
在另一种可能实现的方式中,所述预设环境音是由用户设置的。具体地,“设置”应用根据接收到用户的操作开启“手动模式”,接着监控用户的操作设置相应的场景以及每个场景对应的预设环境音。In another possible implementation manner, the preset environmental sound is set by the user. Specifically, the "settings" application starts the "manual mode" according to the received user's operation, and then monitors the user's operation to set the corresponding scene and the preset environmental sound corresponding to each scene.
根据第二方面,在一种可能的实现方式中,当采集到的所述声音信号包括所述预设环境音时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配;或者,当采集到的所述声音信号包括所述预设环境音且阈值达到预设阈值时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配。如此,可以在用户需要感知外界环境的情况下才对用户进行提醒,避免了因过多的提醒而对用户产生干扰的情况。According to the second aspect, in a possible implementation manner, when the collected sound signal includes the preset environmental sound, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene; Alternatively, when the collected sound signal includes the preset environmental sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene. In this way, the user can be reminded only when the user needs to perceive the external environment, which avoids interference to the user due to excessive reminders.
其中,阈值包括预设环境的响度阈值、持续时间阈值或重复次数阈值中的至少一种。Wherein, the threshold includes at least one of a loudness threshold, a duration threshold, or a repetition threshold of a preset environment.
根据第二方面,在一种可能的实现方式中,所述提示信息包括以下一项或多项:语音、振动反馈或者灯光反馈。其中,所述语音包括以下的任意一项:与所述预设环境音相匹配的声音内容,或者,预设的特定语音提示内容。According to the second aspect, in a possible implementation manner, the prompt information includes one or more of the following: voice, vibration feedback, or light feedback. Wherein, the voice includes any one of the following: voice content matching the preset environmental sound, or preset specific voice prompt content.
根据第二方面,在一种可能的实现方式中,在输出所述提示语音时,所述一个或多个处理器还用于调用所述计算机指令以使得所述头戴式设备执行:暂停播放所述头戴式设备当前的音频数据,当停止播放提示语音时,头戴式设备可以检测停止播放提示语音的时长,当停止播放提示语音的时长达到预设时长阈值时,继续播放当前的音频数据。这样,当提示语音播放完成后再过预设时间才恢复当前的音频数据的播放,可以给用户留有响应特定声音信号的时间。According to the second aspect, in a possible implementation manner, when the prompt voice is output, the one or more processors are further configured to invoke the computer instruction to cause the head-mounted device to execute: pause playback For the current audio data of the head-mounted device, when the prompt voice is stopped, the head-mounted device can detect the duration of stopping the prompt voice, and continue to play the current audio when the duration of stopping the prompt voice reaches the preset duration threshold data. In this way, the current audio data playback is resumed after the preset time is passed after the prompt voice playback is completed, which can leave time for the user to respond to a specific sound signal.
根据第二方面,在一种可能的实现方式中,在所述输出提示信息后,所述一个或多个处理器还用于调用所述计算机指令以使得所述头戴式设备执行:当所述提示信息的持续时间达到预设时间时,终止发出所述提示信息;或者,当检测到的外界环境的声音信号不包括所述预设的环境音时,终止发出所述提示信息;或者,响应用户的操作而终止发出所示提示信息。如此,可以避免因对用户过度提醒而产生干扰的情况发生。According to the second aspect, in a possible implementation manner, after the prompt information is output, the one or more processors are further configured to call the computer instructions to make the head-mounted device execute: When the duration of the prompt information reaches a preset time, terminate the prompt information; or, when the detected sound signal of the external environment does not include the preset environmental sound, terminate the prompt information; or, In response to the user's operation, the displayed prompt message is terminated. In this way, interference caused by excessive reminding to the user can be avoided.
第三方面,本申请还提供一种音频播放系统,该音频播放系统可包括电子设备,还包括头戴式设备。其中头戴式设备可以为如第二方面中任一可能的实现方式。In a third aspect, the present application also provides an audio playback system. The audio playback system may include an electronic device and a head-mounted device. The head-mounted device may be any possible implementation manner as in the second aspect.
第四方面,本申请提供一种包含指令的计算机程序产品,当上述计算机程序产品在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述 的方法。In a fourth aspect, the present application provides a computer program product containing instructions. When the computer program product is run on an electronic device, the electronic device is caused to perform the operations described in the first aspect and any possible implementation manner in the first aspect. method.
第五方面,本申请提供一种计算机可读存储介质,包括指令,当上述指令在电子设备上运行时,使得上述电子设备执行如第一方面以及第一方面中任一可能的实现方式描述的方法。In a fifth aspect, the present application provides a computer-readable storage medium, including instructions. When the instructions are executed on an electronic device, the electronic device is caused to perform the operations described in the first aspect and any possible implementation manner in the first aspect. method.
应当理解的是,说明书中对技术特征、技术方案、优点或类似语言的描述并不是暗示在任意的单个实施例中可以实现所有的特点和优点。相反,可以理解的是对于特征或优点的描述意味着在至少一个实施例中包括特定的技术特征、技术方案或优点。因此,本说明书中对于技术特征、技术方案或优点的描述并不一定是指相同的实施例。进而,还可以任何适当的方式组合以下各个实施例中所描述的技术特征、技术方案和优点。本领域技术人员将会理解,无需特定实施例的一个或多个特定的技术特征、技术方案或优点即可实现实施例。在其他实施例中,还可在没有体现所有实施例的特定实施例中识别出额外的技术特征和优点。It should be understood that the description of technical features, technical solutions, advantages or similar language in the specification does not imply that all the features and advantages can be realized in any single embodiment. On the contrary, it can be understood that the description of features or advantages means that a specific technical feature, technical solution, or advantage is included in at least one embodiment. Therefore, the descriptions of technical features, technical solutions or advantages in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions, and advantages described in the following embodiments can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiments can be implemented without one or more specific technical features, technical solutions, or advantages of the specific embodiments. In other embodiments, additional technical features and advantages may also be identified in specific embodiments that do not reflect all the embodiments.
附图说明Description of the drawings
图1为本申请实施例提供的音频播放系统的结构示意图。Fig. 1 is a schematic structural diagram of an audio playback system provided by an embodiment of the application.
图2为本申请一实施例提供的电子设备的结构的示意性图。FIG. 2 is a schematic diagram of the structure of an electronic device provided by an embodiment of the application.
图3为本申请一实施例提供的头戴式设备的结构的示意性图。FIG. 3 is a schematic diagram of the structure of a head-mounted device provided by an embodiment of the application.
图4A-图4B为本申请一实施例提供的开启“提醒功能”的示意图。4A-4B are schematic diagrams of enabling the "reminder function" provided by an embodiment of this application.
图5为本申请一实施例提供的环境音处理方法流程示意图。FIG. 5 is a schematic flowchart of an environmental sound processing method provided by an embodiment of the application.
图6A-图6D为本申请一实施例的手动设置环境音内容及阈值的界面示意图。6A-6D are schematic diagrams of an interface for manually setting environmental sound content and thresholds according to an embodiment of the application.
具体实施方式Detailed ways
本申请以下实施例中所使用的术语只是为了描述特定实施例的目的,而并非旨在作为对本申请的限制。如在本申请的说明书和所附权利要求书中所使用的那样,单数表达形式“一个”、“一种”、“所述”、“上述”、“该”和“这一”旨在也包括复数表达形式,除非其上下文中明确地有相反指示。还应当理解,本申请中使用的术语“和/或”是指并包含一个或多个所列出项目的任何或所有可能组合。例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The terms used in the following embodiments of the application are only for the purpose of describing specific embodiments, and are not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a", "an", "said", "above", "the" and "this" are intended to also Including plural expressions, unless the context clearly indicates to the contrary. It should also be understood that the term "and/or" used in this application refers to and includes any or all possible combinations of one or more of the listed items. For example, A and/or B can mean: A alone exists, A and B exist at the same time, and B exists alone.
本申请以下实施例提供了一种环境音处理方法及相关装置,电子设备或者头戴式设备可以根据环境音,判断在当前场景下用户是否有感知外界环境的需求,若是,则电子设备或头戴式设备可以输出提示信息或者外界环境的声音信号,使得用户能够感知外界环境,从而做出对应的反应。The following embodiments of the present application provide an environmental sound processing method and related devices. The electronic device or head-mounted device can determine whether the user has a need to perceive the external environment in the current scene based on the environmental sound. If so, the electronic device or head The wearable device can output prompt information or sound signals of the external environment, so that the user can perceive the external environment and make corresponding responses.
在本申请以下实施例中,在智能手机等电子设备的“提醒功能”开启的条件下,电子设备或者头戴式设备可以自动识别用户所处的场景,并根据用户所处的场景对用户进行提示,进而可以满足用户在不同场景下对于外界环境的感知需求。In the following embodiments of the present application, under the condition that the "reminder function" of electronic devices such as smart phones is turned on, the electronic device or head-mounted device can automatically recognize the scene the user is in, and perform actions on the user according to the scene the user is in. Prompts, in turn, can meet the user's perception needs of the external environment in different scenarios.
其中,“提醒功能”可以是电子设备提供的一种服务或功能,可以以APP的形式安装于电子设备中。在本申请实施例中,“提醒功能”可支持该电子设备在用户使用头戴式设备时对用户进行提示。在本申请实施例中,电子设备在用户使用头戴式设备时对用户进行提示是指,在用户使用头戴式设备时,电子设备或者头戴式设备可以根据预设环境音判断当前场景下用户是否需要感知外界环境,当确定用户需要感知外界环境,电子设备或者头戴式设备发出提示信息或者外界环境的声音信号以提醒用户留意当前场景下的外界环境。这里,“提醒功能” 支持电子设备在用户使用头戴式设备时所提供的提醒功能的方式可参照后续实施例的相关描述,在此暂不赘述。Among them, the "reminder function" may be a service or function provided by the electronic device, and may be installed in the electronic device in the form of an APP. In the embodiment of the present application, the "reminder function" can support the electronic device to prompt the user when the user uses the head-mounted device. In the embodiments of the present application, the electronic device prompting the user when the user uses the head-mounted device means that when the user uses the head-mounted device, the electronic device or the head-mounted device can determine the current scene according to the preset environmental sound Whether the user needs to perceive the external environment, when it is determined that the user needs to perceive the external environment, the electronic device or head-mounted device sends out a prompt message or a sound signal of the external environment to remind the user to pay attention to the external environment in the current scene. Here, the "reminder function" supports the reminder function provided by the electronic device when the user uses the head-mounted device, refer to the related description of the subsequent embodiments, and will not be repeated here.
在本申请实施例中,开启电子设备的“提醒功能”后,当用户使用头戴式设备时,电子设备或者头戴式设备可以根据环境音,判断在当前场景下用户是否需要感知外界环境,若是,则电子设备或头戴式设备可以输出提示信息或者外界环境的声音信号,使得用户能够感知外界环境,从而做出对应的反应,进而提高用户使用头戴式设备的安全性。而关闭电子设备的“提醒功能”后,该电子设备和该头戴式设备将不会判断用户是否有感知外界环境的需求,也不会发出提示信息。本申请实施例中,用户可以根据自身的需求而选择是否需要启动该提醒功能。例如,当用户在家里休息,并只想通过头戴式设备聆听优美的音乐且不希望被外界环境打扰时,可以选择关闭该“提醒功能”。而当用户在马路行行走且使用头戴式设备在打电话时,此时希望获知马路上车辆的鸣笛声,以提高行走的安全性,此时可选择开启该“提醒功能”。这样,可以更好的满足用户的需求,提高用户体验。In the embodiment of this application, after the "reminder function" of the electronic device is turned on, when the user uses the head-mounted device, the electronic device or the head-mounted device can determine whether the user needs to perceive the external environment in the current scene according to the environmental sound. If so, the electronic device or the head-mounted device can output prompt information or sound signals of the external environment, so that the user can perceive the external environment, so as to make a corresponding response, thereby improving the safety of the user using the head-mounted device. After the "reminder function" of the electronic device is turned off, the electronic device and the head-mounted device will not determine whether the user has a need to perceive the external environment, and will not send out prompt messages. In the embodiment of the present application, the user can choose whether to activate the reminder function according to his own needs. For example, when a user is resting at home and only wants to listen to beautiful music through a head-mounted device and does not want to be disturbed by the external environment, he can choose to turn off the "reminder function". When the user is walking on the road and using the head-mounted device to make a phone call, at this time, he wants to know the whistle of the vehicles on the road to improve the safety of walking. At this time, he can choose to turn on the "reminder function". In this way, the needs of users can be better met and user experience can be improved.
可以理解的是,“提醒功能”只是本实施例中所使用的一个词语,其代表的含义在本实施例中已经记载,其名称并不能对本实施例构成任何限制。It is understandable that "reminder function" is only a word used in this embodiment, and its representative meaning has been recorded in this embodiment, and its name does not constitute any limitation on this embodiment.
首先介绍本申请以下实施例中提供的示例性音频播放系统1000。First, an exemplary audio playback system 1000 provided in the following embodiments of the present application is introduced.
请参考图1,图1示出了本申请一实施例提供的音频播放系统1000的结构示意图。如图1所示,该音频播放系统1000可包括:电子设备100及头戴式设备300。Please refer to FIG. 1, which shows a schematic structural diagram of an audio playback system 1000 provided by an embodiment of the present application. As shown in FIG. 1, the audio playback system 1000 may include: an electronic device 100 and a head-mounted device 300.
在本申请实施例中,电子设备100用于发送音频信号至头戴式设备300以进行播放。电子设备100可以为手机、平板电脑、个人数字助理(personal digital assistant,PDA)、可穿戴设备等便携式电子设备。便携式电子设备的示例性实施例包括但不限于搭载iOS、Android、Microsoft或者其他操作系统的便携式电子设备。上述便携式电子设备也可以是其他便携式电子设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(laptop)等。还应当理解的是,在本申请其他一些实施例中,电子设备100也可以不是便携式电子设备,而是具有触敏表面(例如触控面板)的台式计算机或者车载设备等。In the embodiment of the present application, the electronic device 100 is used to send audio signals to the head-mounted device 300 for playback. The electronic device 100 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), and a wearable device. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with iOS, Android, Microsoft or other operating systems. The aforementioned portable electronic device may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (such as a touch panel). It should also be understood that in some other embodiments of the present application, the electronic device 100 may not be a portable electronic device, but a desktop computer or a vehicle-mounted device with a touch-sensitive surface (such as a touch panel).
在本申请的一些实施例中,电子设备100可以获取当前场景,确定当前场景下的预设环境音,采集外界环境的声音信号,匹配预设环境音以及提示用户等。其中,电子设备可以根据用户当前的位置信息、用户的行为体征信息、外界环境的语音内容中的至少一种来确定用户当前的所处场景。In some embodiments of the present application, the electronic device 100 may obtain the current scene, determine the preset environmental sound in the current scene, collect the sound signal of the external environment, match the preset environmental sound, and prompt the user. The electronic device may determine the current scene of the user according to at least one of the user's current location information, the user's behavior sign information, and the voice content of the external environment.
头戴式设备300用于将电子设备100提供的音频信号转化成声音信号以供用户收听。本申请实施例中,头戴式设备300为耳机。其中,根据佩戴方式进行分类,耳机300还可以是入耳式耳机、头戴式耳机或者耳塞式耳机。头戴式设备300可以是有线头戴式设备也可以是无线头戴式设备。例如,当头戴式设备300为有线头戴式设备时,其可以通过插接的方式与所述电子设备100相通信。当头戴式设备300为无线头戴式设备时,其可以通过蜂窝网络、WiFi网络、蓝牙网络或者其他无线通信方式与电子设备100建立通信连接。The head-mounted device 300 is used to convert the audio signal provided by the electronic device 100 into a sound signal for the user to listen to. In the embodiment of the present application, the headset 300 is a headset. Among them, classified according to the wearing mode, the earphone 300 may also be an in-ear earphone, a headphone or an earbud earphone. The head-mounted device 300 may be a wired head-mounted device or a wireless head-mounted device. For example, when the head-mounted device 300 is a wired head-mounted device, it can communicate with the electronic device 100 in a plug-in manner. When the head-mounted device 300 is a wireless head-mounted device, it may establish a communication connection with the electronic device 100 through a cellular network, a WiFi network, a Bluetooth network, or other wireless communication methods.
具体的,当头戴式设备300与电子设备100通信连接时,头戴式设备300将电子设备100中的媒体播放器所发出的电信号转换成声音信号并通过贴近耳朵的扬声器播放,进而使用户可以在不影响其他人的前提下收听各种音频信号。其中,媒体播放器是指电子设备100中用来播放多媒体文件的应用程序,例如,“酷狗音乐”、“优酷视频”及“QQ音乐”等。Specifically, when the head-mounted device 300 is in communication with the electronic device 100, the head-mounted device 300 converts the electrical signal emitted by the media player in the electronic device 100 into a sound signal and plays it through the speaker close to the ear, thereby enabling Users can listen to various audio signals without affecting others. Among them, the media player refers to an application program used in the electronic device 100 to play multimedia files, for example, "Kugou Music", "Youku Video", and "QQ Music".
在本申请的一些实施例中,头戴式设备300也可以获取当前场景,确定当前场景下的预 设环境音,采集外界环境的声音信号,匹配预设环境音以及提示用户等。其中,头戴式设备300也可以根据用户当前的位置信息、用户的行为体征信息、外界环境的语音内容中的至少一种来确定用户当前所处的场景。In some embodiments of the present application, the head-mounted device 300 may also obtain the current scene, determine the preset environmental sound in the current scene, collect the sound signal of the external environment, match the preset environmental sound, and prompt the user. The head-mounted device 300 may also determine the current scene of the user according to at least one of the user's current location information, the user's behavior sign information, and the voice content of the external environment.
接着介绍本申请以下实施例中提供的示例性电子设备100。Next, an exemplary electronic device 100 provided in the following embodiments of the present application is introduced.
图2示出了电子设备100的结构示意图。FIG. 2 shows a schematic diagram of the structure of the electronic device 100.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2. , Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include pressure sensor 180A, gyroscope sensor 180B, air pressure sensor 180C, magnetic sensor 180D, acceleration sensor 180E, distance sensor 180F, proximity light sensor 180G, fingerprint sensor 180H, temperature sensor 180J, touch sensor 180K, ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,电子设备100也可以包括一个或多个处理器110。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors. In some embodiments, the electronic device 100 may also include one or more processors 110.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。Among them, the controller may be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了电子设备100的效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the electronic device 100 is improved.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传 感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple sets of I2C buses. The processor 110 may be coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to realize the touch function of the electronic device 100.
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to realize communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙头戴式设备接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communication to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices. The MIPI interface includes camera serial interface (camera serial interface, CSI), display serial interface (display serial interface, DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on. GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones and play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely a schematic description, and does not constitute a structural limitation of the electronic device 100. In other embodiments, the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive the charging input of the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna can be used in combination with a tuning switch.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic waves for radiation via the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。示例性地,无线通信模块160可以包括蓝牙模块、Wi-Fi模块等。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic wave radiation via the antenna 2. Exemplarily, the wireless communication module 160 may include a Bluetooth module, a Wi-Fi module, and the like.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite-based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等可以实现显示功能。GPU为图 像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行指令以生成或改变显示信息。The electronic device 100 can implement a display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute instructions to generate or change display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active-matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats. In some embodiments, the electronic device 100 may include 1 or N cameras 193, and N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects the frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)-1,MPEG-2,MPEG-3,MPEG-4等。Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in a variety of encoding formats, such as: moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, MPEG-4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information and can continuously learn by itself. The NPU can realize applications such as intelligent cognition of the electronic device 100, such as image recognition, face recognition, voice recognition, text understanding, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐、照片、视频等数据保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, photos, videos and other data in an external memory card.
内部存储器121可以用于存储一个或多个计算机程序,该一个或多个计算机程序包括指令。处理器110可以通过运行存储在内部存储器121的上述指令,从而使得电子设备100执行本申请一些实施例中所提供的环境音处理方法,以及各种功能应用以及数据处理等。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统;该存储程序区还可以存储一个或多个应用程序(比如图库、联系人等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如照片,联系人等)。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store one or more computer programs, and the one or more computer programs include instructions. The processor 110 can run the above-mentioned instructions stored in the internal memory 121 to enable the electronic device 100 to execute the environmental sound processing methods provided in some embodiments of the present application, as well as various functional applications and data processing. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store the operating system; the storage program area can also store one or more application programs (such as a gallery, contacts, etc.) and so on. The data storage area can store data (such as photos, contacts, etc.) created during the use of the electronic device 100. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), etc.
在申请的一些实施例中,内部存储器121可以用于存储预设的多个场景、每个场景下的预设环境音以及每个场景与该场景下对应的预设环境音的关联关系。In some embodiments of the application, the internal memory 121 may be used to store multiple preset scenes, the preset environmental sounds in each scene, and the association relationship between each scene and the corresponding preset environmental sounds in the scene.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。在本申请的一些实施例中,电子设备100可以通过麦克风170C采集外界环境的声音信号。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can approach the microphone 170C through the mouth to make a sound, and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions. In some embodiments of the present application, the electronic device 100 may collect sound signals of the external environment through the microphone 170C.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。在本申请实施例中,电子设备100可以通过耳机接口170D与有线耳机300相连接。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface. In the embodiment of the present application, the electronic device 100 may be connected to the wired earphone 300 through the earphone interface 170D.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on. The capacitive pressure sensor may include at least two parallel plates with conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations that act on the same touch location but have different touch operation strengths may correspond to different operation instructions. For example: when a touch operation whose intensity of the touch operation is less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the movement posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (ie, x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Furthermore, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。在本申请实施例中,电子设备100可以通过加速度传感器180E确定用户的运动行为。The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and used in applications such as horizontal and vertical screen switching, pedometers, etc. In the embodiment of the present application, the electronic device 100 may determine the user's motion behavior through the acceleration sensor 180E.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F, used to measure distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也可称触控面板或触敏表面。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。The touch sensor 180K can also be called a touch panel or a touch-sensitive surface. The touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal. In some embodiments, the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone. The audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function. The application processor may analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电 子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The electronic device 100 can receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback. For example, touch operations applied to different applications (such as photographing, audio playback, etc.) can correspond to different vibration feedback effects. Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminding, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. The same SIM card interface 195 can insert multiple cards at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the electronic device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
图2示例性所示的电子设备100可以通过显示屏194显示以下各个实施例中所描述的各个用户界面。电子设备100可以通过触摸传感器180K在各个用户界面中检测触控操作,例如在各个用户界面中的点击操作(如在图标上的触摸操作、双击操作),又例如在各个用户界面中的向上或向下的滑动操作,或执行画圆圈手势的操作,等等。在一些实施例中,电子设备100可以通过陀螺仪传感器180B、加速度传感器180E等检测用户手持电子设备100执行的运动手势,例如晃动电子设备。在一些实施例中,电子设备100可以通过摄像头193(如3D摄像头、深度摄像头)检测非触控的手势操作。The electronic device 100 exemplarily shown in FIG. 2 may display various user interfaces described in the following embodiments through a display screen 194. The electronic device 100 can detect touch operations in various user interfaces through the touch sensor 180K, such as a click operation in each user interface (such as a touch operation on an icon, a double-click operation), and for example, up or up in each user interface. Swipe down, or perform circle-drawing gestures, etc. In some embodiments, the electronic device 100 may detect the motion gesture performed by the user holding the electronic device 100, such as shaking the electronic device, through the gyroscope sensor 180B, the acceleration sensor 180E, and the like. In some embodiments, the electronic device 100 can detect non-touch gesture operations through the camera 193 (such as a 3D camera, a depth camera).
下面介绍本申请以下实施例中提供的示例性耳机300。The following describes an exemplary earphone 300 provided in the following embodiments of the present application.
图3示出了耳机300的结构示意图。FIG. 3 shows a schematic diagram of the structure of the earphone 300.
如图3所示,耳机300可包括:处理器310、存储器320、无线通信处理模块330、电源管理模块340、有线通信模块350、扬声器360、麦克风370、按键控制模块380及传感器模块390。As shown in FIG. 3, the headset 300 may include: a processor 310, a memory 320, a wireless communication processing module 330, a power management module 340, a wired communication module 350, a speaker 360, a microphone 370, a button control module 380, and a sensor module 390.
处理器310可用于读取和执行计算机可读指令。具体实现中,处理器310可主要包括控制器、运算器和寄存器。其中,控制器主要负责指令译码,并为指令对应的操作发出控制信号。运算器主要负责执行定点或浮点算数运算操作、移位操作以及逻辑操作等,也可以执行地址运算和转换。寄存器主要负责保存指令执行过程中临时存放的寄存器操作数和中间操作结果等。具体实现中,处理器310的硬件架构可以是专用集成电路(ASIC)架构、MIPS架构、ARM架构或者NP架构等等。The processor 310 may be used to read and execute computer readable instructions. In a specific implementation, the processor 310 may mainly include a controller, an arithmetic unit, and a register. Among them, the controller is mainly responsible for instruction decoding, and sends out control signals for the operation corresponding to the instruction. The arithmetic unit is mainly responsible for performing fixed-point or floating-point arithmetic operations, shift operations and logical operations, etc., and can also perform address operations and conversions. The register is mainly responsible for storing the register operands and intermediate operation results temporarily stored during the execution of the instruction. In specific implementation, the hardware architecture of the processor 310 may be an application specific integrated circuit (ASIC) architecture, MIPS architecture, ARM architecture, or NP architecture, and so on.
在一些实施例中,处理器310可以用于解析无线通信处理模块330和/或有线通信模块350接收到的信号,如电子设备100的广播的探测请求,电子设备100发送的连接请求,电子设备100发送的音频数据,等等。处理器310可以用于根据解析结果进行相应的处理操作,如生成探测响应,又如根据该音频数据控制所述扬声器模块360播放相应的声音信号,等等。In some embodiments, the processor 310 may be used to analyze signals received by the wireless communication processing module 330 and/or the wired communication module 350, such as a detection request broadcast by the electronic device 100, a connection request sent by the electronic device 100, and 100 audio data sent, and so on. The processor 310 may be configured to perform corresponding processing operations according to the analysis result, such as generating a detection response, or controlling the speaker module 360 to play corresponding sound signals according to the audio data, and so on.
在一些实施例中,处理器310还可以用于生成无线通信处理模块330和/或有线通信模块350向外发送的信号,如蓝牙广播信号、信标信号,又如向电子设备发送的用于反馈连接状态(如连接成功、连接失败等)的信号。In some embodiments, the processor 310 may also be used to generate signals sent by the wireless communication processing module 330 and/or the wired communication module 350, such as Bluetooth broadcast signals, beacon signals, and for example, signals sent to electronic devices. Feedback connection status (such as connection success, connection failure, etc.) signals.
存储器320与处理器310耦合,用于存储各种软件程序和/或多组指令。具体实现中,存储器320可包括高速随机存取的存储器,并且也可包括非易失性存储器,例如一个或多个磁盘存储设备、闪存设备或其他非易失性固态存储设备。存储器320可以存储操作系统,例如uCOS、VxWorks、RTLinux等嵌入式操作系统。存储器320还可以存储通信程序,该通信程序可用于与电子设备100,一个或多个服务器,或附加设备进行通信。The memory 320 is coupled with the processor 310, and is used to store various software programs and/or multiple sets of instructions. In a specific implementation, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 320 may store an operating system, such as embedded operating systems such as uCOS, VxWorks, and RTLinux. The memory 320 may also store a communication program, which may be used to communicate with the electronic device 100, one or more servers, or additional devices.
在申请的一些实施例中,存储器320可以用于存储预设的多个场景、每个场景下的预设环境音以及每个场景与该场景下对应的预设环境音的关联关系。In some embodiments of the application, the memory 320 may be used to store multiple preset scenes, preset environmental sounds in each scene, and an association relationship between each scene and the corresponding preset environmental sounds in the scene.
无线通信处理模块330可以包括蓝牙(BT)通信处理模块330A、Wi-Fi通信处理模块330B中的一项或多项。The wireless communication processing module 330 may include one or more of a Bluetooth (BT) communication processing module 330A and a Wi-Fi communication processing module 330B.
在一些实施例中,蓝牙(BT)通信处理模块、Wi-Fi通信处理模块中的一项或多项用于与电子设备100建立通信连接,且在建立通信连接后接收电子设备100所发送的音频信号,并将接收到的音频信号发送至处理器310进行处理。In some embodiments, one or more of the Bluetooth (BT) communication processing module and the Wi-Fi communication processing module are used to establish a communication connection with the electronic device 100, and receive the electronic device 100 after the communication connection is established. And send the received audio signal to the processor 310 for processing.
无线通信处理模块330还可以包括蜂窝移动通信处理模块(未示出)。蜂窝移动通信处理模块可以通过蜂窝移动通信技术与其他设备(如服务器)进行通信。The wireless communication processing module 330 may also include a cellular mobile communication processing module (not shown). The cellular mobile communication processing module can communicate with other devices (such as servers) through cellular mobile communication technology.
电源管理模块340用于从充电器接收充电输入,以为电池(图未示)进行充电。其中,充电器可以是无线充电器,也可以是有线充电器。电源管理模块340还用于连接处理器310。电源管理模块340接收电池和/或充电器的输入,为处理器310,存储器320和无线通信模块330等供电。The power management module 340 is used to receive charging input from the charger to charge the battery (not shown). Among them, the charger can be a wireless charger or a wired charger. The power management module 340 is also used to connect to the processor 310. The power management module 340 receives input from the battery and/or charger, and supplies power to the processor 310, the memory 320, the wireless communication module 330, and the like.
扬声器360,也称“喇叭”,用于将音频电信号转换为声音信号。具体地,头戴式设备300包括左扬声器和右扬声器,以便为用户的左耳和右耳分别提供声音。The speaker 360, also called a "speaker", is used to convert audio electrical signals into sound signals. Specifically, the head-mounted device 300 includes a left speaker and a right speaker, so as to provide sounds to the user's left and right ears, respectively.
麦克风370,也称“话筒”,“传声器”,用于将声音信号转换为电信号。头戴式设备300可以通过麦克风拾取用户周围的环境音,当用户佩戴头戴式设备300拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风370发声,将声音信号输入到麦克风370。麦克风370将声音信号转化为电信号后通过无线通信处理模块330或者有线通信模块350发送至电子设备100。具体地,头戴式设备300可以包括左拾音麦克风和右拾音麦克风。在本申请的一些实施例中,头戴式设备300可以通过麦克风370采集外界环境的声音信号。The microphone 370, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. The head-mounted device 300 can pick up ambient sounds around the user through a microphone. When the user wears the head-mounted device 300 to make a call or send voice information, the user can approach the microphone 370 through the mouth to make a sound and input the sound signal into the microphone 370. The microphone 370 converts the sound signal into an electric signal and then transmits it to the electronic device 100 through the wireless communication processing module 330 or the wired communication module 350. Specifically, the head-mounted device 300 may include a left pickup microphone and a right pickup microphone. In some embodiments of the present application, the head-mounted device 300 may collect sound signals of the external environment through the microphone 370.
按键控制模块380包括按键及实现按键功能的外围电路。其中,按键包括开机键,音量键等。通过按键可以实现开机、音量调节及接听电话等功能。按键190可以是机械按键。也可以是触摸式按键。The key control module 380 includes keys and peripheral circuits for realizing key functions. Among them, the buttons include power-on button, volume button and so on. The functions of turning on, adjusting the volume and answering calls can be realized through the buttons. The button 190 may be a mechanical button. It can also be a touch button.
传感器模块390包括心率传感器、温度传感器、脉搏传感器中的一项或者多项。当用户佩戴头戴式设备300时,传感器模块390可以采集用户的生命体征信息。例如,当所述所述传感器模块390包括温度传感器检测用户的体温。在另一实施例中,当传感器模块390包心率传感器时,且可以检测用户的心率。此外,所述传感器模块390还可以包括加速度传感器等运动传感器。在本申请的一些实施例中,头戴式设备300可以通过心率传感器、温度传感器、脉搏传感器中的至少一种来确定用户的生命体征。头戴式设备300还可以通过加速度传感器来确定用户的运动行为。The sensor module 390 includes one or more of a heart rate sensor, a temperature sensor, and a pulse sensor. When the user wears the head-mounted device 300, the sensor module 390 may collect vital signs information of the user. For example, when the sensor module 390 includes a temperature sensor to detect the body temperature of the user. In another embodiment, when the sensor module 390 includes a heart rate sensor, it can detect the user's heart rate. In addition, the sensor module 390 may also include motion sensors such as acceleration sensors. In some embodiments of the present application, the head-mounted device 300 may determine the vital signs of the user through at least one of a heart rate sensor, a temperature sensor, and a pulse sensor. The head-mounted device 300 can also determine the user's motion behavior through an acceleration sensor.
可以理解的是图3示意的结构并不构成对头戴式设备300的具体限定。在本申请另一些 实施例中,头戴式设备300可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in FIG. 3 does not constitute a specific limitation on the head-mounted device 300. In other embodiments of the present application, the head-mounted device 300 may include more or fewer components than those shown in the figure, or combine certain components, or split certain components, or arrange different components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.
下面介绍电子设备100提供的一些示例性用户界面(user interface,UI)。本申请各实施例中的术语“用户界面”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的一个图标、窗口、控件等界面元素,其中控件可以包括图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The following introduces some exemplary user interfaces (UI) provided by the electronic device 100. The term "user interface" in each embodiment of the present application is a medium interface for interaction and information exchange between an application or operating system and a user, and it realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operations that is displayed in a graphical manner. It can be an icon, window, control and other interface elements displayed on the display screen of an electronic device. The control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, Widgets, etc. Visual interface elements.
图4A示例性示出了电子设备100上的用于展示电子设备100安装的应用程序的示例性用户界面21。FIG. 4A exemplarily shows an exemplary user interface 21 on the electronic device 100 for displaying application programs installed by the electronic device 100.
用户界面21可包括:状态栏201,日历指示符202,天气指示符203,具有常用应用程序图标的托盘204,导航栏205,以及其他应用程序图标。其中:The user interface 21 may include: a status bar 201, a calendar indicator 202, a weather indicator 203, a tray 204 with commonly used application icons, a navigation bar 205, and other application icons. among them:
状态栏201可包括:移动通信信号(又可称为蜂窝信号)的一个或多个信号强度指示符201A、运营商名称(例如“中国移动”)201B、无线高保真(wireless fidelity,Wi-Fi)信号的一个或多个信号强度指示符201C,电池状态指示符201D、时间指示符201E。The status bar 201 may include: one or more signal strength indicators 201A of mobile communication signals (also called cellular signals), the name of the operator (for example, "China Mobile") 201B, and wireless fidelity (Wi-Fi) ) One or more signal strength indicators 201C, battery status indicator 201D, and time indicator 201E of the signal.
日历指示符202可用于指示当前时间,例如日期、星期几、时分信息等。The calendar indicator 202 can be used to indicate the current time, such as date, day of the week, hour and minute information, etc.
天气指示符203可用于指示天气类型,例如多云转晴、小雨等,还可以用于指示气温等信息。The weather indicator 203 can be used to indicate the type of weather, such as cloudy to clear, light rain, etc., and can also be used to indicate information such as temperature.
具有常用应用程序图标的托盘204可展示:电话图标204A、联系人图标204B、短信图标204C、相机图标204D。The tray 204 with icons of commonly used application programs can display: a phone icon 204A, a contact icon 204B, a short message icon 204C, and a camera icon 204D.
导航栏205可包括:返回键205A、主屏幕键205B、多任务键205C等系统导航键。当检测到用户点击返回键205A时,电子设备100可显示当前页面的上一个页面。当检测到用户点击主屏幕键205B时,电子设备100可显示主界面。当检测到用户点击多任务键205C时,电子设备100可显示用户最近打开的任务。各导航键的命名还可以为其他,本申请对此不做限制。不限于虚拟按键,导航栏205中的各导航键也可以实现为物理按键。The navigation bar 205 may include system navigation keys such as a return key 205A, a home screen key 205B, and a multi-task key 205C. When detecting that the user clicks the return key 205A, the electronic device 100 may display the previous page of the current page. When it is detected that the user clicks the home button 205B, the electronic device 100 may display the home interface. When detecting that the user clicks on the multitasking key 205C, the electronic device 100 may display the task recently opened by the user. The naming of each navigation key can also be other, which is not limited in this application. It is not limited to virtual keys, and each navigation key in the navigation bar 205 can also be implemented as a physical key.
其他应用程序图标可例如:微信(Wechat)的图标206、QQ的图标207、推特(Twitter)的图标208、脸书(Facebook)的图标209、邮箱的图标210、云共享的图标211、备忘录的图标212、支付宝的图标213、图库的图标214、设置的图标215。用户界面21还可包括页面指示符216。其他应用程序图标可分布在多个页面,页面指示符216可用于指示用户当前浏览的是哪一个页面中的应用程序。用户可以左右滑动其他应用程序图标的区域,来浏览其他页面中的应用程序图标。Other application icons can be for example: Wechat icon 206, QQ icon 207, Twitter icon 208, Facebook icon 209, mailbox icon 210, cloud sharing icon 211, memo The icon 212 of, the icon 213 of Alipay, the icon 214 of gallery, and the icon 215 of settings. The user interface 21 may also include a page indicator 216. Other application program icons may be distributed on multiple pages, and the page indicator 216 may be used to indicate which application program in which page the user is currently browsing. The user can slide the area of other application icons left and right to browse application icons in other pages.
在一些实施例中,图4A示例性所示的用户界面21可以为主界面(Home screen)。In some embodiments, the user interface 21 exemplarily shown in FIG. 4A may be a home screen (Home screen).
可以理解的是,图4A仅仅示例性示出了电子设备100上的用户界面,不应构成对本申请实施例的限定。It can be understood that FIG. 4A only exemplarily shows the user interface on the electronic device 100, and should not constitute a limitation to the embodiment of the present application.
请再一并参阅图4B,图4A及图4B示例性示出了电子设备100上的一种开启“提醒功能”的操作。Please refer to FIG. 4B together. FIGS. 4A and 4B exemplarily show an operation of turning on the "reminder function" on the electronic device 100.
如图4A所示,当电子设备100检测到在状态栏201上的向下滑动手势时,响应于该手势,电子设备100可以在用户界面21上显示窗口217。如图4B所示,窗口217中可以显示 有“提醒功能”的开关控件217A,还可以显示有其他功能(如Wi-Fi、蓝牙、手电筒等等)的开关控件。当检测到在窗口217中的开关控件217A上的操作(如在开关控件217A上的触摸操作)时,响应于该操作,电子设备100可以开启“提醒功能”。As shown in FIG. 4A, when the electronic device 100 detects a downward sliding gesture on the status bar 201, in response to the gesture, the electronic device 100 may display a window 217 on the user interface 21. As shown in FIG. 4B, the window 217 may display a switch control 217A of "reminder function", and may also display switch controls of other functions (such as Wi-Fi, Bluetooth, flashlight, etc.). When an operation on the switch control 217A in the window 217 (such as a touch operation on the switch control 217A) is detected, in response to the operation, the electronic device 100 can turn on the "reminder function".
也就是说,用户可以在状态栏201处做一个向下滑动的手势来打开窗口217,并可以在窗口217中点击“提醒功能”的开关控件217A来方便地开启“提醒功能”。“提醒功能”的开关控件217A的表现形式可以为文本信息或者图标。That is, the user can make a downward sliding gesture on the status bar 201 to open the window 217, and can click the switch control 217A of the "reminder function" in the window 217 to conveniently turn on the "reminder function". The expression form of the switch control 217A of the "reminder function" may be text information or icons.
在一些实施方式中,“提醒功能”还可以通过用户在“设置”应用中的设置而打开。例如,在“设置”应用中,将“提醒功能”的设置项由“OFF”设置为“ON”即可将电子设备100的“提醒功能”开启。其中,“设置”应用是安装于智能手机、平板电脑等电子设备上的一款用于设置电子设备的各项功能的应用程序,本申请实施例对该应用程序的名称不做限制。In some implementations, the "reminder function" can also be turned on by the user's settings in the "Settings" application. For example, in the "Settings" application, setting the setting item of "Reminder Function" from "OFF" to "ON" can turn on the "Reminder Function" of the electronic device 100. Among them, the "settings" application is an application installed on electronic devices such as smart phones, tablet computers and the like for setting various functions of the electronic device, and the name of the application is not limited in the embodiment of the application.
在另一些实施方式中,还可以通过在电子设备100的显示屏194上输入特定的手势操作而打开。例如,用户通过在显示屏194上输入画圆形、画星形的手势操作而将“提醒功能”开启。此外,还可以通过语音输入的方式来将电子设备100的“提醒功能”开启。例如,当用户对着电子设备100说出“开启提醒功能”或者“请将提醒功能打开”时,电子设备100即可将“提醒功能”开启。In other embodiments, it can also be opened by inputting a specific gesture operation on the display screen 194 of the electronic device 100. For example, the user turns on the "reminder function" by inputting a gesture operation of drawing a circle or a star on the display 194. In addition, the "reminder function" of the electronic device 100 can also be turned on through voice input. For example, when the user says "enable the reminder function" or "please turn on the reminder function" to the electronic device 100, the electronic device 100 can turn on the "reminder function".
在其他实施方式中,还可以是当头戴式设备300与电子设备100相连后,默认开启该“提醒功能”。还可以是当头戴式设备300与电子设备100相连后,电子设备100的显示屏上显示一提示框以提示用户是否需要开启该“提醒功能”。例如,当头戴式设备300与电子设备100相连后,电子设备100的显示屏显示是否开启“提醒功能”,当用户选择“是”时,则开启该“提醒功能”,而当用户选择“否”时,则不开启该“提醒功能”。其中,当头戴式设备300为有线头戴式设备时,“头戴式设备300与电子设备100相连”是指头戴式设备300插入到电子设备100的头戴式设备接口中。而当头戴式设备300为无线头戴式设备时,“头戴式设备300与电子设备100相连”是指头戴式设备300与电子设备100建立通信连接。In other embodiments, it is also possible that when the head mounted device 300 is connected to the electronic device 100, the "reminder function" is enabled by default. It may also be that after the head-mounted device 300 is connected to the electronic device 100, a prompt box is displayed on the display screen of the electronic device 100 to prompt the user whether the "reminder function" needs to be turned on. For example, when the head mounted device 300 is connected to the electronic device 100, the display screen of the electronic device 100 displays whether the "reminder function" is turned on. When the user selects "Yes", the "reminder function" is turned on, and when the user selects " If no, the "reminder function" is not turned on. Wherein, when the head-mounted device 300 is a wired head-mounted device, “the head-mounted device 300 is connected to the electronic device 100” means that the head-mounted device 300 is inserted into the head-mounted device interface of the electronic device 100. When the head-mounted device 300 is a wireless head-mounted device, “the head-mounted device 300 is connected to the electronic device 100” means that the head-mounted device 300 establishes a communication connection with the electronic device 100.
可以理解的,上述“提醒功能”的开启方式仅仅是示例,并不作为对“提醒功能”开始方式的限定。即在实际应用中,还可采用其他方式来将电子设备100的“提醒功能”开启。It is understandable that the above-mentioned opening method of the "reminder function" is only an example, and is not intended to limit the start method of the "reminder function". That is, in practical applications, other methods may also be used to turn on the "reminder function" of the electronic device 100.
在本申请实施例中,通过上述实施例所示的操作来开启“提醒功能”后,当头戴式设备300与电子设备100连接后,电子设备100或者头戴式设备300可以根据预设环境音,判断在当前场景下用户是否有感知外界环境的需求,若是,则电子设备100或头戴式设备300可以输出提示信息,使得用户能够感知外界环境,从而做出对应的反应。In the embodiment of the present application, after the "reminder function" is turned on through the operation shown in the above embodiment, when the head-mounted device 300 is connected to the electronic device 100, the electronic device 100 or the head-mounted device 300 can be based on the preset environment To determine whether the user has a need to perceive the external environment in the current scene. If so, the electronic device 100 or the head-mounted device 300 can output prompt information so that the user can perceive the external environment and respond accordingly.
下面详细描述电子设备100或者头戴式设备300根据用户所处场景对用户进行提示的过程。The following describes in detail the process of the electronic device 100 or the head mounted device 300 prompting the user according to the user's scene.
示例性地,参见图5,图5示出了本申请实施例提供的电子设备100或头戴式设备300根据用户所处场景对环境音处理的方法的流程示意图。如图5所示,该方法可包括如下步骤:Exemplarily, referring to FIG. 5, FIG. 5 shows a schematic flow chart of a method for the electronic device 100 or the head-mounted device 300 provided in an embodiment of the present application to process environmental sounds according to the scene where the user is located. As shown in Figure 5, the method may include the following steps:
步骤S101,确定用户当前所处的场景。Step S101: Determine the current scene of the user.
下面对电子设备100或者头戴式设备300如何确定用户所处的场景的方式做详细的介绍。The following describes in detail how the electronic device 100 or the head-mounted device 300 determines the scene in which the user is located.
在第一实施方式中,电子设备100或者头戴式设备300可以根据用户当前的位置信息来确定用户当前所处的场景。例如,当用户的位置信息为一商业广场时,可以确定用户处于商场场景;当用户的位置信息为一街道上时,可以确定用户处于马路场景;当用户的位置信息为一住宅小区时,可以确定用户处于家里场景;当用户的位置信息为某一公园时,可以确定 用户处于公园场景等。具体地,电子设备100或者头戴式设备300可通过以下任意一种方式或者结合以下任意几种方式获取用户的位置信息:In the first embodiment, the electronic device 100 or the head-mounted device 300 can determine the scene where the user is currently located according to the current location information of the user. For example, when the user's location information is a commercial plaza, it can be determined that the user is in a shopping mall scene; when the user's location information is on a street, it can be determined that the user is in a road scene; when the user's location information is a residential area, it can be It is determined that the user is in the home scene; when the location information of the user is a certain park, it can be determined that the user is in the park scene. Specifically, the electronic device 100 or the head-mounted device 300 may obtain the user's location information in any of the following ways or a combination of the following ways:
1.电子设备100或者头戴式设备300通过全球导航卫星系统,例如GPS、GLONASS、BDS、QZSS或SBAS等获取经纬度坐标或者地理位置名称。1. The electronic device 100 or the head-mounted device 300 obtains the longitude and latitude coordinates or the geographic location name through a global navigation satellite system, such as GPS, GLONASS, BDS, QZSS, or SBAS.
2.电子设备100或者头戴式设备300采用基站定位的方式获取经纬度坐标。2. The electronic device 100 or the head-mounted device 300 acquires the latitude and longitude coordinates by means of base station positioning.
3.电子设备100或者头戴式设备300采用无线室内定位技术获取经纬度坐标或者地理位置名称。无线室内定位技术可包括Wi-Fi、射频识别(radio frequency identification,RFID)、蓝牙、红外、超声波等短距离无线技术。3. The electronic device 100 or the head-mounted device 300 adopts wireless indoor positioning technology to obtain the longitude and latitude coordinates or geographic location name. Wireless indoor positioning technologies may include short-range wireless technologies such as Wi-Fi, radio frequency identification (RFID), Bluetooth, infrared, and ultrasonic.
4.电子设备100或者头戴式设备300通过传感器采集到的数据获取位置信息。例如,电子设备100可通过气压传感器170B测量气压值,并根据测量得到的气压值计算海拔高度。电子设备100还可通过加速度传感器170C测量速度和加速度,并根据测量得到的速度、加速度和之前某个时间点的经纬度坐标计算当前时间点的经纬度坐标等。电子设备100还可以通过距离传感器170D测量和某个物体之间的距离,并根据测量到的距离和该物体的经纬度坐标计算自身的经纬度坐标等。4. The electronic device 100 or the head-mounted device 300 obtains location information through the data collected by the sensor. For example, the electronic device 100 may measure the air pressure value through the air pressure sensor 170B, and calculate the altitude based on the measured air pressure value. The electronic device 100 can also measure the speed and acceleration through the acceleration sensor 170C, and calculate the latitude and longitude coordinates of the current time point based on the measured speed, acceleration, and the latitude and longitude coordinates of a previous time point. The electronic device 100 can also measure the distance to an object through the distance sensor 170D, and calculate its own longitude and latitude coordinates based on the measured distance and the longitude and latitude coordinates of the object.
在本申请实施例中,电子设备100的部分传感器例如气压传感器170B、加速度传感器170C等可以连续长时间工作以采集数据,从而获取用户的位置信息。In the embodiment of the present application, some sensors of the electronic device 100, such as the air pressure sensor 170B, the acceleration sensor 170C, etc., can work continuously for a long time to collect data, so as to obtain the user's location information.
需要说明的是,由于头戴式设备300和电子设备100是配套使用的,电子设备100和头戴式设备300所获取的位置信息均是用户的位置信息,因此,本申请实施例中,可以通过电子设备100来获取用户的位置信息也可以通过头戴式设备300来获取用户的位置信息,即在实际应用中,可以根据具体需求而将用于获取位置信息所需要的装置设置于电子设备100中或者头戴式设备300中,在此不做限定。It should be noted that since the head-mounted device 300 and the electronic device 100 are used in conjunction, the location information acquired by the electronic device 100 and the head-mounted device 300 is the user's location information. Therefore, in the embodiment of the present application, The location information of the user can be acquired through the electronic device 100 or the location information of the user can be acquired through the head-mounted device 300. That is, in practical applications, the device required for acquiring location information can be set in the electronic device according to specific needs. 100 or the head-mounted device 300, there is no limitation here.
在第二实施方式中,电子设备100或者头戴式设备300可以根据用户的行为体征信息来确定用户当前所处的场景。其中,行为体征信息包括运动行为以及生命体征信息。例如,当检测到用户处于跑步状态时,则可以确定用户处于健身房场景或者公园场景;由于人处于睡眠或浅度休息状态时,体温会下降,因此当检测到用户的体温较低时,可以确定用户处于家里场景;此外,当用户处于运动状态时,心率会提升,因此当检测到用户的心率提升时,可以确定用户处于运动状态,进而确定用户处于健身房场景或者公园场景。电子设备100或者头戴式设备300可通过以下任意一种方式或者结合以下任意几种方式获取用户的行为体征信息:In the second embodiment, the electronic device 100 or the head-mounted device 300 can determine the scene where the user is currently located according to the user's behavioral sign information. Among them, the behavioral sign information includes sports behavior and vital sign information. For example, when it is detected that the user is running, it can be determined that the user is in a gym scene or a park scene; since the body temperature will drop when the person is in a sleep or light rest state, when it is detected that the user's body temperature is low, it can be determined The user is in a home scene; in addition, when the user is in an exercise state, the heart rate will increase, so when the user's heart rate is detected to increase, it can be determined that the user is in an exercise state, and then the user is in a gym scene or a park scene. The electronic device 100 or the head-mounted device 300 can obtain the user's behavioral sign information through any one of the following methods or a combination of the following methods:
1.电子设备100或者头戴式设备300通过加速度传感器测量速度和加速度,进而确定用户的运动行为。1. The electronic device 100 or the head-mounted device 300 measures the speed and acceleration through an acceleration sensor to determine the user's motion behavior.
2.电子设备100或者头戴式设备300通过温度传感器、心率传感器或者脉搏传感器来测量用户的生命体征。其中,温度传感器用于测量用户的体温;心率传感器用于测量用户的心率,心率传感器可以是光电式心率传感器、振动式心率传感器等;脉搏传感器用于测量用户的脉搏。2. The electronic device 100 or the head-mounted device 300 measures the vital signs of the user through a temperature sensor, a heart rate sensor, or a pulse sensor. Among them, the temperature sensor is used to measure the user's body temperature; the heart rate sensor is used to measure the user's heart rate, and the heart rate sensor can be a photoelectric heart rate sensor, a vibrating heart rate sensor, etc.; the pulse sensor is used to measure the user's pulse.
需要说明的是,由于生命体征信息需要贴近用户的皮肤才能测量,而电子设备100经常在距离用户一定距离范围内携带,因此,将该等传感器设置于佩戴于用户耳朵上的头戴式设备300中更容易测量用户的生命体征信息。例如,在用户运动的过程中,心率传感器贴合用户耳朵的皮肤,光电式心率传感器可以将心率信号转换成对应的电信号后输出至处理器310。It should be noted that since vital signs information needs to be close to the user’s skin to be measured, and the electronic device 100 is often carried within a certain distance from the user, these sensors are set on the head-mounted device 300 worn on the user’s ears. It is easier to measure the user’s vital signs information. For example, during the user's exercise, the heart rate sensor fits the skin of the user's ears, and the photoelectric heart rate sensor can convert the heart rate signal into a corresponding electrical signal and output it to the processor 310.
在第三实施方式中,电子设备100或者头戴式设备300可以根据所识别到的语音内容来 确定用户当前所处的场景。具体地,所述电子设备100或者头戴式设备300通过麦克风来对语音内容进行采集,当识别出语音内容中包含有特定的语音内容时,可以确定用户所处的场景。例如,当识别出语音内容中包括:“开始会议”、“大家上午好”等内容时,可以确定用户当前处于会议场景。可以理解的,特定的语音内容可以预先存储于电子设备100或者头戴式设备300存储器中。In the third embodiment, the electronic device 100 or the head-mounted device 300 can determine the current scene of the user according to the recognized voice content. Specifically, the electronic device 100 or the head-mounted device 300 collects voice content through a microphone, and when it is recognized that the voice content contains specific voice content, the scene where the user is located can be determined. For example, when it is recognized that the voice content includes: "Start meeting", "Good morning everyone", etc., it can be determined that the user is currently in a meeting scene. It is understandable that specific voice content may be stored in the memory of the electronic device 100 or the head-mounted device 300 in advance.
在第四实施方式中,电子设备100或者头戴式设备300可以根据接收到的用户输入或者选择的场景来确定用户当前所处的场景。例如,用户可以将当前的场景设置为马路场景或者家里场景。关于如对场景进行设置可参考后续实施例的描述,在此暂不赘述。In the fourth embodiment, the electronic device 100 or the head-mounted device 300 may determine the current scene of the user according to the received user input or selected scene. For example, the user can set the current scene as a road scene or a home scene. For setting the scene, please refer to the description of the subsequent embodiments, which will not be repeated here.
上述第一至第三实施例中,电子设备100或者头戴式设备300可以自动确定用户所处的场景,避免了手动设置的过程,具有便捷性。此外,上述第一至第三实施例中用于确定用户所处场景的方式可以结合使用也可以单独使用,在此不做限定。In the first to third embodiments described above, the electronic device 100 or the head-mounted device 300 can automatically determine the scene where the user is located, avoiding the manual setting process, and is convenient. In addition, the methods for determining the scene where the user is located in the above-mentioned first to third embodiments may be used in combination or alone, which is not limited here.
步骤S102,根据用户所处的场景确定与该场景所对应的预设环境音。Step S102: Determine a preset environmental sound corresponding to the scene according to the scene where the user is.
第一实施方式中,电子设备100或者头戴式设备300可以根据预存的场景与预设环境音之间的对应关系来确定当前场景下的预设环境音。即当确定用户当前所处的场景时,根据对应关系即可确定预设环境音。在本申请实施例中,电子设备100或头戴式设备300可以获知用户所处不同场景下的预设环境音。其中,各类场景以及每个场景下的预设环境音可以根据经验数据预先设置,例如可以由研发人员通过调研等方式确定适合不同场景的预设环境音,并将其预置在电子设备100、头戴式设备300或者云服务器(图未示)中。当预存的场景、预存的预设环境音以及场景与预设环境音之间的对应关系存储在云服务器中时,电子设备100或者头戴式设备300需要先获取该存储的数据。In the first embodiment, the electronic device 100 or the head-mounted device 300 may determine the preset environmental sound in the current scene according to the correspondence between the pre-stored scene and the preset environmental sound. That is, when determining the scene the user is currently in, the preset environmental sound can be determined according to the corresponding relationship. In the embodiment of the present application, the electronic device 100 or the head-mounted device 300 can learn preset environmental sounds in different scenarios where the user is located. Among them, various scenes and the preset environmental sounds in each scene can be preset according to empirical data. For example, the R&D personnel can determine the preset environmental sounds suitable for different scenes through research and other methods, and preset them in the electronic device 100. , The head-mounted device 300 or the cloud server (not shown). When the pre-stored scene, the pre-stored preset environmental sounds, and the correspondence between the scene and the preset environmental sounds are stored in the cloud server, the electronic device 100 or the head-mounted device 300 needs to obtain the stored data first.
具体地,在一实施方式中,电子设备100或者头戴式设备300需要根据用户所处的场景确定该场景下对应的预设环境音的内容。示例地,请参见表1,表1给出了几种场景下分别对应的预设环境音的内容。Specifically, in one embodiment, the electronic device 100 or the head-mounted device 300 needs to determine the content of the corresponding preset environmental sound in the scene according to the scene in which the user is located. For example, please refer to Table 1. Table 1 shows the contents of preset environmental sounds corresponding to several scenarios.
表1不同场景对应的预设环境音的内容Table 1 Contents of preset environmental sounds corresponding to different scenarios
场景Scenes 预设环境音的内容The content of the preset ambient sound
家里场景Home scene 敲门声、家电警报音、闹钟声、儿童哭闹声Knocking at the door, home appliance alarm sound, alarm clock, children crying
公园场景Park scene 雷雨声、呼喊声、狗叫声、打招呼声(嗨,喂,你好等)Thunderstorm, shouting, dog barking, greeting (Hi, hello, hello, etc.)
商场场景Mall scene 打招呼声、警报声、用户姓名声Greetings, alarms, user names
马路场景Road scene 鸣笛声、自行车铃声、报站声、警报声Whistle, bicycle bell, stop announcement, alarm
会议场景Meeting scene 用户姓名声、打招呼声、开门声、手机铃声User name, greeting, door opening, cell phone ringtone
其中,表1仅是示例,在表1中每个场景下的预设环境音内容可以部分相同。例如,公园场景和会议场景中都包括“打招呼声”。在实际应用中,场景的类别也不仅限于表1所示的各类场景,每个场景下的预设环境音的内容也不限于上述表1中所示的示例。Among them, Table 1 is only an example, and the preset environmental sound content in each scene in Table 1 may be partially the same. For example, both the park scene and the meeting scene include "hello." In practical applications, the types of scenes are not limited to the various scenes shown in Table 1, and the content of the preset environmental sounds in each scene is not limited to the examples shown in Table 1 above.
在另一些实施方式中,电子设备100或者头戴式设备300需要根据用户所处的场景确定该场景下对应的预设环境音的内容及每个预设环境音所对应的阈值。示例地,请参见表2,表2给出了几种场景下分别对应的预设环境音内容以及每个预设环境音所对应的阈值,其中,阈值包括响度阈值、持续时间的阈值和重复次数的阈值中的至少一种。In other embodiments, the electronic device 100 or the head-mounted device 300 needs to determine the content of the corresponding preset environmental sounds in the scene and the threshold corresponding to each preset environmental sound according to the scene where the user is located. For example, please refer to Table 2. Table 2 shows the preset environmental sound content corresponding to several scenarios and the threshold corresponding to each preset environmental sound. Among them, the threshold includes the loudness threshold, the duration threshold and the repeat At least one of the thresholds of the number of times.
表2不同场景对应的预设环境音的内容及相应的阈值Table 2 The content of the preset environmental sounds corresponding to different scenarios and the corresponding thresholds
Figure PCTCN2020098733-appb-000001
Figure PCTCN2020098733-appb-000001
其中,表2仅是示例,在表2中每个场景下的不同预设环境音的响度阈值相同,可以理解,在实际应用中,相同场景下的不同的预设环境音也可以设置不同的响度阈值,场景的类别也不仅限于表2所示的各类场景,每个场景下的预设环境音的内容及相应的阈值也不限于上述表2中所示的示例。Among them, Table 2 is only an example. In Table 2, the loudness thresholds of different preset environmental sounds in each scene are the same. It can be understood that in practical applications, different preset environmental sounds in the same scene can also be set to different The loudness threshold and the types of scenes are not limited to the various scenes shown in Table 2, and the content of the preset ambient sound in each scene and the corresponding threshold are not limited to the examples shown in Table 2 above.
其中,响度阀值为声音响度的一个门限值,其可以根据不同的场景进行预先设定。例如,对于马路场景下的汽车喇叭声、自行车铃声、警报声等危险信号的声音信息,可以采取较高响度阀值(比如75分贝),以用户在听到该声音信号能够及时避开危险的情况进行设定;再如:在会议场景下的对于他人呼叫的姓名声音,可以采取最低响度阀值(比如45分贝),以灵敏的拾取到声音,避免被交到名字却听不见的现象。此处根据不同的场景设定不同的响度阈值,既可避免过于灵敏的采集环境信号而干扰头戴式设备300的正常工作,以保证头戴式设备300的正常工作,又可灵敏的进行声音的拾取,很好的将外界有效的环境声音信号通知到用户。Among them, the loudness threshold is a threshold of sound loudness, which can be preset according to different scenarios. For example, for the sound information of dangerous signals such as car horns, bicycle bells, and alarm sounds in a road scene, a higher loudness threshold (such as 75 decibels) can be adopted so that the user can avoid dangerous signals in time when hearing the sound signal. Set the situation; another example: In the meeting scene, the minimum loudness threshold (for example, 45 decibels) can be adopted for the name of the name called by others, to pick up the sound sensitively, and avoid the phenomenon of being handed over but not audible. Here, different loudness thresholds are set according to different scenes, which can not only avoid excessively sensitive collection of environmental signals and interfere with the normal operation of the head-mounted device 300, so as to ensure the normal operation of the head-mounted device 300, but also sensitive sound. The picking up, it is a good way to inform the user of the effective external sound signal.
第二实施方式中,电子设备100或者头戴式设备300可以根据接收到的用户输入或选择来确定当前场景下的预设环境音。在本实施方式中,以电子设备100为例来进行说明,当“设置”应用(图4A中的215)接收到用户的操作(如触摸操作)时,可以进入如图6A所示的设置界面。如图6A所示,该用户界面10可包括状态栏101、标题栏102、“手动模式”的开关控件103及提示信息104。其中,状态栏101可参照图4A所示的用户界面21中的状态栏201,这里不再赘述。In the second embodiment, the electronic device 100 or the head-mounted device 300 can determine the preset ambient sound in the current scene according to the received user input or selection. In this embodiment, the electronic device 100 is taken as an example for description. When the "Settings" application (215 in FIG. 4A) receives a user's operation (such as a touch operation), it can enter the setting interface as shown in FIG. 6A . As shown in FIG. 6A, the user interface 10 may include a status bar 101, a title bar 102, a switch control 103 for "manual mode", and prompt information 104. The status bar 101 can refer to the status bar 201 in the user interface 21 shown in FIG. 4A, which will not be repeated here.
标题栏102可包括:当前页面指示符102A和102B。其中,当前页面指示符102A和102B可用于指示当前页面,例如文本信息“设置”“提醒功能”可用于指示当前页面用于展示提醒功能设置项的对应内容,不限于文本信息,当前页面指示符102A和102B还可以是图标。The title bar 102 may include current page indicators 102A and 102B. Among them, the current page indicators 102A and 102B can be used to indicate the current page. For example, the text information "settings" and "reminder function" can be used to indicate that the current page is used to display the corresponding content of the reminder function setting items. It is not limited to text information, the current page indicator 102A and 102B may also be icons.
开关控件103用于监听开启/关闭“手动模式”的操作(例如触摸操作)。如图6B所示,当检测到在开关控件103上的操作(如在开关控件103上的触摸操作)时,响应于该操作,电子设备100可以开启“手动模式”。开关控件103的表现形式可以为文本信息或者图标。The switch control 103 is used to monitor the operation (for example, touch operation) of turning on/off the "manual mode". As shown in FIG. 6B, when an operation on the switch control 103 (such as a touch operation on the switch control 103) is detected, in response to the operation, the electronic device 100 can turn on the "manual mode". The form of the switch control 103 can be text information or icons.
提示信息104可用于介绍“手动模式”,提示用户“手动模式”的作用。提示信息104的表现形式可以为文本信息或者图标。The prompt message 104 can be used to introduce the "manual mode" and prompt the user the function of the "manual mode". The presentation form of the prompt information 104 may be text information or an icon.
当“手动模式”开启后呈现图6B所示的用户界面20,场景选择或设定设置项105和预设环境音设定选项106会呈现于当前应用界面20上。在一实施方式中,电子设备100可以根据用户手动输入内容来确定当前的场景。例如,用户在“请选择或输入场景”区域手动输入“马路场景”,则在该区域显示“马路场景”字样(参图6C)。在另一实施方式中,电子设备100还可以根据用户选择的场景来确定用户当前所处的场景。例如,当用户触摸该“请选择或输入场景”的区域时,电子设备100可以显示一包括各种场景的列表,而当用户选择其中的马路场景时,该场景则显示在“请选择或输入场景”区域(参图6C)。当设置好场景后,电子设备100还根据用户的输入或者选择来确定该场景下的预设环境音。其中,预设环境音的设置方式可参场景设置的方式,在此不再赘述。When the “manual mode” is turned on, the user interface 20 shown in FIG. 6B is presented, and the scene selection or setting setting items 105 and the preset environmental sound setting options 106 are presented on the current application interface 20. In an embodiment, the electronic device 100 may determine the current scene according to the content manually input by the user. For example, if the user manually enters "road scene" in the "please select or input scene" area, the words "road scene" are displayed in this area (refer to FIG. 6C). In another embodiment, the electronic device 100 may also determine the scene the user is currently in according to the scene selected by the user. For example, when the user touches the area of "Please select or enter a scene", the electronic device 100 may display a list including various scenes, and when the user selects a road scene, the scene is displayed in the "Please select or enter Scene" area (see Figure 6C). After the scene is set, the electronic device 100 also determines the preset environmental sound in the scene according to the user's input or selection. Among them, the setting method of the preset environmental sound can refer to the setting method of the scene, which will not be repeated here.
此外,在一实施例中,当检测到用户手动模式开启的次数大于预设次数时,还可以根据用户设置的环境音的内容对自动模式中该场景下的预设环境音的内容进行修正。在另一些实施方式中,还可以根据用户设置的阈值对自动模式下的预设环境音的阈值进行修正。如此可以提高自动模式下对预设环境音确定的准确性,使得用户体验更佳。In addition, in an embodiment, when it is detected that the number of times that the user's manual mode is turned on is greater than the preset number of times, the content of the preset environmental sound in the scene in the automatic mode can also be corrected according to the content of the environmental sound set by the user. In other embodiments, the preset environmental sound threshold in the automatic mode may be corrected according to the threshold set by the user. In this way, the accuracy of determining the preset environmental sound in the automatic mode can be improved, and the user experience can be better.
具体地,不同场景下的预设环境音内容及相应的阈值也可以存储于云服务器中,电子设备100或者头戴式设备300从云服务器500获取该内容。由于云服务器与不同的头戴式设备300和电子设备100相通信,随着越来越多的电子设备100或头戴式设备300投入使用,会产生越来越丰富的数据。云服务器可以获取到这些数据并根据大数据统计算法对不同场景下的预设环境音内容及相应的阈值进行统计与分析,进而可以根据统计与分析结果定期对不同场景下的预设环境音内容及相应的阈值进行修正更新,如此,可以更贴近用户的需求,提高用户体验。例如,根据大数据统计分析,在家里场景下,用户设置的环境音内容多为闹钟声和敲门声且响度阈值设置为45分贝,因此,可以根据该结果对预设环境音内容及响度阈值进行调整。Specifically, preset environmental sound content and corresponding thresholds in different scenarios may also be stored in a cloud server, and the electronic device 100 or the head-mounted device 300 obtains the content from the cloud server 500. Since the cloud server communicates with different head-mounted devices 300 and electronic devices 100, as more and more electronic devices 100 or head-mounted devices 300 are put into use, more and more abundant data will be generated. The cloud server can obtain these data and perform statistics and analysis on the preset environmental sound content and corresponding thresholds in different scenarios according to the big data statistical algorithm, and then can periodically check the preset environmental sound content in different scenarios based on the statistics and analysis results And the corresponding threshold value is revised and updated, so that it can be closer to the needs of users and improve user experience. For example, according to big data statistical analysis, in the home scene, the environmental sound content set by the user is mostly alarms and door knocks, and the loudness threshold is set to 45 decibels. Therefore, the environmental sound content and loudness threshold can be preset based on the result Make adjustments.
请参阅6D,在第三实施方式中,所述电子设备100还可以根据接收到的用户输入或选择来确定预设环境音。在本申请实施例中,不管处于什么场景,其对应的预设环境音内容或者其对应的预设环境音内容及阈值都是相同的。即预设环境音内容或者预设环境音内容及阈值不会随着场景的改变而发生变化。例如,当手动模式开启后,用户将预设环境音设置为鸣笛声和闹钟声,此时,不论用户处于何种场景,预设环境音内容都鸣笛声和闹钟声。这样,可以满足不同特殊用户的特殊需求,使得电子设备100更具有实用性。Referring to 6D, in the third embodiment, the electronic device 100 may also determine the preset environmental sound according to the received user input or selection. In the embodiments of the present application, no matter what the scene is, the corresponding preset environmental sound content or the corresponding preset environmental sound content and threshold are the same. That is, the preset environmental sound content or the preset environmental sound content and threshold will not change with the change of the scene. For example, when the manual mode is turned on, the user sets the preset environmental sounds as a whistle sound and an alarm sound. At this time, no matter what scene the user is in, the content of the preset environmental sound is a whistle sound and an alarm sound. In this way, the special needs of different special users can be met, making the electronic device 100 more practical.
步骤S103,采集外界环境的声音信号。Step S103: Collect sound signals of the external environment.
外界环境声音信号是指外界环境中可以拾取的所有声音信号,包括汽车喇叭声、行人说话声、自行车铃声、外界播放的音乐、狗叫声、闹铃声等。在一些实施方式中,可以通过电子设备100或者头戴式设备300上的麦克风来对外界环境中的声音信号进行采集。具体地,可以采用至少一个普通的全指向性麦克风进行拾音,还可以通过声音传感器或者其他具有拾音功能的装置对外界环境中的声音信号进行采集,在此不做限定。The external environment sound signal refers to all the sound signals that can be picked up in the external environment, including car horns, pedestrian voices, bicycle ringtones, music played outside, dog barking, alarm bells, etc. In some embodiments, a microphone on the electronic device 100 or the head-mounted device 300 may be used to collect sound signals in the external environment. Specifically, at least one common omnidirectional microphone can be used to pick up the sound, and the sound signal in the external environment can also be collected through a sound sensor or other devices with a sound pickup function, which is not limited here.
步骤S104,当采集到的声音信号与当前场景对应的预设环境音匹配时,输出外界环境的声音信号或者输出提示信息。Step S104: When the collected sound signal matches the preset environmental sound corresponding to the current scene, output the sound signal of the external environment or output prompt information.
在一些实施方式中,当采集到的声音信号包括预设环境音时,即可判定采集到的声音信号与当前场景对应的预设环境音匹配。例如,当确定当前用户所处的场景为马路场景时,对应的环境音内容为鸣笛声、自行车铃声及报站声,而对所采集的外界环境的声音信号进行识别后,发现当前环境的声音信号中包括了汽车鸣笛声,此时可以确定外界环境的声音信号与 预设环境音匹配。In some embodiments, when the collected sound signal includes the preset environmental sound, it can be determined that the collected sound signal matches the preset environmental sound corresponding to the current scene. For example, when it is determined that the scene where the current user is located is a road scene, the corresponding environmental sound content is whistle, bicycle bell, and stop announcement. After identifying the collected sound signals of the external environment, it is found that the current environment The sound signal includes the car whistle sound. At this time, it can be determined that the sound signal of the external environment matches the preset environmental sound.
在另一些实施方式中,当采集到的声音信号包括预设环境音且阈值达到预设阈值时,判定采集到的声音信号与预设环境音匹配。其中,阈值包括响度阈值、持续时间阈值和重复次数阈值中的至少一种。举例来说,当采集到的声音信号包括预设环境音且声音信号的响度大于预设的响度阈值(比如55分贝)时,可以确定采集到的声音信号与当前场景对应的预设环境音匹配。再举例来说,当采集到的声音信号包括预设环境音且声音信号的响度大于预设的响度阈值(比如55分贝),且持续时间大于预设的时间阈值(比如5s)时,可以确定采集到的声音信号与当前场景对应的预设环境音匹配。In other embodiments, when the collected sound signal includes a preset environmental sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset environmental sound. Wherein, the threshold includes at least one of a loudness threshold, a duration threshold, and a repetition threshold. For example, when the collected sound signal includes a preset ambient sound and the loudness of the sound signal is greater than a preset loudness threshold (such as 55 decibels), it can be determined that the collected sound signal matches the preset ambient sound corresponding to the current scene . For another example, when the collected sound signal includes a preset ambient sound and the loudness of the sound signal is greater than the preset loudness threshold (such as 55 decibels), and the duration is greater than the preset time threshold (such as 5s), it can be determined The collected sound signal matches the preset environmental sound corresponding to the current scene.
当采集到的声音信号与当前场景对应的预设环境音匹配时,电子设备100或者头戴式设备300可以发出提示信息,使得用户感知外界环境。该提示信息可包括但不限于:语音提示信息、震动提示信息、灯光提示信息及显示提示信息。When the collected sound signal matches the preset environmental sound corresponding to the current scene, the electronic device 100 or the head-mounted device 300 may send out prompt information so that the user perceives the external environment. The prompt information may include, but is not limited to: voice prompt information, vibration prompt information, light prompt information, and display prompt information.
例如,在马路场景下,当外界环境中存在预设的汽车鸣笛声时,则判断用户有感知外界环境的需求,此时,电子设备100或者头戴式设备300可以发出语音提示信息以对用户进行提醒。又例如,在家里场景下,当外界环境中存在预设的敲门声或者闹钟声时,则判断用户有感知外界环境的需求,此时,电子设备100或者头戴式设备300可以发出灯光提示信息以对用户进行提醒。再例如,在公园场景下,当外界环境中存在预设的狗叫声或者打闹声时,则判断用户有感知外界的需求,此时,电子设备100或者头戴式设备300可以发出震动提示信息以对用户进行提醒。For example, in a road scene, when there is a preset car whistle sound in the external environment, it is determined that the user has a need to perceive the external environment. At this time, the electronic device 100 or the head-mounted device 300 may send out voice prompts to respond The user is reminded. For another example, in a home scene, when there is a preset door knock or alarm sound in the external environment, it is determined that the user has a need to perceive the external environment. At this time, the electronic device 100 or the head-mounted device 300 may emit a light prompt Information to remind users. For another example, in a park scene, when there is a preset dog barking or screaming in the external environment, it is determined that the user has a need to perceive the outside world. At this time, the electronic device 100 or the head-mounted device 300 may emit a vibration prompt Information to remind users.
下面对电子设备100或者头戴式设备300通过提示信息来提示用户的方式进行介绍。具体地,所述电子设备100或者所述头戴式设备100可以通过以下任意一种方式或者结合以下任意几种方式提示用户:In the following, the manner in which the electronic device 100 or the head-mounted device 300 prompts the user through prompt information will be introduced. Specifically, the electronic device 100 or the head-mounted device 100 may prompt the user through any one of the following methods or a combination of the following methods:
1.控制头戴式设备300输出提示语音以提示用户。1. Control the head mounted device 300 to output a prompt voice to prompt the user.
在一实施方式中,当头戴式设备300输出提示语音时,可以暂停播放头戴式设备300当前的音频数据。例如,电子设备100可以暂停用户正在观看的视频或正在听的音乐,即暂停播放头戴式设备300当前的音频数据,并且通过头戴式设备300发出语音,以提示用户此时可能存在危险或者存在需要响应的声音信号。可选的,当停止播放提示语音时,电子设备100或者头戴式设备300可以检测停止播放提示语音的时长,当停止播放提示语音的时长达到预设时长阈值(比如2s)时,可以继续播放当前的音频数据。这样,当提示语音播放完成后再过预设时间才恢复当前的音频数据的播放,可以给用户留有响应特定声音信号的时间。In an embodiment, when the head-mounted device 300 outputs a prompt voice, the current audio data of the head-mounted device 300 may be paused. For example, the electronic device 100 can pause the video or music that the user is watching, that is, pause the playback of the current audio data of the head-mounted device 300, and emit a voice through the head-mounted device 300 to remind the user that there may be danger or There is a sound signal that needs to be responded to. Optionally, when the prompt voice is stopped, the electronic device 100 or the head-mounted device 300 can detect the duration of stopping the prompt voice, and when the duration of the stop playing the prompt voice reaches a preset duration threshold (for example, 2s), it can continue to play The current audio data. In this way, the current audio data playback is resumed after the preset time is passed after the prompt voice playback is completed, which can leave time for the user to respond to a specific sound signal.
举例来说,用户在路上行走并佩戴头戴式设备300收听电子设备300播放的音乐时,电子设备100或者头戴式设备300可检测到用户当前处于马路场景,若麦克风检测到外界环境的声音信号与预设的鸣笛声匹配时,则暂停当前的音乐播放,并通过头戴式设备300输出提示语音。当提示语音播放完成时,检测停止播放提示语音的时间,当停止播放提示语音的时长达到预设时长阈值时,可以继续播放用户正在收听的音乐。这样,可以为用户查看车辆的位置以及躲闪车辆预留时间,待用户躲闪车辆后,再自动播放用户正在收听的音乐。For example, when a user is walking on the road and listening to music played by the electronic device 300 while wearing the head-mounted device 300, the electronic device 100 or the head-mounted device 300 can detect that the user is currently in a road scene, and if the microphone detects the sound of the external environment When the signal matches the preset whistle sound, the current music playback is paused, and a prompt voice is output through the headset 300. When the prompt voice playback is completed, the time to stop playing the prompt voice is detected, and when the duration of stopping the prompt voice reaches the preset duration threshold, the music that the user is listening to can continue to be played. In this way, time can be reserved for the user to view the location of the vehicle and dodge the vehicle, and after the user dodges the vehicle, the music that the user is listening to is automatically played.
其中,提示语音的实现方式可以通过以下方式来实现。Among them, the prompt voice can be implemented in the following ways.
方式一,提示语音可以是与预设的环境音相匹配的声音内容。例如,当所采集的外界环境的声音信号与预设的环境音内容中的鸣笛声相匹配时,则通过头戴式设备300播放鸣笛声;而当所采集的外界环境的声音信号与预设的环境音内容中的闹钟声相匹配时,则通过头戴式 设备300播放闹钟声。Method 1: The prompt voice can be a sound content that matches the preset environmental sound. For example, when the collected sound signal of the external environment matches the horn sound in the preset environmental sound content, the horn sound is played through the head-mounted device 300; and when the collected sound signal of the external environment matches the preset sound When the alarm sound in the ambient sound content matches, the head-mounted device 300 plays the alarm sound.
方式二,提示语音可以是预设的特定语音提示内容。具体地,电子设备100或者头戴式设备300中可以预先存储用于提醒用户特定语音提示内容,当所采集的外界环境的声音信号与预设的环境音内容中的鸣笛声相匹配时,可以通过头戴式设备300播放预先存储的特定语音提示内容,例如,可以播放“有车辆靠近,请避让”的特定语音提示内容;还可以播放“有人敲门,请开门”的特定语音提示。需要说明的是,在本实施方式中,不同场景下的特定语音播报内容可以不同,可以在设置预设环境音的内容的时候进行设定。Method 2: The prompt voice can be a preset specific voice prompt content. Specifically, the electronic device 100 or the head-mounted device 300 may pre-store specific voice prompt content for reminding the user. When the collected sound signal of the external environment matches the whistle sound in the preset environmental sound content, The pre-stored specific voice prompt content can be played through the head-mounted device 300. For example, the specific voice prompt content of "A vehicle approaching, please avoid" can be played; the specific voice prompt of "Someone knocks on the door, please open the door" can also be played. It should be noted that, in this embodiment, the specific voice broadcast content in different scenarios can be different, and it can be set when the content of the preset environmental sound is set.
2.控制电子设备100或头戴式设备300振动反馈以提示用户,进而提示用户留意外界环境。2. Control the vibration feedback of the electronic device 100 or the head-mounted device 300 to prompt the user, thereby prompting the user to pay attention to the external environment.
3.控制电子设备100或头戴式设备300的灯光闪烁以提示用户。例如,电子设备100的LED(Light Emitting Display,发光二极管)闪烁,或者按键灯闪烁等,以提示用户留意外界环境。3. Control the light of the electronic device 100 or the head-mounted device 300 to flash to remind the user. For example, the LED (Light Emitting Display, light emitting diode) of the electronic device 100 flashes, or the button light flashes, etc., to remind the user to pay attention to the external environment.
4.控制电子设备100在显示屏194上显示提示内容。其中,提示内容可以是图片、文字或者符号中的任意一种。例如,当用户使用电子设备100并佩戴头戴式设备300在家里观看视屏时,若麦克风检测到了敲门声且符合预设条件,则可以通过电子设备100的显示屏194上显示一“铃铛”的符号以对用户进行提示。4. Control the electronic device 100 to display the prompt content on the display screen 194. Among them, the prompt content can be any of pictures, text, or symbols. For example, when the user uses the electronic device 100 and wears the head-mounted device 300 to watch a video at home, if the microphone detects a knock on the door and meets the preset conditions, a "bell" can be displayed on the display 194 of the electronic device 100 To prompt the user.
在一些实施方式中,可以在以下几种情况下,停止提示用户:In some implementations, you can stop prompting the user in the following situations:
1.当提示信息的持续时间达到预设时间时,可以终止发出提示信息。例如,当提示信息发出的持续时间达到30s时,则终止发出提示信息。1. When the duration of the prompt message reaches the preset time, the prompt message can be terminated. For example, when the duration of the notification message reaches 30s, the notification message is terminated.
2.当检测到的外界环境的声音信号不包括预设的环境音时,终止发出提示信息。例如,当汽车经过后,鸣笛声可能已经消失,因此当环境声中不存在鸣笛声时,即可终止发出提示信息。在本实施方式中,若选取上述第一中方式发出提示信息,则当终止发出提示信息时,可继续通过头戴式设备300播放当前的音频数据,如此,可以避免用户手动操作,提高了用户体验。2. When the detected sound signal of the external environment does not include the preset environmental sound, the prompt message is terminated. For example, when a car passes by, the whistle sound may have disappeared, so when there is no whistle sound in the ambient sound, the prompt message can be terminated. In this embodiment, if the first method is selected to send the prompt message, when the prompt message is terminated, the current audio data can continue to be played through the head-mounted device 300. In this way, manual operation by the user can be avoided and the user can be improved Experience.
3.响应用户的操作而终止发出提示信息。在本实施方式中,当提醒功能开启时,可以赋予音量键或者电源键来终止提示信息的功能。例如,当用户接收到电子设备100震动的提示信息时,可以通过对音量键的操作来控制电子设备100停止震动。3. In response to the user's operation, the prompt message is terminated. In this embodiment, when the reminder function is turned on, the volume key or the power key can be assigned to terminate the function of prompting information. For example, when the user receives the prompt message that the electronic device 100 vibrates, the user can control the electronic device 100 to stop the vibration by operating the volume key.
可以理解地,上述电子设备100或者头戴式设备300根据用户所处场景对用户进行提示的过程中,所有步骤(S101~S104)可以全部由电子设备100来执行,也可以全部由头戴式设备300来执行,还可以由电子设备100和头戴式设备300来共同执行。当上述过程中的步骤由电子设备100和头戴式设备300共同完成时,在不同步骤之间切换执行主体时,可以发送触发信号来提醒另一主体来完成相应的步骤。举例来说,当上述步骤S101-S103由电子设备100来执行,而步骤S104由头戴式设备300来执行时,当确定采集到的声音信号与预设环境音匹配时,电子设备100发送一触发信号至头戴式设备300,以提醒头戴式设备300执行相应的步骤。其中,触发信号可以是高电平信号也可以是低电平信号,在此不做限定。It is understandable that in the process of the above-mentioned electronic device 100 or the head-mounted device 300 prompting the user according to the user's scene, all steps (S101 to S104) can be performed by the electronic device 100, or all of the head-mounted devices The device 300 can also be executed by the electronic device 100 and the head-mounted device 300 together. When the steps in the above process are jointly completed by the electronic device 100 and the head-mounted device 300, when the execution subject is switched between different steps, a trigger signal can be sent to remind another subject to complete the corresponding step. For example, when the above steps S101-S103 are executed by the electronic device 100 and step S104 is executed by the head-mounted device 300, when it is determined that the collected sound signal matches the preset environmental sound, the electronic device 100 sends a The trigger signal is sent to the head-mounted device 300 to remind the head-mounted device 300 to perform corresponding steps. Among them, the trigger signal may be a high-level signal or a low-level signal, which is not limited here.
由上述方法实施例以及人机交互实施例可知,实施本申请实施例提供的环境音处理方法,电子设备100或者头戴式设备300可以根据用户当前所处的场景确定预设环境的,并当采集到的外界环境的声音信号与预设的环境音匹配时发出提示信息,进而可以使得用户在使用头戴式设备300的情况下也能获知不同场景下的外界环境,从而做出对应的反应,提高了使用头戴式设备300的安全性。From the foregoing method embodiments and human-computer interaction embodiments, it can be seen that implementing the environmental sound processing method provided by the embodiments of this application, the electronic device 100 or the head-mounted device 300 can determine the preset environment according to the current scene of the user, and When the collected sound signal of the external environment matches the preset environmental sound, a prompt message is issued, so that the user can learn the external environment in different scenarios while using the head-mounted device 300, so as to make a corresponding response , Improve the safety of using the head-mounted device 300.
需要说明的是,当上述环境音处理方法由头戴式设备300来执行时,电子设备100可以根据“提示功能”是否开启来发送控制指令至头戴式设备300以告知头戴式设备300是否需要执行上述方法。It should be noted that when the above-mentioned environmental sound processing method is executed by the head-mounted device 300, the electronic device 100 can send a control command to the head-mounted device 300 according to whether the "prompt function" is turned on to inform the head-mounted device 300 whether Need to perform the above method.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk)等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in the form of a computer program product in whole or in part. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the processes or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center. Transmission to another website, computer, server or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or a data center integrated with one or more available media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk).
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In short, the above are only examples of the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made according to the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (13)

  1. 一种环境音处理方法,其特征在于,包括:An environmental sound processing method, characterized in that it comprises:
    头戴式设备确定用户当前所处的场景;The head-mounted device determines the scene the user is currently in;
    所述头戴式设备根据所述用户当前所处的场景采集外界环境的声音信号;The head-mounted device collects sound signals of the external environment according to the scene where the user is currently located;
    所述采集到的所述声音信号与当前场景对应的预设环境音匹配时,所述头戴式设备输出所述外界环境的声音信号或输出提示信息。When the collected sound signal matches the preset environmental sound corresponding to the current scene, the head-mounted device outputs the sound signal of the external environment or outputs prompt information.
  2. 根据权利要求1所述的方法,其特征在于,所述头戴式设备确定用户当前所处的场景,包括以下一项或多项:The method according to claim 1, wherein the head-mounted device determining the current scene of the user includes one or more of the following:
    所述头戴式设备根据用户当前的位置信息确定用户当前所处的场景;The head-mounted device determines the scene where the user is currently located according to the current location information of the user;
    或者,or,
    所述头戴式设备根据用户的行为体征信息确定用户当前所处的场景;The head-mounted device determines the current scene of the user according to the user's behavioral sign information;
    或者,or,
    所述头戴式设备根据所识别到的语音内容确定用户当前所处的场景。The head-mounted device determines the current scene of the user according to the recognized voice content.
  3. 根据权利要求1-2任一项所述的方法,其特征在于,所述预设环境音由所述场景与所述预设环境音的对应关系获得,或者,所述预设环境音是由用户设置的。The method according to any one of claims 1-2, wherein the preset environmental sound is obtained from the corresponding relationship between the scene and the preset environmental sound, or the preset environmental sound is obtained from Set by the user.
  4. 根据权利要求1-3任一项所述的方法,其特征在于,当采集到的所述声音信号包括所述预设环境音时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配;或者,The method according to any one of claims 1 to 3, wherein when the collected sound signal includes the preset environmental sound, it is determined that the collected sound signal corresponds to the preset corresponding to the current scene Environmental sound matching; or,
    当采集到的所述声音信号包括所述预设环境音且阈值达到预设阈值时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配。When the collected sound signal includes the preset environmental sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset environmental sound corresponding to the current scene.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述提示信息包括以下一项或多项:语音、振动反馈或者灯光反馈。The method according to any one of claims 1 to 4, wherein the prompt information includes one or more of the following: voice, vibration feedback, or light feedback.
  6. 一种头戴式设备,其特征在于,包括:一个或多个处理器、存储器和通信模块;A head-mounted device, which is characterized by comprising: one or more processors, memories, and communication modules;
    所述存储器与所述一个或多个处理器耦合,所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,所述一个或多个处理器调用所述计算机指令以使得所述头戴式设备执行:The memory is coupled with the one or more processors, and the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors invoke the computer instructions to cause the Head-mounted device execution:
    确定用户当前所处的场景;Determine the scene the user is currently in;
    根据所述用户当前所处的场景采集外界环境的声音信号;Collecting sound signals of the external environment according to the scene where the user is currently located;
    所述采集到的所述声音信号与当前场景对应的预设环境音匹配时,输出所述外界环境的声音信号或输出提示信息。When the collected sound signal matches the preset environmental sound corresponding to the current scene, output the sound signal of the external environment or output prompt information.
  7. 根据权利要求6所述的头戴式设备,其特征在于,所述确定用户当前所处的场景,包括以下一项或多项:The head-mounted device according to claim 6, wherein the determining the current scene of the user includes one or more of the following:
    根据用户当前的位置信息确定用户当前所处的场景;Determine the scene the user is currently in according to the user's current location information;
    或者,or,
    根据用户的行为体征信息确定用户当前所处的场景;Determine the user's current scene according to the user's behavioral sign information;
    或者,or,
    根据所识别到的语音内容确定用户当前所处的场景。Determine the scene the user is currently in according to the recognized voice content.
  8. 根据权利要求6-7任一项所述的头戴式设备,其特征在于,所述预设环境音由所述场景与所述预设环境音的对应关系获得,或者,所述预设环境音是由用户设置的。The head-mounted device according to any one of claims 6-7, wherein the preset environmental sound is obtained from the corresponding relationship between the scene and the preset environmental sound, or the preset environment The tone is set by the user.
  9. 根据权利要求6-8任一项所述的头戴式设备,其特征在于,当采集到的声音信号包括所述预设环境音时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配;或者,当采集到的声音信号包括所述预设环境音且阈值达到预设阈值时,确定采集到的所述声音信号与当前场景对应的预设环境音匹配。The head-mounted device according to any one of claims 6-8, wherein when the collected sound signal includes the preset environmental sound, it is determined that the collected sound signal corresponds to the preset of the current scene. It is assumed that the ambient sound matches; or, when the collected sound signal includes the preset ambient sound and the threshold reaches the preset threshold, it is determined that the collected sound signal matches the preset ambient sound corresponding to the current scene.
  10. 根据权利要求6-9任一项所述的头戴式设备,其特征在于,所述提示信息包括以下一项或多项:语音、振动反馈或者灯光反馈。The head-mounted device according to any one of claims 6-9, wherein the prompt information includes one or more of the following: voice, vibration feedback, or light feedback.
  11. 一种音频播放系统,其特征在于,包括电子设备和如权利要求6-10任意一项所述的头戴式设备;所述电子设备用于发送音频信号至所述头戴式设备以进行播放。An audio playback system, comprising an electronic device and the head-mounted device according to any one of claims 6-10; the electronic device is used to send audio signals to the head-mounted device for playback .
  12. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-5中任一项所述的方法。A computer program product containing instructions, wherein when the computer program product runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-5.
  13. 一种计算机可读存储介质,包括指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-5中任一项所述的方法。A computer-readable storage medium, comprising instructions, characterized in that when the instructions run on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-5.
PCT/CN2020/098733 2019-06-29 2020-06-29 Ambient sound processing method and related device WO2021000817A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910581121.2A CN112150778A (en) 2019-06-29 2019-06-29 Environmental sound processing method and related device
CN201910581121.2 2019-06-29

Publications (1)

Publication Number Publication Date
WO2021000817A1 true WO2021000817A1 (en) 2021-01-07

Family

ID=73891276

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/098733 WO2021000817A1 (en) 2019-06-29 2020-06-29 Ambient sound processing method and related device

Country Status (2)

Country Link
CN (1) CN112150778A (en)
WO (1) WO2021000817A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220239269A1 (en) * 2021-01-22 2022-07-28 Samsung Electronics Co., Ltd. Electronic device controlled based on sound data and method for controlling electronic device based on sound data

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113496694A (en) * 2020-03-19 2021-10-12 上汽通用汽车有限公司 Vehicle acoustic system, vehicle seat and vehicle
CN114171060A (en) * 2021-12-08 2022-03-11 广州彩熠灯光股份有限公司 Lamp management method, device and computer program product
CN116594511B (en) * 2023-07-17 2023-11-07 天安星控(北京)科技有限责任公司 Scene experience method and device based on virtual reality, computer equipment and medium
CN117097775B (en) * 2023-09-06 2024-04-30 深圳市芯隆科技有限公司 Bluetooth playing control system and method based on artificial intelligence

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007007916A1 (en) * 2005-07-14 2007-01-18 Matsushita Electric Industrial Co., Ltd. Transmitting apparatus and method capable of generating a warning depending on sound types
CN101790000A (en) * 2010-02-20 2010-07-28 华为终端有限公司 Environmental sound reminding method and mobile terminal
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN105263078A (en) * 2015-10-26 2016-01-20 无锡智感星际科技有限公司 Smart headphone system capable of identifying multiple sound sources and providing diversified prompt warning mechanisms and methods
CN107147795A (en) * 2017-05-24 2017-09-08 上海与德科技有限公司 A kind of reminding method and mobile terminal
WO2017171137A1 (en) * 2016-03-28 2017-10-05 삼성전자(주) Hearing aid, portable device and control method therefor
CN107613113A (en) * 2017-09-05 2018-01-19 深圳天珑无线科技有限公司 A kind of headset mode control method, device and computer-readable recording medium
CN107863110A (en) * 2017-12-14 2018-03-30 西安Tcl软件开发有限公司 Safety prompt function method, intelligent earphone and storage medium based on intelligent earphone
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 The control method and earphone of a kind of earphone
CN109243442A (en) * 2018-09-28 2019-01-18 歌尔科技有限公司 Sound monitoring method, device and wear display equipment
CN109493884A (en) * 2018-12-06 2019-03-19 江苏满运软件科技有限公司 A kind of outside sound source safety prompt function method, system, equipment and medium
CN109887271A (en) * 2019-03-21 2019-06-14 深圳市科迈爱康科技有限公司 Pedestrains safety method for early warning, apparatus and system

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100367794C (en) * 2002-04-12 2008-02-06 三菱电机株式会社 Meta data edition device, meta data reproduction device, meta data distribution device, meta data search device, meta data reproduction condition setting device, and meta data distribution method
JP2009300915A (en) * 2008-06-17 2009-12-24 Fujitsu Ltd Mobile terminal with music playback function
CN106550294A (en) * 2015-09-18 2017-03-29 丰唐物联技术(深圳)有限公司 Monitor method and device based on earphone
WO2018045536A1 (en) * 2016-09-08 2018-03-15 华为技术有限公司 Sound signal processing method, terminal, and headphones
CN207531029U (en) * 2017-11-30 2018-06-22 歌尔科技有限公司 A kind of wire-controlled apparatus and earphone
CN109120784B (en) * 2018-08-14 2021-11-16 联想(北京)有限公司 Audio playing method and electronic equipment
CN109145847B (en) * 2018-08-30 2020-09-22 Oppo广东移动通信有限公司 Identification method and device, wearable device and storage medium
CN109345767B (en) * 2018-10-19 2020-11-20 广东小天才科技有限公司 Safety reminding method, device, equipment and storage medium for wearable equipment user

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007007916A1 (en) * 2005-07-14 2007-01-18 Matsushita Electric Industrial Co., Ltd. Transmitting apparatus and method capable of generating a warning depending on sound types
CN101790000A (en) * 2010-02-20 2010-07-28 华为终端有限公司 Environmental sound reminding method and mobile terminal
CN101840700A (en) * 2010-04-28 2010-09-22 宇龙计算机通信科技(深圳)有限公司 Voice recognition method based on mobile terminal and mobile terminal
CN105263078A (en) * 2015-10-26 2016-01-20 无锡智感星际科技有限公司 Smart headphone system capable of identifying multiple sound sources and providing diversified prompt warning mechanisms and methods
WO2017171137A1 (en) * 2016-03-28 2017-10-05 삼성전자(주) Hearing aid, portable device and control method therefor
CN107147795A (en) * 2017-05-24 2017-09-08 上海与德科技有限公司 A kind of reminding method and mobile terminal
CN107613113A (en) * 2017-09-05 2018-01-19 深圳天珑无线科技有限公司 A kind of headset mode control method, device and computer-readable recording medium
CN107863110A (en) * 2017-12-14 2018-03-30 西安Tcl软件开发有限公司 Safety prompt function method, intelligent earphone and storage medium based on intelligent earphone
CN107948801A (en) * 2017-12-21 2018-04-20 广东小天才科技有限公司 The control method and earphone of a kind of earphone
CN109243442A (en) * 2018-09-28 2019-01-18 歌尔科技有限公司 Sound monitoring method, device and wear display equipment
CN109493884A (en) * 2018-12-06 2019-03-19 江苏满运软件科技有限公司 A kind of outside sound source safety prompt function method, system, equipment and medium
CN109887271A (en) * 2019-03-21 2019-06-14 深圳市科迈爱康科技有限公司 Pedestrains safety method for early warning, apparatus and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220239269A1 (en) * 2021-01-22 2022-07-28 Samsung Electronics Co., Ltd. Electronic device controlled based on sound data and method for controlling electronic device based on sound data
EP4206900A4 (en) * 2021-01-22 2024-04-10 Samsung Electronics Co Ltd Electronic device controlled on basis of sound data, and method for controlling electronic device on basis of sound data

Also Published As

Publication number Publication date
CN112150778A (en) 2020-12-29

Similar Documents

Publication Publication Date Title
CN110138937B (en) Call method, device and system
WO2021213120A1 (en) Screen projection method and apparatus, and electronic device
EP3872807A1 (en) Voice control method and electronic device
CN113169760B (en) Wireless short-distance audio sharing method and electronic equipment
WO2021000817A1 (en) Ambient sound processing method and related device
WO2020119492A1 (en) Message processing method and related apparatus
CN112399390B (en) Bluetooth connection method and related device
WO2020062159A1 (en) Wireless charging method and electronic device
CN111369988A (en) Voice awakening method and electronic equipment
CN111628916B (en) Method for cooperation of intelligent sound box and electronic equipment
CN112119641B (en) Method and device for realizing automatic translation through multiple TWS (time and frequency) earphones connected in forwarding mode
WO2021052204A1 (en) Address book-based device discovery method, audio and video communication method, and electronic device
CN110784830A (en) Data processing method, Bluetooth module, electronic device and readable storage medium
WO2021031865A1 (en) Call method and apparatus
CN114079893A (en) Bluetooth communication method, terminal device and computer readable storage medium
CN113452945A (en) Method and device for sharing application interface, electronic equipment and readable storage medium
CN111835907A (en) Method, equipment and system for switching service across electronic equipment
CN114115770A (en) Display control method and related device
WO2022135157A1 (en) Page display method and apparatus, and electronic device and readable storage medium
CN113170279B (en) Communication method based on low-power Bluetooth and related device
CN111492678B (en) File transmission method and electronic equipment
CN114185503A (en) Multi-screen interaction system, method, device and medium
US20240114110A1 (en) Video call method and related device
WO2022089563A1 (en) Sound enhancement method, earphone control method and apparatus, and earphone
CN113678481A (en) Wireless audio system, audio communication method and equipment

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

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

Country of ref document: EP

Kind code of ref document: A1