WO2018035868A1 - 输出音频的方法、电子设备以及存储介质 - Google Patents

输出音频的方法、电子设备以及存储介质 Download PDF

Info

Publication number
WO2018035868A1
WO2018035868A1 PCT/CN2016/097013 CN2016097013W WO2018035868A1 WO 2018035868 A1 WO2018035868 A1 WO 2018035868A1 CN 2016097013 W CN2016097013 W CN 2016097013W WO 2018035868 A1 WO2018035868 A1 WO 2018035868A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
electronic device
audio signal
output device
audio output
Prior art date
Application number
PCT/CN2016/097013
Other languages
English (en)
French (fr)
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 华为技术有限公司
Priority to US16/328,511 priority Critical patent/US10620908B2/en
Priority to PCT/CN2016/097013 priority patent/WO2018035868A1/zh
Priority to EP16913889.8A priority patent/EP3499856A4/en
Priority to CN201680080878.8A priority patent/CN108541370A/zh
Priority to CN202310651827.8A priority patent/CN116527810A/zh
Publication of WO2018035868A1 publication Critical patent/WO2018035868A1/zh
Priority to US16/750,627 priority patent/US10963214B2/en
Priority to US17/189,458 priority patent/US11507340B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/605Portable telephones adapted for handsfree use involving control of the receiver volume to provide a dual operational mode at close or far distance from the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • H04M1/6033Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
    • H04M1/6041Portable telephones adapted for handsfree use
    • H04M1/6058Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers

Definitions

  • the embodiments of the present invention relate to the field of terminals, and in particular, to a method for outputting audio, an electronic device, and a storage medium.
  • the mobile phone can also be connected to other audio output devices, such as wired headsets, Bluetooth headsets, and external audio.
  • other audio output devices such as wired headsets, Bluetooth headsets, and external audio.
  • the mobile phone when the mobile phone receives the indication information of the new incoming call input by the user, it is first determined whether the mobile phone is currently connected with other audio output devices other than the earpiece; if other audio output devices are connected, the audio output is output through the audio output device. The device outputs a call voice signal; if no other audio output device is connected, the call voice signal is output through the handset handset.
  • the call voice signal is output through the audio output device, and the handset handset does not output the call voice signal.
  • the user answers the phone using the handset, no sound can be heard.
  • the user may mistakenly think that the call is not normal and hang up.
  • the user first realizes that he/she has received the call sound by using the wrong answering device, and then the answering device is replaced to hear the call sound normally, and the user experience is not good.
  • Embodiments of the present invention provide a method for outputting audio, an electronic device, and a storage medium, which can enhance a user experience when an electronic device including a mobile phone is connected to another audio output device.
  • a method of outputting audio for an electronic device having a proximity sensor, the method comprising: when an electronic device is connected to an audio output device and has an audio signal output, Obtaining proximity data of the proximity sensor; when the proximity data meets the preset condition, the earpiece of the electronic device outputs an audio signal, determining a type of the audio output device; and determining, according to the type of the audio output device, whether the audio output device is Output audio signals.
  • the user can determine that the electronic device (such as a mobile phone) is placed at the ear to listen to the preset condition, so that the user can pass the electronic device while listening to the ear.
  • the handset heard the sound.
  • the user experience is enhanced when the electronic device is connected to other audio output devices; in addition, depending on the type of audio output device, there are two ways to output an audio signal: both the earpiece and the audio output device output an audio signal, and only the earpiece outputs an audio signal. For the type of audio output device, one of the modes is selected to output the audio signal, which improves the flexibility of the output audio signal.
  • the method further includes: when the audio tube of the electronic device outputs the audio signal, the electronic device outputs the prompt information, where the prompt information is a prompt text or a prompt sound.
  • the electronic device since the electronic device is connected to the audio output device under normal circumstances, only the audio output device outputs an audio signal and the earpiece does not output an audio signal, so when the audio signal is output from the earpiece of the electronic device, the electronic device Output prompt information to improve the user experience.
  • the method further includes determining whether the audio output device outputs an audio signal according to a type of the audio output device, including: when the audio output device is an earphone, the audio output device outputs an audio signal.
  • the audio signal is output through the earpiece and the earphone, and the proximity can be passed.
  • the data meets the preset conditions to identify inaccurate user behavior, the user can also hear the sound through the headphones.
  • determining whether the audio output device outputs an audio signal according to a type of the audio output device includes: when the audio output device is an external device, the audio output device does not output an audio signal.
  • the audio signal can be output only through the earpiece, which can protect the privacy of the user and prevent others from hearing the audio signal.
  • the proximity data is a distance between the electronic device and the obstacle, and the proximity data meets the preset condition, including: the distance between the electronic device and the obstacle is less than or equal to Preset distance.
  • the manner of identifying the user behavior is simple, easy to implement, and the judgment speed is fast, and is particularly suitable for a specific scene in which the user places the mobile phone at the ear.
  • the proximity data meets a preset condition for a duration greater than a preset time.
  • the proximity data represents a distance between the electronic device and an obstacle; and when the electronic device is connected to the audio output device and has an audio signal output, acquiring the proximity sensor
  • the proximity data includes: when the electronic device is connected to the audio output device and has an audio signal output, acquiring a plurality of proximity data of the proximity sensor within a preset time period; the proximity data satisfies a preset condition, Specifically, the at least one proximity data of the plurality of proximity data satisfies a first preset condition, and/or the trend of the plurality of proximity data changes with time satisfies a second preset condition.
  • the at least one of the plurality of proximity data that meets the first preset condition may be: the at least one proximity data of the plurality of proximity data meets less than or equal to a preset distance;
  • the trend that the plurality of proximity data changes with time meets the second preset condition may specifically be that the trend of the plurality of proximity data changes with time satisfies the decreasing trend.
  • the electronic device when the proximity data meets a preset condition, the electronic device
  • the earpiece outputs an audio signal, including: setting the audio type of the audio signal to a custom audio type when the proximity data satisfies the preset condition; outputting the audio through the earpiece according to a correspondence between the preset custom audio type and the earpiece signal.
  • the audio signal output after the audio output device is connected to the electronic device that is, the audio signal is output only by the audio output device, and the audio signal is not output by the earpiece
  • the audio output device in order to realize the connection in the electronic device After the audio output device, when the proximity data satisfies the preset condition, the purpose of the electronic device's earpiece outputting the audio signal adopts a custom audio type, and the correspondence between the custom audio type and the earpiece is preset.
  • the implementation is smart and easy to implement.
  • an electronic device comprising a processor, a memory, an earpiece, a proximity sensor, and an interface circuit; wherein the memory is for storing computer executable program code, the program code comprising instructions, When the processor executes the instructions, the method of the first aspect is implemented.
  • the implementation and the beneficial effects of the electronic device to solve the problem reference may be made to the first aspect and the possible implementation manners and the beneficial effects of the first aspect. Therefore, the implementation of the electronic device can be referred to the implementation of the method in the first aspect, and the repeated description is not repeated.
  • an embodiment of the present invention provides an electronic device, where the electronic device includes an acquiring unit and a processing unit, and an acquiring unit, configured to acquire a proximity sensor when the electronic device is connected to the audio output device and has an audio signal output. a proximity data; a processing unit, configured to: when the proximity data acquired by the acquiring unit meets a preset condition, the earpiece of the electronic device outputs an audio signal, determining a type of the audio output device; determining the audio output device according to the type of the audio output device Whether to output an audio signal.
  • the principles and benefits of the electronic device can be solved by referring to the first aspect and the possible implementation manners of the first aspect and the beneficial effects. Therefore, the implementation of the electronic device can refer to the method. Implementation, repetition will not be repeated.
  • an embodiment of the present invention provides a computer storage medium for storing computer software instructions used in the above-described method design of the first aspect.
  • the user can determine that the user places the electronic device on the ear by the proximity data, so that the user can pass the earphone when the user answers the ear. Hear the sound.
  • the user experience is enhanced when the electronic device is connected to other audio output devices; in addition, depending on the type of audio output device, there are two ways of outputting the audio signal: both the earpiece and the audio output device output an audio signal, or only the earpiece outputs an audio signal.
  • the type of audio output device one of the modes is selected to output an audio signal, which improves the flexibility of the electronic device to output an audio signal.
  • FIG. 1 is a flowchart of a method for outputting audio according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for outputting audio according to an embodiment of the present invention.
  • FIG. 3 is a schematic diagram of an audio output structure of a mobile phone operating system
  • FIG. 4 is a structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 5 is a structural diagram of another electronic device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for outputting audio according to an embodiment of the present invention.
  • the method may be performed by an electronic device with a proximity sensor, such as a mobile phone, and the method includes:
  • an electronic device may be referred to as a terminal, a user equipment (User Equipment, referred to as "UE"), a mobile station (Mobile Station, referred to as "MS”), and a mobile terminal (Mobile Terminal). , computers, microcomputers, etc.
  • the electronic device can communicate with one or more core networks via a Radio Access Network ("RAN").
  • RAN Radio Access Network
  • the electronic device can be a mobile phone (or "cellular” phone), a computer with a mobile terminal, and the like.
  • the electronic device can also be a portable, pocket, handheld, computer built-in or in-vehicle mobile device that exchanges voice and/or data with the wireless access network.
  • the electronic device further includes a wired access electronic device having multiple bearer features.
  • Step 101 When the electronic device is connected to the audio output device and has an audio signal output, the proximity data of the proximity sensor is acquired.
  • the audio output device may be a device that can output an audio signal, such as a headset or an audio; the audio output device is different from the earpiece, and the audio output device and the electronic device may be connected by wire or wirelessly, and the audio output device is connected. It can be a Bluetooth device, a Wireless-Fidelity (wifi) device, or a device connected through other connection interfaces.
  • the above output audio signal can be triggered by an audio output event, which can be an incoming call voice, a ringtone, a voice over internet protocol (VOIP) voice, a text to speech (TTS) voice broadcast, and a music play.
  • an audio output event which can be an incoming call voice, a ringtone, a voice over internet protocol (VOIP) voice, a text to speech (TTS) voice broadcast, and a music play.
  • VOIP voice over internet protocol
  • TTS text to speech
  • the electronic device analyzes the proximity data to determine the behavior of the user, for example, determining that the user is placing the electronic device at the ear. And modifying at least one setting of the electronic device in response to the analysis result. For example, how to process input or output data from input and output devices.
  • the electronic device can be a telephone such as a cellular telephone, an integrated telephone and media player, or other type of device that can include sensors and process data from the sensors, and the input and output devices can be audio input and output devices, keypads Or multi-touch the tablet.
  • the sensor can be any of a variety of sensors, including proximity sensors, temperature sensors, accelerometers, light sensors, position determining devices, and To determine the device, RF electromagnetic wave sensor, touch input pad, motion sensor or sound sensor.
  • the electronic device can include a plurality of sensors that provide data to at least one processor together, the processor analyzing the data to determine the behavior of the user.
  • the analysis can be processed using artificial intelligence, the process comprising comparing data derived from one or more sensors to a threshold; for example, data from the proximity sensor can be compared to a threshold, the threshold Represents the distance between a portion of the device and the user's ear or head.
  • the data from the sensor can represent the analog value detected by the sensor; the analog value can indicate any of a variety of analog values, including, for example, distance, temperature, light intensity, measurement of motion or orientation, and sound. Measurement of intensity or radio frequency (RF) electromagnetic measurement.
  • RF radio frequency
  • artificial intelligence processing may be required to receive data and select an interpretation of the data from a set of possible interpretations, and the selected interpretations, in turn, will be used to decide how to modify the at least one of the settings.
  • the modified settings may be any of various settings including, for example, setting of a display illuminator, setting of a sound input or sound output parameter, setting of a sound output device, and receiving user input.
  • the setting of the state of the input device, the setting of the communication parameter, the setting of the processor, or the setting of the device mode (for example, the cellular phone mode or the media player mode).
  • Step 102 When the proximity data meets a preset condition, the earpiece of the electronic device outputs an audio signal.
  • the proximity data can represent the distance between the electronic device and the obstacle.
  • the earpiece of the electronic device When the proximity data satisfies a preset condition, that is, the distance between the electronic device and the obstacle is less than or equal to the preset distance, the earpiece of the electronic device outputs an audio signal.
  • the electronic device when the earpiece of the electronic device outputs an audio signal, the electronic device outputs a prompt message, and the prompt message is a prompt text or a prompt tone for prompting the user to output an audio signal.
  • the earpiece of the electronic device when the proximity data does not satisfy the preset condition, that is, when the distance between the electronic device and the obstacle is greater than the preset distance, the earpiece of the electronic device does not output the audio signal, but passes through the audio output device. Output audio signals.
  • the proximity data represents a distance between the electronic device and an obstacle;
  • step 101 when the electronic device is connected to the audio output device and has an audio signal output, the plurality of proximity data of the proximity sensor in the preset time period is acquired; in step 102, the proximity data meets the preset condition.
  • the at least one proximity data of the plurality of proximity data satisfies a first preset condition, and/or the trend of the plurality of proximity data changes with time satisfies a second preset condition, The proximity data satisfies the preset condition for a duration greater than the preset time.
  • the proximity data represents a distance between the electronic device and an obstacle
  • at least one proximity data in the plurality of proximity data satisfies a first preset condition representing the electronic device and the obstacle The distance between them is less than or equal to the preset distance.
  • the change trend of the plurality of proximity data over time may meet the second preset condition, and the trend of the plurality of proximity data changes with time satisfies the decreasing trend.
  • Step 103 determining the type of the audio output device.
  • the audio output device can be divided into two categories.
  • One type is an audio output device with an audio external discharge function, which is simply referred to as an external device, for example, an external audio; and the other is an audio output device that does not have an audio external release function, for example, an earphone.
  • the execution order of the step 102 and the step 103 is not specifically limited.
  • the step 102 may be performed before the step 103 is performed, or the step 103 may be performed first, and then the step 102 and the step 103 may be performed simultaneously. .
  • Step 104 Determine, according to the type of the audio output device, whether the audio output device outputs an audio signal.
  • the audio output device when the audio output device is a headset, the audio output device outputs an audio signal.
  • the audio output device when the audio output device is an external device, the audio output device does not output an audio signal.
  • the audio output device when the earpiece of the electronic device outputs an audio signal, the audio output device may output the audio signal or may not output the audio signal; in one example, whether the audio output device outputs the audio output device may be determined according to the type of the audio output device.
  • An audio signal when the type of the audio output device identifies that the audio output device does not have an audio playback function (such as a headset), the audio output device outputs an audio signal, which can avoid the user not hearing the sound through the audio output device when the error is determined;
  • the type of the audio output device identifies that the audio output device has an audio playback function (such as a speaker), the audio output device does not output an audio signal, thereby protecting the privacy of the user.
  • the earpiece of the electronic device can output audio in the following manner: when the proximity data meets the preset condition, the audio type of the audio signal is set to a custom audio type; according to a preset custom audio type and the earpiece The correspondence between the audio signals is output through the earpiece.
  • the handset and the audio output device of the electronic device can output audio in such a manner that when the proximity data satisfies a preset condition and the audio output device does not have an audio playback function, the audio type of the audio signal is set to self.
  • the audio type is defined; the audio signal is output through the earpiece and the audio output device according to a correspondence between the preset custom audio type and the earpiece and the audio output device.
  • the proximity data can be used to satisfy the preset condition to determine that the user answers the electronic device to the ear, so that the user can hear the sound through the earpiece when the electronic device is placed at the ear.
  • the user experience is enhanced when the electronic device is connected to other audio output devices; in addition, depending on the type of audio output device, there are two ways of outputting the audio signal: both the earpiece and the audio output device output an audio signal, or only the audio signal is output through the earpiece. According to the type of the audio output device, one of the modes is selected to output the audio signal, which improves the flexibility of the electronic device to output the audio signal.
  • the method for outputting audio provided by the present invention will be specifically described below by taking an application scenario in which a user answers a call using a mobile phone as an example.
  • FIG. 2 is a flowchart of another method for outputting audio according to an embodiment of the present invention.
  • the method is performed by a mobile phone having a proximity sensor, and the method includes:
  • Step 201 When the mobile phone receives the indication information of the incoming call input by the user, confirm that the audio output device other than the earpiece is connected, and determine the type of the audio output device.
  • the mobile phone can detect not only the audio output device connected to the earpiece by wire connection, but also the other audio output device connected with the earpiece by wireless connection.
  • the above audio signal includes an incoming call ring signal and/or a call voice signal.
  • the electronic device dynamically updates the audio policy table based on the audio signal and other connected audio output devices, the audio policy table including a correspondence of the audio signal to an audio output device that outputs the audio signal.
  • the audio output device corresponding to the incoming call ring is configured by querying the audio policy table.
  • Step 202 Acquire proximity data of the proximity sensor.
  • the proximity sensor may specifically be a distance sensor, and the proximity data may represent a distance between the mobile phone and the obstacle.
  • the method of obtaining the proximity data is the same as the method of obtaining the proximity data in step 101.
  • Step 203 When the proximity data meets the preset condition, the handset of the mobile phone outputs an audio signal.
  • the proximity data meets the preset condition, that is, whether the user puts the mobile phone at the ear, and determines whether the earpiece of the electronic device outputs an audio signal.
  • the proximity data meets the preset condition, that is, when the user puts the mobile phone to the ear, the audio signal is output through the handset of the mobile phone.
  • the audio signal is output through the handset of the mobile phone.
  • the proximity data satisfies the preset condition, that is, when the distance between the mobile phone and the obstacle is less than or equal to the effective listening distance, it is determined that the user puts the mobile phone at the ear and outputs the audio signal through the handset; when the proximity data is not
  • the preset condition is met, that is, when the distance between the mobile phone and the obstacle is greater than the effective listening distance, it is determined that the user does not put the mobile phone at the ear, and the handset of the mobile phone does not output an audio signal.
  • the proximity data satisfies a preset condition, including: the proximity data meets the preset condition
  • the continuation time is greater than the preset time, that is, the user keeps the phone at the ear for longer than the preset time.
  • the audio signal is output through the handset of the mobile phone to improve the accuracy of the detection result.
  • the above preset time period is, for example, 2 seconds.
  • Step 204 Determine, according to the type of the audio output device, whether the audio output device outputs an audio signal.
  • the audio output device outputs the audio signal when the audio output device is a headset that does not have an audio playback function.
  • the audio output device When the audio output device is a device having an audio playback function, the audio output device does not output the audio signal.
  • the mobile phone when the mobile phone is connected with other audio output devices and receives the indication information of the incoming call, it is detected that the user puts the mobile phone at the ear, and the user can hear the sound through the earpiece. Moreover, it is also possible to determine whether the audio output device outputs a call voice signal according to the type of the audio output device.
  • the audio type of the audio signal when the proximity data satisfies a preset condition, is set to a custom audio type; according to a preset correspondence between the custom audio type and the earpiece, The audio output device corresponding to the custom audio type outputs the audio signal.
  • the correspondence between the audio type and the audio output device can be as shown in Table 1.
  • the embodiment of the invention realizes that when the audio output device is a headset that does not have an audio external release function, the audio output device outputs a call voice signal, that is, the call voice signal is output through the earpiece and the earphone, and the user can be placed in the judgment If the judgment result in the ear is wrong, the user also passes the earphone. Can hear the call voice, improving the user experience.
  • the audio output device is a device having an audio playback function
  • the audio output device does not output a call voice signal. That is, only the call voice signal is output through the earpiece, which can prevent others from hearing and protect the privacy of the user.
  • the method further includes:
  • Step 205 When the proximity data does not satisfy the preset condition, the audio signal is output through the audio output device.
  • the step 205 can be implemented by setting a correspondence between the audio type and the audio output device in advance.
  • the following method can be used to determine if a device is plugged into the phone in a wired manner:
  • the wired earphone and the wired speaker are distinguished by the impedance characteristic.
  • the following manner can be used to determine whether an audio output device such as a headset or an external audio is connected to the mobile phone via Bluetooth:
  • Bluetooth type of the Bluetooth device connected to the mobile phone When the Bluetooth type belongs to any of the Bluetooth type lists of the audio output device, confirm that the audio output device is connected to the mobile phone through Bluetooth.
  • BluetoothDevice class defines a series of Bluetooth types, including headsets, car devices, etc., the phone determines the Bluetooth device according to its own properties of the connected Bluetooth device (BluetoothDevice The Bluetooth type is compared with the type specified in BluetoothClass.Device to find the corresponding type. The following is the type of agreement between Bluetooth manufacturers.
  • the audio output device such as the earphone or the external audio is connected to the mobile phone via Bluetooth.
  • the method for outputting audio provided by the embodiment of the present invention is specifically described below in conjunction with the audio output structure of the operating system (OS).
  • OS operating system
  • FIG. 3 is a schematic diagram of an audio output structure of a mobile phone OS. Referring to Figure 3, the audio output passes through the application layer, the Java framework, and the AudiHAL layer.
  • the Phone app is an application layer phone application, and the phone application can remind the user of an incoming call, receive an indication message that the user answers the new incoming call, and when it is determined that the proximity data meets the preset condition, that is, when the mobile phone is near the ear, A notification message is sent to the AudioService in the Java framework, which is used to indicate that the phone is placed at the ear.
  • AudioService belongs to the Java framework layer and is the base of an audio system in the Android OS. Its main functions are volume control, volume key processing, and audio IO device management. In the embodiment of the present invention, after receiving the notification message sent by the Phone app, the AudioService sends the notification message to the AudioSystem.
  • AudioSystem is a Java framework layer that acts as an entry point for sampling audio system resources, allowing queries and access to mixers installed on the system. AudioSystem includes many methods for converting audio data between different formats, and between audio files and streams. The method of conversion. AudioSystem After receiving the notification message sent by the AudioService, the notification message is sent to the AudioPolicyManager of the AudiHAL layer.
  • the AudiHAL layer is the bottom layer of Android audio and is a logical layer for communication and control with audio devices.
  • Android's audio management strategy is: Android sets different routes for different audio types, and selects different output devices according to routing. And according to the audio type, the audio output device to which the electronic device is connected creates a correspondence. For example, when the audio layer sent by the application layer to the AudioService is STREAM_MUSIC and the electronic device is connected to the earphone, the sound whose audio type is STREAM_MUSIC is output from the earphone according to the audio policy table, and if the audio type is STREAM_RING, the earphone and the speaker are (speaker) is also sent out at the same time.
  • the corresponding output device is selected in the AudioPolicyManager's getDeviceForStrategy method. Therefore, by adding a custom audio type and modifying the audio policy of getDeviceForStrategy, the android audio management policy can be customized.
  • a new audio type STREAM_CALLING_NEW is added, and the corresponding audio output device is configured for the audio type as a handset handset and a headset device.
  • AudioPolicyManager When the AudioPolicyManager receives the notification message delivered by the upper application, set the audio type to STREAM_CALLING_NEW, and getDeviceForStrategy selects the handset and the headset as the output device according to the modified audio policy.
  • the method for outputting audio provided by the embodiment of the invention is simple and easy to implement, and improves the user experience.
  • FIG. 4 is a structural diagram of an electronic device, where the electronic device is used to perform the method for outputting audio provided by an embodiment of the present invention, where the electronic device includes:
  • a processor 401 a memory 402, an earpiece 403, a proximity sensor 404, and an interface circuit 405;
  • the memory 402 is configured to store computer executable program code, the program code including instructions,
  • the processor 401 calls an instruction stored in the memory 402 to implement the above-mentioned FIG.
  • the steps 101 to 104, the steps 201 to 205 in FIG. 2, and the solution in the method of designing the output audio, the implementation and benefit of the above method can be seen due to the implementation and the beneficial effects of the electronic device solving the problem, so the electronic device
  • the implementation of the method refer to the implementation of the method, and the repetition will not be repeated.
  • FIG. 5 is a structural diagram of another electronic device according to an embodiment of the present invention.
  • the electronic device is configured to perform a method for outputting audio provided by an embodiment of the present invention.
  • the electronic device includes: an obtaining unit 501 and a processing unit 502.
  • the obtaining unit 501 is configured to implement step 101 in FIG. 1 and step 202 in FIG. 2;
  • the processing unit 502 is configured to perform steps 102-104 in FIG. 1 , steps 201, 203-205 in FIG. 2, and output audio.
  • the implementation of the electronic device can be referred to the implementation of the method, and the repeated description is not repeated here.
  • the disclosed electronic device and method may be implemented in other manners.
  • the embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, electronic device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place. Square, or it can be distributed to multiple network elements. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a non-volatile computer readable storage medium.
  • the above software functional unit is stored in a non-volatile storage medium and includes instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform part of the steps of the method of various embodiments of the present invention.
  • a computer device which may be a personal computer, server, or network device, etc.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory RAM, a magnetic disk, or an optical disk, and the like, which can store program codes.

Abstract

本发明实施例涉及输出音频的方法、电子设备以及存储介质,该方法应用于具有接近度传感器的电子设备,该方法包括:当电子设备连接有音频输出设备且有音频信号输出时,获取所述接近度传感器的接近度数据;当所述接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号,以及,确定所述音频输出设备的类型;根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号。由上可见,本发明实施例中,能够在包括手机在内的电子设备连接了其他音频输出设备时,一定条件下使听筒输出音频信号,提升用户体验。

Description

输出音频的方法、电子设备以及存储介质 技术领域
本发明实施例涉及终端领域,尤其涉及输出音频的方法、电子设备以及存储介质。
背景技术
当前,手机除了自带的听筒,还可以连接其他音频输出设备,例如,有线耳机、蓝牙耳机、外放音响等。
现有技术中,当手机接收到用户输入的接听新来电的指示信息时,先要判断手机当前是否连接了除听筒外的其他音频输出设备;如果连接了其他音频输出设备,则通过该音频输出设备输出通话语音信号;如果未连接其他音频输出设备,则通过手机听筒输出通话语音信号。
由上可见,现有技术中,如果判断出手机连接了其他音频输出设备,则通过该音频输出设备输出通话语音信号,而手机听筒不输出通话语音信号。用户使用手机听筒接听时就听不到任何声音,此时,用户可能会误以为通话不正常而挂断电话。或者,用户先意识到自已使用错误的接听设备接听通话声音,再更换接听设备才能正常听到通话声音,用户体验不佳。
发明内容
本发明实施例提供了输出音频的方法、电子设备以及存储介质,能够在包括手机在内的电子设备连接了其他音频输出设备时提升用户体验。
第一方面,提供了一种输出音频的方法,应用于具有接近度传感器的电子设备,该方法包括:当电子设备连接有音频输出设备且有音频信号输出时, 获取接近度传感器的接近度数据;当接近度数据满足预设条件时,该电子设备的听筒输出音频信号,确定该音频输出设备的类型;根据该音频输出设备的类型,确定该音频输出设备是否输出音频信号。
由上可见,本发明实施例中,可以通过接近度数据满足预设条件来判断出用户将电子设备(例如手机)放在耳边接听,使得用户将电子设备放在耳边接听时也能通过听筒听到声音。在电子设备连接了其他音频输出设备时提升用户体验;此外,根据音频输出设备的类型,存在两种输出音频信号的方式:听筒和音频输出设备均输出音频信号,以及仅听筒输出音频信号。针对音频输出设备的类型,选择其中的一种方式输出音频信号,提高了输出音频信号的灵活性。
在一种可能的实施方式中,该方法还包括:当电子设备的听筒输出音频信号时,电子设备输出提示信息,提示信息为提示文本或提示音。
由上可见,本发明实施例中,由于通常情况下电子设备连接音频输出设备后,仅通过音频输出设备输出音频信号而听筒不输出音频信号,因此在电子设备的听筒输出音频信号时,电子设备输出提示信息,可以提高用户体验。
在一种可能的实施方式中,该方法还包括:根据音频输出设备的类型,确定该音频输出设备是否输出音频信号,包括:当音频输出设备为耳机时,该音频输出设备输出音频信号。
由上可见,本发明实施例中,当音频输出设备的类型显示该音频输出设备为耳机时,即该音频输出设备不具有外放功能时,通过听筒和耳机输出音频信号,可以在通过接近度数据满足预设条件来识别用户行为不准确的情况下,用户通过耳机也能听到声音。
在一种可能的实施方式中,根据音频输出设备的类型,确定该音频输出设备是否输出音频信号,包括:当音频输出设备为外放设备时,该音频输出设备不输出音频信号。
由上可见,本发明实施例中,当音频输出设备的类型显示该音频输出设 备具有外放功能时,仅通过听筒输出音频信号,可以保护用户隐私安全,避免其他人听到该音频信号。
在一种可能的实施方式中,接近度数据为电子设备与障碍物之间的距离,所述接近度数据满足预设条件,包括:所述电子设备与障碍物之间的的距离小于或等于预设距离。
由上可见,本发明实施例中,识别用户行为的方式简单、容易实现,判断速度快,尤其适合用户将手机放在耳边接听的具体场景。
在一种可能的实施方式中,所述接近度数据满足预设条件的持续时间大于预设时间。
由上可见,本发明实施例中,通过判断所述接近度数据满足预设条件的持续时间大于预设时间,以判断所述接近度数据满足预设条件,提高了判断所述接近度数据满足预设条件的准确率。在一种可能的实施方式中,所述接近度数据代表所述电子设备与障碍物之间的距离;所述当电子设备连接有音频输出设备且有音频信号输出时,获取所述接近度传感器的接近度数据,包括:当电子设备连接有音频输出设备且有音频信号输出时,获取预设时间段内所述接近度传感器的多个接近度数据;所述接近度数据满足预设条件,具体为:所述多个接近度数据中存在至少一个接近度数据满足第一预设条件,和/或,所述多个接近度数据随时间的变化趋势满足第二预设条件。
其中,所述多个接近度数据中存在至少一个接近度数据满足第一预设条件具体可以为:所述多个接近度数据中存在至少一个接近度数据满足小于或等于预设距离;所述多个接近度数据随时间的变化趋势满足第二预设条件具体可以为:所述多个接近度数据随时间的变化趋势满足递减的趋势。
由上可见,本发明实施例中,通过在预设时间段内获取多个接近度数据,并结合多个接近度数据的变化趋势,来判断接近度数据是否满足预设条件,从而判断用户行为的方式,可以提高判断结果的准确率。
在一种可能的实施方式中,当接近度数据满足预设条件时,电子设备的 听筒输出音频信号,包括:当接近度数据满足预设条件时,将音频信号的音频类型设置为自定义音频类型;根据预先设置的自定义音频类型与听筒之间的对应关系,通过听筒输出音频信号。
由上可见,针对通常电子设备连接了音频输出设备后的音频信号输出情况,即仅通过音频输出设备输出音频信号,而听筒不输出音频信号,本发明实施例中,为了实现在电子设备连接了音频输出设备后,当接近度数据满足预设条件时,电子设备的听筒输出音频信号这一目的,采用了自定义音频类型,并且,预先设置自定义音频类型与听筒之间的对应关系,这种实现方式比较巧妙,容易实现。
另一方面,提供了一种电子设备,该电子设备包括处理器、存储器、听筒、接近度传感器和接口电路;其中,所述存储器用于存储计算机可执行程序代码,所述程序代码包括指令,当所述处理器执行所述指令时,实现上述第一方面的方法,由于该电子设备解决问题的实施方式以及有益效果可以参见上述第一方面和第一方面的各可能的实施方式以及有益效果,因此该电子设备的实施可以参见第一方面方法的实施,重复之处不再赘述。
又一方面,本发明实施例提供了一种电子设备,该电子设备包括获取单元和处理单元;获取单元,用于当电子设备连接有音频输出设备且有音频信号输出时,获取接近度传感器的接近度数据;处理单元,用于当获取单元获取的接近度数据满足预设条件时,电子设备的听筒输出音频信号,确定音频输出设备的类型;根据音频输出设备的类型,确定该音频输出设备是否输出音频信号。基于同一发明构思,由于该电子设备解决问题的原理以及有益效果可以参见上述第一方面和第一方面的各可能的实施方式以及所带来的有益效果,因此该电子设备的实施可以参见方法的实施,重复之处不再赘述。
再一方面,本发明实施例提供了一种计算机存储介质,用于储存为上述第一方面方法设计方案所涉及所用的计算机软件指令。
相较于现有技术,本发明实施例中,可以通过接近度数据满足预设条件来判断出用户将电子设备放在耳边接听,使得用户将电子设备放在耳边接听时也能通过听筒听到声音。在电子设备连接了其他音频输出设备时提升用户体验;此外,根据音频输出设备的类型,存在两种输出音频信号的方式:听筒和音频输出设备均输出音频信号,或仅听筒输出音频信号。针对音频输出设备的类型,选择其中的一种方式输出音频信号,提高了电子设备输出音频信号的灵活性。
附图说明
图1为本发明实施例提供的一种输出音频的方法流程图;
图2为本发明实施例提供的另一种输出音频的方法流程图;
图3为手机操作系统的音频输出结构示意图;
图4为本发明实施例提供的一种电子设备结构图;
图5为本发明实施例提供的另一种电子设备结构图。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
图1为本发明实施例提供的一种输出音频的方法流程图,该方法可以由手机等具有接近度传感器的电子设备执行,该方法包括:
当电子设备连接有音频输出设备且有音频信号输出时,获取所述接近度传感器的接近度数据;当所述接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号,以及确定所述音频输出设备的类型;根据所述音频 输出设备的类型,确定所述音频输出设备是否输出所述音频信号。
应理解,在本发明实施例中,电子设备可称之为终端、用户设备(User Equipment,简称为“UE”)、移动台(Mobile Station,简称为“MS”)、移动终端(Mobile Terminal)、计算机、微机等。该电子设备可以经无线接入网(Radio Access Network,简称为“RAN”)与一个或多个核心网进行通信。例如,电子设备可以是移动电话(或称为“蜂窝”电话)、具有移动终端的计算机等。例如,电子设备还可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,它们与无线接入网交换语音和/或数据。本发明对此并不限定,例如电子设备还包括具有多承载特征的有线接入的电子设备。
以下是对方法步骤实现方案的详细说明:
步骤101,当电子设备连接有音频输出设备且有音频信号输出时,获取接近度传感器的接近度数据。
其中,该音频输出设备可以是耳机、音响等可以输出音频信号的设备;该音频输出设备不同于听筒,该音频输出设备与电子设备可以是通过有线方式,或无线方式相连接,该音频输出设备可以是蓝牙设备、无线保真(Wireless-Fidelity,wifi)设备或通过其他连接接口连接的设备。
上述输出的音频信号可以由音频输出事件触发,音频输出事件可以是来电语音,铃声,网络电话(Voice over Internet Protocol,voip)语音、从文本到语音(Text to Speech,TTS)语音播报、音乐播放等音频输出事件。
电子设备分析该接近度数据以确定用户的行为,例如:确定用户将电子设备放在耳边。以及响应于该分析结果而修改该电子设备的至少一个设定。例如如何处理来自输入输出设备的输入或输出数据。该电子设备可以是诸如蜂窝电话之类的电话、集成的电话和媒体播放器、或者其他类型的可包括传感器和处理来自传感器的数据的设备,并且输入输出设备可以是音频输入输出设备、键区或者多点触摸输入板。传感器可以是各种传感器中的任何一种,包括接近度传感器、温度传感器、加速度计、光传感器、位置确定设备、定 向确定设备、射频电磁波传感器、触摸输入板、运动传感器或者声音传感器。在某些实施例中,该电子设备可以包括一起向至少一个处理器提供数据的多个传感器,该处理器分析该数据以确定用户的行为。在至少某些实施例中,分析可以使用人工智能处理,该处理包括对从一个或多个传感器得出的数据与阈值进行比较;例如,来自接近度传感器的数据可与阈值相比较,该阈值代表设备的一部分与用户的耳朵或头部之间的距离。来自传感器的数据可以代表传感器所检测到的模拟值;该模拟值可以表明各种模拟值中的任何一种,这些模拟值例如包括距离、温度、光强度、对运动或定向的测量、对声音强度的测量或者射频(Radio Frequency,RF)电磁测量。在至少某些实施例中,可能需要人工智能处理以接收数据并从一组可能的解释中选择对数据的解释,并且所选择的解释进而将用于决定如何修改上述至少一个设定。被修改的设定可以是各种设定中的任何一种,这些设定例如包括显示器照明器的设定、声音输入或声音输出参数的设定、声音输出设备的设定、与接收用户输入有关的输入设备的状态的设定、通信参数的设定、处理器的设定或者设备模式(例如,蜂窝电话模式或媒体播放器模式)的设定。
步骤102,当该接近度数据满足预设条件时,电子设备的听筒输出音频信号。
在一个示例中,接近度数据可以代表电子设备与障碍物之间的距离。
当该接近度数据满足预设条件,即:所述电子设备与障碍物之间的的距离小于或等于预设距离时,电子设备的听筒输出音频信号。
在一个示例中,当电子设备的听筒输出音频信号时,电子设备输出提示信息,提示信息为提示文本或提示音,用于提示用户听筒输出音频信号。
在一个示例中,当接近度数据不满足预设条件,即:所述电子设备与障碍物之间的的距离大于预设距离时,电子设备的听筒不输出音频信号,而是通过音频输出设备输出音频信号。
在一个示例中,所述接近度数据代表所述电子设备与障碍物之间的距离; 步骤101中,当电子设备连接有音频输出设备且有音频信号输出时,获取预设时间段内所述接近度传感器的多个接近度数据;步骤102中,所述接近度数据满足预设条件,具体为:所述多个接近度数据中存在至少一个接近度数据满足第一预设条件,和/或,所述多个接近度数据随时间的变化趋势满足第二预设条件,所述接近度数据满足预设条件的持续时间大于预设时间。
其中,所述接近度数据代表所述电子设备与障碍物之间的距离,所述多个接近度数据中存在至少一个接近度数据满足第一预设条件代表所述电子设备与所述障碍物之间的的距离小于或等于预设距离。所述多个接近度数据随时间的变化趋势满足第二预设条件具体可以为:所述多个接近度数据随时间的变化趋势满足递减的趋势。
由上可见,本发明实施例中,通过判断所述接近度数据满足预设条件的持续时间大于预设时间,以判断所述接近度数据满足预设条件,提高了判断所述接近度数据满足预设条件的准确率。
步骤103,确定音频输出设备的类型。
具体地,可以将音频输出设备划分为两类。一类为具有音频外放功能的音频输出设备,简称为外放设备,例如,外放音响;另一类为不具有音频外放功能的音频输出设备,例如,耳机。
本发明实施例中,对于步骤102和步骤103的执行顺序不做具体限定,可以先执行步骤102再执行步骤103,也可以先执行步骤103再执行步骤102,还可以同时执行步骤102和步骤103。
步骤104,根据音频输出设备的类型,确定该音频输出设备是否输出音频信号。
在一个示例中,当音频输出设备为耳机时,该音频输出设备输出音频信号。
在一个示例中,当音频输出设备为外放设备时,该音频输出设备不输出音频信号。
本发明实施例中,当电子设备的听筒输出音频信号时,音频输出设备可以输出音频信号,也可以不输出音频信号;在一个示例中,可以根据音频输出设备的类型确定该音频输出设备是否输出音频信号,当音频输出设备的类型标识出该音频输出设备不具有音频外放功能(例如耳机)时,该音频输出设备输出音频信号,能够避免判断失误时用户通过音频输出设备听不到声音;当音频输出设备的类型标识出该音频输出设备具有音频外放功能(例如音箱)时,该音频输出设备不输出音频信号,从而保护用户的隐私安全。
在一个示例中,可以采用如下方式使电子设备的听筒输出音频:当接近度数据满足预设条件时,将音频信号的音频类型设置为自定义音频类型;根据预先设置的自定义音频类型与听筒之间的对应关系,通过听筒输出音频信号。
在一个示例中,可以采用如下方式使电子设备的听筒和音频输出设备输出音频:当接近度数据满足预设条件且音频输出设备不具有音频外放功能时,将音频信号的音频类型设置为自定义音频类型;根据预先设置的自定义音频类型与听筒和音频输出设备之间的对应关系,通过听筒和音频输出设备输出音频信号。
本发明实施例中,可以通过接近度数据满足预设条件来判断出用户将电子设备放在耳边接听,使得用户将电子设备放在耳边接听时也能通过听筒听到声音。在电子设备连接了其他音频输出设备时提升用户体验;此外,根据音频输出设备的类型,存在两种输出音频信号的方式:听筒和音频输出设备均输出音频信号,或仅通过听筒输出音频信号。根据音频输出设备的类型,选择其中的一种方式输出音频信号,提高了电子设备输出音频信号的灵活性。
下面针对用户使用手机接听电话的应用场景为例,对本发明提供的输出音频的方法进行具体说明。
图2为本发明实施例提供的另一种输出音频的方法流程图,该方法由具有接近度传感器的手机执行,该方法包括:
步骤201,当手机接收到用户输入的接听来电的指示信息时,确认自身连接了除听筒外的其他音频输出设备,确定音频输出设备的类型。
其中,手机可以不仅检测通过有线方式连接了除听筒外的其他音频输出设备,还检测通过无线方式连接了除听筒外的其他音频输出设备。
上述音频信号包括来电铃声信号和/或通话语音信号。
电子设备根据音频信号以及所连接的其他音频输出设备动态更新音频策略表,所述音频策略表包括所述音频信号与输出所述音频信号的音频输出设备的对应关系。
例如,当电子设备收到来电响铃,通过查询所述音频策略表,配置与所述来电响铃对应的音频输出设备。
步骤202,获取接近度传感器的接近度数据。
本发明实施例中,接近度传感器具体可以为距离传感器,接近度数据可以代表手机与障碍物之间的距离。获取接近度数据的实现方法与步骤101中获取接近度数据的实现方法相同。
步骤203,当接近度数据满足预设条件时,手机的听筒输出音频信号。
本发明实施例中,通过判断接近度数据是否满足预设条件,即:判断用户是否将手机放在耳边,确定电子设备的听筒是否输出音频信号,。当接近度数据满足预设条件,即:用户将手机放在耳边时,通过手机的听筒输出音频信号。
本发明实施例中,通过检测手机与障碍物之间的距离,确定是否通过手机的听筒输出音频信号。当接近度数据满足预设条件,即:手机与障碍物之间的的距离小于或等于有效接听距离时,则确定用户将手机放在耳边,通过手机听筒输出音频信号;当接近度数据不满足预设条件,即:手机与障碍物之间的的距离大于所述有效接听距离时,则确定用户没有将手机放在耳边,手机的听筒不输出音频信号。
其中,接近度数据满足预设条件,包括:接近度数据满足预设条件的持 续时间大于预设时间,即用户将手机放在耳边的持续时间大于预设时间。当用户将手机放在耳边的持续时间大于预设时间时,通过手机听筒输出音频信号,提升检测结果的准确性。上述预设时间段例如为2秒。
步骤204,根据音频输出设备的类型,确定音频输出设备是否输出音频信号。
当所述音频输出设备为不具有音频外放功能的耳机时,所述音频输出设备输出所述音频信号。当所述音频输出设备为具有音频外放功能的设备时,所述音频输出设备不输出所述音频信号。
本发明实施例中,当手机连接有其他音频输出设备且接收到接听来电的指示信息时,检测到用户将手机放在耳边,用户可以通过听筒听到声音。并且,还可以根据音频输出设备的类型,确定该音频输出设备是否输出通话语音信号。
在一个示例中,当接近度数据满足预设条件时,将音频信号的音频类型设置为自定义音频类型;根据预先设置的所述自定义音频类型与所述听筒之间的对应关系,通过与所述自定义音频类型对应的音频输出设备输出该音频信号。例如,音频类型与音频输出设备之间的对应关系可以如表一所示。
音频类型 音频输出设备
音乐 扬声器
来电铃声 扬声器
通话语音 耳机
自定义音频类型1 听筒
自定义音频类型2 听筒+耳机
表一
本发明实施例实现了:当音频输出设备为不具有音频外放功能的耳机时,音频输出设备输出通话语音信号,即:通过听筒和耳机都输出通话语音信号,可以在判断用户将手机放在耳边的判断结果有误的情况下,用户通过耳机也 能听到通话语音,提升了用户体验。当音频输出设备为具有音频外放功能的设备时,音频输出设备不输出通话语音信号。即:仅通过听筒输出通话语音信号,可以防止其他人听到,保护了用户的隐私安全。
在一个示例中,该方法还包括:
步骤205,当接近度数据不满足预设条件时,通过音频输出设备输出音频信号。
其中,可以采用预先设置音频类型与音频输出设备之间的对应关系的方式,来实现步骤205。
下面通过一个具体的实施例来介绍本发明提供的确定音频输出设备的类型的方法。
在一个示例中,可以采用如下方式判断是否有设备以有线方式插入手机:
使用Android里提供的AudioManager中的isWiredHeadsetOn()方法;如果有设备以有线方式插入手机,该方法返回true,否则返回false。
可选的,当判断插入的是有线设备后,通过阻抗特性,区分有线耳机和有线音箱。
在一个示例中,可以采用如下方式判断是否有耳机或外放音响等音频输出设备通过蓝牙方式连接到手机:
获取手机上连接的蓝牙设备的蓝牙类型,当该蓝牙类型属于音频输出设备的蓝牙类型列表中的任意一个时,确认有音频输出设备通过蓝牙方式连接到手机。
Android本身规定了一系列的蓝牙类型,具体在BluetoothClass.Device类里面定义了一系列的蓝牙类型,包括耳机、车载设备等,手机根据连接着的蓝牙设备其自带的属性,判断蓝牙设备(BluetoothDevice)的蓝牙类型与BluetoothClass.Device里面规定的类型对比即可找到对应类型,下面是蓝牙厂商之间的约定类型。
int AUDIO_VIDEO_CAMCORDER
int AUDIO_VIDEO_CAR_AUDIO
int AUDIO_VIDEO_HANDSFREE
int AUDIO_VIDEO_HEADPHONES
int AUDIO_VIDEO_HIFI_AUDIO
int AUDIO_VIDEO_LOUDSPEAKER
int AUDIO_VIDEO_MICROPHONE
当BluetoothDevice==
     AUDIO_VIDEO_CAR_AUDIO||AUDIO_VIDEO_HANDSFREE
||AUDIO_VIDEO_HEADPHONES||AUDIO_VIDEO_HIFI_AUDIO
||AUDIO_VIDEO_MICROPHONE
时,即判断耳机或外放音响等音频输出设备通过蓝牙方式连接着手机。
下面结合手机操作系统(Operating System,OS)的音频输出结构,对本发明实施例提供的输出音频的方法进行具体说明。
图3为手机OS的音频输出结构示意图。参照图3,音频输出依次经过应用层、Java框架和AudiHAL三层。
其中,Phone app为应用层的电话应用程序,该电话应用程序可以提醒用户来电,接收用户接听新来电的指示信息,并且,当判断出接近度数据满足预设条件,即手机靠近耳边时,向Java框架中的AudioService发送通知消息,该通知消息用于指示手机放在了耳边。
AudioService属于Java框架层,是Android OS里一个音频系统的大本营,它的主要功能:音量控制、音量键的处理、音频IO设备的管理。本发明实施例中,AudioService在接收到Phone app发送的通知消息后,将通知消息发送给AudioSystem。
AudioSystem属于Java框架层,充当取样音频系统资源的入口点,允许查询和访问安装在系统上的混频器,AudioSystem包括许多在不同格式间转换音频数据的方法,以及在音频文件和流之间进行转换的方法。AudioSystem 在接收到AudioService发送的通知消息后,再将上述通知消息发送给AudiHAL层的AudioPolicyManager。
AudiHAL层是Android音频底层,是同音频设备通信、控制的一个逻辑层。Android的音频管理策略为:Android为不同音频类型设置了不同的路由,根据路由选择不同的输出设备。且根据音频类型,电子设备所连接的音频输出设备创建对应关系。例如,当应用层向AudioService发送的音频类型是STREAM_MUSIC,且电子设备连接有耳机时,根据音频策略表确定音频类型为STREAM_MUSIC的声音会从耳机输出,如果音频类型是STREAM_RING,则会从耳机和扬声器(speaker)同时传出来。
根据路由为不同音频类型选择对应的输出设备主要在AudioPolicyManager的getDeviceForStrategy方法,因此通过增加自定义音频类型和修改getDeviceForStrategy的音频策略,即可以对android的音频管理策略实现自定义。
例如,新增一种音频类型STREAM_CALLING_NEW,为该音频类型配置对应的音频输出设备为手机听筒和耳机设备。
当AudioPolicyManager收到上层应用传递的通知消息时,设置音频类型为STREAM_CALLING_NEW,getDeviceForStrategy根据修改的音频策略,选择手机听筒和耳机做为输出设备。
本发明实施例提供的输出音频的方法,简单、容易实现,提升了用户体验。
图4为本发明实施例提供的一种电子设备结构图,该电子设备用于执行本发明实施例提供的输出音频的方法,该电子设备包括:
处理器401、存储器402、听筒403、接近度传感器404和接口电路405;
其中,所述存储器402用于存储计算机可执行程序代码,所述程序代码包括指令,
所述处理器401调用存储在所述存储器402中的指令以实现上述图1中 的步骤101~104、图2中的步骤201~205以及输出音频的方法设计中的方案,由于该电子设备解决问题的实施方式以及有益效果可以参见上述方法的实施以及有益效果,因此该电子设备的实施可以参见方法的实施,重复之处不再赘述。
图5为本发明实施例提供的另一种电子设备结构图,该电子设备用于执行本发明实施例提供的输出音频的方法,该电子设备包括:获取单元501和处理单元502。获取单元501用于实现上述图1中的步骤101、图2中的步骤202;处理单元502用于执行上述图1中的步骤102~104、图2中的步骤201、203~205以及输出音频的方法,由于该电子设备解决问题的实施方式以及有益效果可以参见上述方法的实施以及有益效果,因此该电子设备的实施可以参见方法的实施,重复之处不再赘述。
专业人员应该还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
在本申请所提供的几个实施例中,应该理解到,所揭露的电子设备、方法,可以通过其它的方式实现。例如,以上所描述的实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,电子设备或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地 方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元,可以存储在一个非易失性计算机可读取存储介质中。上述软件功能单元存储在一个非易失性存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器RAM、磁碟或者光盘等各种可以存储程序代码的介质。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (19)

  1. 一种输出音频的方法,应用于具有接近度传感器的电子设备,其特征在于,所述方法包括:
    当电子设备连接有音频输出设备且有音频信号输出时,获取所述接近度传感器的接近度数据;
    当所述接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号,以及确定所述音频输出设备的类型;
    根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号。
  2. 如权利要求1所述的方法,其特征在于,所述根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号,包括:当所述音频输出设备为耳机时,所述音频输出设备输出所述音频信号。
  3. 如权利要求1所述的方法,其特征在于,所述根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号,包括:
    当所述音频输出设备为外放设备时,所述音频输出设备不输出所述音频信号。
  4. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述电子设备的听筒输出所述音频信号时,所述电子设备输出提示信息,所述提示信息为提示文本或提示音。
  5. 如权利要求1至4中任一项所述的方法,其特征在于,所述接近度数据满足预设条件的持续时间大于预设时间。
  6. 如权利要求1至5中任一项所述的方法,其特征在于,所述当所述接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号,包括:
    当所述接近度数据满足预设条件时,将所述音频信号的音频类型设置为自定义音频类型;
    根据预先设置的所述自定义音频类型与所述听筒之间的对应关系,通过 所述听筒输出所述音频信号。
  7. 一种电子设备,其特征在于,所述电子设备包括:
    处理器、存储器、听筒、接近度传感器和接口电路;
    其中,所述存储器用于存储计算机可执行程序代码,所述程序代码包括指令,当所述处理器执行所述指令时,所述指令使所述电子设备执行以下操作:
    当所述电子设备通过所述接口电路连接有音频输出设备且有音频信号输出时,获取所述接近度传感器的接近度数据;
    当所述接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号,以及确定所述音频输出设备的类型;
    根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号。
  8. 如权利要求7所述的电子设备,其特征在于,当所述处理器执行所述指令时,所述指令使所述电子设备执行所述根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号的操作,包括:
    当所述音频输出设备为耳机时,所述音频输出设备输出所述音频信号。
  9. 如权利要求7所述的电子设备,其特征在于,当所述处理器执行所述指令时,所述指令使所述电子设备执行所述根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号的操作,包括:
    当所述音频输出设备为外放设备时,所述音频输出设备不输出所述音频信号。
  10. 如权利要求7所述的电子设备,其特征在于,当所述处理器执行所述指令时,所述指令还使所述电子设备执行以下操作:
    当所述电子设备的听筒输出所述音频信号时,所述电子设备输出提示信息,所述提示信息为提示文本或提示音。
  11. 如权利要求7至10中任一项所述的电子设备,其特征在于,所述接 近度数据满足预设条件的持续时间大于预设时间。
  12. 如权利要求7至11中任一项所述的电子设备,其特征在于,当所述处理器执行所述指令时,所述指令使所述电子设备执行所述当所述接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号的操作,包括:
    当所述接近度数据满足预设条件时,将所述音频信号的音频类型设置为自定义音频类型;
    根据预先设置的所述自定义音频类型与所述听筒之间的对应关系,通过所述听筒输出所述音频信号。
  13. 一种电子设备,其特征在于,所述电子设备包括:
    获取单元,用于当所述电子设备连接有音频输出设备且有音频信号输出时,获取所述接近度传感器的接近度数据;
    处理单元,用于当所述获取单元获取的接近度数据满足预设条件时,所述电子设备的听筒输出所述音频信号,以及确定所述音频输出设备的类型;根据所述音频输出设备的类型,确定所述音频输出设备是否输出所述音频信号。
  14. 如权利要求13所述的电子设备,其特征在于,所述处理单元具体用于:当所述音频输出设备为耳机时,所述音频输出设备输出所述音频信号。
  15. 如权利要求13所述的电子设备,其特征在于,所述处理单元具体用于:
    当所述音频输出设备为外放设备时,所述音频输出设备不输出所述音频信号。
  16. 如权利要求13所述的电子设备,其特征在于,所述处理单元还用于:
    当所述电子设备的听筒输出所述音频信号时,所述电子设备输出提示信息,所述提示信息为提示文本或提示音。
  17. 如权利要求13至16中任一项所述的电子设备,其特征在于,所述接近度数据满足预设条件的持续时间大于预设时间。
  18. 如权利要求13至17中任一项所述的电子设备,其特征在于,所述处理单元具体用于:
    当所述接近度数据满足预设条件时,将所述音频信号的音频类型设置为自定义音频类型;
    根据预先设置的所述自定义音频类型与所述听筒之间的对应关系,通过所述听筒输出所述音频信号。
  19. 一种存储程序的计算机可读存储介质,其特征在于,所述程序包括指令,所述指令当被电子设备执行时,使所述电子设备执行根据权利要求1-6任一项所述的方法。
PCT/CN2016/097013 2016-08-26 2016-08-26 输出音频的方法、电子设备以及存储介质 WO2018035868A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
US16/328,511 US10620908B2 (en) 2016-08-26 2016-08-26 Audio output method, electronic device, and storage medium
PCT/CN2016/097013 WO2018035868A1 (zh) 2016-08-26 2016-08-26 输出音频的方法、电子设备以及存储介质
EP16913889.8A EP3499856A4 (en) 2016-08-26 2016-08-26 AUDIO OUTPUT METHOD, ELECTRONIC DEVICE, AND STORAGE MEDIUM
CN201680080878.8A CN108541370A (zh) 2016-08-26 2016-08-26 输出音频的方法、电子设备以及存储介质
CN202310651827.8A CN116527810A (zh) 2016-08-26 2016-08-26 输出音频的方法、电子设备以及存储介质
US16/750,627 US10963214B2 (en) 2016-08-26 2020-01-23 Audio output method, electronic device, and storage medium
US17/189,458 US11507340B2 (en) 2016-08-26 2021-03-02 Audio output method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/097013 WO2018035868A1 (zh) 2016-08-26 2016-08-26 输出音频的方法、电子设备以及存储介质

Related Child Applications (2)

Application Number Title Priority Date Filing Date
US16/328,511 A-371-Of-International US10620908B2 (en) 2016-08-26 2016-08-26 Audio output method, electronic device, and storage medium
US16/750,627 Continuation US10963214B2 (en) 2016-08-26 2020-01-23 Audio output method, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2018035868A1 true WO2018035868A1 (zh) 2018-03-01

Family

ID=61245381

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/097013 WO2018035868A1 (zh) 2016-08-26 2016-08-26 输出音频的方法、电子设备以及存储介质

Country Status (4)

Country Link
US (3) US10620908B2 (zh)
EP (1) EP3499856A4 (zh)
CN (2) CN108541370A (zh)
WO (1) WO2018035868A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10620908B2 (en) 2016-08-26 2020-04-14 Huawei Technologies Co., Ltd. Audio output method, electronic device, and storage medium
CN110413252A (zh) * 2019-07-05 2019-11-05 深圳前海达闼云端智能科技有限公司 一种音频输出方法及其装置、终端
CN113890929B (zh) * 2020-06-16 2023-03-10 华为技术有限公司 一种切换音频输出通道的方法、装置和电子设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729604A (en) * 1996-03-14 1998-03-17 Northern Telecom Limited Safety switch for communication device
CN1921665A (zh) * 2005-08-26 2007-02-28 乐金电子(中国)研究开发中心有限公司 具有语音输出转换功能的移动通信终端及操作方法
CN102611961A (zh) * 2011-01-20 2012-07-25 三星电子(中国)研发中心 一种终端的多路音频切换方法及装置
CN104065827A (zh) * 2014-06-30 2014-09-24 宇龙计算机通信科技(深圳)有限公司 一种终端语音模式切换方法、装置及终端
CN105677288A (zh) * 2015-12-30 2016-06-15 联想(北京)有限公司 一种内、外音频输出设备同时驱动的实现系统及方法

Family Cites Families (40)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020080557A (ko) * 2001-04-16 2002-10-26 주식회사 엠피맨닷컴 블루투스 통신기능을 갖는 휴대용 오디오 플레이어와 이를이용한 휴대폰 통화를 위한 신호처리방법
JP2003258944A (ja) 2002-02-28 2003-09-12 Nec Saitama Ltd 折り畳み式携帯電話機およびスライド式携帯電話機
KR200294822Y1 (ko) * 2002-08-23 2002-11-13 주식회사 현원 디지털 오디오기기에서의 휴대용 단말기 신호처리 장치
KR20060106299A (ko) 2005-04-07 2006-10-12 주식회사 팬택 이어폰 장착 여부의 감지를 통한 자동 멈춤 및 전원 오프기능을 제공하는 오디오 장치 및 그 방법
JP2008187221A (ja) 2007-01-26 2008-08-14 Fujitsu Ltd 携帯端末装置、その通話切替方法、その通話切替プログラム、及び通話切替プログラムを格納した記録媒体
US8068925B2 (en) 2007-06-28 2011-11-29 Apple Inc. Dynamic routing of audio among multiple audio devices
US8195220B2 (en) 2008-02-01 2012-06-05 Lg Electronics Inc. User interface for mobile devices
KR20090100194A (ko) 2008-03-19 2009-09-23 엘지전자 주식회사 이동 단말기의 사용자 인터페이스 및 그 제어방법
US8254984B2 (en) * 2009-10-14 2012-08-28 Cisco Technology, Inc. Speaker activation for mobile communication device
US20110183629A1 (en) * 2010-01-26 2011-07-28 Broadcom Corporation Mobile Communication Devices Having Adaptable Features and Methods for Implementation
US20110223974A1 (en) 2010-03-10 2011-09-15 Sony Ericsson Mobile Communications Ab Mobile communication device and method for operating a mobile communication device
US8358977B2 (en) * 2010-04-22 2013-01-22 Hewlett-Packard Development Company, L.P. Use of mobile computing device sensors to initiate a telephone call or modify telephone operation
JP5567914B2 (ja) * 2010-06-25 2014-08-06 京セラ株式会社 携帯端末装置
CN101895799B (zh) 2010-07-07 2015-08-12 中兴通讯股份有限公司 音乐播放的控制方法及音乐播放终端
CN101917514B (zh) 2010-08-05 2013-03-13 宇龙计算机通信科技(深圳)有限公司 一种应用程序控制方法及系统、终端、耳机
CN103259902B (zh) * 2012-02-15 2015-12-16 宇龙计算机通信科技(深圳)有限公司 终端和通话方法
US20130279724A1 (en) 2012-04-19 2013-10-24 Sony Computer Entertainment Inc. Auto detection of headphone orientation
JP5852510B2 (ja) 2012-05-29 2016-02-03 京セラ株式会社 携帯型電子機器
KR101910509B1 (ko) 2012-07-17 2018-10-22 삼성전자주식회사 전자장치에서 자동응답시스템 서비스 이용중 화면 꺼짐 방지를 위한 방법 및 장치
CN103634447B (zh) * 2012-08-21 2018-03-23 联想(北京)有限公司 一种电子设备的控制方法、控制装置及电子设备
CN202873023U (zh) 2012-09-21 2013-04-10 天津市滨海新区塘沽海天科贸有限公司 一种具备压力感应的蓝牙耳机
CN102932536B (zh) * 2012-10-18 2014-12-24 小米科技有限责任公司 通信处理方法及装置
KR101967917B1 (ko) 2012-10-30 2019-08-13 삼성전자주식회사 음성을 인식하는 전자 장치 및 방법
CN102981741B (zh) 2012-11-14 2016-08-03 广东欧珀移动通信有限公司 一种移动终端控制音频播放的方法及系统
CN103828335A (zh) 2012-11-20 2014-05-28 华为终端有限公司 一种终端及自动接听来电的方法
CN103024193A (zh) 2012-12-25 2013-04-03 北京百度网讯科技有限公司 用于移动终端的播放控制方法、装置和移动终端
US8706162B1 (en) * 2013-03-05 2014-04-22 Sony Corporation Automatic routing of call audio at incoming call
CN103257873B (zh) 2013-04-18 2016-07-06 小米科技有限责任公司 一种智能终端设备的控制方法和系统
US9402124B2 (en) 2013-04-18 2016-07-26 Xiaomi Inc. Method for controlling terminal device and the smart terminal device thereof
JP2015037246A (ja) * 2013-08-13 2015-02-23 ソニー株式会社 ヘッドフォン型音響装置およびその制御方法
CN103517177A (zh) 2013-09-06 2014-01-15 江苏爱福特科技开发有限公司 一种自动耳机
CN105794186A (zh) 2014-09-26 2016-07-20 华为技术有限公司 控制应用程序的方法、装置和电子设备
CN104616676A (zh) 2014-12-15 2015-05-13 惠州Tcl移动通信有限公司 基于耳机使用状态的多媒体文件的播放方法及系统
CN104717363A (zh) 2015-03-23 2015-06-17 努比亚技术有限公司 一种移动终端及其快速进行音频通道切换的方法和装置
CN104935729B (zh) * 2015-04-28 2018-05-25 小米科技有限责任公司 音频输出方法和装置
CN105187639A (zh) 2015-08-17 2015-12-23 厦门美图移动科技有限公司 一种通话过程中切换通话模式的方法、设备及移动终端
CN107438131A (zh) 2016-05-25 2017-12-05 中兴通讯股份有限公司 一种通话模式切换的方法及移动终端
CN105812585A (zh) 2016-06-01 2016-07-27 珠海市魅族科技有限公司 一种通话方式切换方法以及移动终端
CN106101427A (zh) 2016-06-30 2016-11-09 上海与德通讯技术有限公司 一种移动终端及其通话的误操作防止方法
US10620908B2 (en) * 2016-08-26 2020-04-14 Huawei Technologies Co., Ltd. Audio output method, electronic device, and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5729604A (en) * 1996-03-14 1998-03-17 Northern Telecom Limited Safety switch for communication device
CN1921665A (zh) * 2005-08-26 2007-02-28 乐金电子(中国)研究开发中心有限公司 具有语音输出转换功能的移动通信终端及操作方法
CN102611961A (zh) * 2011-01-20 2012-07-25 三星电子(中国)研发中心 一种终端的多路音频切换方法及装置
CN104065827A (zh) * 2014-06-30 2014-09-24 宇龙计算机通信科技(深圳)有限公司 一种终端语音模式切换方法、装置及终端
CN105677288A (zh) * 2015-12-30 2016-06-15 联想(北京)有限公司 一种内、外音频输出设备同时驱动的实现系统及方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3499856A4 *

Also Published As

Publication number Publication date
US20200192628A1 (en) 2020-06-18
US20190354340A1 (en) 2019-11-21
CN108541370A (zh) 2018-09-14
US20210182016A1 (en) 2021-06-17
EP3499856A1 (en) 2019-06-19
US10620908B2 (en) 2020-04-14
US11507340B2 (en) 2022-11-22
EP3499856A4 (en) 2019-08-07
CN116527810A (zh) 2023-08-01
US10963214B2 (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN108605073B (zh) 声音信号处理的方法、终端和耳机
US20140056439A1 (en) Electronic device and method for selecting microphone by detecting voice signal strength
CN109104684B (zh) 麦克风堵孔检测方法及相关产品
US11507340B2 (en) Audio output method, electronic device, and storage medium
JP2007520943A (ja) ノイズの大きい環境における電話機の拡張された使用
CN101523881A (zh) 用于提供报警信号的方法
CN108777827B (zh) 无线耳机、音量调整方法及相关产品
US10121491B2 (en) Intelligent volume control interface
CN106210960A (zh) 具有本地通话情况确认模式的耳机装置
TW201448556A (zh) 音量調節系統及方法
WO2020107290A1 (zh) 音频输出控制方法和装置、计算机可读存储介质、电子设备
JP5973289B2 (ja) 携帯端末、音声制御プログラムおよび音声制御方法
CN108093132B (zh) 终端设备及铃声音量的控制方法
CN116471355B (zh) 音频播放的方法及电子设备
JP5890289B2 (ja) 携帯端末、音声制御プログラムおよび音声制御方法
CN104980583A (zh) 一种事件提醒方法及终端
CN112019678B (zh) 终端、处理方法及计算机存储介质
WO2015030642A1 (en) Volume reduction for an electronic device
CN108377298B (zh) 一种切换接听模式的方法、装置、移动终端和计算机可读存储介质
JP2012109769A (ja) 放音装置
CN109618062B (zh) 语音交互方法、装置、设备以及计算机可读存储介质
KR20050104783A (ko) 이동 통신 단말기의 전화 알람 방법
CN104754120B (zh) 一种终端
CN113660572B (zh) 耳机通话控制方法、装置、耳机设备及存储介质
WO2020097914A1 (zh) 一种音频模式调节的方法、装置及电子设备

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2016913889

Country of ref document: EP

Effective date: 20190313