WO2023160204A1 - 音频处理方法及电子设备 - Google Patents

音频处理方法及电子设备 Download PDF

Info

Publication number
WO2023160204A1
WO2023160204A1 PCT/CN2022/141748 CN2022141748W WO2023160204A1 WO 2023160204 A1 WO2023160204 A1 WO 2023160204A1 CN 2022141748 W CN2022141748 W CN 2022141748W WO 2023160204 A1 WO2023160204 A1 WO 2023160204A1
Authority
WO
WIPO (PCT)
Prior art keywords
volume
mode
voice
call
output
Prior art date
Application number
PCT/CN2022/141748
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 CN202280069266.4A priority Critical patent/CN118120217A/zh
Publication of WO2023160204A1 publication Critical patent/WO2023160204A1/zh

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
    • 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/72484User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events

Definitions

  • the present application relates to the technical field of electronic equipment, in particular to an audio processing method and electronic equipment.
  • the mobile phones adopt the handset arranged on the top of the mobile phone to realize the voice communication of the mobile phone.
  • the mobile phone needs to set a sound hole correspondingly at the position of the earpiece to release the energy of the earpiece when the sound is produced, and the sound hole is generally set on the front panel of the mobile phone.
  • the sound outlet of some full-screen mobile phones is designed as a long slit, which is located at the connection between the middle frame and the front panel of the mobile phone.
  • a hole is added to the top of the middle frame as a sound hole.
  • the voice output through the earpiece is not only emitted from the sound hole at the side seam, but also a large part of the energy is emitted from the top sound hole. Therefore, the sound coming out of the sound hole can not only be heard by the user, but also can be heard by other users in a quiet environment. There is a sound leakage phenomenon, which easily leaks user privacy.
  • the present application provides an audio processing method and an electronic device, which solve the problem of sound leakage when a user holds a mobile phone and listens to the ear through a receiver.
  • the present application provides an audio processing method, which is applied to an electronic device.
  • the electronic device includes an earpiece, a screen, and a screen sounding device.
  • the screen sounding device is used to drive the screen to perform screen sounding.
  • the method includes:
  • the electronic device In response to the first operation, the electronic device enters a voice call state, and outputs voice according to a first output strategy corresponding to the private call mode, and the first output strategy is to output voice through a screen;
  • the second operation is used to trigger an increase in the output volume of the electronic device
  • the private call mode is automatically enabled, for example, the voice can be output through the screen to avoid sound leakage, protect the privacy of the user's call, and improve the user's call experience.
  • the user’s operation to increase the volume is received, if it is judged that the adjusted volume level is greater than the preset volume level, the high volume mode will be enabled.
  • the voice can be output through the earpiece to ensure a good sound effect and improve the user’s call experience.
  • the first output strategy is to output voice through the screen and the earpiece; where, when the voice is output through the screen and the earpiece in the private call mode, the volume intensity of the sound from the screen is greater than or equal to the volume intensity of the voice from the earpiece.
  • the screen and the earpiece can be used to simultaneously sound and control the two sounding methods to sound at different volume levels.
  • the intensity of the sound from the screen is greater than or equal to the sound from the earpiece to avoid sound leakage.
  • the second output strategy is to output voice through the earpiece and the screen; wherein, when the voice is output through the screen and the earpiece in the high volume mode, the volume intensity of the earpiece is greater than the volume intensity of the screen.
  • the screen and the earpiece can simultaneously sound and control the two sounding methods to sound at different volume intensities.
  • the sound intensity of the earpiece is greater than that of the screen to ensure a good sound effect , to improve user call experience.
  • the total intensity of the output volume in the private call mode is equal to the total intensity of the output volume in the loud volume mode.
  • the above method may further include: when switching from the private call mode to the loud volume mode, increasing the total intensity of the output volume of the electronic device.
  • the above method may further include:
  • the third operation is used to trigger the output volume of the electronic device to decrease
  • the private call mode is enabled to avoid sound leakage, protect the user’s call privacy, and improve the user’s call experience.
  • the above-mentioned first output strategy corresponding to the private call mode outputs voice, including:
  • the voice is output according to the first output policy corresponding to the private call mode.
  • the output volume of the electronic device is represented by a volume level, and the preset volume is represented by a preset volume level; or, the output volume of the electronic device is represented by a volume decibel value, and the preset volume is represented by a preset volume expressed in decibels.
  • the output volume range of the electronic device includes a preset volume decibel value range, and the preset volume decibel value range is divided into N levels, and the N volume levels are the same as the preset volume decibel value range. There is a one-to-one correspondence between the N decibel values in the range.
  • the above N volume levels include volume level 1 to volume level 10; wherein, the private call mode corresponds to volume level 1 to volume level 1, and the loud volume mode corresponds to volume level 1+1 to volume level 10, Wherein I is an integer greater than 1 and less than 10.
  • the preset volume decibel value range is [2.5dB, 25dB].
  • the preset volume level is volume level 6, and the volume decibel value corresponding to volume level 6 is 15 dB.
  • the above method may also include:
  • the first prompt message and/or the second prompt message are displayed in the first area of the voice call interface, the first prompt message is used to prompt that the private call function has been turned on, and the first prompt message uses to guide the user to approach the first area to answer the call;
  • the first area is the area of the screen closest to the screen sound emitting device.
  • the above-mentioned first area in the voice call interface displays the first prompt information and/or the second prompt information, including: alternately displaying the first prompt information and the second prompt information in the first area of the voice call interface The second prompt message.
  • the above method further includes: when switching from the private call mode to the loud volume mode, canceling the display of the first prompt information and the second prompt information.
  • the method also includes:
  • the third prompt message is displayed in the voice call interface of the previous M voice calls, and the third prompt message is used to indicate the effect of the smart private call function after it is turned on;
  • the display of the third prompt information is canceled in the voice call interface of the subsequent voice call.
  • the above method may further include: when the voice is output according to the first output strategy corresponding to the private call mode, displaying an icon for identifying the private call mode in a status bar of the electronic device.
  • the above method may further include: when switching from the private call mode to the loud volume mode, canceling the display of the icon used to identify the private call mode in the status bar of the electronic device.
  • the above method may also include:
  • a volume bar icon and a call mode icon are displayed in the voice call interface
  • the volume bar icon is used to indicate the output volume during a voice call
  • the call mode icon is used to indicate that the current call mode is a private call mode or a loud volume mode.
  • the call mode icon when the smart private call function is turned on, the call mode icon is an icon for representing the private call mode; or, when the smart private call function is turned off, the call mode icon is an icon for Icon representing loud volume mode.
  • the electronic device may also include a speaker; the above method may also include:
  • voice is output through the speaker, and sound from the earpiece and the screen are stopped.
  • the method may also include:
  • the system setting interface When the user's operation on the system setting icon is received, the system setting interface is displayed, and the system setting interface includes privacy call setting items;
  • the setting interface of the smart private call function is displayed, and the opening control and closing control of the smart private call function are displayed in the setting interface;
  • the smart private call function When receiving the user's operation of opening the control, the smart private call function is turned on; or, when the user's operation of closing the control is received, the smart private call function is turned off.
  • the above method may also include:
  • the above method may further include: jumping from the notification interface to the setting interface of the smart private call function when receiving the user's operation on the first notification card.
  • the foregoing method is applicable to a call scenario of an IP-based voice telephone.
  • the present application provides an audio processing device, which includes a unit for performing the method in the first aspect above.
  • the device may correspond to executing the method described in the first aspect above.
  • the relevant description of the units in the device please refer to the description in the first aspect above, and details are not repeated here for brevity.
  • Hardware or software includes one or more modules or units corresponding to the functions described above. For example, a processing module or unit, a display module or unit, etc.
  • the present application provides an electronic device, the electronic device includes a processor, the processor is coupled with a memory, the memory is used to store computer programs or instructions, and the processor is used to execute the computer programs or instructions stored in the memory, so that in the first aspect method is executed.
  • the processor is used to execute the computer programs or instructions stored in the memory, so that the apparatus performs the method in the first aspect.
  • the present application provides a computer-readable storage medium on which is stored a computer program (also referred to as an instruction or code) for implementing the method in the first aspect.
  • a computer program also referred to as an instruction or code
  • the computer when the computer program is executed by a computer, the computer can execute the method in the first aspect.
  • the present application provides a chip, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to execute the method in the first aspect and any possible implementation manners thereof.
  • the chip further includes a memory, and the memory is connected to the processor through a circuit or wires.
  • the present application provides a chip system, including a processor.
  • the processor is used to read and execute the computer program stored in the memory, so as to execute the method in the first aspect and any possible implementation manners thereof.
  • the chip system further includes a memory, and the memory is connected to the processor through a circuit or wires.
  • the present application provides a computer program product
  • the computer program product includes a computer program (also referred to as an instruction or code), and when the computer program is executed by an electronic device, the electronic device implements the computer program described in the first aspect.
  • Fig. 1 is a schematic structural view of an electronic device provided with a receiver and a sound hole;
  • FIG. 2 is a schematic structural diagram of an electronic device provided with an earpiece and a screen vibrating device according to an embodiment of the present application;
  • FIG. 3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 4 is one of the schematic diagrams of an interface of an audio processing method provided by an embodiment of the present application applied to an electronic device;
  • FIG. 5 is the second schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 6 is the third schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 7 is the fourth schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 8 is a schematic diagram of volume bar changes during mode switching in an audio processing method provided by an embodiment of the present application.
  • FIG. 9 is the fifth schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 10 is the sixth schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 11 is a schematic diagram of volume level division for an audio processing method provided in an embodiment of the present application.
  • FIG. 12 is a schematic diagram of another volume level division applied to an audio processing method provided by an embodiment of the present application.
  • FIG. 13 is one of the schematic diagrams of volume bar changes during mode switching in an audio processing method provided by an embodiment of the present application.
  • Fig. 14 is the second schematic diagram of volume bar changes during mode switching in an audio processing method provided by an embodiment of the present application.
  • Fig. 15 is the third schematic diagram of volume bar changes during mode switching in an audio processing method provided by the embodiment of the present application.
  • Fig. 16 is the seventh schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • Fig. 17 is the eighth schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • Fig. 18 is a ninth schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 19 is the tenth schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • FIG. 20 is the eleventh schematic diagram of an interface of an audio processing method applied to an electronic device provided by the embodiment of the present application.
  • Fig. 21 is a schematic structural diagram of an audio processing device provided by an embodiment of the present application.
  • the mobile phones adopt the handset arranged on the top of the mobile phone to realize the voice communication of the mobile phone.
  • the mobile phone needs to set a sound hole correspondingly at the position of the earpiece to release the energy of the earpiece when the sound is produced, and the sound hole is generally set on the front panel of the mobile phone.
  • the screen-to-body ratio of mobile phone screens is getting higher and higher.
  • the sound hole set on the front panel occupies part of the front panel area of the mobile phone, which will increase the width of the frame of the mobile phone, so it will affect the further improvement of the screen ratio of the mobile phone.
  • the earpiece sound hole of some full-screen mobile phones is designed as a long slit, which is located at the connection between the middle frame and the front panel of the mobile phone. A hole at the top of the middle frame will also be added to the phone as a sound outlet.
  • FIG. 1 shows a schematic structural diagram of a mobile phone.
  • the mobile phone can include a front panel (usually including a screen and a frame) for setting the screen, a rear panel and a middle frame for supporting internal circuits, and a shell can be enclosed by the front panel, rear panel and middle frame. body structure.
  • an earpiece 101 that is, a loudspeaker used for voice communication in voice communication, also called a receiver
  • the mobile phone is provided with two sound outlets (eg, the sound outlet 102 and the sound outlet 103).
  • two sound outlets eg, the sound outlet 102 and the sound outlet 103.
  • FIG. 1 (b) in FIG. 1 is a cross-sectional view of the structure of the mobile phone, wherein the sound hole 102 is located at the connection between the front panel and the middle frame of the mobile phone (ie, at the side seam).
  • the sound hole 103 is located on the middle frame of the mobile phone at a position closer to the earpiece 101 (ie the top position of the middle frame of the mobile phone).
  • FIG. 1 shows a schematic diagram of a scene where a user performs voice communication through a mobile phone.
  • the earpiece of the mobile phone is close to the user's ear (or auricle).
  • the sound hole 102 and the sound hole 103 at the top of the middle frame cannot be completely covered by the user's ears, so the sound coming out of the sound hole can not only be heard by the user, but also can be heard by other users in a quiet environment .
  • an embodiment of the present application provides an audio processing method, which can be applied to an electronic device with a voice communication function, for example, the audio processing method can be applied to a scene where a user uses the above-mentioned electronic device to listen to the sound , for example, the user makes a voice call through the earpiece, or listens to the voice message in the instant messaging application through the earpiece.
  • the above-mentioned electronic equipment may include a display screen (also called a screen), a screen sounding device (that is, a device capable of making sound through screen vibration), and an earpiece (that is, the above-mentioned speaker used for making a sound in a voice communication, also called a receiver) And the sound outlet corresponding to the earpiece.
  • a display screen also called a screen
  • a screen sounding device that is, a device capable of making sound through screen vibration
  • an earpiece that is, the above-mentioned speaker used for making a sound in a voice communication, also called a receiver
  • FIG. 2 shows a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • the electronic equipment in addition to being provided with the earpiece 101, the sound outlet 102 and the sound outlet 103 shown in Figure 1, the electronic equipment is also provided with a screen sound generating device connected to the screen 104.
  • the screen sound generator 104 is a vibration source (also called an exciter) connected to the screen. The exciter causes the screen to vibrate, enabling sound to be emitted through the screen.
  • the screen sound generating device 104 is arranged in the housing structure of the electronic equipment.
  • the voice output mode (also referred to as the listening mode) of the electronic device may include a privacy mode (privacy mode, PVM), a loud volume mode, and a speaker mode.
  • PVM privacy mode
  • the private mode may also be referred to as a private call mode.
  • the electronic device may output voice by combining the screen sound mode and the earpiece sound mode.
  • the voice output intensity (for example, 70%) corresponding to the screen voice mode is greater than or equal to the voice output intensity (for example, 30%) corresponding to the receiver voice mode. That is, the mobile phone can use the screen to play the main sound and the handset to play the sound at the same time.
  • the private call mode can also only use the screen to speak.
  • the electronic device may output voice by combining the earpiece sounding method and the screen sounding method.
  • the voice output intensity for example, 70%
  • the voice output intensity for example, 30%
  • the overall sound volume (or called loudness or intensity) can also be increased on the basis of the volume corresponding to the private call mode, so as to improve the voice playback effect. That is to say, the overall sound loudness when sounding through the earpiece and the screen in the high volume mode is greater than the overall sounding loudness when sounding through the earpiece and the screen in the private call mode.
  • the screen sound mode can effectively prevent sound leakage during voice calls. Therefore, when users make calls in a quiet environment, users usually want to reduce sound leakage. At this time, the private call mode can be used to ensure clear calls At the same time, it reduces sound leakage, thereby protecting user privacy.
  • the electronic device can also output voice only through the screen. It can be understood that the earpiece does not produce sound at this time.
  • the electronic device can also output voice only through the earpiece. It is understandable that the screen does not produce sound at this time.
  • the electronic device after the electronic device turns on the speaker mode, the electronic device outputs voice through a speaker (also referred to as a speaker). Understandably, neither the handset nor the screen produce sound at this time.
  • the voice output mode can be controlled to switch among the private call mode, the loud volume mode and the speaker mode.
  • the specific conditions for triggering the handover and the handover process will be described in detail below.
  • the electronic equipment in the embodiment of the present application may be a mobile phone, a tablet computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant, PDA),
  • PDA personal digital assistant
  • the embodiment of the present application does not specifically limit the specific form of the electronic devices.
  • FIG. 3 shows a schematic structural diagram of another electronic device provided by an embodiment of the present application. That is, for example, the electronic device shown in FIG. 3 may be a mobile phone.
  • mobile phone can comprise: processor 310, external memory interface 320, internal memory 321, universal serial bus (universal serial bus, USB) interface 330, charging management module 340, power management module 341, battery 342, Antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, audio module 370, speaker 370A, receiver (i.e. handset) 370B, microphone 370C, earphone jack 370D, sensor module 380, button 390, motor 391, indicator 392 , camera 393, display screen 394, and subscriber identification module (subscriber identification module, SIM) card interface 395, screen sounding device 396 etc.
  • SIM subscriber identification module
  • the above-mentioned sensor module may include sensors such as pressure sensor, gyroscope sensor, air pressure sensor, magnetic sensor, acceleration sensor, distance sensor, proximity light sensor, fingerprint sensor, temperature sensor, touch sensor, ambient light sensor and bone conduction sensor.
  • the electronic device may detect whether the user's ear is close to the receiver by using sensors such as a proximity sensor (ie, a light sensor) and a distance sensor. For example, the electronic device can detect whether there is a block in front of the front panel (or screen) of the mobile phone through the distance sensor, and the distance between the block and the screen, and determine whether the current user's ear is close to the earpiece.
  • the structure shown in this embodiment does not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the processor 310 may include one or more processing units, for example: the processor 310 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), 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 processor (neural-network processing unit, NPU) wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit, NPU
  • the controller can be the nerve center and command center of the phone.
  • the controller can generate an operation control signal according to the instruction opcode and timing signal, and complete the control of fetching and executing the instruction.
  • a memory may also be provided in the processor 310 for storing instructions and data.
  • the memory in processor 310 is a cache memory.
  • the memory may hold instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to use the instruction or data again, it can be called directly from the memory. Repeated access is avoided, and the waiting time of the processor 310 is reduced, thus improving the efficiency of the system.
  • processor 310 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, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, mobile industry processor interface (mobile industry processor interface, MIPI), general-purpose input and output (general-purpose input/output, GPIO) interface, subscriber identity module (subscriber identity module, SIM) interface, and /or universal serial bus (universal serial bus, USB) interface, etc.
  • 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 and output
  • subscriber identity module subscriber identity module
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the mobile phone.
  • the mobile phone may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the electronic device can determine the category of the current listening environment through the processor 310, and then adjust the frequency band of the earpiece and the frequency band of the screen according to the category, so as to control the earpiece and the screen. Play the sound in the corresponding frequency band in the sound signal respectively, so as to avoid the sound leakage of the electronic device when the human ear listens to the sound in a quiet environment.
  • the charging management module 340 is configured to receive a charging input from a charger (such as a wireless charger or a wired charger) to charge the battery 342 .
  • the power management module 341 is used for connecting the battery 342 , the charging management module 340 and the processor 310 .
  • the power management module 341 receives the input of the battery 342 and/or the charging management module 340 to supply power to various components of the electronic device.
  • the wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 350, the wireless communication module 360, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a mobile phone can be used to cover single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas.
  • Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
  • the antenna may be used in conjunction with a tuning switch.
  • the antenna 1 of the mobile phone is coupled to the mobile communication module 350, and the antenna 2 is coupled to the wireless communication module 360, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
  • the above-mentioned mobile communication module 350 can provide wireless communication solutions including 2G/3G/4G/5G applied to mobile phones.
  • the mobile communication module 350 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA) and the like.
  • the mobile communication module 350 can receive electromagnetic waves through the antenna 1, filter and amplify the received electromagnetic waves, and send them to the modem processor for demodulation.
  • the mobile communication module 350 can also amplify the signal modulated by the modem processor, convert it into electromagnetic wave and radiate it through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 350 may be set in the processor 310 .
  • at least part of the functional modules of the mobile communication module 350 and at least part of the modules of the processor 310 may be set in the same device.
  • the wireless communication module 360 can provide applications on mobile phones including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), global navigation satellite system ( Global navigation satellite system (GNSS), frequency modulation (frequency modulation, FM), near field communication (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • the wireless communication module 360 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 360 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310.
  • the wireless communication module 360 can also receive the signal to be sent from the processor 310 , frequency-modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the above wireless communication module 360 can also support the mobile phone to perform voice communication.
  • the mobile phone can access the Wi-Fi network through the wireless communication module 360, and then use any application program that can provide voice communication services to interact with other devices to provide users with voice communication services.
  • the above-mentioned application program that can provide voice communication service may be an instant messaging application.
  • the mobile phone can realize the display function through the GPU, the display screen 394, and the application processor.
  • the GPU is a microprocessor for image processing, connected to the display screen 394 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 310 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 394 is used to display images, videos and the like.
  • the mobile phone can realize shooting function through ISP, camera 393 , video codec, GPU, display screen 394 and application processor.
  • the ISP is used for processing the data fed back by the camera 393 .
  • the ISP may be located in the camera 393 .
  • Camera 393 is used to capture still images or video.
  • the mobile phone may include 1 or N cameras 393, where N is a positive integer greater than 1.
  • the external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone.
  • the internal memory 321 may be used to store computer-executable program code, which includes instructions.
  • the processor 310 executes various functional applications and data processing of the mobile phone by executing instructions stored in the internal memory 321 .
  • the processor 310 may execute instructions stored in the internal memory 321, and the internal memory 321 may include a program storage area and a data storage area.
  • the mobile phone can realize the audio function through the audio module 370, the loudspeaker 370A, the receiver (that is, the handset) 370B, the microphone 370C, the earphone interface 370D, and the application processor. Such as music playback, recording, etc.
  • the audio module 370 is used to convert digital audio signals into analog audio signal output, and is also used to convert analog audio input into digital audio signal.
  • the audio module 370 may also be used to encode and decode audio signals.
  • the audio module 370 can be set in the processor 310 , or some functional modules of the audio module 370 can be set in the processor 310 .
  • Speaker 370A also called “horn” is used to convert audio electrical signals into sound signals.
  • Receiver 370B also called “earpiece”, is used to convert audio electrical signals into audio signals.
  • the microphone 370C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the earphone interface 370D is used to connect wired earphones.
  • the earphone interface 370D may be a USB interface 330, or a 3.5mm open mobile terminal platform (open mobile terminal platform, OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • CTIA cellular
  • the receiver 370B (that is, the "earpiece") may be the earpiece 101 shown in FIG. 1 .
  • the audio module 370 may convert audio electrical signals received by the mobile communication module 350 and the wireless communication module 360 into sound signals.
  • the sound signal is played by the receiver 370B of the audio module 370 (ie, the "earpiece"), and at the same time, the screen sound generator 396 drives the screen (ie, the display screen) to produce sound on the screen to play the sound signal.
  • the electronic device may detect the sound intensity of the ambient sound in the current environment through the microphone 370C. Therefore, it is convenient for the processor 310 to determine the category of the current listening environment according to the detected sound intensity of the ambient sound.
  • the keys 390 include a power key, a volume key and the like.
  • the motor 391 can generate a vibrating prompt.
  • the indicator 392 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls, notifications and the like.
  • the SIM card interface 395 is used for connecting a SIM card.
  • the mobile phone can support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
  • FIG. 3 is only an exemplary description when the electronic device is in the form of a mobile phone. If the electronic device is a tablet computer, a handheld computer, a PDA, a wearable device (such as a smart watch, a smart bracelet) and other device forms, the structure of the electronic device may include fewer structures than those shown in Figure 3, More structures than those shown in FIG. 3 may also be included, without limitation.
  • the electronic device includes a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer.
  • the hardware layer may include hardware such as a central processing unit (central processing unit, CPU), a memory management unit (memory management unit, MMU), and memory (also called main memory).
  • the operating system of the operating system layer can be any one or more computer operating systems that realize business processing through processes, for example, Linux operating system, Unix operating system, Android operating system, iOS operating system, or windows operating system.
  • the application layer may include applications such as browsers, address books, word processing software, and instant messaging software.
  • the embodiment of the present application provides an audio processing method.
  • the private call mode is enabled, for example, through the screen and
  • the earpiece emits sound at the same time and controls the two sounding methods to emit sound at different volume levels (for example, the intensity of the sound from the screen is greater than or equal to the intensity of the sound from the earpiece), so as to avoid sound leakage, protect the user's call privacy, and improve the user's call experience.
  • the loud volume mode for example, the screen and earpiece can be used to make sound at the same time and control the two sound modes to produce sound with different volume intensities (for example, the sound intensity of the earpiece is greater than that of the screen) intensity) to ensure a good sound effect and improve the user's call experience.
  • the audio control method provided in the embodiment of the present application can be applied to a voice call scenario.
  • the voice call scene can be an incoming call scene when a call is received, or a call scene after an incoming call is answered, or an outgoing call scene when a call is made, or a call scene after an outgoing call is answered, and of course it can be any other Possible voice call scenarios are not limited in this embodiment of the application.
  • the interfaces used in the above-mentioned various voice call scenarios are collectively referred to as voice call interfaces hereinafter.
  • the electronic device has enabled the smart private call function by default. After the smart private call function is turned on, the private call mode can be directly enabled in the voice call scene, or when the volume value of the electronic device is lower than the preset volume level in the voice call scene, it can be determined according to actual usage needs , the embodiment of this application is not limited.
  • voice may be output by combining the screen sound mode and the earpiece sound mode.
  • the voice output intensity corresponding to the screen voice mode is greater than or equal to the voice output intensity corresponding to the receiver voice mode.
  • the voice in the private call mode, the voice can be output only through the sound on the screen.
  • the screen sound mode can effectively prevent sound leakage during voice calls. Therefore, when users make calls in a quiet environment, users usually want to reduce sound leakage. At this time, the private call mode can be used to ensure clear calls At the same time, it reduces sound leakage, thereby protecting user privacy.
  • the private call mode corresponding to the smart private call function can be enabled by default, and a prompt message related to the enabled smart private call function can be displayed on the incoming call interface.
  • the prompt information may be text, an icon, or a combination of text and icon.
  • an introduction to the smart private call function can be displayed in a bubble box on the voice call interface every time the handset is used to answer a call (for example: to ensure clear calls while reducing missing calls). It can also display operation methods such as "Smart privacy call is on” and/or “Close to this area to hear more clearly” in a specific area (that is, the sound area of the screen), and introduce smart information through these prompts. Private call function and guide users to use smart private call function.
  • FIG. 4 shows a schematic diagram of the incoming call interface.
  • the following prompt information is displayed on the incoming call interface 40: "Get closer to this area and hear more clearly” 44, "Ensure clear calls while reducing sound leakage and protecting privacy” 42, And an icon 43 identifying a private call.
  • These prompt messages are used to prompt that the private call mode is enabled.
  • the prompt information here is an example, and the specific content, display position, display quantity, display size, display style, etc. of the prompt information can be determined according to actual use requirements, and are not limited in this embodiment of the present application.
  • the above prompt information can be displayed in the voice call interface of the first N call scenarios (for example, N is 3) after the smart private call function is turned on, so as to guide the user to use the smart private call function, and in the subsequent call scene Cancel the display.
  • N for example, N is 3
  • the display of the introduction information for the smart privacy call function is canceled in the voice call interface, such as "Ensure clear calls while reducing leakage Sound, privacy protection" corresponding to the bubble box disappears.
  • "smart private call is enabled” may be a resident prompt. That is to say, when the user clicks anywhere in the voice call interface (including the answer button), the "smart private call is enabled" prompt message can be kept displayed.
  • FIG. 5 shows a schematic diagram of the incoming call interface and the voice call interface after answering.
  • the incoming call interface 40 is switched to display a voice call interface 46 .
  • the following prompt information is displayed on the voice call interface 46: "Smart private call has been turned on” 41 and an icon 43 identifying the private call.
  • the bubble frame corresponding to "reduce sound leakage and protect privacy while ensuring clear communication" shown in (a) in FIG. 5 disappears.
  • a notification card for indicating that a voice call is in progress and a notification card for indicating that the smart private call function has been turned on are displayed in the menu bar.
  • FIG. 6 shows a schematic diagram of a notification card about the smart private call function displayed in the menu bar.
  • FIG. 6 shows a schematic diagram of a notification card about the smart private call function displayed in the menu bar.
  • display menu bar also referred to as notification interface
  • display notification card 47 and notification card 48 in this menu bar notification card 47 is used for indicating that voice call is in progress
  • notification card 48 It is used to indicate that the smart private call function is enabled.
  • the audio processing method provided in the embodiment of the present application is also applicable to IP-based voice telephony (voice over Internet protocol, VoIP).
  • FIG. 7 shows a schematic interface diagram of a VoIP phone call scene. As shown in FIG. It is used to prompt the current call scene to use the private call mode to realize voice output.
  • the incoming call scene and the call scene after the incoming call are answered are taken as examples for illustration. It can be understood that in actual implementation, the audio processing method provided by the embodiment of the present application is also applicable to outgoing calls.
  • the scene and the call scene after the outgoing call is answered for the specific description of the smart private call function, please refer to the detailed description of the smart private call function in the above-mentioned incoming call scene and the call scene after the incoming call is answered, and will not be repeated here.
  • the audio processing method provided by the embodiment of the present application is also applicable to the scene of playing voice messages.
  • some social applications support receiving or sending voice messages, and the above-mentioned smart private call function can also be applied to these voice messages when they are played. Avoid sound leakage when voice messages are played.
  • the audio processing method provided by the embodiment of the present application is also applicable to the scene of playing recordings.
  • the above-mentioned smart private call function can also be applied when playing recordings, so as to avoid sound leakage during recording playback.
  • the audio processing method provided in the embodiment of the present application may be applicable to various scenarios where the user needs to listen to the sound through an electronic device, which is not limited in the embodiment of the present application.
  • the private call mode can be automatically enabled when the output volume level of the electronic device is lower than the preset volume level. That is to say, in the voice call scene, when the output volume level of the electronic device is lower than the preset volume level, it will automatically switch to the private call mode, and adopt the voice output method corresponding to the private call mode (for example, through the screen and the earpiece to make a sound together) , such as the sound intensity of the screen is greater than that of the earpiece) to output voice to avoid sound leakage during voice calls.
  • a voice call scenario when it is sensed that the user has repeatedly triggered the volume down operation, it can also automatically switch to the private call mode, and use the voice output method corresponding to the private call mode (for example, through the screen Make a sound together with the earpiece (for example, the sound intensity of the screen is greater than that of the earpiece) to output voice to avoid sound leakage during voice calls.
  • the electronic device may output voice by combining the screen sound mode and the earpiece sound mode.
  • the voice output intensity (for example, 70%) corresponding to the screen voice mode is greater than or equal to the voice output intensity (for example, 30%) corresponding to the receiver voice mode. That is, the mobile phone can use the screen to play the main sound and the handset to play the sound at the same time.
  • the private call mode can also only use the screen to speak.
  • the electronic device may output voice by combining the earpiece sounding method and the screen sounding method.
  • the voice output intensity for example, 70%
  • the voice output intensity for example, 30%
  • the overall sound volume (or called loudness or intensity) can also be increased on the basis of the volume corresponding to the private call mode to improve the voice playback effect. That is to say, the overall sound loudness when sounding through the earpiece and the screen in the high volume mode is greater than the overall sounding loudness when sounding through the earpiece and the screen in the private call mode.
  • the screen sound mode can effectively prevent sound leakage during voice calls. Therefore, when users make calls in a quiet environment, users usually want to reduce sound leakage. At this time, the private call mode can be used to ensure clear calls At the same time, it reduces sound leakage, thereby protecting user privacy.
  • the audio processing method provided in the present application can control the switching between the private call mode and the loud volume mode according to the output volume level or range of the electronic device.
  • the electronic device can predefine the following rules:
  • the private call mode is automatically enabled
  • the private call mode is automatically exited and the loud volume mode is entered.
  • the volume value corresponding to each level in the second volume level range is greater than the volume value corresponding to each level in the first volume level range.
  • the output volume level of the above electronic device may be the volume level when receiving or making a call, or may be the volume level after the user triggers the adjustment.
  • the audio processing method provided by the present application can automatically enable the private call mode when the output volume level of the electronic device is lower than or equal to the preset volume level, To avoid sound leakage during voice calls.
  • the output volume level of the electronic device rises and exceeds the preset volume level, it will automatically exit the private call mode and enter the high volume mode to ensure the high volume playback effect.
  • the private call mode is enabled, for example, the screen and the earpiece can be simultaneously sounded and controlled.
  • the sound intensity of the screen is greater than that of the earpiece
  • the loud volume mode for example, the screen and earpiece can be used to make sound at the same time and control the two sound modes to produce sound with different volume intensities (for example, the sound intensity of the earpiece is greater than that of the screen) intensity) to ensure a good sound effect and improve the user's call experience.
  • the electronic device may divide different volumes into 10 levels, including levels 1 to 10, wherein the volume values corresponding to levels 1 to 10 increase step by step.
  • the volume value may be expressed in decibels (dB).
  • the volume value or volume range corresponding to each level may be specifically determined according to actual usage requirements, which are not limited in this embodiment of the present application.
  • the size of the volume value may be represented by a volume bar.
  • different volume levels are distinguished by using different filling lengths in the volume bar. For example, more filling in the volume bar indicates a higher volume level, and in this case, the voice output volume is higher.
  • the volume bar When the volume bar is completely filled, it corresponds to level 10, indicating that the maximum volume has been reached. When the volume bar is not filled, it means mute.
  • one of these 10 levels may be selected as the preset volume level according to the actual situation.
  • 6 levels may be used as the preset volume level; correspondingly, the preset first volume level range may be [1, 6], and the preset second volume level range may be [7, 10].
  • the volume level 6 is within the volume level range of [1, 6], and the private call mode is enabled at this time.
  • the volume bar corresponds to level 7 (here, level 7 is taken as an example, and it can also be any level from level 8 to level 10), and the volume of level 7 is at [7,10] volume Within the range, the loud volume mode is enabled at this time.
  • the switching between different call modes is described here, as shown in (a) in Figure 8, when the user turns up the volume, the filling amount of the volume bar will increase, for example, the volume bar changes from level 6 to level 7 , it will automatically exit the private call mode and enter the loud volume mode, that is, switch from the private call mode to the loud volume mode.
  • the filling volume of the volume bar When the user turns down the volume, the filling volume of the volume bar will decrease, for example, if the volume bar changes from level 7 to level 6, it will switch from loud volume mode to private call mode.
  • any level change from level 1 to level 6 is Any level from level 7 to level 10 can trigger switching from private call mode to loud volume mode; and changing from any level from level 7 to level 10 to any level from level 1 to level Switching from loud volume mode to private call mode can be triggered.
  • volume level 6 is taken as the preset volume level for illustration, and the value of the preset volume level may be selected according to specific situations in actual implementation, which is not limited in this embodiment of the present application.
  • this embodiment of the present application does not limit the display form, display color, display length, etc. of the volume bar in the loud volume mode and the private call mode.
  • the volume bar in the loud volume mode and the volume bar in the private call mode may be as shown in (a) in FIG. 8 .
  • the volume bar in the loud volume mode and the volume bar in the private call mode may be as shown in (b) in FIG. 8 , and the volume bars in the two call modes are displayed in different colors.
  • the volume bar shown in (a) in FIG. 8 is taken as an example for exemplary description.
  • different icons may be used to represent the private call mode and the loud volume mode respectively, so as to distinguish the private call mode from the loud volume mode.
  • the display position, display size, and display form of the icon used to identify the call mode may be determined according to actual usage requirements, which are not limited in this embodiment of the present application.
  • the icon used to identify the call mode can be displayed below or above the volume bar.
  • the icon of the call mode when the call mode is switched, when the filling amount of the volume bar changes, the icon of the call mode will also change correspondingly, so as to remind the user that the call mode has been switched, thereby improving user experience.
  • the electronic device when the call mode is switched, can vibrate to remind the user, so as to improve user experience.
  • the user can increase or decrease the volume by pressing the physical volume button of the electronic device. In other embodiments, the user can slide the volume bar displayed on the screen to increase or decrease the volume.
  • FIG. 9 shows a schematic diagram of an interface of call mode switching.
  • the private call mode has been enabled in the current voice call.
  • the user can press the volume button to adjust the volume.
  • a volume bar 61 and an icon 62 for identifying a private call mode are displayed in the voice call interface.
  • the volume keys include a volume up key (volume + key) and a volume down key (volume - key). The user can press the volume + key to increase the volume, or press the volume - key to decrease the volume.
  • the volume bar increases in the direction of the arrow, when the adjusted volume level exceeds the preset volume level (level 6) to switch from private call mode to loud volume mode.
  • the icon 62 for identifying the privacy call mode is updated and displayed as an icon 63 for identifying the loud volume mode; in addition, the relevant prompt information of the privacy call mode, such as "Smart private call is enabled" is no longer displayed, and the icon used to identify the private call mode in the status bar is also canceled.
  • FIG. 10 shows another interface diagram for switching the call mode.
  • a volume bar 61 and an icon 63 for identifying a high volume mode are displayed on the voice call interface, so it can be known that the current voice call is in a high volume mode.
  • the user can adjust the volume by sliding the finger on the volume bar 61 in a specific direction, for example, sliding the finger in a certain direction can increase the volume, and sliding the finger in the opposite direction can decrease the volume.
  • the user slides the finger on the volume bar 61 in the direction indicated by the arrow to turn down the volume.
  • the volume bar and the icon used to identify the call mode will be hidden.
  • the user can press the physical volume button to call out the volume bar and the icon used to identify the call mode again.
  • FIG. 11 shows a schematic diagram of division of volume levels and a mapping relationship between volume levels and volume values.
  • the volume level is divided into levels 1 to 10, wherein when the volume level is in the range of 1 to 6, the private call mode is enabled; when the volume level is in the range of 7 to 10, the Loud volume mode.
  • the volume values corresponding to levels 1 to 10 are: 2.5dB, 5dB, 7.5dB, 10dB, 12.5dB, 15dB, 17.5dB, 20dB, 22.5dB, 25dB.
  • the mapping relationship between each volume level and volume value is illustrated here as an example. It can be understood that in actual implementation, the volume value corresponding to each volume level can be set according to actual usage requirements, which is not limited in this embodiment of the present application.
  • the private call mode and the loud volume mode adopt the same volume level division rule.
  • the private call mode and the loud volume mode may also adopt different volume level division rules.
  • the respective volume level division rules of the two call modes and the volume level mapping relationship of the two call modes are exemplarily described below with reference to FIG. 12 .
  • the private call mode can also correspond to 10 volume levels, and the volume values corresponding to these 10 volume levels are 1.5dB to 15dB, for example, volume level 1 corresponds to 1.5dB, and volume level 10 corresponds to 15dB.
  • the loud volume mode corresponds to 10 volume levels, and the volume values corresponding to these 10 volume levels are 2.5dB to 25dB, for example, volume level 1 corresponds to 2.5dB, and volume level 10 corresponds to 25dB.
  • the range of volume values covered by the 10 volume levels of the private call mode is the same as the range of volume values covered by the volume levels 1 to 6 of the loud volume mode. It can be understood that the 10 volume levels in the private call mode are finer divisions of volume levels 1 to 6 in the loud volume mode.
  • Figure 12 also shows the mapping relationship of the volume level when switching from the private call mode to the loud volume mode.
  • the volume value of the phone is also 15, that is to say, the volume level of 10 in the private call mode is equivalent to the volume level of 6 in the loud volume mode.
  • the volume level 9 (13.5dB) of the private call mode is approximately equivalent to the volume level 6 (15dB) of the high volume mode
  • the volume level 8 (12dB) of the private call mode is approximately equivalent to the volume level 5 (12.5dB) of the high volume mode.
  • the volume level 6 (9dB) and level 7 (10.5dB) of the private call mode are approximately equivalent to the volume level 4 (10dB) of the high volume mode
  • the volume level 4 (6dB) of the private call mode is approximately equivalent to the volume level of the high volume mode
  • level 5 (7.5dB) of private call mode is equivalent to volume level 3 (7.5dB) of loud volume mode
  • volume level 2 (3dB) and level 3 (4.5dB) of private call mode are approximate It is equivalent to the volume level 2 (5dB) of the loud volume mode
  • the volume level 1 (1.5dB) of the private call mode is approximately equivalent to the volume level 1 (2.5dB) of the loud volume mode.
  • mapping relationship shown in FIG. 12 is illustrative, and may be specifically determined according to actual usage requirements, and is not limited in this embodiment of the present application.
  • Mode 1 referring to FIG. 11 and FIG. 13 in combination, the length of the volume bar in the two modes is the same and the volume value range represented by the volume bar is the same.
  • the maximum level of the volume bar in both modes is volume 10, and volume 10 corresponds to 25dB.
  • the current volume bar indicates a volume level of 6 (15dB), which is a private call mode at this time.
  • the shadow fill of the volume bar increases, for example, when the volume level increases to level 7 (17.5dB), a mode switch occurs at this time, that is, exits the private call mode and enters the high volume mode.
  • the shadow filling amount of the volume bar increases, for example, the volume level increases to level 8 (20dB), and at this time it is still in the high volume mode.
  • the current volume bar indicates a volume level of 7 (17.5 dB), which is a large volume mode at this time.
  • the shadow fill of the volume bar is reduced, for example, the volume level is reduced to level 6 (15dB), and the mode switching occurs at this time, that is, the private call mode is enabled, and the high volume mode is exited.
  • the shadow filling amount of the volume bar decreases, for example, the volume level is reduced to level 5 (12.5dB), and at this time it is still in the private call mode.
  • the lengths of the volume bars in the two modes are different and the volume value ranges indicated by the volume bars are different.
  • the length of the volume bar in the private call mode is smaller than the length of the volume bar in the loud volume mode.
  • the maximum level of the volume bar in the private call mode is volume 10, and the volume level 10 corresponds to 15dB; the maximum level of the volume bar in the loud volume mode is volume level 10, and the volume level 10 corresponds to 25dB.
  • the current volume bar indicates a volume level of 8 (12dB), which is a private call mode at this time.
  • the shadow fill of the volume bar becomes full, and the volume level increases to volume 10 (15dB).
  • the volume bar becomes longer and the shadow fill changes to an unfilled state.
  • the corresponding volume level is volume 8 (20dB).
  • a mode switch occurs, that is, exit the private call mode and enter Loud volume mode.
  • the length of the volume bar changes and the shadow filling amount of the volume bar increases, for example, the volume level increases to level 9 (22.5dB), and it is still in the high volume mode at this time.
  • the current volume bar indicates a volume level of 7 (17.5 dB), which is a large volume mode at this time.
  • the volume bar becomes shorter and the shadow fill changes to a full state.
  • the corresponding volume level is volume level 10 (15dB).
  • a mode switch occurs, that is, the private call mode is enabled and the large volume mode is exited.
  • the length of the volume bar does not change and the shadow filling amount decreases, for example, the volume level is reduced to level 7 (10.5dB), and it is still in the private call mode at this time.
  • the volume bar can be adjusted to the maximum level in the private call mode, that is, the volume level is 10, and the volume bar remains full at this time.
  • the volume bars in the two modes have the same length but the volume value ranges indicated by the volume bars are different.
  • the maximum level of the volume bar in the private call mode is volume 10, which corresponds to 15dB; the maximum level of the volume bar in the loud volume mode is volume 10, and the volume level 10 corresponds to 25dB .
  • different colors or patterns may be used in the third manner to represent the shadows of the volume bars in the two modes respectively.
  • the current volume bar indicates a volume level of 8 (12dB), which is a private call mode at this time.
  • the shadow filling amount of the volume bar changes to a full state, and the volume level increases to volume level 10 (15dB), and it is still in the private call mode at this time.
  • the shadow filling amount of the volume bar decreases and the shadow color changes.
  • the corresponding volume level is volume level 7 (17.5dB).
  • a mode switch occurs, that is, exit the private call mode, and Enter loud volume mode.
  • the shadow filling amount of the volume bar increases, for example, the volume level increases to level 8 (20dB), and at this time it is still in the high volume mode.
  • the current volume bar indicates a volume level of 7 (17.5 dB), which is a large volume mode at this time.
  • the shadow fill of the volume bar changes to a full state and the shadow color changes, and the corresponding volume level is volume level 10 (15dB).
  • a mode switch occurs, that is, the private call mode is enabled and exited Loud volume mode.
  • the shadow filling amount of the volume bar decreases, for example, the volume level is reduced to level 7 (10.5dB), and at this time it is still in the private call mode.
  • the electronic device when the electronic device is in the private call mode, when the electronic device receives the user clicking the speaker icon, it can switch to the speaker mode, that is, output the voice through the speaker , and neither the screen nor the earpiece will produce sound.
  • the electronic device when the electronic device receives that the user clicks on the speaker icon, it may exit the speaker mode and re-enter the private call mode.
  • FIG. 16 shows a schematic diagram of a voice call interface after an incoming call is answered, and the following prompt information is displayed in the voice call interface: "Smart private call is enabled" 71 and an icon 72 identifying a private call.
  • the mobile phone turns on the hands-free function.
  • the voice is played through the speaker, and the screen and the receiver are silent, and a prompt can be displayed in the voice call interface
  • the information "Smart private call has been exited” 74, and correspondingly "Smart private call has been turned on” 71 and the icon 72 identifying the private call will be cancelled.
  • the prompt message "I have exited the smart privacy call” 74 will be hidden after being displayed for a preset duration (for example, 5 seconds).
  • the user can click the speaker key 73 in the voice call interface again to trigger turning off the speaker.
  • the mobile phone in response to the user's operation on the speaker key 73, switches from the speaker mode to the private call mode. In this way, switching between the private call mode and the loud volume mode is realized.
  • FIG. 17 shows a schematic diagram of an interface that triggers switching from the private call mode to the speaker mode by operating on the notification card of the smart private call function.
  • the user Slide your finger down in the direction of the arrow on the interface to pull down the menu bar.
  • a menu bar also called a notification interface
  • a notification card 75 is displayed in the menu bar, and the notification card 75 is used to indicate that a voice call is in progress, and the user can click on the notification card 75 in the hands-free logo 76, to trigger the opening of the hands-free function.
  • FIG. 17 shows a schematic diagram of an interface that triggers switching from the private call mode to the speaker mode by operating on the notification card of the smart private call function.
  • the electronic device provides a setting interface for the smart private call function, and the user can trigger the smart private call function to be turned on or off in the setting interface according to actual usage needs.
  • FIG. 18 shows a schematic diagram of entering the setting interface of the smart private call function through the notification card of the smart private call function.
  • a menu bar also referred to as a notification interface
  • a notification card 77 is displayed in the menu bar.
  • the notification card 77 is used to indicate that the smart privacy call function has been opened, and the user can click on Notification card 77, to set the smart privacy call function.
  • the voice call scenario applied in the above embodiment is used as an example for an exemplary description. It can be understood that the above embodiments provide information about switching between the private call mode and the speaker mode, as well as the function setting of the private call mode, etc. The solution can also be applied to a VoIP voice call scenario.
  • FIG. 19 shows a schematic diagram of the VoIP voice call interface, and the following prompt information is displayed on the VoIP voice call interface: "Smart private call has been turned on" 81 and an icon 82 identifying a private call.
  • the mobile phone turns on the hands-free function.
  • the voice is played through the speaker, and the screen and the earpiece are silent, and a prompt can be displayed in the voice call interface
  • the information "Smart private call has been exited" 84, and correspondingly "Smart private call has been turned on” 81 and the icon 82 identifying the private call will be cancelled.
  • the electronic device can determine whether to enable the private call mode or the loud volume mode according to different volume levels, and can choose to make sound through the earpiece and/or the screen. For example, when the default volume level of the electronic device or the adjusted volume level triggered by the user is less than or equal to the preset volume level, the private call mode is enabled. In the private call mode, the voice can be played through the earpiece and the screen with different sound intensities. For example, the sound intensity of the screen is greater than that of the earpiece. When the default volume level of the electronic device or the adjusted volume level triggered by the user is greater than the preset volume level, the large volume mode is enabled.
  • the voice can also be played with different sound intensities through the earpiece and the screen, such as the earpiece
  • the sound intensity is greater than the screen sound intensity.
  • the earpiece sound and the screen sound are complementary, so that the electronic device can avoid sound leakage in a quiet environment and have good sound quality when playing voice. Therefore, the privacy of the user can be well protected, so that the electronic device has better privacy when the user listens to the ear.
  • the mobile phone when the user listens to the ear through the mobile phone, or the user selects the earpiece mode (that is, the mode in which the mobile phone plays sound through the earpiece), the mobile phone can judge whether the current volume level is less than or equal to the preset volume level, and according to the judgment The result determines whether Private Call Mode or Loud Volume Mode is enabled.
  • the earpiece mode that is, the mode in which the mobile phone plays sound through the earpiece
  • the user listens to the ear through the mobile phone (that is, the ear-to-ear listening state of the mobile phone), which can be that the user's ear is placed near the earpiece, and the audio data (such as recording data, songs, etc.) stored in the mobile phone is listened to through the earpiece of the mobile phone. data, etc.). It can also be that the user's ear is placed near the earpiece for voice communication (voice communication can be voice communication with other electronic devices through the phone function in the mobile phone, or it can be carried out with other electronic devices through the instant messaging application installed in the mobile phone. During voice communication), listen to the sound data transmitted by the mobile phone of the opposite user received by the mobile phone through the handset of the mobile phone.
  • voice communication listen to the sound data transmitted by the mobile phone of the opposite user received by the mobile phone through the handset of the mobile phone.
  • the user's ear is close to the earpiece, and the user listens to the voice message in the instant messaging application through the earpiece of the mobile phone.
  • a mobile phone receives voice messages from other mobile phones through an instant messaging application.
  • the mobile phone can display the chat interface of the instant messaging application, and the chat interface includes voice messages from other mobile phones.
  • the mobile phone can play voice messages (ie sound signals) from other mobile phones through the earpiece.
  • the mobile phone may detect whether the user's ear is close to the earpiece through sensors such as a light sensor and a distance sensor. For example, the mobile phone can detect whether there is a block in front of the front panel (or screen) of the mobile phone through the distance sensor. If there is a block at a short distance in front of the current panel, it can be determined that the current user's ear is close to the earpiece. For another example, when the light sensor of the mobile phone detects that the light intensity decreases momentarily and changes greatly, it can be determined that the current user's ear is close to the earpiece.
  • the mobile phone can also detect whether the user's ear is close to the earpiece through other methods or algorithms, or refer to related introductions in conventional technologies, and there is no limitation here.
  • the mobile phone when the user uses the mobile phone to listen to the ear, the mobile phone can also display various listening modes for the user to choose, so that the user can manually select the listening mode according to actual usage needs, and trigger the mobile phone to execute the corresponding Sound playback strategy for handset and screen sounds.
  • the listening mode may include a privacy mode and a loud volume mode.
  • the voice call interface of the mobile phone may display controls such as "private call mode” and "loud volume mode” for the user to choose from.
  • controls such as "private call mode” and "loud volume mode” for the user to choose from.
  • the control "private call mode” displayed on the voice call interface of the mobile phone has the effect of highlighting.
  • the mobile phone in response to the user's operation of clicking "Volume Loud Mode", the mobile phone can switch the listening mode from "Private Call Mode" to "Volume Loud Mode".
  • users can also switch the listening mode from "high volume mode” to "private call mode” by clicking "private call mode”.
  • the mobile phone can play the sound according to the sound playing strategy corresponding to the listening mode selected by the user (for example, sounding through the earpiece and the screen).
  • the mobile phone after the mobile phone receives the operation of selecting the listening mode input by the user, it can directly use the corresponding sound playing strategy to play the sound.
  • Each listening mode adopts a corresponding sound playback strategy.
  • a sound playing strategy may be adopted in which the earpiece and the screen make sounds together, and the sound intensity of the screen may be greater than or equal to the sound intensity of the earpiece. That is, the mobile phone can use the screen to play the main sound and the handset to play the sound at the same time.
  • the private call mode can also only use the screen to speak.
  • a sound playing strategy may be adopted in which the earpiece and the screen emit sound together, and the sound intensity of the earpiece may be greater than the sound intensity of the screen. That is to say, the mobile phone can use the earpiece as the main voice and the screen as the supplementary voice to play voice at the same time. Loud volume mode can also only use the earpiece to produce sound.
  • the voice played by the earpiece and the screen can be any audio data stored in the mobile phone, for example, the voice is recorded data or song data stored in the mobile phone. It can also be the sound data transmitted by the opposite user's mobile phone received by the mobile phone when the mobile phone performs voice communication. It may also be a voice message or the like in an instant messaging application installed in the mobile phone.
  • the mobile phone in a quiet environment, can also adjust the volume (or loudness) of the sound from the earpiece and the sound from the screen according to the distance between the human ear and the mobile phone (or earpiece).
  • the frequency band of the earpiece sound output and the frequency band of the screen sound output can also be adjusted.
  • the mobile phone when the human ear is far away from the mobile phone, the mobile phone can increase the volume of the sound from the earpiece and the sound from the screen. At the same time, the mobile phone can also reduce the sound of the relatively high-frequency part of the earpiece sound output frequency band, that is, reduce the cut-off frequency between the screen sound output frequency band and the earpiece sound output frequency band, so that the earpiece sound output lower frequency band. Since most of the energy from the screen is directed toward the human ear, and part of the energy from the earpiece is released from the sound hole at the top of the phone’s middle frame, the sound from the earpiece is more likely to leak than the sound from the screen when the volume is increased, so turn down the earpiece further.
  • the frequency band of the sound output can prevent other users from hearing the sound output by the earpiece after raising the volume.
  • the sound intensity of the screen sound can also be set according to the sensitivity of the screen sound. That is, according to the different sensitivity of the screen sound, the set sound intensity of the screen sound may also be different.
  • the sound on the screen can be realized by a sound emitting device on the screen (for example, the sound emitting device on the screen as shown in FIG. 2 ), and the sound emitting device on the screen is different according to different screen sound solutions.
  • the screen sound generating device can be a vibration source connected to the back of the screen (usually a piezoelectric ceramic, or a motor vibrator, an exciter, or other vibration units), and the vibration of the piezoelectric ceramic can be controlled by a current signal to drive the screen to vibrate, thereby Realize screen sound.
  • the screen sound generating device can also be a piezoelectric ceramic fixed on the middle frame of the mobile phone through a cantilever beam structure.
  • the vibration of the piezoelectric ceramic can be controlled by a current signal, and the vibration is transmitted to the screen by using the middle frame of the mobile phone to drive the screen to vibrate, thereby realizing the sound of the screen. vocalize.
  • the screen sound generating device can also be an exciter fixed on the middle frame of the mobile phone, and the vibration of the exciter can be controlled by a current signal, and the vibration can be transmitted to the screen by using the middle frame of the mobile phone to drive the screen to vibrate, so as to realize the sound on the screen.
  • the screen sound generating device can also be a separate magnetic levitation vibrator. One of the vibrators is fixed on the middle frame of the mobile phone, and the other is fixed on the screen.
  • the vibrator fixed on the screen can be controlled to vibrate relative to the vibrator fixed on the middle frame of the mobile phone through a current signal, thereby pushing the screen to vibrate to realize the sound of the screen.
  • the screen sound sensitivity of different screen sound solutions is different, and a relatively small screen can be set for a sensitive screen sound Sound intensity and push power, and set a relatively large screen sound intensity and push power for screen sounds with low sensitivity.
  • the electronic device (such as a mobile phone) may automatically enable the functions implemented by the above methods, or may be set so that the user manually enables the functions implemented by the above methods.
  • the electronic device implementing the method includes hardware structures and/or software modules corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Professionals may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the protection scope of the present application.
  • the embodiment of the present application may divide the electronic device into functional modules according to the above method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other feasible division methods in actual implementation. In the following, description will be made by taking the division of each functional module corresponding to each function as an example.
  • FIG. 21 is a schematic block diagram of an audio processing device 800 provided by an embodiment of the present application.
  • the apparatus 800 may be used to perform the actions performed by the electronic device in the above method embodiments.
  • the device 800 includes a detection unit 810 , a processing unit 820 and a display unit 830 .
  • the detection unit 810 is configured to receive a first operation of the user, where the first operation is used to trigger making a call or answering a call;
  • the processing unit 820 is configured to, in response to the first operation, enter the voice call state of the electronic device, and output the voice according to the first output strategy corresponding to the private call mode, the first output strategy is to output the voice through the screen;
  • the detection unit 810 is further configured to receive a second operation of the user, where the second operation is used to trigger an increase in the output volume of the electronic device;
  • the processing unit 820 is also configured to, in response to the second operation, switch from the private call mode to the loud volume mode when the adjusted output volume is greater than the preset output volume, and output Voice, the second output strategy is to output voice through the earpiece.
  • the private call mode is automatically enabled, for example, the voice can be output through the screen to avoid sound leakage, protect the privacy of the user's call, and improve the user's call experience.
  • the user’s operation to increase the volume is received, if it is judged that the adjusted volume level is greater than the preset volume level, the high volume mode will be enabled.
  • the voice can be output through the earpiece to ensure a good sound effect and improve the user’s call experience.
  • the first output strategy is to output voice through the screen and the earpiece; where, when the voice is output through the screen and the earpiece in the private call mode, the volume intensity of the sound from the screen is greater than or equal to the volume intensity of the voice from the earpiece.
  • the screen and the earpiece can be used to simultaneously sound and control the two sounding methods to sound at different volume levels.
  • the intensity of the sound from the screen is greater than or equal to the sound from the earpiece to avoid sound leakage.
  • the second output strategy is to output voice through the earpiece and the screen; wherein, when the voice is output through the screen and the earpiece in the high volume mode, the volume intensity of the earpiece is greater than the volume intensity of the screen.
  • the screen and the earpiece can simultaneously sound and control the two sounding methods to sound at different volume intensities.
  • the sound intensity of the earpiece is greater than that of the screen to ensure a good sound effect , to improve user call experience.
  • the total intensity of the output volume in the private call mode is equal to the total intensity of the output volume in the loud volume mode.
  • the processing unit 820 is further configured to increase the total output volume intensity of the electronic device when switching from the private call mode to the loud volume mode.
  • the detection unit 810 is further configured to receive a third operation of the user, where the third operation is used to trigger a decrease in the output volume of the electronic device;
  • the processing unit 820 is also configured to, in response to the third operation, switch from the loud volume mode to the private call mode when the adjusted output volume is less than or equal to the preset output volume, and follow the first output strategy corresponding to the private call mode Output voice.
  • the private call mode is enabled to avoid sound leakage, protect the user’s call privacy, and improve the user’s call experience.
  • the above-mentioned outputting voice according to the first output strategy corresponding to the private call mode includes:
  • the voice is output according to the first output policy corresponding to the private call mode.
  • the output volume of the electronic device is represented by a volume level, and the preset volume is represented by a preset volume level; or, the output volume of the electronic device is represented by a volume decibel value, and the preset volume is represented by a preset volume expressed in decibels.
  • the output volume range of the electronic device includes a preset volume decibel value range, and the preset volume decibel value range is divided into N levels, and the N volume levels are the same as the preset volume decibel value There is a one-to-one correspondence between the N decibel values in the range.
  • the above N volume levels include volume level 1 to volume level 10; wherein, the private call mode corresponds to volume level 1 to volume level 1, and the loud volume mode corresponds to volume level 1+1 to volume level 10, Wherein I is an integer greater than 1 and less than 10.
  • the preset volume decibel value range is [2.5dB, 25dB].
  • the preset volume level is volume level 6, and the volume decibel value corresponding to volume level 6 is 15 dB.
  • the device 800 may further include a display unit 830 .
  • the display unit 830 is configured to display first prompt information and/or second prompt information in the first area of the voice call interface after the smart private call function is turned on, the first prompt information is used to prompt that the private call function has been turned on, The first prompt information is used to guide the user to approach the first area to answer the call;
  • the first area is the area of the screen closest to the screen sound emitting device.
  • the above-mentioned first area in the voice call interface displays the first prompt information and/or the second prompt information, including: alternately displaying the first prompt information and the second prompt information in the first area of the voice call interface The second prompt message.
  • the display unit 830 is further configured to cancel displaying the first prompt information and the second prompt information when switching from the private call mode to the loud volume mode.
  • the display unit 830 is further configured to display third prompt information in the voice call interface of the previous M voice calls after the smart private call function is turned on, and the third prompt information is used to represent smart The effect after the private call function is turned on; and cancel the display of the third prompt message in the voice call interface of the subsequent voice call.
  • the display unit 830 is further configured to display an icon for identifying the private call mode in the status bar of the electronic device when the voice is output according to the first output strategy corresponding to the private call mode.
  • the display unit 830 is further configured to, when switching from the private call mode to the loud volume mode, cancel displaying the icon used to identify the private call mode in the status bar of the electronic device.
  • the detection unit 810 is further configured to receive a fourth operation of the user on the physical volume button of the electronic device;
  • the display unit 830 is further configured to display a volume bar icon and a call mode icon in the voice call interface in response to the fourth operation;
  • the volume bar icon is used to indicate the output volume during a voice call
  • the call mode icon is used to indicate that the current call mode is a private call mode or a loud volume mode.
  • the call mode icon when the smart private call function is turned on, the call mode icon is an icon for representing the private call mode; or, when the smart private call function is turned off, the call mode icon is an icon for Icon representing loud volume mode.
  • the electronic device may further include a speaker; the detection unit 810 is further configured to receive a fifth operation of the user on the speaker control in the voice call interface when the smart private call function is turned on;
  • the processing unit 820 is further configured to, in response to the fifth operation, output a voice through the speaker, and stop sound from the earpiece and the screen.
  • the processing unit 820 is further configured to display a system setting interface when the detection unit 810 receives a user's operation on the system setting icon, and the system setting interface includes private call setting items;
  • the display unit 830 is also used to display the setting interface of the smart private call function when the detection unit 810 receives the user's operation on the private call setting item, and the setting interface displays the opening control and closing control of the smart private call function;
  • the smart private call function When receiving the user's operation of opening the control, the smart private call function is turned on; or, when the user's operation of closing the control is received, the smart private call function is turned off.
  • the detection unit 810 is further configured to receive the sixth operation of the user in the voice call interface when the smart private call function is turned on;
  • the display unit 830 is also used to jump from the voice call interface to the card notification interface in response to the sixth operation, where a first notification card is displayed in the card notification interface, and the first notification card is used to prompt that the smart private call function has been turned on .
  • the display unit 830 is further configured to jump from the notification interface to the setting interface of the smart private call function when the detection unit 810 receives the user's operation on the first notification card.
  • the foregoing apparatus 800 is applicable to a call scenario of an IP-based voice phone.
  • the device 800 may correspond to the implementation of the method described in the embodiment of the present application, and the above-mentioned and other operations and/or functions of the units in the device 800 are for realizing the corresponding flow of the method, and for the sake of brevity, are not described here Let me repeat.
  • the present application provides a chip, the chip is coupled with a memory, and the chip is used to read and execute computer programs or instructions stored in the memory, so as to execute the methods in the foregoing embodiments.
  • the present application provides an electronic device, which includes a chip, and the chip is used to read and execute computer programs or instructions stored in a memory, so that the methods in each embodiment are executed.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores program codes, and when the computer program codes run on the computer, the computer executes the above-mentioned Methods in the Examples.
  • the embodiments of the present application further provide a computer program product, the computer program product includes computer program code, and when the computer program code runs on the computer, the computer executes the Methods.
  • the embodiment of the present application does not specifically limit the specific structure of the execution subject of the method provided in the embodiment of the present application, as long as the program that records the code of the method provided in the embodiment of the present application can be executed according to the method provided in the embodiment of the present application Just do it.
  • the subject of execution of the method provided by the embodiment of the present application may be an electronic device, or a functional module in the electronic device capable of invoking a program and executing the program.

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)

Abstract

本申请提供了一种音频处理方法及电子设备,涉及电子设备技术领域。当接收到用户降低音量或提高音量的操作时,若判断调节后的音量等级小于或等于预设音量等级,则启用隐私通话模式,例如可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声(如屏幕发声的强度大于或等于听筒发声的强度),以避免漏音,保护用户通话隐私,提升用户通话体验。若判断调节后的音量等级大于预设音量等级,则启用大音量模式,例如可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声(如听筒发声的强度大于屏幕发声的强度),以保证良好的出音效果,提升用户通话体验。

Description

音频处理方法及电子设备
本申请要求于2022年2月28日提交国家知识产权局、申请号为202210191577.X、申请名称为“音频处理方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,尤其涉及一种音频处理方法及电子设备。
背景技术
目前,大部分手机是采用设置在手机顶部的听筒实现手机的语音通信发声的。通常,手机需要在听筒的位置对应设置出音孔以释放听筒发声时的能量,出音孔一般开设在手机的前面板上。随着大屏以及全面屏手机的发展,一些全面屏手机的出音孔设计为长缝形态,位于手机中框和前面板的连接处,同时为了确保外放出声面积够大,具有良好出音效果,在一些全面屏手机上还会在中框顶部增加开孔作为出音孔。
然而,在用户手持手机贴耳听音(例如语音通话场景)的过程中,通过听筒输出的语音不只是从侧缝处的出音孔发出,还有很大一部分能量从顶部出音孔发出,因此由出音孔出来的声音不光能够被该用户听到,在安静环境下还能够被其他用户听到,存在漏音现象,容易泄露用户隐私。
发明内容
本申请提供一种音频处理方法及电子设备,解决了在用户手持手机贴耳听音的场景中通过听筒播放语音时存在漏音现象的问题。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种音频处理方法,应用于电子设备,该电子设备包括听筒、屏幕和屏幕发声装置,该屏幕发声装置用于驱动屏幕进行屏幕发声,该方法包括:
接收用户的第一操作,该第一操作用于触发拨打电话或者接听电话;
响应于该第一操作,电子设备进入语音通话状态,并按照隐私通话模式对应的第一输出策略输出语音,该第一输出策略为通过屏幕输出语音;
接收用户的第二操作,该第二操作用于触发电子设备的输出音量增大;
响应于该第二操作,当调节后的输出音量大于预设输出音量时,从隐私通话模式切换到大音量模式,并按照该大音量模式对应的第二输出策略输出语音,该第二输出策略为通过听筒输出语音。
通过本申请实施例提供的音频处理方法,当电子设备进入语音通话状态时,自动启用隐私通话模式,例如可以通过屏幕发声的方式来输出语音,以避免漏音,保护用户通话隐私,提升用户通话体验。当接收到用户增大音量的操作时,若判断调节后的音量等级大于预设音量等级,则启用大音量模式,例如可以通过听筒发声的方式输出语音,以保证良好的出音效果,提升用户通话体验。
在一些可能的实现方式中,第一输出策略为通过屏幕和听筒输出语音;其中,当在隐私通话模式下通过屏幕和听筒输出语音时,屏幕发声的音量强度大于或等于听筒发声的音量强度。
通过上述方案,在隐私通话模式下,可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声,如屏幕发声的强度大于或等于听筒发声的强度,以避免漏音,保护用户通话隐私,提升用户通话体验。
在一些可能的实现方式中,第二输出策略为通过听筒和屏幕输出语音;其中,当在大音量模式下通过屏幕和听筒输出语音时,听筒发声的音量强度大于屏幕发声的音量强度。
通过上述方案,在大音量模式下,可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声,如听筒发声的强度大于屏幕发声的强度,以保证良好的出音效果,提升用户通话体验。
在一些可能的实现方式中,在隐私通话模式下的输出音量总强度等于在大音量模式下的输出音量总强度。
在一些可能的实现方式中,上述方法还可以包括:当从隐私通话模式切换到大音量模式时,增大电子设备的输出音量总强度。
在一些可能的实现方式中,在按照大音量模式对应的第二输出策略输出语音之后,上述方法还可以包括:
接收用户的第三操作,该第三操作用于触发电子设备的输出音量减小;
响应于该第三操作,当调节后的输出音量小于或等于预设输出音量时,从大音量模式切换为隐私通话模式,并按照隐私通话模式对应的第一输出策略输出语音。
通过上述方案,当接收到用户降低音量的操作时,若判断调节后的音量等级小于或等于预设音量等级,则启用隐私通话模式,以避免漏音,保护用户通话隐私,提升用户通话体验。
在一些可能的实现方式中,上述按照隐私通话模式对应的第一输出策略输出语音,包括:
在电子设备已开启智慧隐私通话功能的情况下,按照隐私通话模式对应的第一输出策略输出语音。
在一些可能的实现方式中,电子设备的输出音量通过音量等级表示,预设音量通过预设的音量等级表示;或者,电子设备的输出音量通过音量分贝值表示,预设音量通过预设的音量分贝值表示。
在一些可能的实现方式中,电子设备的输出音量范围包括预设的音量分贝值范围,该预设的音量分贝值范围被划分为N个等级,该N个音量等级与预设的音量分贝值范围中的N个分贝值存在一一对应的关系。
在一些可能的实现方式中,上述N个音量等级包括音量1级至音量10级;其中,隐私通话模式对应音量1级至音量I级,大音量模式对应音量I+1级至音量10级,其中I为大于1且小于10的整数。
在一些可能的实现方式中,预设的音量分贝值范围为[2.5dB,25dB]。
在一些可能的实现方式中,当I取6时,预设的音量等级为音量6级,音量6级对应的音量分贝值为15dB。
在一些可能的实现方式中,上述方法还可以包括:
在智慧隐私通话功能开启之后,在语音通话界面中的第一区域显示第一提示信息和/或第二提示信息,该第一提示信息用于提示隐私通话功能已开启,该第一提示信息用于引导用户靠近该第一区域接听电话;
其中,该第一区域为屏幕的与屏幕发声装置最靠近的区域。
在一些可能的实现方式中,上述在语音通话界面中的第一区域显示第一提示信息和/或第二提示信息,包括:在语音通话界面中的第一区域,交替显示第一提示信息和第二提示信息。
在一些可能的实现方式中,上述方法还包括:当从隐私通话模式切换到大音量模式时,取消显示第一提示信息和第二提示信息。
在一些可能的实现方式中,方法还包括:
在智慧隐私通话功能开启之后,在前M次语音通话的语音通话界面中均显示第三提示信息,该第三提示信息用于表示智慧隐私通话功能开启后的效果;
在后续的语音通话的语音通话界面中取消显示该第三提示信息。
在一些可能的实现方式中,上述方法还可以包括:当按照隐私通话模式对应的第一输出策略输出语音时,在电子设备的状态栏中显示用于标识隐私通话模式的图标。
在一些可能的实现方式中,上述方法还可以包括:当从隐私通话模式切换到大音量模式时,在电子设备的状态栏中取消显示用于标识隐私通话模式的图标。
在一些可能的实现方式中,上述方法还可以包括:
接收到用户对电子设备的物理音量按键的第四操作;
响应于该第四操作,在语音通话界面中显示音量条图标以及通话模式图标;
其中,该音量条图标用于表示语音通话时的输出音量大小,该通话模式图标用于表示当前通话模式为隐私通话模式或者大音量模式。
在一些可能的实现方式中,在智慧隐私通话功能开启的情况下,该通话模式图标为用于表示隐私通话模式的图标;或者,在智慧隐私通话功能关闭的情况下,通话模式图标为用于表示大音量模式的图标。
在一些可能的实现方式中,电子设备还可以包括扬声器;上述方法还可以包括:
在智慧隐私通话功能开启的情况下,接收到用户对语音通话界面中的扬声器控件的第五操作;
响应于该第五操作,通过扬声器输出语音,并停止听筒发声和屏幕发声。
在一些可能的实现方式中,方法还可包括:
当接收到用户对系统设置图标的操作时,显示系统设置界面,该系统设置界面中包括隐私通话设置项;
当接收到用户对隐私通话设置项的操作时,显示智慧隐私通话功能的设置界面,该设置界面中显示有智慧隐私通话功能的开启控件和关闭控件;
当接收到用户对开启控件的操作时,开启智慧隐私通话功能;或者,当接收到用户对关闭控件的操作时,关闭智慧隐私通话功能。
在一些可能的实现方式中,上述方法还可以包括:
在智慧隐私通话功能开启的情况下,接收到用户在语音通话界面中的第六操作;
响应于该第六操作,从语音通话界面跳转到卡片通知界面,该卡片通知界面中显示有第一通知卡片,该第一通知卡片用于提示智慧隐私通话功能已开启。
在一些可能的实现方式中,上述方法还可以包括:当接收到用户对第一通知卡片的操作时,从该通知界面跳转到智慧隐私通话功能的设置界面。
在一些可能的实现方式中,上述方法适用于基于IP的语音电话的通话场景。
第二方面,本申请提供一种音频处理装置,该装置包括用于执行上述第一方面中的方法的单元。该装置可对应于执行上述第一方面中描述的方法,该装置中的单元的相关描述请参照上述第一方面的描述,为了简洁,在此不再赘述。
其中,上述第一方面描述的方法可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括一个或多个与上述功能相对应的模块或单元。例如,处理模块或单元、显示模块或单元等。
第三方面,本申请提供一种电子设备,电子设备包括处理器,处理器与存储器耦合,存储器用于存储计算机程序或指令,处理器用于执行存储器存储的计算机程序或指令,使得第一方面中的方法被执行。
例如,处理器用于执行存储器存储的计算机程序或指令,使得该装置执行第一方面中的方法。
第四方面,本申请提供一种计算机可读存储介质,其上存储有用于实现第一方面中的方法的计算机程序(也可称为指令或代码)。
例如,该计算机程序被计算机执行时,使得该计算机可以执行第一方面中的方法。
第五方面,本申请提供一种芯片,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第一方面及其任意可能的实现方式中的方法。
可选地,芯片还包括存储器,存储器与处理器通过电路或电线连接。
第六方面,本申请提供一种芯片系统,包括处理器。处理器用于读取并执行存储器中存储的计算机程序,以执行第一方面及其任意可能的实现方式中的方法。
可选地,所述芯片系统还包括存储器,存储器与处理器通过电路或电线连接。
第七方面,本申请提供一种计算机程序产品,所述计算机程序产品包括计算机程序(也可称为指令或代码),所述计算机程序被电子设备执行时使得所述电子设备实现第一方面中的方法。
可以理解的是,上述第二方面至第七方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。
附图说明
图1为一种电子设备中设置有听筒及出音孔的结构示意图;
图2为本申请实施例提供的电子设备中设置有听筒和屏幕振动装置的结构示意图;
图3为本申请实施例提供的一种电子设备的结构示意图;
图4为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之一;
图5为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之二;
图6为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之三;
图7为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之四;
图8为本申请实施例提供的一种音频处理方法在模式切换时音量条变化的示意图;
图9为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之五;
图10为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之六;
图11为本申请实施例提供的一种音频处理方法应用的音量等级划分的示意图;
图12为本申请实施例提供的一种音频处理方法应用的另一种音量等级划分的示意图;
图13为本申请实施例提供的一种音频处理方法在模式切换时音量条变化的示意图之一;
图14为本申请实施例提供的一种音频处理方法在模式切换时音量条变化的示意图之二;
图15为本申请实施例提供的一种音频处理方法在模式切换时音量条变化的示意图之三;
图16为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之七;
图17为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之八;
图18为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之九;
图19为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之十;
图20为本申请实施例提供的一种音频处理方法应用于电子设备的界面示意图之十一;
图21为本申请实施例提供的一种音频处理装置的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
目前,大部分手机是采用设置在手机顶部的听筒实现手机的语音通信发声的。通常,手机需要在听筒的位置对应设置出音孔以释放听筒发声时的能量,出音孔一般开设在手机的前面板上。但是,随着手机的不断发展,为了向用户提供更好的屏幕观看体验,手机屏幕的屏占比越来越高。设置在前面板上的出音孔由于占用了手机的前面板部分区域,会增加手机边框的宽度,所以会影响手机进一步提高屏幕的屏占比。
因此,随着大屏以及全面屏手机的发展,为了减小用于语音通信中通话发声的听筒(也称为受话器)的出音孔在手机的前面板上占用的面积,以进一步提高屏幕的屏占比,一些全面屏手机的听筒出音孔设计为长缝形态,位于手机中框和前面板的连接处,同时为了确保外放出声面积够大,具有良好出音效果,在一些全面屏手机上还会增加中框顶部开孔作为出音孔。
例如,图1示出了一种手机的结构示意图。如图1所示,该手机可以包括用于设置屏幕的前面板(通常包括屏幕和边框)、用于支撑内部电路的后面板以及中框,通过前面板、后面板以及中框能够围合成壳体结构。如图1中的(a)所示,在该壳体结构内位于顶部的位置(即手机顶部位置)设置有听筒101(即用于语音通信中通话发声的扬声器,也称为受话器)。对应于该听筒101,手机设置有两处出音孔(如,出音孔102和出音孔103)。结合图1中的(b)所示,图1中的(b)为手机结构的剖视图,其中出音孔102位于该手机前面板和中框的连接处(即侧缝处)。出音孔103则位于该手机的中框上距离上述听筒101较近的位置(即手机的中框顶部位置)。
但是,此种方式设置的出音孔,在用户正常使用手机进行语音通信时,用户的耳廓无法完全覆盖包裹出音孔,所以当扬声器的声音能量由开设在手机中框顶部的出音孔出来时,会有漏音现象。图1中的(c)示出了用户通过手机进行语音通信的场景示意图。如图1中的(c)所示,用户手持手机通过听筒进行语音通信的过程中,手机听筒靠近用户的耳朵(或者说耳廓),由于手机听筒的出音孔(位于手机侧缝处的出音孔102和中框顶部的出音孔103)无法被用户的耳朵完全包裹覆盖,所以由出音孔出来的声音不光能够被该用户听到,在安静环境下还能够被其他用户听到。
为解决上述问题,本申请实施例提供一种音频处理方法,该方法可以应用于具有语音通信功能的电子设备,例如该音频处理方法可以应用于用户通过上述电子设备进行贴耳听音的场景中,如用户通过听筒进行语音通话,或者通过听筒收听即时通讯应用中的语音消息等。其中,上述电子设备可以包括显示屏(也称为屏幕)、屏幕发声装置(即能够通过屏幕振动发声的装置),听筒(即上述的用于语音通信中通话发声的扬声器,也称为受话器)以及对应该听筒开设的出音孔。
例如,图2示出了本申请实施例提供的一种电子设备的结构示意图。如图2中的(a)和(b)所示,除了设置有图1所示的听筒101、出音孔102和出音孔103之外,电子设备还设置有与屏幕连接的屏幕发声装置104。例如,屏幕发声装置104是与屏幕连接的振动源(也称为激励器)。激励器引起屏幕振动,实现通过屏幕发声。其中,屏幕发声装置104设置于电子设备的壳体结构内。
需要说明的是,在本申请实施例中,电子设备的语音输出模式(也称为听音模式)可以包括隐私模式(privacy mode,PVM),大音量模式,以及扬声器模式。其中,隐私模式也可以称为隐私通话模式。
在一些实施例中,在电子设备开启隐私通话模式后,电子设备可以结合采用屏幕发声方式和听筒发声方式来输出语音。其中,屏幕发声方式对应的语音输出强度(例如70%)大于或等于听筒发声方式对应的语音输出强度(例如30%)。即,手机可以采用屏幕发声为主、听筒发声为辅的方式同时播放语音。隐私通话模式还可以仅采用屏幕发声。
在一些实施例中,在电子设备开启大音量模式后,电子设备可以结合采用听筒发声方式和屏幕发声方式来输出语音。其中,听筒发声方式对应的语音输出强度(例如70%)大于屏幕发声方式对应的语音输出强度(例如30%)。手机可以采用听筒发声为主、屏幕发声为辅的方式同时播放语音。
在一些实施例中,当从隐私通话模式切换到大音量模式时,还可以在隐私通话模式对应的音量基础上,增大整体发声音量(或称为响度或强度),以提升语音播放效果。也就是说,在大音量模式下通过听筒发声和屏幕发声时的整体发声响度,大于在隐私通话模式下通过听筒发声和屏幕发声时的整体发声响度。
相比于听筒发声方式,屏幕发声方式能有效防止语音通话时漏音,因此当用户处于安静环境中接打电话时,用户通常希望减少漏音,此时可以采用隐私通话模式,能够保证通话清晰的同时,减少漏音,从而起到保护用户隐私的效果。
在另一些实施例中,在电子设备开启隐私通话模式后,电子设备还可以仅通过屏幕发声方式来输出语音。可以理解,此时听筒不发声。
在另一些实施例中,在电子设备开启大音量模式后,电子设备还可以仅通过听筒发声 方式来输出语音。可以理解,此时屏幕不发声。
在一些实施例中,在电子设备开启扬声器模式后,电子设备通过扬声器(也称为喇叭)输出语音。可以理解,此时听筒和屏幕均不发声。
可选地,响应于用户对电子设备的操作,可以控制语音输出方式在隐私通话模式、大音量模式以及扬声器模式之间切换。具体触发切换的条件以及切换过程,将在下文中进行详细描述。
以下,先结合附图对本申请实施例提供的音频处理方法应用的电子设备进行说明。
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、可穿戴式设备(如:智能手表、智能手环),等具备语音通信功能的设备,本申请实施例对该电子设备的具体形态不作特殊限制。
示例地,以电子设备为手机为例,图3示出了本申请实施例提供的另一种电子设备的结构示意图。也即,示例性的,图3所示的电子设备可以是手机。
如图3所示,手机可以包括:处理器310,外部存储器接口320,内部存储器321,通用串行总线(universal serial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线1,天线2,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器(即听筒)370B,麦克风370C,耳机接口370D,传感器模块380,按键390,马达391,指示器392,摄像头393,显示屏394,以及用户标识模块(subscriber identification module,SIM)卡接口395,屏幕发声装置396等。
其中,上述传感器模块可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器和骨传导传感器等传感器。在本申请实施例中,电子设备可以通过接近光传感器(即光线传感器)、距离传感器等传感器来检测用户耳朵是否贴靠在听筒附近。例如,电子设备可以通过距离传感器检测手机前面板(或者屏幕)前方是否有遮挡,以及遮挡物与屏幕之间的距离,确定当前用户耳朵是否贴靠在听筒附近。
可以理解的是,本实施例示意的结构并不构成对手机的具体限定。在另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器310可以包括一个或多个处理单元,例如:处理器310可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是手机的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器310中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器310中的存储器为高速缓冲存储器。该存储器可以保存处理器310刚用过或循环使用的指令或数据。如果处理器310需要再次使用该指令或数据,可从所述存储器中直接调用。避免了 重复存取,减少了处理器310的等待时间,因而提高了系统的效率。
在一些实施例中,处理器310可以包括一个或多个接口。接口可以包括集成电路(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)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机的结构限定。在另一些实施例中,手机也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
在本申请实施例中,电子设备可以通过处理器310来确定当前所处的听音环境的类别,然后根据该类别对听筒发声的频段和屏幕发声的频段分别进行调整,以控制听筒和屏幕发声分别播放声音信号中对应频段内的声音,从而避免安静环境下人耳听音时电子设备出现漏音。
充电管理模块340用于从充电器(如无线充电器或有线充电器)接收充电输入,为电池342充电。电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管理模块340的输入,为电子设备的各个器件供电。
手机的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
在一些实施例中,手机的天线1和移动通信模块350耦合,天线2和无线通信模块360耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。上述移动通信模块350可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块350可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块350可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。
移动通信模块350还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块350的至少部分功能模块可以被设置于处理器310中。在一些实施例中,移动通信模块350的至少部分功能模块可以与处理器310的至少部分模块被设置在同一个器件中。
无线通信模块360可以提供应用在手机上的包括无线局域网(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)等无线通信的解决方案。
无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模 块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
当然,上述无线通信模块360也可以支持手机进行语音通信。例如,手机可以通过无线通信模块360接入Wi-Fi网络,然后使用任一种可提供语音通信服务的应用程序与其他设备进行交互,为用户提供语音通信服务。例如,上述可提供语音通信服务的应用程序可以是即时通讯应用。
手机可以通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。显示屏394用于显示图像,视频等。
手机可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。ISP用于处理摄像头393反馈的数据。在一些实施例中,ISP可以设置在摄像头393中。摄像头393用于捕获静态图像或视频。在一些实施例中,手机可以包括1个或N个摄像头393,N为大于1的正整数。
外部存储器接口320可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。内部存储器321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器310通过运行存储在内部存储器321的指令,从而执行手机的各种功能应用以及数据处理。例如,在本申请实施例中,处理器310可以通过执行存储在内部存储器321中的指令,内部存储器321可以包括存储程序区和存储数据区。
手机可以通过音频模块370,扬声器370A,受话器(即听筒)370B,麦克风370C,耳机接口370D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块370用于将数字音频信号转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块370还可以用于对音频信号编码和解码。在一些实施例中,音频模块370可以设置于处理器310中,或将音频模块370的部分功能模块设置于处理器310中。扬声器370A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器370B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风370C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。耳机接口370D用于连接有线耳机。耳机接口370D可以是USB接口330,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
其中,该受话器370B(即“听筒”)可以是图1所示的听筒101。
示例性的,本申请实施例中,音频模块370可以将移动通信模块350和无线通信模块360接收到的音频电信号转换为声音信号。由音频模块370的受话器370B(即“听筒”)播放该声音信号,同时由屏幕发声装置396来驱动屏幕(即显示屏)进行屏幕发声以播放该声音信号。
示例地,在本申请实施例中,电子设备可以通过麦克风370C来检测当前所处环境的环境音的声音强度大小。从而便于处理器310根据检测到的环境音的声音强度大小来确定当前所处的听音环境的类别。
按键390包括开机键,音量键等。马达391可以产生振动提示。指示器392可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口395用于连接SIM卡。手机可以支持1个或N个SIM卡接口,N为大于1的正整数。
当然,可以理解的,上述图3所示仅仅为电子设备的设备形态为手机时的示例性说明。若电子设备是平板电脑,手持计算机,PDA,可穿戴式设备(如:智能手表、智能手环)等其他设备形态时,电子设备的结构中可以包括比图3中所示更少的结构,也可以包括比图3中所示更多的结构,在此不作限制。
在本申请实施例中,电子设备包括硬件层、运行在硬件层之上的操作系统层,以及运行在操作系统层上的应用层。其中,硬件层可以包括中央处理器(central processing unit,CPU)、内存管理单元(memory management unit,MMU)和内存(也称为主存)等硬件。操作系统层的操作系统可以是任意一种或多种通过进程(process)实现业务处理的计算机操作系统,例如,Linux操作系统、Unix操作系统、Android操作系统、iOS操作系统或windows操作系统等。应用层可以包含浏览器、通讯录、文字处理软件、即时通信软件等应用。
下面将结合附图,通过下述多个示例性实施例对本申请实施例进行举例说明。以下实施例中的方法均可以在具有上述硬件结构的电子设备中实现。为了便于说明,本申请实施例中均以电子设备为如图1所示的手机为例。
本申请实施例提供一种音频处理方法,当接收到用户降低音量或提高音量的操作时,若判断调节后的音量等级小于或等于预设音量等级,则启用隐私通话模式,例如可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声(如屏幕发声的强度大于或等于听筒发声的强度),以避免漏音,保护用户通话隐私,提升用户通话体验。若判断调节后的音量等级大于预设音量等级,则启用大音量模式,例如可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声(如听筒发声的强度大于屏幕发声的强度),以保证良好的出音效果,提升用户通话体验。
本申请实施例提供的音频控制方法可以应用于语音通话场景。例如,语音通话场景可以是接到电话的来电场景,或者是来电接听后的通话场景,也可以是拨打电话的去电场景,或者是去电被接听后的通话场景,当然还可以是其他任意可能的语音通话场景,本申请实施例不作限定。为了便于说明,下文中将上述各种语音通话场景采用的界面统称为语音通话界面。
在本申请实施例中,电子设备默认已开启智慧隐私通话功能。在智慧隐私通话功能开启之后,隐私通话模式可以在语音通话的场景中直接启用,或者在语音通话的场景中当电子设备的音量值低于预设音量等级时启用,具体可以根据实际使用需求确定,本申请实施例不作限定。
如上所述,隐私通话模式可以结合采用屏幕发声方式和听筒发声方式来输出语音。可选地,屏幕发声方式对应的语音输出强度大于或等于听筒发声方式对应的语音输出强度。或者,隐私通话模式可以仅通过屏幕发声方式来输出语音。相比于听筒发声方式,屏幕发声方式能有效防止语音通话时漏音,因此当用户处于安静环境中接打电话时,用户通常希望减少漏音,此时可以采用隐私通话模式,能够保证通话清晰的同时,减少漏音,从而起 到保护用户隐私的效果。
在一些实施例中,当电子设备接到电话时,可以默认启用智慧隐私通话功能对应的隐私通话模式,并在来电界面中显示已开启智慧隐私通话功能相关的提示信息。可选地,该提示信息可以为文字,也可以为图标,也可以是文字与图标的组合。
在一些实施例中,在开启智慧隐私通话功能之后,在每次使用听筒接打时可以在语音通话界面在气泡框内显示智慧隐私通话功能的介绍说明(例如:保证通话清晰的同时,减少漏音、保护隐私);还可以在特定区域(即屏幕发声区域)中显示诸如“智慧隐私通话已开启”和/或“靠近此区域,听得更清晰”等操作方式,通过这些提示信息介绍智慧隐私通话功能并引导用户使用智慧隐私通话功能。
示例性地,以来电场景为例,图4示出了来电界面的示意图,如图4中的(a)所示,在来电界面40中显示有以下提示信息:“智慧隐私通话已开启”41,“保证通话清晰的同时,减少漏音、保护隐私”42(位于气泡框中),以及标识隐私通话的图标43(显示于状态栏处)。如图4中的(b)所示,在来电界面40中显示有以下提示信息:“靠近此区域,听得更清晰”44,“保证通话清晰的同时,减少漏音、保护隐私”42,以及标识隐私通话的图标43。这些提示信息均用于提示已启用隐私通话模式。其中,在来电界面40中可以交替显示(即轮播)“智慧隐私通话已开启”41和“靠近此区域,听得更清晰”44。这样可以让用户更快地获知智慧隐私通话功能并学习使用该功能,提升人机交互体验。
需要说明的是,这里的提示信息均为示例性地说明,提示信息的具体内容、显示位置、显示数量、显示尺寸、显示样式等可以根据实际使用需求确定,本申请实施例不作限定。
可选地,上述提示信息可以在开启智慧隐私通话功能之后的前N次通话场景(例如N为3)的语音通话界面中显示,以引导用户使用该智慧隐私通话功能,并在后续通话场景中取消显示。例如,在语音通话界面中可以取消显示诸如“保证通话清晰的同时,减少漏音、保护隐私”等对智慧隐私通话功能的介绍说明。
在一些实施例中,当用户点击语音通话界面中的任意位置(包括接听键)时,在语音通话界面中取消显示对智慧隐私通话功能的介绍说明信息,例如“保证通话清晰的同时,减少漏音、保护隐私”对应的气泡框消失。
在一些实施例中,在语音通话界面中,“智慧隐私通话已开启”可以为常驻提示。也就是说,当用户点击语音通话界面中的任意位置(包括接听键)时,“智慧隐私通话已开启”提示信息可以保持显示。
示例性地,以来电接听后的通话场景为例,图5示出了来电界面以及接听后的语音通话界面的示意图,如图5中的(a)所示,用户点击来电界面40中的接听键45,以接听电话。如图5中的(b)所示,响应于用户对接听键45的操作,来电界面40切换显示为语音通话界面46。在语音通话界面46中显示有以下提示信息:“智慧隐私通话已开启”41以及标识隐私通话的图标43。其中,图5中的(a)所示的“保证通话清晰的同时,减少漏音、保护隐私”对应的气泡框消失。
在一些实施例中,当智慧隐私通话功能开启时,当用户下拉菜单栏时,菜单栏中显示有用于指示正在进行语音通话的通知卡片以及用于指示智慧隐私通话功能已开启的通知卡片。
示例性地,图6示出了菜单栏显示的关于智慧隐私通话功能的通知卡片的示意图,如 图6中的(a)所示,用户在语音通话界面46上沿箭头方向向下滑动手指,以下拉菜单栏。如图6中的(b)所示,显示菜单栏(也称为通知界面),该菜单栏中显示有通知卡片47和通知卡片48,通知卡片47用于指示正在进行语音通话,通知卡片48用于指示智慧隐私通话功能已开启。
通过这些通知卡片,便于用户更好地获知智慧隐私通话功能的应用场景以及应用效果,提升用户使用体验。
在一些实施例中,本申请实施例提供的音频处理方法还适用于基于IP的语音电话(voice over Internet protocol,VoIP)。示例性地,图7示出了VoIP电话的通话场景的界面示意图,如图7所示,在VoIP通话界面50中显示有“智慧隐私通话已开启”51,以及标识隐私通话的图标52,用于提示当前通话场景采用隐私通话模式来实现语音输出。
需要说明的是,以上实施例中是以来电场景以及来电接听后的通话场景为例进行示例性说明的,可以理解,在实际实现时,本申请实施例提供的音频处理方法也适用于去电场景以及去电接听后的通话场景,具体智慧隐私通话功能相关的描述可以参见上述来电场景以及来电接听后的通话场景中对智慧隐私通话功能相关的详细描述,此处不再赘述。
还需要说明的是,本申请实施例提供的音频处理方法还适用于播放语音消息的场景,例如一些社交应用支持接收或发送语音消息,这些语音消息在播放时也可以应用上述智慧隐私通话功能,避免语音消息播放时漏音。
再需要说明的是,本申请实施例提供的音频处理方法还适用于播放录音的场景,例如在播放录音时也可以应用上述智慧隐私通话功能,避免录音播放时漏音。
可以理解,本申请实施例提供的音频处理方法可以适用于用户需要通过电子设备进行贴耳听音的各种场景,本申请实施例对此不作限定。
在本申请实施例中,在智慧隐私通话功能开启之后,在语音通话场景中,隐私通话模式可以在电子设备的输出音量等级低于预设音量等级时自动启用。也就是说,在语音通话场景中当电子设备的输出音量等级低于预设音量等级时,则自动切换为隐私通话模式,并采用隐私通话模式对应的语音输出方式(例如通过屏幕和听筒共同发声,如屏幕发声强度大于听筒发声强度)来输出语音,避免语音通话时漏音。
在另一些实施例中,在语音通话场景中,当感应到用户连续多次触发音量降低的操作时,也可以自动切换为隐私通话模式,并采用隐私通话模式对应的语音输出方式(例如通过屏幕和听筒共同发声,如屏幕发声强度大于听筒发声强度)来输出语音,避免语音通话时漏音。
在一些实施例中,在电子设备开启隐私通话模式后,电子设备可以结合采用屏幕发声方式和听筒发声方式来输出语音。其中,屏幕发声方式对应的语音输出强度(例如70%)大于或等于听筒发声方式对应的语音输出强度(例如30%)。即,手机可以采用屏幕发声为主、听筒发声为辅的方式同时播放语音。隐私通话模式还可以仅采用屏幕发声。
在一些实施例中,在电子设备开启大音量模式后,电子设备可以结合采用听筒发声方式和屏幕发声方式来输出语音。其中,听筒发声方式对应的语音输出强度(例如70%)大于屏幕发声方式对应的语音输出强度(例如30%)。手机可以采用听筒发声为主、屏幕发声为辅的方式同时播放语音。
在一些实施例中,当从隐私通话模式切换到大音量模式时,还可以在隐私通话模式对 应的音量基础上,增大整体发声音量(或称为响度或强度),以提升语音播放效果。也就是说,在大音量模式下通过听筒发声和屏幕发声时的整体发声响度,大于在隐私通话模式下通过听筒发声和屏幕发声时的整体发声响度。
相比于听筒发声方式,屏幕发声方式能有效防止语音通话时漏音,因此当用户处于安静环境中接打电话时,用户通常希望减少漏音,此时可以采用隐私通话模式,能够保证通话清晰的同时,减少漏音,从而起到保护用户隐私的效果。
以上说明了开启隐私通话模式的可能方式以及开启后的语音通话界面的显示效果,下面详细描述隐私通话模式在实际使用时的可能实现方式,例如下面将介绍:如何实现隐私通话模式与大音量模式之间的切换,具体通过哪些用户操作以及满足何种条件可以触发模式切换,以及模式切换时音量条的变化等。
在本申请实施例中,通过本申请提供的音频处理方法,可以根据电子设备的输出音量等级或范围,控制隐私通话模式与大音量模式切换使用。
其中,针对隐私通话模式与大音量模式的切换,电子设备可以预定义下述规则:
当电子设备的输出音量等级小于或等于预设音量等级时,或者当电子设备的输出音量等级在预设的第一音量等级范围内时,则自动启用隐私通话模式;
当电子设备的输出音量等级大于预设音量等级时,或者当电子设备的输出音量等级在预设的第二音量等级范围内时,则自动退出隐私通话模式,并进入大音量模式。其中,第二音量等级范围中各个等级对应的音量值大于第一音量等级范围中各个等级对应的音量值。
需要说明的是,上述电子设备的输出音量等级可以是接听或者拨打电话时的音量等级,或者可以是用户触发调整后的音量等级。
也就是说,在用户通过电子设备进行贴耳听音的场景中,本申请提供的音频处理方法可以在电子设备的输出音量等级降低后小于或等于预设音量等级时,自动启用隐私通话模式,以避免语音通话时漏音。在电子设备的输出音量等级升高后超过预设音量等级时,自动退出隐私通话模式,并进入大音量模式,保证大音量播放效果。
示例性地,当接收到用户降低音量或提高音量的操作时,若判断调节后的音量等级小于或等于预设音量等级,则启用隐私通话模式,例如可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声(例如屏幕发声的强度大于听筒发声的强度),以避免漏音,提升用户通话体验。若判断调节后的音量等级大于预设音量等级,则启用大音量模式,例如可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声(例如听筒发声的强度大于屏幕发声的强度),以保证良好的出音效果,提升用户通话体验。
在一些实施例中,电子设备可以将不同音量划分为10个等级,包括1级至10级,其中从1至级10级对应的音量值逐级增大。其中,音量值可以采用分贝(dB)表示。每个等级对应的音量值或音量范围,具体可以根据实际使用需求确定,本申请实施例不作限定。
在一些实施例中,可以通过音量条的形式来表示音量值的大小。例如,通过在音量条中以不同填充长度区分不同大小的音量等级,例如音量条中的填充越多,则表示音量等级越大,在此情况下语音输出音量越大。当音量条中被完全填充,对应10级,表示达到音量的最大值。当音量条没有被填充,表示静音。
具体到本申请方案,可以根据实际情况,取这10个等级中的一个等级,作为预设音量等级。示例性地,可以取6级作为预设音量等级;相应地,预设的第一音量等级范围可以取[1,6],预设的第二音量等级范围可以取[7,10]。
示例性地,这里针对不同音量等级启用不同通话模式进行描述,如图8中的(a)所示,音量条对应音量6级(这里以6级为例,还可以是1级至5级中的任一等级),音量6级在[1,6]音量等级范围内,此时启用隐私通话模式。再参考图8中的(b)所示,音量条对应7级(这里以7级为例,还可以是8级至10级中的任一等级),音量7级在[7,10]音量范围内,此时启用大音量模式。
示例性地,这里针对不同通话模式的切换进行描述,如图8中的(a)所示,当用户调高音量时,音量条的填充量会增加,例如音量条从6级变化为7级,则自动退出隐私通话模式,并进入大音量模式,即从隐私通话模式切换到大音量模式。当用户调低音量时,音量条的填充量会减少,例如音量条从7级变化为6级,则从大音量模式切换到隐私通话模式。
需要说明的,上述以音量条从6级变化为7级以及音量条从7级变化为6级为例进行示例性说明,在实际实现时,从1级至6级中的任一等级变化为7级至10级中的任一等级,均可以触发从隐私通话模式切换到大音量模式;以及从7级至10级中的任一等级变化为1级至6级中的任一等级,均可以触发从大音量模式切换到隐私通话模式。
需要说明的是,上述取音量6级作为预设音量等级为示例性地说明,在实际实现时预设音量等级的取值可以根据具体情况进行选择,本申请实施例对此不作限定。
可选地,本申请实施例不限定大音量模式和隐私通话模式时音量条的显示形式、显示颜色、显示长度等。在一些实施例中,大音量模式时的音量条与隐私通话模式时的音量条可以如图8中的(a)所示。在另一些实施例中,大音量模式时的音量条与隐私通话模式时的音量条可以如图8中的(b)所示,两种通话模式的音量条在显示颜色上不同。为了便于说明,本申请实施例中均以图8中的(a)所示的音量条为例进行示例性说明。
可选地,本申请实施例中,可以通过不同的图标分别表示隐私通话模式和大音量模式,以区分隐私通话模式和大音量模式。具体地,用于标识通话模式的图标在显示位置、显示尺寸以及显示形式等方面,可以根据实际使用需求确定,本申请实施例不作限定。可选地,用于标识通话模式的图标可以显示于音量条的下方或上方。
在一些实施例中,在通话模式切换时,在音量条的填充量发生变化的同时,通话模式的图标也会相应发生变化,以提示用户通话模式已切换,从而提升用户使用体验。
在一些实施例中,在通话模式切换时,电子设备可以震动提示用户,提升用户使用体验。
在一些实施例中,用户可以通过对电子设备的物理音量按键按压,以调高音量或降低音量。在另一些实施例中,用户可以在屏幕上显示的音量条上滑动操作,以调高音量或降低音量。
下面结合附图说明上述通话模式切换的过程。
示例性地,图9示出了通话模式切换的一种界面示意图。如图9中的(a)所示,当前语音通话中已启用隐私通话模式。用户可以按压音量按键以调节音量。如图9中的(b)所示,在用户按压音量按键之后,语音通话界面中显示音量条61以及用于标识隐私通话 模式的图标62。音量按键包括音量增加键(音量+键)和音量降低键(音量-键),用户可以按压音量+键以调高音量,也可以按压音量-键以调低音量。如图9中的(c)和(d)所示,当用户按压音量+键以调高音量时,音量条沿箭头方向增加,当调节后的音量等级超过预设音量等级(6级)时,从隐私通话模式切换为大音量模式。如图9中的(d)所示,在大音量模式下,用于标识隐私通话模式的图标62更新显示为用于标识大音量模式的图标63;此外,隐私通话模式的相关提示信息,例如不再显示“智慧隐私通话已开启”,状态栏中用于标识隐私通话模式的图标也取消显示。
再示例性地,图10示出了通话模式切换的另一种界面示意图。如图10中的(a)所示,语音通话界面中显示音量条61以及用于标识大音量模式的图标63,由此可知当前语音通话中为大音量模式。用户可以通过在音量条61沿特定方向滑动手指以调节音量,例如沿某一方向滑动手指可以调高音量,沿相反方向滑动手指可以调低音量。如图10中的(b)所示,在用户在音量条61沿箭头所示方向滑动手指以调低音量。如图10中的(c)所示,当用户在音量条61操作以调低音量时,音量条沿箭头所示方向下降,当调节后的音量等级小于或等于预设音量等级(6级)时,从大音量模式切换为隐私通话模式。如图10中的(c)所示,在隐私通话模式下,用于标识大音量模式的图标63更新显示为用于标识隐私通话模式的图标62;此外会显示“智慧隐私通话已开启”,状态栏中也会显示用于标识隐私通话模式的图标,以提示用户当前已启用隐私通话模式。
可选地,如图10中的(c)和(d)所示,在预设时长(例如5秒)后,音量条以及用于标识通话模式的图标会被隐藏。用户可以按压物理音量按键,再次呼出音量条以及用于标识通话模式的图标。
在本申请实施例中,图11示出了音量等级的划分以及各个音量等级与音量值的映射关系的示意图。如图11所示,音量等级被划分为1级到10级,其中当音量等级处于1级到6级范围内,则启用隐私通话模式;当音量等级处于7级到10级范围内,则启用大音量模式。示例性地,1级到10级分别对应的音量值为:2.5dB,5dB,7.5dB,10dB,12.5dB,15dB,17.5dB,20dB,22.5dB,25dB。可以理解,这里各个音量等级与音量值的映射关系为示例性地说明,可以理解,在实际实现时,各个音量等级对应的音量值可以根据实际使用需求设置,本申请实施例不作限定。
需要说明的是,在上述实施例中,隐私通话模式和大音量模式采用的是同一音量等级划分规则。在一些实施例中,隐私通话模式和大音量模式还可以采用不同的音量等级划分规则。下面结合图12示例性地说明这两种通话模式各自的音量等级划分规则以及这两种通话模式的音量等级映射关系。
如图12所示,隐私通话模式也可以对应10个音量等级,这10个音量等级对应的音量值分别为1.5dB至15dB,例如音量1级对应1.5dB,音量10级对应15dB。大音量模式对应10个音量等级,这10个音量等级对应的音量值分别为2.5dB至25dB,例如音量1级对应2.5dB,音量10级对应25dB。隐私通话模式的10个音量等级所覆盖的音量值范围与大音量模式的音量1级至音量6级所覆盖的音量值范围相同。可以理解,隐私通话模式的10个音量等级是对大音量模式的音量1级至音量6级的更细等级划分。
图12还示出了从隐私通话模式切换到大音量模式时音量等级的映射关系,如图12所示,隐私通话模式的音量10级对应的音量值为15,大音量模式的音量6级对应的音量值 同样也为15,也就是说,隐私通话模式的音量10级相当于大音量模式的音量6级。
其中,隐私通话模式的音量9级(13.5dB)近似相当于大音量模式的音量6级(15dB),隐私通话模式的音量8级(12dB)近似相当于大音量模式的音量5级(12.5dB),隐私通话模式的音量6级(9dB)和7级(10.5dB)近似相当于大音量模式的音量4级(10dB),隐私通话模式的音量4级(6dB)近似相当于大音量模式的音量3级(7.5dB),隐私通话模式的5级(7.5dB)相当于大音量模式的音量3级(7.5dB),隐私通话模式的音量2级(3dB)和3级(4.5dB)近似相当于大音量模式的音量2级(5dB),隐私通话模式的音量1级(1.5dB)近似相当于大音量模式的音量1级(2.5dB)。
需要说明的是,图12所示的映射关系为示例性地说明,具体可以根据实际使用需求确定,本申请实施例不作限定。
结合图11和图12所示的音量等级划分规则,在隐私通话模式与大音量模式之间切换的过程中,音量条的变化形式可以有各种可能的实现方式,本申请实施例示例性地给出了以下三种实现方式:
方式一,结合参考图11和图13,两种模式的音量条长度相同且音量条表示的音量值范围相同。两种模式的音量条的最大等级均为音量10级,音量10级对应25dB。
如图13中的(a)所示,当前音量条表示音量6级(15dB),此时为隐私通话模式。当用户调高音量时,音量条的阴影填充量增多,例如音量等级升高到音量7级(17.5dB),此时发生模式切换,即退出隐私通话模式,并进入大音量模式。进一步地,当用户继续调高音量时,音量条的阴影填充量增多,例如音量等级升高到音量8级(20dB),此时仍然为大音量模式。
如图13中的(b)所示,当前音量条表示音量7级(17.5dB),此时为大音量模式。当用户调低音量时,音量条的阴影填充量减少,例如音量等级降低到音量6级(15dB),此时发生模式切换,即启用隐私通话模式,并退出大音量模式。进一步地,当用户继续调低音量时,音量条的阴影填充量减少,例如音量等级降低到音量5级(12.5dB),此时仍然为隐私通话模式。
方式二,结合参考图12和图14,两种模式的音量条长度不同且音量条表示的音量值范围不同。不同于上述方式一,在方式二中,隐私通话模式的音量条长度小于大音量模式的音量条长度。隐私通话模式的音量条最大等级为音量10级,该音量10级对应15dB;大音量模式的音量条最大等级为音量10级,该音量10级对应25dB。
如图14中的(a)所示,当前音量条表示音量8级(12dB),此时为隐私通话模式。当用户调高音量时,音量条的阴影填充量变为填满状态,音量等级升高到音量10级(15dB)。当用户继续调高音量时,音量条变长且阴影填充量变化为未填满状态,例如对应的音量等级为音量8级(20dB),此时发生模式切换,即退出隐私通话模式,并进入大音量模式。进一步地,当用户继续调高音量时,音量条的长度为发生变化并且音量条的阴影填充量增多,例如音量等级升高到音量9级(22.5dB),此时仍然为大音量模式。
如图14中的(b)所示,当前音量条表示音量7级(17.5dB),此时为大音量模式。当用户调低音量时,音量条变短并且阴影填充量变化为填满状态,对应的音量等级为音量10级(15dB),此时发生模式切换,即启用隐私通话模式,并退出大音量模式。进一步地,当用户继续调低音量时,音量条的长度不发生变化并且阴影填充量降低,例如音量等级降 低到音量7级(10.5dB),此时仍然为隐私通话模式。
可以看出,在方式二中,音量条在隐私通话模式可调至最大等级,即音量10级,此时音量条保持满格显示。
方式三,结合参考图12和图15,两种模式的音量条长度相同但音量条表示的音量值范围不同。不同于上述方式一,在方式三中,隐私通话模式的音量条最大等级为音量10级,该音量10级对应15dB;大音量模式的音量条最大等级为音量10级,该音量10级对应25dB。为了便于区分,方式三中可以采用不同颜色或图案分别表示两种模式的音量条的阴影。
如图15中的(a)所示,当前音量条表示音量8级(12dB),此时为隐私通话模式。当用户调高音量时,音量条的阴影填充量变化为填满状态,音量等级升高到音量10级(15dB),此时仍然为隐私通话模式。进一步地,当用户继续调高音量时,音量条的阴影填充量下降且阴影颜色变化,例如对应的音量等级为音量7级(17.5dB),此时发生模式切换,即退出隐私通话模式,并进入大音量模式。进一步地,当用户继续调高音量时,音量条的阴影填充量增多,例如音量等级升高到音量8级(20dB),此时仍然为大音量模式。
如图15中的(b)所示,当前音量条表示音量7级(17.5dB),此时为大音量模式。当用户调低音量时,音量条的阴影填充量变化为填满状态且阴影颜色发生变化,对应的音量等级为音量10级(15dB),此时发生模式切换,即启用隐私通话模式,并退出大音量模式。进一步地,当用户继续调低音量时,音量条的阴影填充量减少,例如音量等级降低到音量7级(10.5dB),此时仍然为隐私通话模式。
以上详细描述了隐私通话模式与大音量模式之间切换的过程,下面再进一步说明隐私通话模式与扬声器模式之间切换的可能实现方式。
在一些实施例中,通过本申请提供的音频处理方法,在电子设备处于隐私通话模式的情况下,当电子设备接收到用户点击扬声器图标时,可以切换为扬声器模式,即通过扬声器发声来输出语音,此时屏幕和听筒均不发声。可选地,进一步地,当电子设备接收到用户点击扬声器图标时,可以退出扬声器模式,并重新进入隐私通话模式。
示例性地,图16示出了接听来电后的语音通话界面的示意图,在语音通话界面中显示有以下提示信息:“智慧隐私通话已开启”71以及标识隐私通话的图标72。如图16中的(a)所示,用户点击语音通话界面中的扬声器键73,以触发通过扬声器播放语音。如图16中的(b)所示,响应于用户对扬声器键73的操作,手机开启免提功能,此时通过扬声器播放语音,且屏幕和听筒均不发声,并且语音通话界面中可以显示提示信息“已退出智慧隐私通话”74,相应地“智慧隐私通话已开启”71以及标识隐私通话的图标72会取消显示。提示信息“已退出智慧隐私通话”74在显示预设时长(例如5秒)后会隐藏。
进一步可选地,如图16中的(c)所示,用户可以再次点击语音通话界面中的扬声器键73,以触发关闭扬声器。如图16中的(d)所示,响应于用户对扬声器键73的操作,手机从扬声器模式切换到隐私通话模式。如此实现隐私通话模式与大音量模式之间的切换。
再示例性地,图17示出了通过在智慧隐私通话功能的通知卡片上操作来触发从隐私通话模式切换到扬声器模式的界面示意图,如图17中的(a)所示,用户在语音通话界面上沿箭头方向向下滑动手指,以下拉菜单栏。如图17中的(b)所示,显示菜单栏(也称为通知界面),该菜单栏中显示有通知卡片75,该通知卡片75用于指示正在进行语音通 话,用户可以点击该通知卡片75中的免提标识76,以触发开启免提功能。如图17中的(c)所示,在用户点击该免提标识76之后,从菜单栏界面返回到语音通话界面,在语音通话界面中可以显示提示信息“已退出智慧隐私通话”74。相应地“智慧隐私通话已开启”71以及标识隐私通话的图标72会取消显示。如此实现隐私通话模式与大音量模式之间的切换。
在一些实施例中,电子设备提供了智慧隐私通话功能的设置界面,用户可以根据实际使用需求,在该设置界面中触发智慧隐私通话功能开启或关闭。
示例性地,图18示出了通过智慧隐私通话功能的通知卡片进入智慧隐私通话功能的设置界面的示意图,如图18中的(a)所示,用户在语音通话界面上沿箭头方向向下滑动手指,以下拉菜单栏。如图18中的(b)所示,显示菜单栏(也称为通知界面),该菜单栏中显示有通知卡片77,该通知卡片77用于指示智慧隐私通话功能已开启,用户可以点击该通知卡片77,以对智慧隐私通话功能进行设置。如图18中的(c)所示,在用户点击该通知卡片75之后,从菜单栏界面跳转到智慧隐私通话功能的设置界面78,该设置界面78中包括智慧隐私通话功能的开关控件79,开关控件79当前指示智慧隐私通话功能处于开启状态。用户可以对开关控件79操作(例如沿图示箭头方向的滑动操作),以触发关闭智慧隐私通话功能。
进一步地,如图18中的(d)所示,在用户对开关控件79操作之后,退出隐私通话模式,并且从智慧隐私通话功能的设置界面78跳转到语音通话界面,在语音通话界面中可以显示提示信息“已退出智慧隐私通话”74。相应地“智慧隐私通话已开启”71以及标识隐私通话的图标72会取消显示。
需要说明的是,上面实施例应用的语音通话场景为例进行示例性的说明,可以理解,上述实施例提供的关于在隐私通话模式与扬声器模式之间切换,以及对隐私通话模式的功能设置等方案同样可以应用于VoIP的语音通话场景中。
示例性地,以隐私通话模式与扬声器模式之间切换为例,图19示出了VoIP的语音通话界面的示意图,在VoIP的语音通话界面中显示有以下提示信息:“智慧隐私通话已开启”81以及标识隐私通话的图标82。如图19中的(a)所示,用户点击语音通话界面中的扬声器键83,以触发通过扬声器播放语音。如图19中的(b)所示,响应于用户对扬声器键83的操作,手机开启免提功能,此时通过扬声器播放语音,且屏幕和听筒均不发声,并且语音通话界面中可以显示提示信息“已退出智慧隐私通话”84,相应地“智慧隐私通话已开启”81以及标识隐私通话的图标82会取消显示。
如此,在用户通过电子设备进行贴耳听音时,电子设备可以根据不同的音量等级判断是启用隐私通话模式还是大音量模式,并且可以选择通过听筒和/或屏幕进行发声。例如,在电子设备默认设置的音量等级或者用户触发调整后的音量等级小于或等于预设音量等级时,启用隐私通话模式,在隐私通话模式下可以通过听筒和屏幕以不同的发声强度播放语音,例如屏幕发声强度大于听筒发声强度。在电子设备默认设置的音量等级或者用户触发调整后的音量等级大于预设音量等级时,则启用大音量模式,在大音量模式下也可以通过听筒和屏幕以不同的发声强度播放语音,例如听筒发声强度大于屏幕发声强度。通过听筒发声和屏幕发声互补使用,以使电子设备播放语音时既可以避免安静环境下漏音还可以具有良好音质。从而能够良好的保护用户的隐私,使电子设备在用户进行贴耳听音时具有更好的私密性。
如上所述,在用户通过手机进行贴耳听音,或用户选择听筒模式(即手机通过听筒播放声音的模式)时,手机可以判断当前的音量等级是否小于或等于预设音量等级,并根据判断结果确定是启用隐私通话模式还是启用大音量模式。下面说明如何检测用户通过手机贴耳听音的动作的可能实现方式。
其中,用户通过手机进行贴耳听音(即手机所处的贴耳听音状态),可以是用户耳朵贴靠在听筒附近,通过手机的听筒收听手机内存储的音频数据(如录音数据、歌曲数据等)。还可以是用户耳朵贴靠在听筒附近进行语音通信(语音通信可以是通过手机中的电话功能与其他电子设备进行的语音通信,也可以是通过手机中安装的即时通讯应用与其他电子设备进行的语音通信)时,通过手机的听筒收听手机接收到的对侧用户手机传输来的声音数据。还可以是用户耳朵贴靠在听筒附近,通过手机的听筒收听即时通讯应用中的语音消息等。如,手机通过即时通讯应用接收来自其他手机的语音消息。手机可以显示即时通讯应用的聊天界面,该聊天界面包括来自其他手机的语音消息。响应于用户对该语音消息的点击操作,手机可以通过听筒播放来自其他手机的语音消息(即声音信号)。
示例地,手机可以通过光线传感器、距离传感器等传感器来检测用户耳朵是否贴靠在听筒附近。例如,手机可以通过距离传感器检测手机前面板(或者屏幕)前是否有遮挡,当前面板前近距离处有遮挡,则可确定当前用户耳朵贴靠在听筒附近。又例如,当手机光线传感器检测到光线强度瞬间降低且变化较大时,则可确定当前用户耳朵贴靠在听筒附近。当然,在本申请的其他实施例中,手机还可以通过其他方式或算法检测用户耳朵是否贴靠在听筒附近,也可以参考常规技术中的相关介绍,此处不做限制。
在一些实施例中,当用户使用手机进行贴耳听音时,手机还可以显示可供用户选择的各种听音模式,以便用户根据实际使用需求,手动选择听音模式,触发手机执行相应的听筒和屏幕发声的声音播放策略。其中,听音模式可以包括隐私模式和大音量模式。
例如,如图20中的(a)所示,手机的语音通话界面中可以显示“隐私通话模式”和“大音量模式”的控件等可供用户选择的听音模式。例如,如图20中的(a)所示,当前听音模式为隐私通话模式时,手机的语音通话界面显示的控件“隐私通话模式”具有突出显示的效果。如图20中的(a)和(b)所示,响应于用户点击“大音量模式”的操作,手机可以将听音模式从“隐私通话模式”切换为“大音量模式”。当然,用户也可以通过点击“隐私通话模式”,将听音模式从“大音量模式”切换为“隐私通话模式”。后续,手机便可以根据用户选择的听音模式对应的声音播放策略(例如通过听筒和屏幕发声)来播放声音。
需要说明的是,上述示例中,手机接收到用户输入的选择听音模式的操作后,可以直接采用相对应的声音播放策略来播放声音。每种听音模式采用对应的声音播放策略。
其中,隐私通话模式可以采用听筒和屏幕共同发声的声音播放策略来播放声音,其中屏幕发声强度可以大于或等于听筒发声强度。即,手机可以采用屏幕发声为主、听筒发声为辅的方式同时播放语音。隐私通话模式还可以仅采用屏幕发声。
其中,大音量模式可以采用听筒和屏幕共同发声的声音播放策略来播放声音,其中听筒发声强度可以大于屏幕发声强度。即,手机可以采用听筒发声为主、屏幕发声为辅的方式同时播放语音。大音量模式还可以仅采用听筒发声。
其中,根据上述示例的用户贴耳听音的各种场景,听筒和屏幕发声播放的语音可以是手机中保存的任一个音频数据,例如,语音是手机中保存的录音数据或歌曲数据等。还可 以是手机进行语音通信时手机接收到的对侧用户手机传输来的声音数据。还可以是手机中安装的即时通讯应用中的语音消息等。
可选地,在本申请实施例中,安静环境下,手机还可以根据人耳与手机(或听筒)间的距离来调整听筒发声和屏幕发声的音量(或称为响度)。同时,还可以对听筒发声输出的频段以及屏幕发声输出的频段进行调整。
例如,当人耳远离手机时,手机可以增加听筒发声和屏幕发声的音量。同时,手机还可以减少听筒发声输出的频段中相对高频的部分的发声,即降低屏幕发声输出的频段和听筒发声输出的频段间的分界频率,使听筒发声输出更低的频段。由于屏幕发声的能量大部分正对人耳,而听筒发声的部分能量会从手机中框顶部的出音孔释放,因此提高音量后听筒发声相比于屏幕发声更易漏音,所以进一步调低听筒发声输出的频段,能够避免提高音量后其他用户听清听筒发声输出的声音。
在一些实施例中,还可以根据屏幕发声的灵敏度对屏幕发声的声音强度进行设置。即,根据屏幕发声的灵敏度不同,设置的屏幕发声的声音强度也可以有所不同。
例如,在本申请实施例中,屏幕发声可以通过屏幕发声装置(例如,如图2所示的屏幕发声装置)实现,根据不同的屏幕发声方案,屏幕发声装置也有所不同。如,屏幕发声装置可以是连接在屏幕背面的振动源(通常为压电陶瓷,也可以是马达振子、激励器或其他振动单元),可以通过电流信号控制压电陶瓷振动以带动屏幕振动,从而实现屏幕发声。又如,屏幕发声装置还可以是通过悬臂梁结构固定在手机中框上的压电陶瓷,可以通过电流信号控制压电陶瓷振动,利用手机中框将振动传递至屏幕带动屏幕振动,从而实现屏幕发声。又如,屏幕发声装置还可以是固定在手机中框上的激励器,可以通过电流信号控制激励器振动,利用手机中框将振动传递至屏幕带动屏幕振动,从而实现屏幕发声。又例如,屏幕发声装置还可以分体式磁悬浮振子。其中一个振子固定在手机中框上,另一个振子固定在屏幕上,可以通过电流信号控制固定在屏幕上的振子相对于固定在手机中框上的振子振动,从而推动屏幕振动实现屏幕发声。受屏幕发声装置设置的类型、位置、手机中框重量、手机内部结构布局等的影响,不同的屏幕发声方案的屏幕发声灵敏度均有所不同,可以为灵敏高的屏幕发声设置相对较小的屏幕发声声音强度和推动功率,而为灵敏度低的屏幕发声设置相对较大的屏幕发声声音强度和推动功率。
可选地,在本申请实施例中,电子设备(如手机)可以自动开启上述方法所实现的功能,也可以设置为用户手动开启上述方法所实现的功能。
也需要说明的是,在本申请实施例中,“大于”可以替换为“大于或等于”,“小于或等于”可以替换为“小于”,或者,“大于或等于”可以替换为“大于”,“小于”可以替换为“小于或等于”。
本文中描述的各个实施例可以为独立的方案,也可以根据内在逻辑进行组合,这些方案都落入本申请的保护范围中。
可以理解的是,上述各个方法实施例中由电子设备实现的方法和操作,也可以由可用于电子设备的部件(例如芯片或者电路)实现。
上文描述了本申请提供的方法实施例,下文将描述本申请提供的装置实施例。应理解,装置实施例的描述与方法实施例的描述相互对应,因此,未详细描述的内容可以参见上文方法实施例,为了简洁,这里不再赘述。
上文主要从方法步骤的角度对本申请实施例提供的方案进行了描述。可以理解的是,为了实现上述功能,实施该方法的电子设备包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的保护范围。
本申请实施例可以根据上述方法示例,对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有其它可行的划分方式。下面以采用对应各个功能划分各个功能模块为例进行说明。
图21为本申请实施例提供的音频处理装置800的示意性框图。该装置800可以用于执行上文方法实施例中电子设备所执行的动作。该装置800包括检测单元810、处理单元820和显示单元830。
检测单元810,用于接收用户的第一操作,该第一操作用于触发拨打电话或者接听电话;
处理单元820,用于响应于该第一操作,电子设备进入语音通话状态,并按照隐私通话模式对应的第一输出策略输出语音,该第一输出策略为通过屏幕输出语音;
检测单元810,还用于接收用户的第二操作,该第二操作用于触发电子设备的输出音量增大;
处理单元820,还用于响应于该第二操作,当调节后的输出音量大于预设输出音量时,从隐私通话模式切换到大音量模式,并按照该大音量模式对应的第二输出策略输出语音,该第二输出策略为通过听筒输出语音。
通过本申请实施例提供的音频处理装置,当电子设备进入语音通话状态时,自动启用隐私通话模式,例如可以通过屏幕发声的方式来输出语音,以避免漏音,保护用户通话隐私,提升用户通话体验。当接收到用户增大音量的操作时,若判断调节后的音量等级大于预设音量等级,则启用大音量模式,例如可以通过听筒发声的方式输出语音,以保证良好的出音效果,提升用户通话体验。
在一些可能的实现方式中,第一输出策略为通过屏幕和听筒输出语音;其中,当在隐私通话模式下通过屏幕和听筒输出语音时,屏幕发声的音量强度大于或等于听筒发声的音量强度。
通过上述方案,在隐私通话模式下,可以通过屏幕和听筒同时发声并控制这两种发声方式以不同的音量强度进行发声,如屏幕发声的强度大于或等于听筒发声的强度,以避免漏音,保护用户通话隐私,提升用户通话体验。
在一些可能的实现方式中,第二输出策略为通过听筒和屏幕输出语音;其中,当在大音量模式下通过屏幕和听筒输出语音时,听筒发声的音量强度大于屏幕发声的音量强度。
通过上述方案,在大音量模式下,可以通过屏幕和听筒同时发声并控制这两种发声方 式以不同的音量强度进行发声,如听筒发声的强度大于屏幕发声的强度,以保证良好的出音效果,提升用户通话体验。
在一些可能的实现方式中,在隐私通话模式下的输出音量总强度等于在大音量模式下的输出音量总强度。
在一些可能的实现方式中,处理单元820,还用于当从隐私通话模式切换到大音量模式时,增大电子设备的输出音量总强度。
在一些可能的实现方式中,检测单元810,还用于接收用户的第三操作,该第三操作用于触发电子设备的输出音量减小;
处理单元820,还用于响应于该第三操作,当调节后的输出音量小于或等于预设输出音量时,从大音量模式切换为隐私通话模式,并按照隐私通话模式对应的第一输出策略输出语音。
通过上述方案,当接收到用户降低音量的操作时,若判断调节后的音量等级小于或等于预设音量等级,则启用隐私通话模式,以避免漏音,保护用户通话隐私,提升用户通话体验。
在一些可能的实现方式中,上述按照隐私通话模式对应的第一输出策略输出语音,包括:
在电子设备已开启智慧隐私通话功能的情况下,按照隐私通话模式对应的第一输出策略输出语音。
在一些可能的实现方式中,电子设备的输出音量通过音量等级表示,预设音量通过预设的音量等级表示;或者,电子设备的输出音量通过音量分贝值表示,预设音量通过预设的音量分贝值表示。
在一些可能的实现方式中,电子设备的输出音量范围包括预设的音量分贝值范围,该预设的音量分贝值范围被划分为N个等级,该N个音量等级与预设的音量分贝值范围中的N个分贝值存在一一对应的关系。
在一些可能的实现方式中,上述N个音量等级包括音量1级至音量10级;其中,隐私通话模式对应音量1级至音量I级,大音量模式对应音量I+1级至音量10级,其中I为大于1且小于10的整数。
在一些可能的实现方式中,预设的音量分贝值范围为[2.5dB,25dB]。
在一些可能的实现方式中,当I取6时,预设的音量等级为音量6级,音量6级对应的音量分贝值为15dB。
在一些可能的实现方式中,如图21所示,装置800还可以包括显示单元830。
显示单元830,用于在智慧隐私通话功能开启之后,在语音通话界面中的第一区域显示第一提示信息和/或第二提示信息,该第一提示信息用于提示隐私通话功能已开启,该第一提示信息用于引导用户靠近该第一区域接听电话;
其中,该第一区域为屏幕的与屏幕发声装置最靠近的区域。
在一些可能的实现方式中,上述在语音通话界面中的第一区域显示第一提示信息和/或第二提示信息,包括:在语音通话界面中的第一区域,交替显示第一提示信息和第二提示信息。
在一些可能的实现方式中,显示单元830,还用于当从隐私通话模式切换到大音量模 式时,取消显示第一提示信息和第二提示信息。
在一些可能的实现方式中,显示单元830,还用于在智慧隐私通话功能开启之后,在前M次语音通话的语音通话界面中均显示第三提示信息,该第三提示信息用于表示智慧隐私通话功能开启后的效果;并在后续的语音通话的语音通话界面中取消显示该第三提示信息。
在一些可能的实现方式中,显示单元830,还用于当按照隐私通话模式对应的第一输出策略输出语音时,在电子设备的状态栏中显示用于标识隐私通话模式的图标。
在一些可能的实现方式中,显示单元830,还用于当从隐私通话模式切换到大音量模式时,在电子设备的状态栏中取消显示用于标识隐私通话模式的图标。
在一些可能的实现方式中,检测单元810,还用于接收到用户对电子设备的物理音量按键的第四操作;
显示单元830,还用于响应于该第四操作,在语音通话界面中显示音量条图标以及通话模式图标;
其中,该音量条图标用于表示语音通话时的输出音量大小,该通话模式图标用于表示当前通话模式为隐私通话模式或者大音量模式。
在一些可能的实现方式中,在智慧隐私通话功能开启的情况下,该通话模式图标为用于表示隐私通话模式的图标;或者,在智慧隐私通话功能关闭的情况下,通话模式图标为用于表示大音量模式的图标。
在一些可能的实现方式中,电子设备还可以包括扬声器;检测单元810,还用于在智慧隐私通话功能开启的情况下,接收到用户对语音通话界面中的扬声器控件的第五操作;
处理单元820,还用于响应于该第五操作,通过扬声器输出语音,并停止听筒发声和屏幕发声。
在一些可能的实现方式中,处理单元820,还用于当检测单元810接收到用户对系统设置图标的操作时,显示系统设置界面,该系统设置界面中包括隐私通话设置项;
显示单元830,还用于当检测单元810接收到用户对隐私通话设置项的操作时,显示智慧隐私通话功能的设置界面,该设置界面中显示有智慧隐私通话功能的开启控件和关闭控件;
当接收到用户对开启控件的操作时,开启智慧隐私通话功能;或者,当接收到用户对关闭控件的操作时,关闭智慧隐私通话功能。
在一些可能的实现方式中,检测单元810还用于在智慧隐私通话功能开启的情况下,接收到用户在语音通话界面中的第六操作;
显示单元830还用于响应于该第六操作,从语音通话界面跳转到卡片通知界面,该卡片通知界面中显示有第一通知卡片,该第一通知卡片用于提示智慧隐私通话功能已开启。
在一些可能的实现方式中,显示单元830,还用于当检测单元810接收到用户对第一通知卡片的操作时,从该通知界面跳转到智慧隐私通话功能的设置界面。
在一些可能的实现方式中,上述装置800适用于基于IP的语音电话的通话场景。
根据本申请实施例的装置800可对应于执行本申请实施例中描述的方法,并且装置800中的单元的上述和其它操作和/或功能分别为了实现方法的相应流程,为了简洁,在此不再赘述。
可选地,在一些实施例中,本申请提供一种芯片,该芯片与存储器耦合,该芯片用于读取并执行存储器中存储的计算机程序或指令,以执行上述各实施例中的方法。
可选地,在一些实施例中,本申请提供一种电子设备,该电子设备包括芯片,该芯片用于读取并执行存储器存储的计算机程序或指令,使得各实施例中的方法被执行。
可选地,在一些实施例中,本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有程序代码,当计算机程序代码在计算机上运行时,使得计算机执行上述各实施例中的方法。
可选地,在一些实施例中,本申请实施例还提供了一种计算机程序产品,该计算机程序产品包括计算机程序代码,当计算机程序代码在计算机上运行时,使得计算机执行上述各实施例中的方法。
本申请实施例并未对本申请实施例提供的方法的执行主体的具体结构进行特别限定,只要能够通过运行记录有本申请实施例提供的方法的代码的程序,以根据本申请实施例提供的方法进行处理即可。例如,本申请实施例提供的方法的执行主体可以是电子设备,或者,是电子设备中能够调用程序并执行程序的功能模块。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的保护范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施例的目的,不是旨在于限制本申请。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (29)

  1. 一种音频处理方法,其特征在于,应用于电子设备,所述电子设备包括听筒、屏幕和屏幕发声装置,所述屏幕发声装置用于驱动屏幕进行屏幕发声,所述方法包括:
    接收用户的第一操作,所述第一操作用于触发拨打电话或者接听电话;
    响应于所述第一操作,所述电子设备进入语音通话状态,并按照隐私通话模式对应的第一输出策略输出语音,所述第一输出策略为通过所述屏幕输出语音;
    接收用户的第二操作,所述第二操作用于触发所述电子设备的输出音量增大;
    响应于所述第二操作,当调节后的输出音量大于预设输出音量时,从所述隐私通话模式切换到大音量模式,并按照所述大音量模式对应的第二输出策略输出语音,所述第二输出策略为通过所述听筒输出语音。
  2. 根据权利要求1所述的方法,其特征在于,所述第一输出策略为通过所述屏幕和所述听筒输出语音;
    其中,当在所述隐私通话模式下通过所述屏幕和所述听筒输出语音时,所述屏幕发声的音量强度大于或等于所述听筒发声的音量强度。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二输出策略为通过所述听筒和所述屏幕输出语音;
    其中,当在所述大音量模式下通过所述屏幕和所述听筒输出语音时,所述听筒发声的音量强度大于所述屏幕发声的音量强度。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,在所述隐私通话模式下的输出音量总强度等于在所述大音量模式下的输出音量总强度。
  5. 根据权利要求1至3中任一项所述的方法,其特征在于,所述方法还包括:
    当从所述隐私通话模式切换到所述大音量模式时,增大所述电子设备的输出音量总强度。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,在所述按照所述大音量模式对应的第二输出策略输出语音之后,所述方法还包括:
    接收用户的第三操作,所述第三操作用于触发所述电子设备的输出音量减小;
    响应于所述第三操作,当调节后的输出音量小于或等于所述预设输出音量时,从所述大音量模式切换为所述隐私通话模式,并按照所述隐私通话模式对应的第一输出策略输出语音。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述按照隐私通话模式对应的第一输出策略输出语音,包括:
    在所述电子设备已开启智慧隐私通话功能的情况下,按照所述隐私通话模式对应的第一输出策略输出语音。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述电子设备的输出音量通过音量等级表示,预设音量通过预设的音量等级表示;或者,
    所述电子设备的输出音量通过音量分贝值表示,预设音量通过预设的音量分贝值表示。
  9. 根据权利要求8所述的方法,其特征在于,所述电子设备的输出音量范围包括 预设的音量分贝值范围,所述预设的音量分贝值范围被划分为N个等级,所述N个音量等级与所述预设的音量分贝值范围中的N个分贝值存在一一对应的关系。
  10. 根据权利要求9所述的方法,其特征在于,所述N个音量等级包括音量1级至音量10级;其中,所述隐私通话模式对应音量1级至音量I级,所述大音量模式对应音量I+1级至音量10级,其中I为大于1且小于10的整数。
  11. 根据权利要求9或10所述的方法,其特征在于,所述预设的音量分贝值范围为[2.5dB,25dB]。
  12. 根据权利要求10或11所述的方法,其特征在于,当I取6时,所述预设的音量等级为音量6级,所述音量6级对应的音量分贝值为15dB。
  13. 根据权利要求1至12中任一项所述的方法,其特征在于,所述方法还包括:
    在智慧隐私通话功能开启之后,在语音通话界面中的第一区域显示第一提示信息和/或第二提示信息,所述第一提示信息用于提示所述隐私通话功能已开启,所述第一提示信息用于引导用户靠近所述第一区域接听电话;
    其中,所述第一区域为所述屏幕的与所述屏幕发声装置最靠近的区域。
  14. 根据权利要求13所述的方法,其特征在于,所述在语音通话界面中的第一区域显示第一提示信息和/或第二提示信息,包括:
    在所述语音通话界面中的第一区域,交替显示所述第一提示信息和所述第二提示信息。
  15. 根据权利要求13或14所述的方法,其特征在于,所述方法还包括:
    当从隐私通话模式切换到所述大音量模式时,取消显示所述第一提示信息和所述第二提示信息。
  16. 根据权利要求1至15中任一项所述的方法,其特征在于,所述方法还包括:
    在智慧隐私通话功能开启之后,在前M次语音通话的语音通话界面中均显示第三提示信息,所述第三提示信息用于表示所述智慧隐私通话功能开启后的效果;
    在后续的语音通话的语音通话界面中取消显示所述第三提示信息。
  17. 根据权利要求1至16中任一项所述的方法,其特征在于,所述方法还包括:
    当所述按照所述隐私通话模式对应的第一输出策略输出语音时,在所述电子设备的状态栏中显示用于标识所述隐私通话模式的图标。
  18. 根据权利要求17所述的方法,其特征在于,所述方法还包括:
    当从所述隐私通话模式切换到所述大音量模式时,在所述电子设备的状态栏中取消显示用于标识所述隐私通话模式的图标。
  19. 根据权利要求1至18中任一项所述的方法,其特征在于,所述方法还包括:
    接收到用户对所述电子设备的物理音量按键的第四操作;
    响应于所述第四操作,在所述语音通话界面中显示音量条图标以及通话模式图标;
    其中,所述音量条图标用于表示语音通话时的输出音量大小,所述通话模式图标用于表示当前通话模式为所述隐私通话模式或者大音量模式。
  20. 根据权利要求19所述的方法,其特征在于,
    在智慧隐私通话功能开启的情况下,所述通话模式图标为用于表示所述隐私通话模式的图标;或者,
    在所述智慧隐私通话功能关闭的情况下,所述通话模式图标为用于表示所述大音量模式的图标。
  21. 根据权利要求1至20中任一项所述的方法,其特征在于,所述电子设备还包括扬声器;所述方法还包括:
    在智慧隐私通话功能开启的情况下,接收到用户对语音通话界面中的扬声器控件的第五操作;
    响应于所述第五操作,通过所述扬声器输出语音,并停止所述听筒发声和所述屏幕发声。
  22. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当接收到用户对系统设置图标的操作时,显示系统设置界面,所述系统设置界面中包括隐私通话设置项;
    当接收到用户对隐私通话设置项的操作时,显示智慧隐私通话功能的设置界面,所述设置界面中显示有所述智慧隐私通话功能的开启控件和关闭控件;
    当接收到用户对所述开启控件的操作时,开启所述智慧隐私通话功能;或者,当接收到用户对所述关闭控件的操作时,关闭所述智慧隐私通话功能。
  23. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    在智慧隐私通话功能开启的情况下,接收到用户在语音通话界面中的第六操作;
    响应于所述第六操作,从所述语音通话界面跳转到卡片通知界面,所述卡片通知界面中显示有第一通知卡片,所述第一通知卡片用于提示所述智慧隐私通话功能已开启。
  24. 根据权利要求23所述的方法,其特征在于,所述方法还包括:
    当接收到用户对所述第一通知卡片的操作时,从所述通知界面跳转到智慧隐私通话功能的设置界面。
  25. 根据权利要求1至23中任一项所述的方法,其特征在于,所述方法适用于基于IP的语音电话的通话场景。
  26. 一种电子设备,其特征在于,包括处理器,所述处理器与存储器耦合,所述处理器用于执行所述存储器中存储的计算机程序或指令,以使得所述电子设备实现如权利要求1至25中任一项所述的方法。
  27. 一种芯片,其特征在于,包括处理器,所述处理器与存储器耦合,所述处理器用于执行所述存储器中存储的计算机程序或指令,以使得所述芯片实现如权利要求1至25中任一项所述的方法。
  28. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,当所述计算机程序在电子设备上运行时,使得所述电子设备执行如权利要求1至25中任一项所述的方法。
  29. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机程序,当所述计算机程序被电子设备执行时,使得所述电子设备实现如权利要求1至25中任一项所述的方法。
PCT/CN2022/141748 2022-02-28 2022-12-26 音频处理方法及电子设备 WO2023160204A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202280069266.4A CN118120217A (zh) 2022-02-28 2022-12-26 音频处理方法及电子设备

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210191577.X 2022-02-28
CN202210191577.XA CN116708654A (zh) 2022-02-28 2022-02-28 音频处理方法及电子设备

Publications (1)

Publication Number Publication Date
WO2023160204A1 true WO2023160204A1 (zh) 2023-08-31

Family

ID=87764643

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141748 WO2023160204A1 (zh) 2022-02-28 2022-12-26 音频处理方法及电子设备

Country Status (2)

Country Link
CN (2) CN116708654A (zh)
WO (1) WO2023160204A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6058164A (en) * 1995-03-01 2000-05-02 Fujitsu Limited Mode-switchable telephone and mode setting and switching methods for the same
CN108958631A (zh) * 2018-07-09 2018-12-07 Oppo广东移动通信有限公司 屏幕发声控制方法、装置以及电子装置
CN109062533A (zh) * 2018-07-13 2018-12-21 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置以及存储介质
CN109120770A (zh) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 终端隐私保护方法、终端及计算机可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6058164A (en) * 1995-03-01 2000-05-02 Fujitsu Limited Mode-switchable telephone and mode setting and switching methods for the same
CN109120770A (zh) * 2017-06-23 2019-01-01 中兴通讯股份有限公司 终端隐私保护方法、终端及计算机可读存储介质
CN108958631A (zh) * 2018-07-09 2018-12-07 Oppo广东移动通信有限公司 屏幕发声控制方法、装置以及电子装置
CN109062533A (zh) * 2018-07-13 2018-12-21 Oppo广东移动通信有限公司 发声控制方法、装置、电子装置以及存储介质

Also Published As

Publication number Publication date
CN116708654A (zh) 2023-09-05
CN118120217A (zh) 2024-05-31

Similar Documents

Publication Publication Date Title
CN111294438B (zh) 实现立体声输出的方法及终端
CN110166890B (zh) 音频的播放采集方法、设备及存储介质
US20100080379A1 (en) Intelligibility boost
CN114466097A (zh) 防漏音的移动终端及移动终端的声音输出方法
CN109067965B (zh) 翻译方法、翻译装置、可穿戴装置及存储介质
CN111988701A (zh) 一种终端设备
CN116471355A (zh) 音频播放的方法及电子设备
CN110517711A (zh) 音频的播放方法、装置、存储介质及电子设备
CN113301544B (zh) 一种音频设备间语音互通的方法及设备
CN108668018B (zh) 移动终端、音量控制方法及相关产品
CN115167802A (zh) 一种音频切换播放方法及电子设备
CN106657621B (zh) 一种声音信号自适应调节装置及方法
KR100547741B1 (ko) 휴대 단말기의 스피커 장치
WO2023160204A1 (zh) 音频处理方法及电子设备
CN110392878B (zh) 一种控制声音的方法及移动终端
CN109155803B (zh) 音频数据处理方法、终端设备和存储介质
CN109348021B (zh) 移动终端及音频播放方法
WO2024093452A1 (zh) 通话控制方法、电子设备及存储介质
WO2023284403A1 (zh) 一种音频处理方法及设备
CN111324331A (zh) 交互消息提示方法及装置、电子设备以及存储介质
CN118264746A (zh) 音频处理方法及电子设备
JPH10145470A (ja) オーディオ機能付携帯電話
CN116567489B (zh) 一种音频数据处理方法及相关装置
WO2023142900A1 (zh) 一种音量调整方法与电子设备
CN112771495B (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: 22928447

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022928447

Country of ref document: EP

Effective date: 20240513