WO2020118496A1 - Audio path switching method and device, readable storage medium and electronic equipment - Google Patents

Audio path switching method and device, readable storage medium and electronic equipment Download PDF

Info

Publication number
WO2020118496A1
WO2020118496A1 PCT/CN2018/120139 CN2018120139W WO2020118496A1 WO 2020118496 A1 WO2020118496 A1 WO 2020118496A1 CN 2018120139 W CN2018120139 W CN 2018120139W WO 2020118496 A1 WO2020118496 A1 WO 2020118496A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio path
audio
path switching
satisfied
condition
Prior art date
Application number
PCT/CN2018/120139
Other languages
French (fr)
Chinese (zh)
Inventor
李亚军
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to PCT/CN2018/120139 priority Critical patent/WO2020118496A1/en
Priority to CN201880098670.8A priority patent/CN112997471B/en
Publication of WO2020118496A1 publication Critical patent/WO2020118496A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Definitions

  • the present application relates to the technical field of electronic equipment, and in particular, to an audio path switching method and apparatus, a readable storage medium, and electronic equipment.
  • the switching of the wireless headset and other audio channels is triggered due to misoperation or abnormal conditions, which disconnects the wireless headset and connects the other audio channels. This not only interrupts the user's ongoing audio output, but also requires the user to re-operate to restore the connection of the wireless headset, causing a lot of trouble to the user.
  • the main reason for this problem is that the traditional technology of wireless headphones and other audio path switching methods are not smart enough.
  • Embodiments of the present application provide an audio path switching method and device, a computer-readable storage medium, and electronic equipment, which can effectively prevent audio path switching errors caused by misoperation or system abnormality, thereby preventing the use of speakers in unsuitable scenarios
  • the audio data is output through the earphone channel or the like, which improves the intelligence of the electronic device when the audio channel is switched.
  • An audio path switching method is applied to electronic equipment.
  • the method includes:
  • the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path
  • An audio path switching device is applied to electronic equipment.
  • the device includes:
  • a receiving module configured to receive an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headset path to an audio path other than the wireless headset;
  • the judgment module is used to judge whether the audio path switching condition is satisfied
  • the execution module is used to convert the wireless headphone audio path to the other audio path for audio output when the audio path switching condition is met; when the audio path switching condition is not met, maintain the wireless headphone audio path for audio output .
  • An electronic device includes a memory and a processor.
  • Computer-readable instructions are stored in the memory.
  • the processor causes the processor to perform the above audio path switching method.
  • the above audio path switching method and apparatus, computer readable storage medium, and electronic equipment after receiving the audio path switching instruction, determine whether the audio path switching condition is satisfied, and if the audio path switching condition is met, the wireless headset audio path is converted to all The other audio channels are used for audio output; if the audio channel switching conditions are not met, the wireless headset audio channel is maintained for audio output.
  • the audio path switching method and apparatus, computer readable storage medium, and electronic device provided by the present application do not directly perform audio path switching, but instead perform audio path switching according to preset conditions Judgment effectively prevents switching errors caused by misoperation or system abnormality, and thus prevents the use of speakers or earphone channels to output audio data in unsuitable scenarios, and improves the intelligence of the electronic device when switching audio channels.
  • FIG. 1 is a schematic diagram of the internal structure of an electronic device provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of an audio path switching method provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of a method for judging whether an audio path switching condition is satisfied according to an audio path setting parameter provided by an embodiment of this application;
  • FIG. 4 is a schematic flowchart of a method for judging whether an audio path switching condition is satisfied according to wireless headset status data according to an embodiment of the present application
  • FIG. 5 is a schematic flowchart of a method for judging whether an audio path switching condition is satisfied according to user usage scene data provided by an embodiment of this application;
  • FIG. 6 is a schematic flowchart of an audio path switching method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a framework of an audio path switching device provided by an embodiment of this application.
  • FIG. 8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
  • FIG. 1 a schematic diagram of an internal structure of an electronic device is provided.
  • the electronic device includes a processor, memory, and display screen connected by a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory is used to store data, programs, and/or instruction codes, etc. At least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the audio path switching method for electronic devices provided in the embodiments of the present application .
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random-access memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and internal memory.
  • the non-volatile storage medium stores the operating system, database, and computer program.
  • the database stores data related to an audio path switching method provided by the above embodiments, for example, information such as the name of each process or application may be stored.
  • the computer program may be executed by the processor to implement an audio path switching method provided by various embodiments of the present application.
  • the internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media.
  • the display screen may be a touch screen, such as a capacitive screen or an electronic screen, which is used to display interface information of applications corresponding to the foreground process, and may also be used to detect a touch operation acting on the display screen, and generate corresponding instructions, such as performing front and background Application switching instructions, etc.
  • the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied.
  • the specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • the electronic device further includes a network interface connected through a system bus.
  • the network interface may be an Ethernet card or a wireless network card, etc., and is used to communicate with external electronic devices, for example, it may be used to communicate with a server.
  • an embodiment of the present application provides an audio path switching method.
  • the audio path switching method is applied to an electronic device having a wireless earphone audio path.
  • the wireless headset may be a Bluetooth headset or an infrared headset.
  • the audio path switching method provided in the embodiments of the present application is mainly used when a wireless earphone path is used for audio output.
  • the audio path switching is controlled to prevent misoperation or system abnormality When switching the wireless headset channel to another channel.
  • the electronic device may be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a mobile Internet device (Mobile Internet Device (MID)), a wearable device (such as a smart watch, smart bracelet, pedometer, etc.) ) Or other electronic devices with multiple audio channels such as an audio channel for headphones.
  • a mobile Internet device Mobile Internet Device (MID)
  • MID Mobile Internet Device
  • a wearable device such as a smart watch, smart bracelet, pedometer, etc.
  • other electronic devices with multiple audio channels such as an audio channel for headphones.
  • an audio path switching method is applied to an electronic device, and the method includes S10-S40:
  • the audio channel refers to a channel through which audio data is output.
  • the audio channel may include an earphone channel, a speaker channel, a wireless earphone channel, a wired earphone channel, and the like.
  • audio data is sent from the receiver;
  • audio channel is a speaker channel, audio data is sent from an external speaker;
  • audio channel is a wireless headset channel, audio data can be sent through a wired headset ;
  • audio channel is a wired headset channel, audio data can be sent through the wired headset.
  • the audio path switching instruction refers to switching the wireless headphone path to the earphone path, the speaker path, or the wired headphone path.
  • the audio path switching instruction may be a switching instruction input by a user, or may be a switching instruction output by the electronic device according to a preset automatic switching rule.
  • the electronic device After receiving the audio path switching instruction, the electronic device determines whether the current condition meets the audio path switching condition according to a preset judgment rule, thereby determining whether to switch the audio path.
  • the preset judgment rule may be set according to actual needs, and this application is not limited.
  • the preset judgment rule may be set according to the surrounding environment, the user's settings, or the user's habits.
  • the electronic device executes the audio path switching instruction to convert the currently used audio output path from the wireless headset audio path to the other audio path.
  • the electronic device does not execute the audio path switching instruction and keeps the wireless headset audio path to continue audio output.
  • the method determines whether the audio path switching condition is satisfied, and if the audio path switching condition is met, the wireless headset audio path is converted into the other audio path for audio output; if If the audio path switching condition is not satisfied, the wireless earphone audio path is maintained for audio output.
  • the method provided by the embodiment of the present application does not directly switch the audio path after receiving the instruction to switch the audio path, but judges whether to switch the audio path according to a preset condition, which effectively prevents misoperation or Switching errors caused by system anomalies, thereby preventing the use of speakers or earphone channels to output audio data in unsuitable scenarios, and improving the intelligence of the electronic device when switching audio channels.
  • S20 includes:
  • S210 Determine whether the audio path switching condition is satisfied according to the audio path setting parameters.
  • the audio channel setting parameter refers to a parameter about audio channel switching preset by the user.
  • the audio channel setting parameter is used to characterize a fixed selection or a preferential selection of the user when the audio channel is switched.
  • the audio path setting parameters may include but are not limited to: 1) fixedly output audio data through wireless headphones; 2) when the wireless headphones are disconnected, the speaker output is preferred; 3) when the wireless headphones are disconnected, the earpiece is preferred Output etc.
  • S210 specifically includes:
  • the fixed earphone connection parameter refers to a parameter in the audio path setting parameter that characterizes the user's fixed setting for audio output through a wireless earphone.
  • the electronic device may display the selection items to the user through the system setting interface or through the setting interface of the audio data program to collect and obtain the audio path setting parameters.
  • the electronic device filters the audio path setting parameters. If the audio path setting parameters include the fixed headphone connection parameters, it means that the user only considers audio output through wireless headphones, and the audio path switching condition is not satisfied.
  • the electronic device maintains the current wireless earphone channel for audio output. If the fixed channel connection parameters are not included in the audio channel setting parameters, it means that the user may consider outputting through channels other than the wireless headset channel. Satisfying the audio path switching condition, the electronic device performs audio path switching according to the audio path switching instruction.
  • the accuracy of the audio path switching judgment is improved, and the intelligence of the audio path switching is further improved .
  • S20 includes:
  • S220 Determine whether the audio path switching condition is satisfied according to the wireless headset status data.
  • the wireless headset condition data refers to parameters that characterize the working condition and audio output capability of the wireless headset.
  • the wireless headset condition data includes wireless headset power data.
  • the wireless headset condition data includes wireless headset signal data. It can be understood that judging whether the audio path switching condition is satisfied by the wireless earphone condition data can be judged by one parameter, or by multiple parameters at the same time.
  • S220 specifically includes:
  • the first preset threshold may be set according to actual needs.
  • the first preset threshold is the low power threshold of the wireless headset.
  • the wireless headset condition data is the wireless headset signal data
  • the first preset threshold is the low signal threshold of the wireless headset.
  • Audio channel switching is required.
  • the electronic device executes the audio path switching instruction to switch the current audio output path from the wireless headset audio path to the other audio output path.
  • the wireless headphone status data is used to determine whether the audio path switching condition is satisfied, and the working condition of the wireless headphone is fully considered to avoid passing the wireless headphone when the wireless headphone cannot meet the audio output requirements.
  • the audio output of the channel further improves the intelligence of audio channel switching, thereby improving the user experience.
  • S20 includes:
  • S230 Determine whether the audio path switching condition is satisfied according to the user's use scene data.
  • the user usage scene data refers to data that characterizes the user's current environment and scene of using the electronic device.
  • the user usage scene data may represent that the current user is in a conference scene, a rest scene or an outdoor scene, and so on.
  • the user usage scene data may include ambient noise volume data and time data.
  • the environmental noise volume data is used to characterize the amount of noise in the environment in which the electronic device is currently located.
  • the environmental noise volume data may be collected by sensors such as a microphone provided in the electronic device.
  • the environmental noise volume data can also be obtained through a server or the like.
  • the time data refers to what time the current time is.
  • the time data may be obtained through a network, or may be obtained through a time module of the electronic device. It can be understood that, according to different requirements, the user usage scene data may also include other data characterizing the surrounding environment, which is not specifically limited in this application.
  • the electronic device determines whether the current situation satisfies the audio path switching condition according to the user usage scene data and a preset judgment criterion.
  • S230 specifically includes:
  • the preset condition may be set differently according to the user's usage scene data, and this application does not specifically limit it. If the scene data used by the user satisfies the preset condition, it means that the environment and scene in which the current user is suitable for switching the wireless headset audio path to the other audio path. The electronic device performs audio path switching according to the audio path switching instruction. If the user usage scene data does not satisfy the preset condition, it means that the environment and scene in which the current user is located is not suitable for switching the wireless headset audio path to the other audio path. The electronic device continues to maintain the wireless headset channel for audio data output. In this embodiment, the user uses the scene data to determine whether the audio path switching conditions are met, to prevent erroneous switching in unsuitable scenes or environments, and to further improve the intelligence of audio path switching.
  • the user usage scene data includes ambient noise volume data.
  • the determination whether the audio path switching condition is satisfied is specifically:
  • the audio path switching condition is satisfied.
  • the second preset threshold and the third preset threshold may be set according to actual needs.
  • the ambient noise volume data is less than or equal to the second preset threshold value, it indicates that the surrounding environment is relatively quiet and is not suitable for switching the wireless earphone audio path to the other audio path.
  • the audio path switching condition is not satisfied.
  • the ambient noise volume data is greater than or equal to the third preset threshold, it indicates that the surrounding environment is noisy, and switching the wireless headset channel to the other audio channel may cause inaudible audio.
  • the audio path switching condition is not satisfied.
  • the ambient noise volume data is greater than the second preset threshold and less than the third preset threshold, the audio path switching condition is satisfied.
  • the surrounding environment or scene in which the electronic device is currently located is determined through the environmental noise volume data, and whether to switch the wireless headset audio path to the other audio path is determined according to different surrounding environments or scenes
  • the method provided in this embodiment further improves the intelligence of audio path switching and improves the user experience.
  • the surrounding environment data includes time data.
  • the condition for satisfying the audio path switching is specifically:
  • the audio path switching condition is satisfied.
  • the preset range can be set according to actual needs, or can be set and selected by the user.
  • the time data of the preset range characterizes a time period suitable for switching the wireless headset audio path to the other audio path.
  • the preset range may be: non-night time periods of 7:00-20:00, or non-lunch breaks and non-night time periods of 7:00-12:00 and 14:00-20:00. If the current time is within the preset time period, the current condition satisfies the audio path switching condition. On the contrary, the current situation does not satisfy the audio path switching conditions.
  • the surrounding environment in which the electronic device is currently located is judged by the time data, and the audio data is processed differently according to different surrounding environments, to prevent unsuitability to pass through the speaker or at night or during break time Earphones and other audio channels play audio data.
  • the method provided in this embodiment further improves the intelligence of audio path switching and improves the user experience.
  • the method further includes:
  • the electronic device may output the user prompt information through voice output, or may output the user prompt information through text display.
  • the user prompt information prompts the user that the current switching result of the audio channel. It can be understood that the user prompt information may also include information that can be selected by the user, for example, confirming switching, refusing switching, and so on. If the user chooses to refuse to switch, the electronic device switches the other audio path to the wireless headset audio path. In this embodiment, by outputting user prompt information, the intelligence of audio switching is further improved, and the human-computer interaction capability is improved.
  • an embodiment of the present application provides an audio path switching device 10, which is applied to an electronic device.
  • the device includes: a receiving module 100, a determining module 200, and an executing module 300. among them,
  • the receiving module 100 is configured to receive an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headset path to an audio path other than the wireless headset;
  • the judgment module 200 is used to judge whether the audio path switching condition is satisfied
  • the execution module 300 is configured to convert the wireless headphone audio path to the other audio path for audio output when the audio path switching condition is satisfied; to maintain the wireless headset audio path when the audio path switching condition is not satisfied Perform audio output.
  • the audio path switching device 10 receives the audio path switching instruction through the receiving module 100, and determines whether the audio path switching condition is satisfied through the judgment module 200, and when the execution module 300 meets the audio path switching condition , Converting the wireless headphone audio path to the other audio path for audio output; if the audio path switching condition is not satisfied, keep the wireless headphone audio path for audio output.
  • the audio path switching device 10 After receiving the audio path switching instruction, the audio path switching device 10 provided in the embodiment of the present application does not directly perform audio path switching, but judges whether to perform audio path switching according to preset conditions, which effectively prevents Switching errors caused by misoperations or system abnormalities, thereby preventing the use of speakers or earphone channels to output audio data in unsuitable scenes, improves the intelligence of the audio channel switching device 10 when switching audio channels.
  • the judgment module 200 includes an audio path setting parameter judgment unit.
  • the audio channel setting parameter judgment unit is used to judge whether the audio channel switching condition is satisfied according to the audio channel setting parameter.
  • the audio channel setting parameter judgment unit includes an audio channel setting parameter acquisition subunit and an audio channel setting parameter judgment subunit.
  • the audio channel setting parameter obtaining subunit is used to obtain the audio channel setting parameter.
  • the audio path setting parameter judgment subunit is configured to determine that the audio path switching condition is satisfied when the audio path setting parameter does not include the fixed headphone connection parameter; otherwise, determine that the audio path switching condition is not satisfied.
  • the judgment module 200 further includes a wireless headset condition data judgment unit.
  • the wireless headset condition data judgment unit is used to determine whether the audio path switching condition is satisfied according to the wireless headset condition data.
  • the wireless headset condition data judgment unit includes a wireless headset condition data acquisition subunit and a wireless headset condition data judgment subunit.
  • the wireless headset condition data acquisition subunit is used to acquire the wireless headset condition data.
  • the wireless headset condition data judgment subunit is configured to determine that the audio path switching condition is satisfied when the wireless headset condition data is less than the first preset threshold; otherwise, determine that the audio path switching condition is not satisfied.
  • the wireless headset condition data includes: wireless headset power data.
  • the wireless headset condition data includes: wireless headset signal data.
  • the judgment module 200 further includes a user usage scene data judgment unit.
  • the user usage scene data judgment unit is used to judge whether the audio path switching condition is satisfied according to the user usage scene data.
  • the user usage scene data judgment unit includes a user usage scene data acquisition subunit and a user usage scene data judgment subunit.
  • the user usage scene data obtaining subunit is used to obtain the user usage scene data.
  • the user usage scene data determination subunit is configured to determine that the audio path switching condition is satisfied when the user use scene data satisfies the preset condition; otherwise, determine that the audio path switching condition is not satisfied.
  • the user usage scene data includes environmental noise volume data
  • the user usage scene data judgment subunit is used when the environmental noise volume data is greater than a second preset threshold and less than a third preset threshold, It is determined that the audio path switching condition is satisfied.
  • the surrounding environment data includes time data
  • the user usage scene data judgment subunit is configured to judge that the audio path switching condition is satisfied when the time data is within a preset range.
  • the audio path switching device 10 further includes a prompt module.
  • the prompt module is used to output user prompt information to prompt the user to switch the current audio path.
  • each module in the above audio path switching device 10 is for illustration only. In other embodiments, the audio path switching device 10 may be divided into different modules as needed to complete all of the above audio path switching device 10 Or some functions.
  • Each module in the audio path switching device 10 may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above modules may be embedded in the hardware or independent of the processor in the electronic device, or may be stored in the memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • the embodiments of the present application also provide a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions when the computer-executable instructions are executed by one or more processors, cause the processor to perform the following steps of the audio path switching method:
  • the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path
  • one or more non-volatile computer-readable storage media containing computer-executable instructions when the computer-executable instructions are executed by one or more processors, may also cause the processor to perform any of the foregoing implementations Example audio channel switching method.
  • the computer-readable storage medium provided by the foregoing embodiments has similar implementation principles and technical effects to the foregoing method embodiments, and will not be repeated here.
  • An embodiment of the present application also provides an electronic device. As shown in FIG. 8, for ease of description, only parts related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present application.
  • the electronic device may be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, wearable device, etc. that has a voice call function and has a speaker , Taking an electronic device as a mobile phone as an example:
  • the mobile phone 1000 includes: a radio frequency (Radio Frequency) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and power supply 1090 and other components.
  • a radio frequency (Radio Frequency) circuit 1010 for detecting radio frequency (Radio Frequency)
  • a memory 1020 includes a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and power supply 1090 and other components.
  • WiFi wireless fidelity
  • FIG. 8 does not constitute a limitation on the mobile phone, and may include more or fewer components than those shown in the figure, or a combination of certain components, or a different component arrangement.
  • the RF circuit 1010 can be used to receive and send signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 1080; it can also send uplink data to the base station.
  • RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on.
  • the RF circuit 1010 can also communicate with the network and other devices through wireless communication.
  • the above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Message Service (SMS), etc.
  • GSM Global System of Mobile
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Message Service
  • the memory 1020 may be used to store software programs and modules.
  • the processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020.
  • the memory 1020 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc.;
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the input unit 1030 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the mobile phone 1000.
  • the input unit 1030 may include a touch panel 1031 and other input devices 1032.
  • the touch panel 1031 also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 1031 Operation), and drive the corresponding connection device according to the preset program.
  • the touch panel 1031 may include a touch detection device and a touch controller.
  • the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 1080, and can receive the commands sent by the processor 1080 and execute them.
  • the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1030 may also include other input devices 1032.
  • other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
  • the display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone.
  • the display unit 1040 may include a display panel 1041.
  • the display panel 1041 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like.
  • the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event, and then the processor 1080 according to The type of touch event provides a corresponding visual output on the display panel 1041.
  • the touch panel 1031 and the display panel 1041 are implemented as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to Realize the input and output functions of the mobile phone.
  • the mobile phone 1000 may further include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1041 and/or when the mobile phone moves to the ear Or backlight.
  • the motion sensor may include an acceleration sensor, which can detect the magnitude of acceleration in various directions through the acceleration sensor, and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, percussion), etc.
  • the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor and so on.
  • the audio circuit 1060, the speaker 1061, and the microphone 1062 may provide an audio interface between the user and the mobile phone.
  • the audio circuit 1060 can transmit the received audio data converted electrical signal to the speaker 1061, which converts the speaker 1061 into a sound signal output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 1060 After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for subsequent processing.
  • WiFi is a short-range wireless transmission technology. Mobile phones can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access.
  • FIG. 8 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone 1000, and may be omitted as needed.
  • the processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020 to execute Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole.
  • the processor 1080 may include one or more processing units.
  • the processor 1080 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1080.
  • the mobile phone 1000 further includes a power supply 1090 (such as a battery) for powering various components.
  • a power supply 1090 (such as a battery) for powering various components.
  • the power supply can be logically connected to the processor 1080 through a power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
  • the mobile phone 1000 may further include a camera, a Bluetooth module, and the like.
  • the processor 1080 included in the electronic device implements the following steps when executing the computer program stored in the memory:
  • the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path
  • an electronic device includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor is caused to execute any of the foregoing embodiments. Steps of the audio processing method.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR) SDRAM, enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

Provided are an audio path switching method and device, a computer readable storage medium and an electronic equipment, the audio path switching method is applied to electronic equipment having a plurality of audio paths, and the audio path switching method comprises: receiving an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch a wireless earphone path to another audio path other than the wireless earphone audio path; determining whether to meet the audio path switching condition; if yes, switching the wireless earphone audio path to the another audio path for audio output; if not, maintaining the wireless earphone audio path for audio output.

Description

音频通路切换方法和装置、可读存储介质、电子设备Audio path switching method and device, readable storage medium, electronic equipment 技术领域Technical field
本申请涉及电子设备技术领域,特别是涉及音频通路切换方法和装置、可读存储介质、电子设备。The present application relates to the technical field of electronic equipment, and in particular, to an audio path switching method and apparatus, a readable storage medium, and electronic equipment.
背景技术Background technique
日常生活中,人们在一些场景下使用手机等电子设备时,往往需要连接无线耳机。例如,开车或运动时。In daily life, when people use mobile phones and other electronic devices in some scenarios, they often need to connect wireless headphones. For example, when driving or exercising.
无线耳机在和手机等电子设备连接过程中,有时会由于误操作或异常情况,触发了无线耳机与其他音频通路的切换,使得无线耳机连接断开,其他音频通路连接。这不仅会打断用户正在进行的音频输出,而且需要用户重新操作恢复无线耳机的连接,给用户带来很多麻烦。造成此问题的主要原因是由于传统技术的无线耳机与其他音频通路的切换方法不够智能。When the wireless headset is connected to an electronic device such as a mobile phone, sometimes the switching of the wireless headset and other audio channels is triggered due to misoperation or abnormal conditions, which disconnects the wireless headset and connects the other audio channels. This not only interrupts the user's ongoing audio output, but also requires the user to re-operate to restore the connection of the wireless headset, causing a lot of trouble to the user. The main reason for this problem is that the traditional technology of wireless headphones and other audio path switching methods are not smart enough.
发明内容Summary of the invention
本申请实施例提供一种音频通路切换方法和装置、计算机可读存储介质、电子设备,可以有效防止因误操作或系统异常引起的音频通路切换错误,进而防止了在不适宜的场景下使用扬声器或听筒通路等输出音频数据,提高了所述电子设备在音频通路切换时的智能性。Embodiments of the present application provide an audio path switching method and device, a computer-readable storage medium, and electronic equipment, which can effectively prevent audio path switching errors caused by misoperation or system abnormality, thereby preventing the use of speakers in unsuitable scenarios The audio data is output through the earphone channel or the like, which improves the intelligence of the electronic device when the audio channel is switched.
一种音频通路切换方法,应用于电子设备,所述方法包括:An audio path switching method is applied to electronic equipment. The method includes:
接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机音频通路之外的其他音频通路的指令;Receiving an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path;
判断是否满足音频通路切换条件;Determine whether the audio path switching conditions are met;
若是,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;If yes, convert the wireless headphone audio path to the other audio path for audio output;
若否,保持所述无线耳机音频通路进行音频输出。If not, keep the audio path of the wireless headset for audio output.
一种音频通路切换装置,应用于电子设备,所述装置包括:An audio path switching device is applied to electronic equipment. The device includes:
接收模块,用于接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机之外的其他音频通路的指令;A receiving module, configured to receive an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headset path to an audio path other than the wireless headset;
判断模块,用于判断是否满足音频通路切换条件;The judgment module is used to judge whether the audio path switching condition is satisfied;
执行模块,用于当满足音频通路切换条件时,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;当不满足音频通路切换条件时,保持所述无线耳机音频通路进行音频输出。The execution module is used to convert the wireless headphone audio path to the other audio path for audio output when the audio path switching condition is met; when the audio path switching condition is not met, maintain the wireless headphone audio path for audio output .
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的音频通路切换方法的步骤。A computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of the audio path switching method described above.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行上述的音频通路切换方法。An electronic device includes a memory and a processor. Computer-readable instructions are stored in the memory. When the instructions are executed by the processor, the processor causes the processor to perform the above audio path switching method.
上述音频通路切换方法和装置、计算机可读存储介质、电子设备,在接收音频通路切换指令后,判断是否满足音频通路切换条件,若满足音频通路切换条件,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;若不满足音频通路切换条件,则保持所述无线耳机音频通路进行音频输出。本申请提供的音频通路切换方法和装置、计算机可读存储介质、电子设备接收到接收音频通路切换指令后,未直接进行音频通路切换,而是根据预设的条件对是否进行音频通路切换进行了判断,有效防止了因误操作或系统异常引起的切换错误,进而防止了在不适宜的场景下使用扬声器或听筒通路等输出音频数据,提高了所述电子设备在音频通路切换时的智能性。The above audio path switching method and apparatus, computer readable storage medium, and electronic equipment, after receiving the audio path switching instruction, determine whether the audio path switching condition is satisfied, and if the audio path switching condition is met, the wireless headset audio path is converted to all The other audio channels are used for audio output; if the audio channel switching conditions are not met, the wireless headset audio channel is maintained for audio output. After receiving the audio path switching instruction, the audio path switching method and apparatus, computer readable storage medium, and electronic device provided by the present application do not directly perform audio path switching, but instead perform audio path switching according to preset conditions Judgment effectively prevents switching errors caused by misoperation or system abnormality, and thus prevents the use of speakers or earphone channels to output audio data in unsuitable scenarios, and improves the intelligence of the electronic device when switching audio channels.
附图说明BRIEF DESCRIPTION
图1为本申请一个实施例提供的电子设备的内部结构示意图;1 is a schematic diagram of the internal structure of an electronic device provided by an embodiment of the present application;
图2为本申请一个实施例提供的音频通路切换方法流程示意图;2 is a schematic flowchart of an audio path switching method provided by an embodiment of the present application;
图3为本申请一个实施例提供的根据音频通路设置参数判断是否满足音频通路切换条件的方法流程示意图;3 is a schematic flowchart of a method for judging whether an audio path switching condition is satisfied according to an audio path setting parameter provided by an embodiment of this application;
图4为本申请一个实施例提供的根据无线耳机状况数据判断是否满足音 频通路切换条件的方法流程示意图;4 is a schematic flowchart of a method for judging whether an audio path switching condition is satisfied according to wireless headset status data according to an embodiment of the present application;
图5为本申请一个实施例提供的,根据用户使用场景数据判断是否满足音频通路切换条件的方法流程示意图;FIG. 5 is a schematic flowchart of a method for judging whether an audio path switching condition is satisfied according to user usage scene data provided by an embodiment of this application;
图6为本申请一个实施例提供的音频通路切换方法流程示意图;6 is a schematic flowchart of an audio path switching method provided by an embodiment of the present application;
图7为本申请一个实施例提供的音频通路切换装置的框架示意图;7 is a schematic diagram of a framework of an audio path switching device provided by an embodiment of this application;
图8为与本申请实施例提供的电子设备相关的手机的部分结构的框图。8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容的理解更加透彻全面。In order to facilitate understanding of the present invention, the present invention will be described more fully below with reference to related drawings. The drawings show preferred embodiments of the invention. However, the present invention can be implemented in many different forms, and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
在一个实施例中,如图1所示,提供了一种电子设备的内部结构示意图。该电子设备包括通过系统总线连接的处理器、存储器和显示屏。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的音频通路切换方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统、数据库和计算机程序。该数据库中存储有用于实现以上各个实施例所提供的一种音频通路切换方法相关的数据,比如可存储有每个进程或应用的名称等信息。该计算机程序可被处理器所执行,以用于实现本申请各个实施例所提供的一种音频通路切换方法。内存储器为非易失性存储介质中的操作系统、数据库和计算机程序提供高速缓存的运行环境。显示屏可以是触摸屏,比如为电容屏或电子屏,用于显示前台进程对应的应用的界面信息,还可以被用于检测 作用于该显示屏的触摸操作,生成相应的指令,比如进行前后台应用的切换指令等。In one embodiment, as shown in FIG. 1, a schematic diagram of an internal structure of an electronic device is provided. The electronic device includes a processor, memory, and display screen connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used to store data, programs, and/or instruction codes, etc. At least one computer program is stored on the memory, and the computer program can be executed by the processor to implement the audio path switching method for electronic devices provided in the embodiments of the present application . The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random-access memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, database, and computer program. The database stores data related to an audio path switching method provided by the above embodiments, for example, information such as the name of each process or application may be stored. The computer program may be executed by the processor to implement an audio path switching method provided by various embodiments of the present application. The internal memory provides a cached operating environment for operating systems, databases, and computer programs in non-volatile storage media. The display screen may be a touch screen, such as a capacitive screen or an electronic screen, which is used to display interface information of applications corresponding to the foreground process, and may also be used to detect a touch operation acting on the display screen, and generate corresponding instructions, such as performing front and background Application switching instructions, etc.
本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。如该电子设备还包括通过系统总线连接的网络接口,网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信,比如可用于同服务器进行通信。Those skilled in the art may understand that the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement. For example, the electronic device further includes a network interface connected through a system bus. The network interface may be an Ethernet card or a wireless network card, etc., and is used to communicate with external electronic devices, for example, it may be used to communicate with a server.
请参见图2,本申请一个实施例提供一种音频通路切换方法。所述音频通路切换方法应用于具有无线耳机音频通路的电子设备。所述无线耳机可以是蓝牙耳机或红外线耳机等。本申请实施例提供的所述音频通路切换方法主要用于使用无线耳机通路进行音频输出的情况下,当接到音频通路切换指令时,控制所述音频通路的切换,防止误操作或系统异常时将无线耳机通路切换为其他通路的情况。在一个实施例中,所述电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、移动互联网设备(Mobile Internet Device,MID)、可穿戴设备(例如智能手表、智能手环、计步器等)或其他具有耳机音频通路等多个音频通路的电子设备。Referring to FIG. 2, an embodiment of the present application provides an audio path switching method. The audio path switching method is applied to an electronic device having a wireless earphone audio path. The wireless headset may be a Bluetooth headset or an infrared headset. The audio path switching method provided in the embodiments of the present application is mainly used when a wireless earphone path is used for audio output. When an audio path switching instruction is received, the audio path switching is controlled to prevent misoperation or system abnormality When switching the wireless headset channel to another channel. In one embodiment, the electronic device may be a mobile phone, a tablet computer, a laptop computer, a palmtop computer, a mobile Internet device (Mobile Internet Device (MID)), a wearable device (such as a smart watch, smart bracelet, pedometer, etc.) ) Or other electronic devices with multiple audio channels such as an audio channel for headphones.
如图2所示,一种音频通路切换方法,应用于电子设备,所述方法包括S10-S40:As shown in FIG. 2, an audio path switching method is applied to an electronic device, and the method includes S10-S40:
S10,接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机音频通路之外的其他音频通路的指令。S10. Receive an audio path switching instruction, where the audio path switching instruction refers to an instruction to switch the wireless headset path to an audio path other than the wireless headset audio path.
所述音频通路是指音频数据输出的通道。所述音频通路可以包括听筒通路、扬声器通路、无线耳机通路、有线耳机通路等。当所述音频通路为听筒通路时,音频数据由听筒发出;当所述音频通路为扬声器通路时,音频数据由外放扬声器发出;当音频通路为无线耳机通路时,音频数据可通过有线耳机发出;当音频通路为有线耳机通路时,音频数据可通过有线耳机发出。The audio channel refers to a channel through which audio data is output. The audio channel may include an earphone channel, a speaker channel, a wireless earphone channel, a wired earphone channel, and the like. When the audio channel is a receiver channel, audio data is sent from the receiver; when the audio channel is a speaker channel, audio data is sent from an external speaker; when the audio channel is a wireless headset channel, audio data can be sent through a wired headset ; When the audio channel is a wired headset channel, audio data can be sent through the wired headset.
所述音频通路切换指令是指将所述无线耳机通路切换为所述听筒通路、 所述扬声器通路或所述有线耳机通路。所述音频通路切换指令可以是用户输入的切换指令,也可以是所述电子设备根据预设的自动切换规则输出的切换指令。The audio path switching instruction refers to switching the wireless headphone path to the earphone path, the speaker path, or the wired headphone path. The audio path switching instruction may be a switching instruction input by a user, or may be a switching instruction output by the electronic device according to a preset automatic switching rule.
S20,判断是否满足音频通路切换条件。S20. Determine whether the audio path switching condition is satisfied.
所述电子设备接收到所述音频通路切换指令后,根据预设的判断规则,判断当前条件是否满足音频通路切换条件,从而确定是否对音频通路进行切换。所述预设的判断规则可以根据实际需求设定,本申请不做限定。例如,所述预设的判断规则可以根据周围环境、用户的设置或者用户的习惯等进行设定。After receiving the audio path switching instruction, the electronic device determines whether the current condition meets the audio path switching condition according to a preset judgment rule, thereby determining whether to switch the audio path. The preset judgment rule may be set according to actual needs, and this application is not limited. For example, the preset judgment rule may be set according to the surrounding environment, the user's settings, or the user's habits.
S30,若是,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出。S30. If yes, convert the wireless headphone audio path to the other audio path for audio output.
根据S20的判断,若满足音频通路切换条件,所述电子设备执行所述音频通路切换指令,将当前使用的音频输出通路由所述无线耳机音频通路转换为所述其他音频通路。According to the judgment of S20, if the audio path switching condition is satisfied, the electronic device executes the audio path switching instruction to convert the currently used audio output path from the wireless headset audio path to the other audio path.
S40,若否,保持所述无线耳机音频通路进行音频输出。S40. If not, keep the audio path of the wireless headset for audio output.
根据S20的判断,若不满足音频通路切换条件,所述电子设备不执行所述音频通路切换指令,保持所述无线耳机音频通路继续进行音频的输出。According to the judgment of S20, if the audio path switching condition is not satisfied, the electronic device does not execute the audio path switching instruction and keeps the wireless headset audio path to continue audio output.
本实施例中,所述方法在接收音频通路切换指令后,判断是否满足音频通路切换条件,若满足音频通路切换条件,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;若不满足音频通路切换条件,则保持所述无线耳机音频通路进行音频输出。本申请实施例提供的所述方法在接收到接收音频通路切换指令后,未直接进行音频通路切换,而是根据预设的条件对是否进行音频通路切换进行了判断,有效防止了因误操作或系统异常引起的切换错误,进而防止了在不适宜的场景下使用扬声器或听筒通路等输出音频数据,提高了所述电子设备在音频通路切换时的智能性。In this embodiment, after receiving the audio path switching instruction, the method determines whether the audio path switching condition is satisfied, and if the audio path switching condition is met, the wireless headset audio path is converted into the other audio path for audio output; if If the audio path switching condition is not satisfied, the wireless earphone audio path is maintained for audio output. The method provided by the embodiment of the present application does not directly switch the audio path after receiving the instruction to switch the audio path, but judges whether to switch the audio path according to a preset condition, which effectively prevents misoperation or Switching errors caused by system anomalies, thereby preventing the use of speakers or earphone channels to output audio data in unsuitable scenarios, and improving the intelligence of the electronic device when switching audio channels.
在一个实施例中,S20包括:In one embodiment, S20 includes:
S210,根据音频通路设置参数判断是否满足音频通路切换条件。S210: Determine whether the audio path switching condition is satisfied according to the audio path setting parameters.
所述音频通路设置参数是指用户预先设置的关于音频通路切换的参数。所述音频通路设置参数用于表征用户音频通路切换时的固定选择或优先选择。例如,所述音频通路设置参数可以包括但不限于:1)固定通过无线耳机输出音频数据;2)当无线耳机断开时,优先选用扬声器输出;3)当无线耳机断开时,优先选用听筒输出等。The audio channel setting parameter refers to a parameter about audio channel switching preset by the user. The audio channel setting parameter is used to characterize a fixed selection or a preferential selection of the user when the audio channel is switched. For example, the audio path setting parameters may include but are not limited to: 1) fixedly output audio data through wireless headphones; 2) when the wireless headphones are disconnected, the speaker output is preferred; 3) when the wireless headphones are disconnected, the earpiece is preferred Output etc.
请参见图3,在一个实施例中,S210具体包括:Referring to FIG. 3, in one embodiment, S210 specifically includes:
S211,获取所述音频通路设置参数;S211: Obtain the audio channel setting parameters;
S212,若所述音频通路设置参数不包括固定耳机连接参数,则满足音频通路切换条件;S212: If the audio channel setting parameters do not include fixed headphone connection parameters, the audio channel switching conditions are satisfied;
否则,不满足音频通路切换条件。Otherwise, the audio path switching conditions are not satisfied.
所述固定耳机连接参数是指所述音频通路设置参数中表征用户固定设置通过无线耳机进行音频输出的参数。所述电子设备可以通过系统设置界面或通过音频数据程序的设置界面,向用户展示选择项目,以收集获取所述音频通路设置参数。所述电子设备筛选所述音频通路设置参数,若所述音频通路设置参数中包括所述固定耳机连接参数,表示用户仅考虑通过无线耳机进行音频输出,则,不满足音频通路切换条件。所述电子设备保持当前无线耳机通路进行音频输出。若所述音频通路设置参数中未包括所述固定耳机连接参数,表示用户可考虑通过除所述无线耳机通路之外的其他通路输出。满足音频通路切换条件,所述电子设备根据所述音频通路切换指令进行音频通路切换。The fixed earphone connection parameter refers to a parameter in the audio path setting parameter that characterizes the user's fixed setting for audio output through a wireless earphone. The electronic device may display the selection items to the user through the system setting interface or through the setting interface of the audio data program to collect and obtain the audio path setting parameters. The electronic device filters the audio path setting parameters. If the audio path setting parameters include the fixed headphone connection parameters, it means that the user only considers audio output through wireless headphones, and the audio path switching condition is not satisfied. The electronic device maintains the current wireless earphone channel for audio output. If the fixed channel connection parameters are not included in the audio channel setting parameters, it means that the user may consider outputting through channels other than the wireless headset channel. Satisfying the audio path switching condition, the electronic device performs audio path switching according to the audio path switching instruction.
本实施例中,通过判断所述音频通路设置参数中是否包括所述固定耳机连接参数,判断是否满足音频通路切换条件,提高了音频通路切换判断的准确性,进一步提高了音频通路切换的智能性。In this embodiment, by determining whether the fixed headphone connection parameter is included in the audio path setting parameter, whether the audio path switching condition is satisfied, the accuracy of the audio path switching judgment is improved, and the intelligence of the audio path switching is further improved .
在一个实施例中,S20包括:In one embodiment, S20 includes:
S220,根据无线耳机状况数据判断是否满足音频通路切换条件。S220: Determine whether the audio path switching condition is satisfied according to the wireless headset status data.
所述无线耳机状况数据是指表征所述无线耳机工作情况及音频输出能力的参数。在一个实施例中,所述无线耳机状况数据包括无线耳机电量数据。 在又一个实施例中,所述无线耳机状况数据包括无线耳机信号数据。可以理解,通过所述无线耳机状况数据判断是否满足音频通路切换条件可以通过一个参数进行判断,也可以通过多个参数同时判断。The wireless headset condition data refers to parameters that characterize the working condition and audio output capability of the wireless headset. In one embodiment, the wireless headset condition data includes wireless headset power data. In yet another embodiment, the wireless headset condition data includes wireless headset signal data. It can be understood that judging whether the audio path switching condition is satisfied by the wireless earphone condition data can be judged by one parameter, or by multiple parameters at the same time.
请参见图4,在一个实施例中,S220具体包括:Referring to FIG. 4, in one embodiment, S220 specifically includes:
S221,获取所述无线耳机状况数据;S221: Obtain the wireless headset status data;
S222,若所述无线耳机状况数据小于第一预设阈值,则满足音频通路切换条件;S222, if the condition data of the wireless headset is less than the first preset threshold, the audio path switching condition is satisfied;
否则,不满足音频通路切换条件。Otherwise, the audio path switching conditions are not satisfied.
所述第一预设阈值可以根据实际需求进行设置。当所述无线耳机状况数据为所述无线耳机电量数据时,所述第一预设阈值为所述无线耳机的低电量阈值。当所述无线耳机状况数据为所述无线耳机信号数据时,所述第一预设阈值为所述无线耳机的低信号阈值。The first preset threshold may be set according to actual needs. When the wireless headset condition data is the wireless headset power data, the first preset threshold is the low power threshold of the wireless headset. When the wireless headset condition data is the wireless headset signal data, the first preset threshold is the low signal threshold of the wireless headset.
当所述无线耳机的电量低于所述低电量阈值,和/或,所述无线耳机的信号低于所述低信号阈值时,表明所述无线耳机当前的工作状态不适合继续进行音频数据输出,需要进行音频通路切换。所述电子设备执行所述音频通路切换指令,将当前的音频输出通路由所述无线耳机音频通路切换为所述其他音频输出通路。When the power of the wireless headset is lower than the low battery threshold, and/or, the signal of the wireless headset is lower than the low signal threshold, it indicates that the current working state of the wireless headset is not suitable for continuing audio data output , Audio channel switching is required. The electronic device executes the audio path switching instruction to switch the current audio output path from the wireless headset audio path to the other audio output path.
本实施例中,通过所述无线耳机状况数据判断是否满足音频通路切换条件,充分考虑了所述无线耳机的工作状况,避免在所述无线耳机无法满足音频输出要求的情况下通过所述无线耳机通路进行音频输出,进一步提高了音频通路切换的智能性,进而提高了用户体验度。In this embodiment, the wireless headphone status data is used to determine whether the audio path switching condition is satisfied, and the working condition of the wireless headphone is fully considered to avoid passing the wireless headphone when the wireless headphone cannot meet the audio output requirements. The audio output of the channel further improves the intelligence of audio channel switching, thereby improving the user experience.
在一个实施例中,S20包括:In one embodiment, S20 includes:
S230,根据用户使用场景数据判断是否满足音频通路切换条件。S230: Determine whether the audio path switching condition is satisfied according to the user's use scene data.
所述用户使用场景数据是指表征所述用户的当前使用所述电子设备环境和场景的数据。例如,所述用户使用场景数据可以表征当前用户处于会议场景、休息场景或户外场景等等。The user usage scene data refers to data that characterizes the user's current environment and scene of using the electronic device. For example, the user usage scene data may represent that the current user is in a conference scene, a rest scene or an outdoor scene, and so on.
在一个实施例中,所述用户使用场景数据可以包括环境噪音音量数据和 时间数据等。所述环境噪声音量数据用于表征当前所述电子设备所处的环境中噪声的大小。所述环境噪声音量数据可以通过设置于所述电子设备的麦克风等传感器进行收集获得。所述环境噪声音量数据也可以通过服务器等下发获得。所述时间数据是指当前时刻为几点几分。所述时间数据可以通过网络获取,也可以通过所述电子设备的时间模块获取。可以理解,根据不同需求,所述用户使用场景数据也可以包括其他表征周围环境的数据,本申请不做具体限定。In one embodiment, the user usage scene data may include ambient noise volume data and time data. The environmental noise volume data is used to characterize the amount of noise in the environment in which the electronic device is currently located. The environmental noise volume data may be collected by sensors such as a microphone provided in the electronic device. The environmental noise volume data can also be obtained through a server or the like. The time data refers to what time the current time is. The time data may be obtained through a network, or may be obtained through a time module of the electronic device. It can be understood that, according to different requirements, the user usage scene data may also include other data characterizing the surrounding environment, which is not specifically limited in this application.
所述电子设备根据所述用户使用场景数据,结合预设的判断准则,判断当前情况是否满足音频通路切换条件。The electronic device determines whether the current situation satisfies the audio path switching condition according to the user usage scene data and a preset judgment criterion.
请参见图5,在一个实施例中,S230具体包括:Please refer to FIG. 5. In one embodiment, S230 specifically includes:
S231,获取所述用户使用场景数据;S231: Obtain the user usage scene data;
S232,若所述用户使用场景数据满足预设条件,则满足音频通路切换条件;S232, if the scene data used by the user satisfies the preset condition, the condition for switching the audio path is satisfied;
否则,不满足音频通路切换条件。Otherwise, the audio path switching conditions are not satisfied.
所述预设条件可以根据所述用户使用场景数据的不同进行不同的设置,本申请不做具体的限定。若所述用户使用场景数据满足所述预设条件,说明当前用户所处的环境和场景适合将所述无线耳机音频通路切换为所述其他音频通路。所述电子设备根据所述音频通路切换指令进行音频通路切换。若所述用户使用场景数据不满足所述预设条件,说明当前用户所处的环境和场景不适合将所述无线耳机音频通路切换为所述其他音频通路。所述电子设备继续保持所述无线耳机通路进行音频数据输出。本实施例中,通过所述用户使用场景数据判断是否满足音频通路切换条件,防止在不适宜场景或环境下的错误切换,进一步提高了音频通路切换的智能性。The preset condition may be set differently according to the user's usage scene data, and this application does not specifically limit it. If the scene data used by the user satisfies the preset condition, it means that the environment and scene in which the current user is suitable for switching the wireless headset audio path to the other audio path. The electronic device performs audio path switching according to the audio path switching instruction. If the user usage scene data does not satisfy the preset condition, it means that the environment and scene in which the current user is located is not suitable for switching the wireless headset audio path to the other audio path. The electronic device continues to maintain the wireless headset channel for audio data output. In this embodiment, the user uses the scene data to determine whether the audio path switching conditions are met, to prevent erroneous switching in unsuitable scenes or environments, and to further improve the intelligence of audio path switching.
在一个实施例中,所述用户使用场景数据包括环境噪音音量数据,S232中,所述判断是否满足音频通路切换条件具体为:In one embodiment, the user usage scene data includes ambient noise volume data. In S232, the determination whether the audio path switching condition is satisfied is specifically:
若所述环境噪音音量数据大于第二预设阈值且小于第三预设阈值,则满足音频通路切换条件。If the ambient noise volume data is greater than the second preset threshold and less than the third preset threshold, the audio path switching condition is satisfied.
所述第二预设阈值和所述第三预设阈值可以根据实际需求设定。当所述环境噪音音量数据小于等于所述第二预设阈值,说明周围环境比较安静,不适合将所述无线耳机音频通路切换为所述其他音频通路。例如在办公环境或会议环境下,所述环境噪音音量数据小于所述第二预设阈值,则,不满足音频通路切换条件。当所述环境噪音音量数据大于等于所述第三预设阈值,说明周围环境比较吵闹,将所述无线耳机通路切换为所述其他音频通路,可能会造成听不到音频。例如用户处于吵闹的集市,所述环境噪声音量大于所述第三预设阈值,则,不满足音频通路切换条件。反之,当所述环境噪音音量数据大于第二预设阈值且小于第三预设阈值,则满足音频通路切换条件。The second preset threshold and the third preset threshold may be set according to actual needs. When the ambient noise volume data is less than or equal to the second preset threshold value, it indicates that the surrounding environment is relatively quiet and is not suitable for switching the wireless earphone audio path to the other audio path. For example, in an office environment or a conference environment, if the environmental noise volume data is less than the second preset threshold, then the audio path switching condition is not satisfied. When the ambient noise volume data is greater than or equal to the third preset threshold, it indicates that the surrounding environment is noisy, and switching the wireless headset channel to the other audio channel may cause inaudible audio. For example, if the user is in a noisy market, and the volume of the ambient noise is greater than the third preset threshold, then the audio path switching condition is not satisfied. Conversely, when the ambient noise volume data is greater than the second preset threshold and less than the third preset threshold, the audio path switching condition is satisfied.
本实施例中,通过所述环境噪音音量数据判断所述电子设备当前所处的周围环境或场景,并根据不同的周围环境或场景判断是否将所述无线耳机音频通路切换为所述其他音频通路,防止在周围环境比较安静或过于吵闹等不适合使用扬声器或听筒的环境下获取音频。本实施例提供的所述方法进一步提高了音频通路切换的智能性,提高了用户体验度。In this embodiment, the surrounding environment or scene in which the electronic device is currently located is determined through the environmental noise volume data, and whether to switch the wireless headset audio path to the other audio path is determined according to different surrounding environments or scenes To prevent audio from being acquired in environments where the surrounding environment is relatively quiet or too noisy, such as speakers or earpieces. The method provided in this embodiment further improves the intelligence of audio path switching and improves the user experience.
在一个实施例中,所述周围环境数据包括时间数据,S232中,所述若所述用户使用场景数据满足预设条件,则满足音频通路切换条件具体为:In one embodiment, the surrounding environment data includes time data. In S232, if the scene data used by the user satisfies a preset condition, the condition for satisfying the audio path switching is specifically:
若所述时间数据处于预设范围,则满足音频通路切换条件。If the time data is in a preset range, the audio path switching condition is satisfied.
所述预设范围可以根据实际需求设定,也可以由用户设置选择。所述预设范围的时间数据表征适合将所述无线耳机音频通路切换为所述其他音频通路的时间段。例如,所述预设范围可以为:7:00-20:00的非夜间时间段,或7:00-12:00和14:00-20:00的非午休、非夜间时间段。若当前时间处于所述预设时间段,当前情况满足音频通路切换条件。反之,当前情况不满足音频通路切换条件。本实施例中,通过所述时间数据判断所述电子设备当前所处的周围环境,并根据不同的周围环境对所述音频数据进行不同的处理,防止在夜间或休息时间等不适合通过扬声器或听筒等所述其他音频通路播放音频数据。本实施例提供的所述方法进一步提高了音频通路切换的智能性,提高了用户体验度。The preset range can be set according to actual needs, or can be set and selected by the user. The time data of the preset range characterizes a time period suitable for switching the wireless headset audio path to the other audio path. For example, the preset range may be: non-night time periods of 7:00-20:00, or non-lunch breaks and non-night time periods of 7:00-12:00 and 14:00-20:00. If the current time is within the preset time period, the current condition satisfies the audio path switching condition. On the contrary, the current situation does not satisfy the audio path switching conditions. In this embodiment, the surrounding environment in which the electronic device is currently located is judged by the time data, and the audio data is processed differently according to different surrounding environments, to prevent unsuitability to pass through the speaker or at night or during break time Earphones and other audio channels play audio data. The method provided in this embodiment further improves the intelligence of audio path switching and improves the user experience.
请参见图6,在一个实施例中,S30之后,所述方法还包括:Referring to FIG. 6, in one embodiment, after S30, the method further includes:
S50,输出用户提示信息,以提示用户当前音频通路的切换。S50, output user prompt information to prompt the user to switch the current audio path.
所述电子设备可以通过语音输出的方式输出所述用户提示信息,也可以通过文字显示的方式输出所述用户提示信息。所述用户提示信息用户提示用户,当前对所述音频通路的切换结果。可以理解,所述用户提示信息也可以包括可供用户选择的信息,例如,确认切换,拒绝切换等。若用户选择为拒绝切换,所述电子设备将所述其他音频通路切换为所述无线耳机音频通路。本实施例中,通过输出用户提示信息,进一步提高了音频切换的智能性,提高了人机交互能力。The electronic device may output the user prompt information through voice output, or may output the user prompt information through text display. The user prompt information prompts the user that the current switching result of the audio channel. It can be understood that the user prompt information may also include information that can be selected by the user, for example, confirming switching, refusing switching, and so on. If the user chooses to refuse to switch, the electronic device switches the other audio path to the wireless headset audio path. In this embodiment, by outputting user prompt information, the intelligence of audio switching is further improved, and the human-computer interaction capability is improved.
请参见图7,本申请一个实施例提供一种音频通路切换装置10,应用于电子设备,所述装置包括:接收模块100、判断模块200和执行模块300。其中,Referring to FIG. 7, an embodiment of the present application provides an audio path switching device 10, which is applied to an electronic device. The device includes: a receiving module 100, a determining module 200, and an executing module 300. among them,
所述接收模块100,用于接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机之外的其他音频通路的指令;The receiving module 100 is configured to receive an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headset path to an audio path other than the wireless headset;
所述判断模块200,用于判断是否满足音频通路切换条件;The judgment module 200 is used to judge whether the audio path switching condition is satisfied;
所述执行模块300,用于当满足音频通路切换条件时,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;当不满足音频通路切换条件时,保持所述无线耳机音频通路进行音频输出。The execution module 300 is configured to convert the wireless headphone audio path to the other audio path for audio output when the audio path switching condition is satisfied; to maintain the wireless headset audio path when the audio path switching condition is not satisfied Perform audio output.
本实施例中,所述音频通路切换装置10通过所述接收模块100接收音频通路切换指令,通过所述判断模块200判断是否满足音频通路切换条件,所述执行模块300在满足音频通路切换条件时,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;在不满足音频通路切换条件,保持所述无线耳机音频通路进行音频输出。本申请实施例提供的所述音频通路切换装置10在接收到接收音频通路切换指令后,未直接进行音频通路切换,而是根据预设的条件对是否进行音频通路切换进行了判断,有效防止了因误操作或系统异常引起的切换错误,进而防止了在不适宜的场景下使用扬声器或听筒 通路等输出音频数据,提高了所述音频通路切换装置10音频通路切换时的智能性。In this embodiment, the audio path switching device 10 receives the audio path switching instruction through the receiving module 100, and determines whether the audio path switching condition is satisfied through the judgment module 200, and when the execution module 300 meets the audio path switching condition , Converting the wireless headphone audio path to the other audio path for audio output; if the audio path switching condition is not satisfied, keep the wireless headphone audio path for audio output. After receiving the audio path switching instruction, the audio path switching device 10 provided in the embodiment of the present application does not directly perform audio path switching, but judges whether to perform audio path switching according to preset conditions, which effectively prevents Switching errors caused by misoperations or system abnormalities, thereby preventing the use of speakers or earphone channels to output audio data in unsuitable scenes, improves the intelligence of the audio channel switching device 10 when switching audio channels.
在一个实施例中,所述判断模块200包括音频通路设置参数判断单元。所述音频通路设置参数判断单元用于根据音频通路设置参数判断是否满足音频通路切换条件。In one embodiment, the judgment module 200 includes an audio path setting parameter judgment unit. The audio channel setting parameter judgment unit is used to judge whether the audio channel switching condition is satisfied according to the audio channel setting parameter.
在一个实施例中,所述音频通路设置参数判断单元包括音频通路设置参数获取子单元和音频通路设置参数判断子单元。其中,所述音频通路设置参数获取子单元用于获取所述音频通路设置参数。所述音频通路设置参数判断子单元用于当所述音频通路设置参数不包括固定耳机连接参数时,判断为满足音频通路切换条件;否则,判断为不满足音频通路切换条件。In one embodiment, the audio channel setting parameter judgment unit includes an audio channel setting parameter acquisition subunit and an audio channel setting parameter judgment subunit. Wherein, the audio channel setting parameter obtaining subunit is used to obtain the audio channel setting parameter. The audio path setting parameter judgment subunit is configured to determine that the audio path switching condition is satisfied when the audio path setting parameter does not include the fixed headphone connection parameter; otherwise, determine that the audio path switching condition is not satisfied.
在一个实施例中,所述判断模块200还包括无线耳机状况数据判断单元。所述无线耳机状况数据判断单元用于根据无线耳机状况数据判断是否满足音频通路切换条件。In one embodiment, the judgment module 200 further includes a wireless headset condition data judgment unit. The wireless headset condition data judgment unit is used to determine whether the audio path switching condition is satisfied according to the wireless headset condition data.
在一个实施例中,所述无线耳机状况数据判断单元包括无线耳机状况数据获取子单元和无线耳机状况数据判断子单元。所述无线耳机状况数据获取子单元用于获取所述无线耳机状况数据。所述无线耳机状况数据判断子单元用于当所述无线耳机状况数据小于第一预设阈值时,判断为满足音频通路切换条件;否则,判断为不满足音频通路切换条件。In one embodiment, the wireless headset condition data judgment unit includes a wireless headset condition data acquisition subunit and a wireless headset condition data judgment subunit. The wireless headset condition data acquisition subunit is used to acquire the wireless headset condition data. The wireless headset condition data judgment subunit is configured to determine that the audio path switching condition is satisfied when the wireless headset condition data is less than the first preset threshold; otherwise, determine that the audio path switching condition is not satisfied.
在一个实施例中,所述无线耳机状况数据包括:无线耳机电量数据。In one embodiment, the wireless headset condition data includes: wireless headset power data.
在一个实施例中,所述无线耳机状况数据包括:无线耳机信号数据。In one embodiment, the wireless headset condition data includes: wireless headset signal data.
在一个实施例中,所述判断模块200还包括用户使用场景数据判断单元。所述用户使用场景数据判断单元用于根据用户使用场景数据判断是否满足音频通路切换条件。In one embodiment, the judgment module 200 further includes a user usage scene data judgment unit. The user usage scene data judgment unit is used to judge whether the audio path switching condition is satisfied according to the user usage scene data.
在一个实施例中,所述用户使用场景数据判断单元包括用户使用场景数据获取子单元和用户使用场景数据判断子单元。其中,所述用户使用场景数据获取子单元用于获取所述用户使用场景数据。所述用户使用场景数据判断子单元用于当所述用户使用场景数据满足预设条件时,判断为满足音频通路 切换条件;否则,判断为不满足音频通路切换条件。In one embodiment, the user usage scene data judgment unit includes a user usage scene data acquisition subunit and a user usage scene data judgment subunit. Wherein, the user usage scene data obtaining subunit is used to obtain the user usage scene data. The user usage scene data determination subunit is configured to determine that the audio path switching condition is satisfied when the user use scene data satisfies the preset condition; otherwise, determine that the audio path switching condition is not satisfied.
在一个实施例中,所述用户使用场景数据包括环境噪音音量数据,所述用户使用场景数据判断子单元用于当所述环境噪音音量数据大于第二预设阈值且小于第三预设阈值,判断为满足音频通路切换条件。In one embodiment, the user usage scene data includes environmental noise volume data, and the user usage scene data judgment subunit is used when the environmental noise volume data is greater than a second preset threshold and less than a third preset threshold, It is determined that the audio path switching condition is satisfied.
在一个实施例中,所述周围环境数据包括时间数据,所述用户使用场景数据判断子单元用于当所述时间数据处于预设范围,判断为满足音频通路切换条件。In one embodiment, the surrounding environment data includes time data, and the user usage scene data judgment subunit is configured to judge that the audio path switching condition is satisfied when the time data is within a preset range.
在一个实施例中,所述音频通路切换装置10还包括提示模块。所述提示模块用于输出用户提示信息,以提示用户当前音频通路的切换。In one embodiment, the audio path switching device 10 further includes a prompt module. The prompt module is used to output user prompt information to prompt the user to switch the current audio path.
上述实施例提供的所述音频通路切换装置10,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principle and technical effect of the audio path switching device 10 provided in the above embodiments are similar to the above method embodiments, and will not be repeated here.
上述音频通路切换装置10中各个模块的划分仅用于举例说明,在其他实施例中,可将所述音频通路切换装置10按照需要划分为不同的模块,以完成上述音频通路切换装置10的全部或部分功能。The division of each module in the above audio path switching device 10 is for illustration only. In other embodiments, the audio path switching device 10 may be divided into different modules as needed to complete all of the above audio path switching device 10 Or some functions.
上述音频通路切换装置10中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中的处理器中,也可以以软件形式存储于电子设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the audio path switching device 10 may be implemented in whole or in part by software, hardware, and a combination thereof. The above modules may be embedded in the hardware or independent of the processor in the electronic device, or may be stored in the memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行以下音频通路切换方法的步骤:The embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processor to perform the following steps of the audio path switching method:
接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机音频通路之外的其他音频通路的指令;Receiving an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path;
判断是否满足音频通路切换条件;Determine whether the audio path switching conditions are met;
若是,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;If yes, convert the wireless headphone audio path to the other audio path for audio output;
若否,保持所述无线耳机音频通路进行音频输出。If not, keep the audio path of the wireless headset for audio output.
需要说明的是,一个或多个包含计算机可执行指令的非易失性计算机可 读存储介质,当计算机可执行指令被一个或多个处理器执行时,还可以使得处理器执行上述任一实施例中的音频通路切换方法。It should be noted that one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, may also cause the processor to perform any of the foregoing implementations Example audio channel switching method.
上述实施例提供的计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The computer-readable storage medium provided by the foregoing embodiments has similar implementation principles and technical effects to the foregoing method embodiments, and will not be repeated here.
本申请实施例还提供了一种电子设备。如图8所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该电子设备可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等具有语音通话功能并具有扬声器的任意终端设备,以电子设备为手机为例:An embodiment of the present application also provides an electronic device. As shown in FIG. 8, for ease of description, only parts related to the embodiments of the present application are shown, and specific technical details are not disclosed, please refer to the method part of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, tablet computer, PDA (Personal Digital Assistant), POS (Point of Sales), in-vehicle computer, wearable device, etc. that has a voice call function and has a speaker , Taking an electronic device as a mobile phone as an example:
图8为与本申请实施例提供的电子设备相关的手机的部分结构的框图。参考图8,手机1000包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图8所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。8 is a block diagram of a partial structure of a mobile phone related to an electronic device provided by an embodiment of the present application. 8, the mobile phone 1000 includes: a radio frequency (Radio Frequency) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, a processor 1080, and power supply 1090 and other components. Those skilled in the art may understand that the structure of the mobile phone shown in FIG. 8 does not constitute a limitation on the mobile phone, and may include more or fewer components than those shown in the figure, or a combination of certain components, or a different component arrangement.
其中,RF电路1010可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1080处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE))、电子邮件、短消息服务(Short Messaging  Service,SMS)等。Among them, the RF circuit 1010 can be used to receive and send signals during sending and receiving information or during a call. It can receive the downlink information of the base station and process it to the processor 1080; it can also send uplink data to the base station. Generally, RF circuits include but are not limited to antennas, at least one amplifier, transceiver, coupler, low noise amplifier (Low Noise Amplifier, LNA), duplexer, and so on. In addition, the RF circuit 1010 can also communicate with the network and other devices through wireless communication. The above wireless communication can use any communication standard or protocol, including but not limited to Global System of Mobile (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division) Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE)), e-mail, Short Message Service (SMS), etc.
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1020可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1020 may be used to store software programs and modules. The processor 1080 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system and at least one function-required application program (such as a sound playback function application program, an image playback function application program, etc.), etc.; The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. In addition, the memory 1020 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
输入单元1030可用于接收输入的数字或字符信息,以及产生与手机1000的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1030 may be used to receive input numeric or character information, and generate key signal input related to user settings and function control of the mobile phone 1000. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also known as a touch screen, can collect user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc. on or near the touch panel 1031 Operation), and drive the corresponding connection device according to the preset program. In one embodiment, the touch panel 1031 may include a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device and converts it into contact coordinates, and then sends To the processor 1080, and can receive the commands sent by the processor 1080 and execute them. In addition, the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1031, the input unit 1030 may also include other input devices 1032. Specifically, other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1040可包括显示面板1041。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。在一个实施例中, 触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图8中,触控面板1031与显示面板1041是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现手机的输入和输出功能。The display unit 1040 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1040 may include a display panel 1041. In one embodiment, the display panel 1041 may be configured in the form of a liquid crystal display (Liquid Crystal) (LCD), an organic light-emitting diode (Organic Light-Emitting Diode, OLED), or the like. In one embodiment, the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near it, it is transmitted to the processor 1080 to determine the type of touch event, and then the processor 1080 according to The type of touch event provides a corresponding visual output on the display panel 1041. Although in FIG. 8, the touch panel 1031 and the display panel 1041 are implemented as two independent components to realize the input and input functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to Realize the input and output functions of the mobile phone.
手机1000还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1041和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The mobile phone 1000 may further include at least one sensor 1050, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1041 and/or when the mobile phone moves to the ear Or backlight. The motion sensor may include an acceleration sensor, which can detect the magnitude of acceleration in various directions through the acceleration sensor, and can detect the magnitude and direction of gravity when at rest, and can be used for applications that recognize mobile phone gestures (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, percussion), etc. In addition, the mobile phone can also be equipped with other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor and so on.
音频电路1060、扬声器1061和传声器1062可提供用户与手机之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010可以发送给另一手机,或者将音频数据输出至存储器1020以便后续处理。The audio circuit 1060, the speaker 1061, and the microphone 1062 may provide an audio interface between the user and the mobile phone. The audio circuit 1060 can transmit the received audio data converted electrical signal to the speaker 1061, which converts the speaker 1061 into a sound signal output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is converted by the audio circuit 1060 After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, and then sent to another mobile phone through the RF circuit 1010, or the audio data is output to the memory 1020 for subsequent processing.
WiFi属于短距离无线传输技术,手机通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。虽然图8示出了WiFi模块1070,但是可以理解的是,其并不属于手机1000的必须构成,可以根据需要而省略。WiFi is a short-range wireless transmission technology. Mobile phones can help users send and receive emails, browse web pages, and access streaming media through the WiFi module 1070. It provides users with wireless broadband Internet access. Although FIG. 8 shows the WiFi module 1070, it can be understood that it is not a necessary component of the mobile phone 1000, and may be omitted as needed.
处理器1080是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行手机的各种功能和处理数据,从而对 手机进行整体监控。在一个实施例中,处理器1080可包括一个或多个处理单元。在一个实施例中,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。The processor 1080 is the control center of the mobile phone, and uses various interfaces and lines to connect the various parts of the entire mobile phone, by running or executing the software programs and/or modules stored in the memory 1020, and calling the data stored in the memory 1020 to execute Various functions and processing data of the mobile phone, so as to monitor the mobile phone as a whole. In one embodiment, the processor 1080 may include one or more processing units. In one embodiment, the processor 1080 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, user interface, application programs, and the like; the modem processor mainly processes wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1080.
手机1000还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理系统与处理器1080逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 1000 further includes a power supply 1090 (such as a battery) for powering various components. Preferably, the power supply can be logically connected to the processor 1080 through a power management system, so as to realize functions such as charging, discharging, and power management through the power management system.
在一个实施例中,手机1000还可以包括摄像头、蓝牙模块等。In one embodiment, the mobile phone 1000 may further include a camera, a Bluetooth module, and the like.
在本申请实施例中,该电子设备所包括的处理器1080执行存储在存储器上的计算机程序时实现以下步骤:In the embodiment of the present application, the processor 1080 included in the electronic device implements the following steps when executing the computer program stored in the memory:
接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机音频通路之外的其他音频通路的指令;Receiving an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path;
判断是否满足音频通路切换条件;Determine whether the audio path switching conditions are met;
若是,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;If yes, convert the wireless headphone audio path to the other audio path for audio output;
若否,保持所述无线耳机音频通路进行音频输出。If not, keep the audio path of the wireless headset for audio output.
需要说明的是,一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行上述任一实施例中的音频处理方法的步骤。It should be noted that an electronic device includes a memory and a processor. The memory stores computer-readable instructions. When the instructions are executed by the processor, the processor is caused to execute any of the foregoing embodiments. Steps of the audio processing method.
上述实施例提供的电子设备,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路 (Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。The implementation principle and technical effect of the electronic device provided by the above embodiments are similar to the above method embodiments, and will not be repeated here. Any references to memory, storage, databases, or other media used in this application may include non-volatile and/or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR) SDRAM, enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be arbitrarily combined. To simplify the description, all possible combinations of the technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, All should be considered within the scope of this description.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several embodiments of the present invention, and their descriptions are more specific and detailed, but they should not be construed as limiting the scope of the invention patent. It should be noted that, for a person of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can also be made, which all fall within the protection scope of the present invention. Therefore, the protection scope of the invention patent shall be subject to the appended claims.

Claims (15)

  1. 一种音频通路切换方法,应用于电子设备,所述方法包括:An audio path switching method is applied to electronic equipment. The method includes:
    接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机音频通路之外的其他音频通路的指令;Receiving an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headphone path to an audio path other than the wireless headphone audio path;
    判断是否满足音频通路切换条件;Determine whether the audio path switching conditions are met;
    若是,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;If yes, convert the wireless headphone audio path to the other audio path for audio output;
    若否,保持所述无线耳机音频通路进行音频输出。If not, keep the audio path of the wireless headset for audio output.
  2. 根据权利要求1所述的方法,其中,所述判断是否满足音频通路切换条件,包括:The method according to claim 1, wherein the determining whether the audio path switching condition is satisfied includes:
    根据音频通路设置参数判断是否满足音频通路切换条件。According to the audio channel setting parameters, determine whether the audio channel switching conditions are met.
  3. 根据权利要求2所述的方法,其中,所述根据音频通路设置参数判断是否满足音频通路切换条件,包括:The method according to claim 2, wherein the judging whether the audio path switching condition is satisfied according to the audio path setting parameters includes:
    获取所述音频通路设置参数;Obtaining the audio channel setting parameters;
    若所述音频通路设置参数不包括固定耳机连接参数,则满足音频通路切换条件;If the audio channel setting parameters do not include fixed headphone connection parameters, the audio channel switching conditions are satisfied;
    否则,不满足音频通路切换条件。Otherwise, the audio path switching conditions are not satisfied.
  4. 根据权利要求1所述的方法,其中,所述判断是否满足音频通路切换条件,包括:The method according to claim 1, wherein the determining whether the audio path switching condition is satisfied includes:
    根据无线耳机状况数据判断是否满足音频通路切换条件。According to the wireless headset condition data, it is judged whether the audio path switching condition is satisfied.
  5. 根据权利要求4所述的方法,其中,所述根据无线耳机状况判断是否满足音频通路切换条件,包括:The method according to claim 4, wherein the judging whether the audio path switching condition is satisfied according to the condition of the wireless headset includes:
    获取所述无线耳机状况数据;Obtain the wireless headset status data;
    若所述无线耳机状况数据小于第一预设阈值,则满足音频通路切换条件;If the wireless headset condition data is less than the first preset threshold, the audio path switching condition is satisfied;
    否则,不满足音频通路切换条件。Otherwise, the audio path switching conditions are not satisfied.
  6. 根据权利要求5所述的方法,其中,所述无线耳机状况数据包括:无线耳机电量数据。The method according to claim 5, wherein the wireless headset condition data includes: wireless headset power data.
  7. 根据权利要求5所述的方法,其中,所述无线耳机状况数据包括:无线耳机信号数据。The method according to claim 5, wherein the wireless headset condition data includes: wireless headset signal data.
  8. 根据权利要求1所述的方法,其中,所述判断是否满足音频通路切换条件,包括:The method according to claim 1, wherein the determining whether the audio path switching condition is satisfied includes:
    根据用户使用场景数据判断是否满足音频通路切换条件。According to the user's usage scene data, it is judged whether the audio path switching condition is satisfied.
  9. 根据权利要求8所述的方法,其中,所述根据用户使用场景判断是否满足音频通路切换条件,包括:The method according to claim 8, wherein the judging whether the audio path switching condition is satisfied according to the user usage scenario includes:
    获取所述用户使用场景数据;Obtain the user usage scene data;
    若所述用户使用场景数据满足预设条件,则满足音频通路切换条件;If the scene data used by the user satisfies the preset condition, the audio path switching condition is satisfied;
    否则,不满足音频通路切换条件。Otherwise, the audio path switching conditions are not satisfied.
  10. 根据权利要求9所述的方法,其中,所述用户使用场景数据包括环境噪音音量数据,所述若所述用户使用场景数据满足预设条件,则满足音频通路切换条件,包括:The method according to claim 9, wherein the user usage scene data includes ambient noise volume data, and if the user usage scene data satisfies a preset condition, the audio path switching condition is satisfied, including:
    若所述环境噪音音量数据大于第二预设阈值且小于第三预设阈值,则满足音频通路切换条件。If the ambient noise volume data is greater than the second preset threshold and less than the third preset threshold, the audio path switching condition is satisfied.
  11. 根据权利要求9所述的方法,其中,所述周围环境数据包括时间数据,所述若所述用户使用场景数据满足预设条件,则满足音频通路切换条件,包括:The method according to claim 9, wherein the surrounding environment data includes time data, and if the user usage scene data satisfies a preset condition, the audio path switching condition is satisfied, including:
    若所述时间数据处于预设范围,则满足音频通路切换条件。If the time data is in a preset range, the audio path switching condition is satisfied.
  12. 根据权利要求1所述的方法,其中,所述将无线耳机音频通路转换为所述其他音频通路进行音频输出之后,所述方法还包括:The method according to claim 1, wherein after converting the wireless earphone audio path to the other audio path for audio output, the method further comprises:
    输出用户提示信息,以提示用户当前音频通路的切换。Output user prompt information to prompt the user to switch the current audio path.
  13. 一种音频通路切换装置,应用于电子设备,所述装置包括:An audio path switching device is applied to electronic equipment. The device includes:
    接收模块,用于接收音频通路切换指令,其中,所述音频通路切换指令是指将无线耳机通路切换为除所述无线耳机之外的其他音频通路的指令;A receiving module, configured to receive an audio path switching instruction, wherein the audio path switching instruction refers to an instruction to switch the wireless headset path to an audio path other than the wireless headset;
    判断模块,用于判断是否满足音频通路切换条件;The judgment module is used to judge whether the audio path switching condition is satisfied;
    执行模块,用于当满足音频通路切换条件时,将所述无线耳机音频通路转换为所述其他音频通路进行音频输出;当不满足音频通路切换条件时,保持所述无线耳机音频通路进行音频输出。The execution module is used to convert the wireless headphone audio path to the other audio path for audio output when the audio path switching condition is met; when the audio path switching condition is not met, maintain the wireless headphone audio path for audio output .
  14. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至12中任一项所述的音频通路切换方法的步骤。A computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of the audio path switching method according to any one of claims 1 to 12.
  15. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如权利要求1至12中任一项所述的音频通路切换方法。An electronic device includes a memory and a processor, and the memory stores computer-readable instructions, and when the instructions are executed by the processor, the processor is caused to perform as described in any one of claims 1 to 12. The mentioned audio path switching method.
PCT/CN2018/120139 2018-12-10 2018-12-10 Audio path switching method and device, readable storage medium and electronic equipment WO2020118496A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/120139 WO2020118496A1 (en) 2018-12-10 2018-12-10 Audio path switching method and device, readable storage medium and electronic equipment
CN201880098670.8A CN112997471B (en) 2018-12-10 2018-12-10 Audio channel switching method and device, readable storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/120139 WO2020118496A1 (en) 2018-12-10 2018-12-10 Audio path switching method and device, readable storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2020118496A1 true WO2020118496A1 (en) 2020-06-18

Family

ID=71076184

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/120139 WO2020118496A1 (en) 2018-12-10 2018-12-10 Audio path switching method and device, readable storage medium and electronic equipment

Country Status (2)

Country Link
CN (1) CN112997471B (en)
WO (1) WO2020118496A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437339A (en) * 2020-11-10 2021-03-02 深圳Tcl新技术有限公司 Audio output control method and device, smart television and storage medium
CN112925502A (en) * 2021-02-10 2021-06-08 歌尔科技有限公司 Audio channel switching equipment, method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867657A (en) * 2010-06-24 2010-10-20 中兴通讯股份有限公司 Method and device for switching audio output equipment on mobile phone
CN105072274A (en) * 2015-08-12 2015-11-18 广东欧珀移动通信有限公司 Method and system for dynamically switching audio channels
US20170156005A1 (en) * 2014-06-30 2017-06-01 Zte Corporation Method and Apparatus for Selecting Main Microphone
CN108683798A (en) * 2018-04-19 2018-10-19 维沃移动通信有限公司 A kind of sound output control method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106803857A (en) * 2017-01-13 2017-06-06 维沃移动通信有限公司 A kind of audio frequency transmission method and mobile terminal based on bone-conduction speaker

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867657A (en) * 2010-06-24 2010-10-20 中兴通讯股份有限公司 Method and device for switching audio output equipment on mobile phone
US20170156005A1 (en) * 2014-06-30 2017-06-01 Zte Corporation Method and Apparatus for Selecting Main Microphone
CN105072274A (en) * 2015-08-12 2015-11-18 广东欧珀移动通信有限公司 Method and system for dynamically switching audio channels
CN108683798A (en) * 2018-04-19 2018-10-19 维沃移动通信有限公司 A kind of sound output control method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112437339A (en) * 2020-11-10 2021-03-02 深圳Tcl新技术有限公司 Audio output control method and device, smart television and storage medium
CN112925502A (en) * 2021-02-10 2021-06-08 歌尔科技有限公司 Audio channel switching equipment, method and device and electronic equipment
CN112925502B (en) * 2021-02-10 2022-07-08 歌尔科技有限公司 Audio channel switching equipment, method and device and electronic equipment

Also Published As

Publication number Publication date
CN112997471A (en) 2021-06-18
CN112997471B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US11043980B2 (en) Method for controlling earphone switching, earphone, and earphone system
US11102697B2 (en) Method for controlling earphone switching and earphone
CN108391205B (en) Left and right channel switching method and device, readable storage medium and terminal
CN112997470B (en) Audio output control method and device, computer readable storage medium and electronic equipment
CN107231473B (en) Audio output regulation and control method, equipment and computer readable storage medium
US10805708B2 (en) Headset sound channel control method and system, and related device
WO2018049897A1 (en) Data backup method and device
CN109062535B (en) Sound production control method and device, electronic device and computer readable medium
CN108541080B (en) Method for realizing loop connection between first electronic equipment and second electronic equipment and related product
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
CN108958695B (en) Audio output method, device and computer readable storage medium
WO2021129835A1 (en) Volume control method and device, and computer-readable storage medium
WO2020097927A1 (en) Call control method and device, computer-readable storage medium and electronic device
JP2021521737A (en) Access control method, message broadcasting method and related equipment
WO2020118496A1 (en) Audio path switching method and device, readable storage medium and electronic equipment
CN107734153B (en) Call control method, terminal and computer readable storage medium
WO2020113525A1 (en) Playing control method and apparatus, and computer-readable storage medium and electronic device
WO2020124541A1 (en) Audio processing method and apparatus, computer readable storage medium, and electronic device
CN108391208B (en) Signal switching method, device, terminal, earphone and computer readable storage medium
US20210286588A1 (en) Method and apparatus for playing alarm and electronic device
WO2020103073A1 (en) Method and device for processing audio resources, computer readable storage medium and electronic device
CN109618062B (en) Voice interaction method, device, equipment and computer readable storage medium
CN109739641B (en) Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium
WO2020107169A1 (en) Audio mode correction method and apparatus, and electronic device
WO2020097914A1 (en) Audio mode adjustment method and apparatus, and electronic device

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18943098

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/10/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18943098

Country of ref document: EP

Kind code of ref document: A1