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

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

Info

Publication number
WO2021129674A1
WO2021129674A1 PCT/CN2020/138666 CN2020138666W WO2021129674A1 WO 2021129674 A1 WO2021129674 A1 WO 2021129674A1 CN 2020138666 W CN2020138666 W CN 2020138666W WO 2021129674 A1 WO2021129674 A1 WO 2021129674A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
peripheral
audio output
output
electronic device
Prior art date
Application number
PCT/CN2020/138666
Other languages
English (en)
French (fr)
Inventor
武贺峰
Original Assignee
RealMe重庆移动通信有限公司
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 RealMe重庆移动通信有限公司 filed Critical RealMe重庆移动通信有限公司
Priority to EP20905687.8A priority Critical patent/EP4075259A4/en
Publication of WO2021129674A1 publication Critical patent/WO2021129674A1/zh
Priority to US17/808,805 priority patent/US20220326903A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/12Circuits for transducers, loudspeakers or microphones for distributing signals to two or more loudspeakers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/01Input selection or mixing for amplifiers or loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/03Connection circuits to selectively connect loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2499/00Aspects covered by H04R or H04S not otherwise provided for in their subgroups
    • H04R2499/10General applications
    • H04R2499/11Transducers incorporated or for use in hand-held devices, e.g. mobile phones, PDA's, camera's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/27Transitions between radio resource control [RRC] states

Definitions

  • This application relates to the technical field of electronic equipment, and more specifically, to an audio output method, device, electronic equipment, and storage medium.
  • electronic devices are used more and more widely, with more and more functions, and have become one of the must-haves in people's daily life.
  • electronic devices can be connected with peripheral audio output devices to perform audio output through the peripheral audio output devices.
  • this application proposes an audio output method, device, electronic equipment, and storage medium to solve the above-mentioned problems.
  • the embodiments of the present application provide an audio output method, which is applied to an electronic device, and the method includes: detecting the current connection state of the electronic device with the peripheral audio output device; When at least two peripheral audio output devices are connected, respectively obtain the output audio type corresponding to the at least two peripheral audio output devices; when the audio is to be output, obtain the audio type of the audio; audio based on the audio The type and the output audio type corresponding to the configuration of each peripheral audio output device, the target peripheral audio output device is determined from the at least two peripheral audio output devices; the audio is output through the target peripheral audio output device.
  • an embodiment of the present application provides an audio output device, which is applied to an electronic device, and the device includes: a connection state detection module, configured to detect the current connection state of the electronic device and the peripheral audio output device; output The audio type acquisition module is configured to, when it is detected that the electronic device is connected to at least two peripheral audio output devices, respectively acquire the output audio types corresponding to the configuration of the at least two peripheral audio output devices; the audio type acquisition module, Used to obtain the audio type of the audio when the audio is to be output; the target peripheral audio output device determining module is used to determine the audio type based on the audio type and the output audio type corresponding to each peripheral audio output device, from A target peripheral audio output device is determined among the at least two peripheral audio output devices; an audio output module is used to output the audio through the target peripheral audio output device.
  • an embodiment of the present application provides an electronic device, including a memory and a processor, the memory is coupled to the processor, the memory stores instructions, and the instructions are executed when the instructions are executed by the processor.
  • the processor executes the above method.
  • an embodiment of the present application provides a computer readable storage medium, and the computer readable storage medium stores program code, and the program code can be invoked by a processor to execute the above method.
  • FIG. 1 shows a schematic diagram of an application environment that can be used in an audio output method provided by an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of an audio output method provided by an embodiment of the present application
  • FIG. 3 shows a schematic flowchart of an audio output method provided by another embodiment of the present application.
  • FIG. 4 shows a schematic flowchart of step S280 of the audio output method shown in FIG. 3 of the present application
  • FIG. 5 shows a schematic flowchart of an audio output method provided by another embodiment of the present application.
  • FIG. 6 shows a schematic flowchart of an audio output method provided by another embodiment of the present application.
  • Fig. 7 shows a block diagram of modules of an audio output device provided by an embodiment of the present application.
  • FIG. 8 shows a block diagram of an electronic device used to execute the audio output method according to the embodiment of the present application.
  • Fig. 9 shows a storage unit for storing or carrying program code for implementing the audio output method according to the embodiment of the present application according to an embodiment of the present application.
  • the audio architecture of the electronic device is similar to the audio architecture of the computer, which is mainly completed by the processor and the built-in audio CODEC (codec). Specifically, after the processor receives the input of audio data, it converts it into an I2S signal, transmits it to the CODEC, converts it into an analog signal, and then plays it.
  • the processor receives the input of audio data, it converts it into an I2S signal, transmits it to the CODEC, converts it into an analog signal, and then plays it.
  • the electronic device can be connected to a peripheral audio output device, and output audio data through the peripheral audio output device.
  • the peripheral audio output device can receive audio data transmitted by the electronic device, and perform audio data processing. Play, where the peripheral audio output device may include earphones, speakers, and vehicle-mounted equipment.
  • the electronic device and the peripheral audio output device can transmit data through a wireless fidelity (Wireless Fidelity, WiFi) connection
  • the electronic device and the peripheral audio output device can transmit data through a Bluetooth (BT) connection
  • BT Bluetooth
  • Peripheral audio output devices can be output and transmitted through a wired connection.
  • the electronic device can also be connected to multiple peripheral audio output devices at the same time.
  • the electronic device can be connected to the earphone via Bluetooth and connected to the audio via cable.
  • the electronic device can be connected to the earphone and audio via Bluetooth at the same time. , Or it can be connected to the first earphone and the second earphone via Bluetooth at the same time.
  • the inventor found through research that when an electronic device is connected to multiple peripheral audio output devices at the same time, the audio of the electronic device can only be output from one of the peripheral audio output devices, and the output logic is fixed, for example, when the electronic While the device is connected to the headset via Bluetooth and connected to the audio via a wired connection, the electronic device may only output from the headset, resulting in a poor user experience.
  • the inventor has discovered through long-term research and proposed the audio output method, device, electronic device, and storage medium provided by the embodiments of the present application, which are obtained by connecting the electronic device with at least two peripheral audio output devices
  • Each peripheral audio output device corresponds to the configured output audio type, and outputs different types of audio through different peripheral audio output devices to improve the flexibility of audio output.
  • the specific audio output method will be described in detail in the subsequent embodiments.
  • the following describes an application environment that can be used in the audio output method provided in the embodiments of the present application.
  • FIG. 1 shows a schematic diagram of an application environment that can be used for the audio output method provided by the embodiments of the present application. It includes: an electronic device 100, a first peripheral audio output device 200, and a second peripheral audio output device 300, wherein the electronic device 100 is respectively connected to the first peripheral audio output device 200 and the second peripheral audio output device 300 , In order to realize that the audio of the electronic device 100 is output through the first peripheral audio output device 200 or the second peripheral audio output device 300.
  • the electronic device 100 can also be connected to other more peripheral audio output devices.
  • the electronic device 100 can also be connected to a third peripheral audio output device, a fourth peripheral audio output device...the Nth peripheral audio output device. Equipment, etc., are not limited here.
  • the electronic device 100 generally has a Bluetooth module, and the Bluetooth module may refer to a set of basic circuits of a chip that integrates Bluetooth functions, and is used for wireless network communication. Further, the electronic device 100 may perform a Bluetooth connection with the first peripheral audio output device 200 through a Bluetooth module.
  • the electronic device 100 is generally provided with a data interface, and the data interface is used to realize the connection between the electronic device 100 and the peripheral device, and the electronic device can be wiredly connected to the second peripheral audio output device 300 through the data interface.
  • the electronic device 100 can also be connected to the first peripheral audio output device 200 and the second peripheral audio output device 300 in other more ways, which are not limited here.
  • FIG. 2 shows a schematic flowchart of an audio output method provided by an embodiment of the present application.
  • the audio output method is used to obtain the output audio type corresponding to the configuration of each peripheral audio output device when the electronic device is connected to at least two peripheral audio output devices, and output different audio output devices through different peripheral audio output devices. Types of audio to enhance the flexibility of audio output.
  • the audio output method is applied to the audio output device 400 as shown in FIG. 6 and the electronic device 100 configured with the audio output device 400 (FIG. 7 ).
  • FIG. 7 shows a schematic flowchart of an audio output method provided by an embodiment of the present application.
  • the audio output method is used to obtain the output audio type corresponding to the configuration of each peripheral audio output device when the electronic device is connected to at least two peripheral audio output devices, and output different audio output devices through different peripheral audio output devices. Types of audio to enhance the flexibility of audio output.
  • the audio output method is applied to the audio output device 400 as shown in FIG. 6 and the electronic device 100 configured with the audio output device 400 (FIG
  • the electronic device applied in this embodiment can be a desktop computer, a tablet computer, a smart phone, a wearable electronic device, etc. Make a limit.
  • the following will elaborate on the process shown in FIG. 2, and the audio output method may specifically include the following steps:
  • Step S110 Detect the current connection state of the electronic device with the peripheral audio output device.
  • the current connection state of the electronic device and the peripheral audio output device can be detected.
  • the current connection status of the electronic device and the peripheral audio output device can be detected in real time
  • the connection status of the electronic device and the peripheral audio output device can be detected at intervals of a preset time
  • the electronic device and the peripheral audio output device can be detected according to the preset time
  • the connection status of the electronic device and the peripheral audio output device can also be detected in the manner set by the user, which is not limited here.
  • the connection state between the electronic device and the peripheral audio output device may include a connected state and a non-connected state, and the non-connected state includes a non-connected state and a connected state.
  • the Android system will send a broadcast when connecting or disconnecting the peripheral audio output device. Therefore, the electronic device can monitor the broadcast to determine whether the electronic device is connected to the peripheral audio output device. Is connected.
  • the number of peripheral audio output devices that are connected to the electronic device may also be detected.
  • the number of peripheral audio output devices connected to the electronic device can be determined by viewing the state value of the electronic device. Specifically, when the electronic device is connected to a peripheral audio output device, return to the third State value, when the electronic device is connected to two peripheral audio output devices, it returns the fourth state value, and so on, so that it can be determined to be connected to the electronic device by detecting the third state value, the fourth state value, ... Status of the number of peripheral audio output devices.
  • Step S120 When it is detected that the electronic device is connected to at least two peripheral audio output devices, respectively obtain the output audio types corresponding to the configuration of the at least two peripheral audio output devices.
  • audio output can be performed through a built-in device of the electronic device.
  • audio output can be performed through a built-in earpiece or speaker of the electronic device.
  • audio output can be performed through an external audio output device connected to the electronic device, where the electronic device can communicate with an external audio output device via WiFi.
  • Set the audio output device connection you can connect to a peripheral audio output device through cable, you can connect to a peripheral audio output device through Bluetooth, you can connect to a peripheral audio output device through ZigBee, etc., which are not limited here.
  • audio output can be performed through a headset connected to the electronic device.
  • the output audio types corresponding to the configuration of the at least two peripheral audio output devices can be obtained respectively.
  • the two peripheral audio output devices include the first peripheral audio output device and the second peripheral audio output device as an example
  • the detection result represents the electronic device and the first
  • the peripheral audio output device and the second peripheral audio output device are connected
  • the output audio type corresponding to the configuration of the first peripheral audio output device and the output audio type corresponding to the configuration of the second peripheral audio output device can be obtained respectively.
  • the electronic device can be connected to the first peripheral audio output device and the second peripheral audio output device at the same time in the same manner.
  • the electronic device can simultaneously connect to the first peripheral audio output device and the second peripheral audio output device through WiFi.
  • Set the audio output device connection the electronic device can be connected to the first peripheral audio output device and the second peripheral audio output device at the same time through the cable; the electronic device can be connected to the first peripheral audio output device and the second peripheral audio output device at the same time through Bluetooth
  • the output device is connected; the electronic device can be connected to the first peripheral audio output device and the second peripheral audio output device at the same time through ZigBee, etc., which is not limited here.
  • the electronic device can be connected to the first peripheral audio output device and the second peripheral audio output device simultaneously in different ways.
  • the electronic device can be connected to the first peripheral audio output device through WiFi, and Connect with the second peripheral audio output device via Bluetooth; the electronic device can connect with the first peripheral audio output device via Bluetooth, and connect with the second peripheral audio output device via cable; the electronic device can connect with the first peripheral via cable
  • the audio output device is connected, and the second peripheral audio output device is connected through ZigBee, etc., which are not limited here.
  • the output audio type may include media audio type and call audio type.
  • the audio under the media audio type may include: audio output by music playback software, audio output by video playback software, audio output by search software, etc.
  • call audio type The following audio may include: audio output by call (phone) software, audio output by social software during voice or video, and so on.
  • the attribute information of each peripheral audio output device of the at least two peripheral audio output devices can be acquired, and based on each The attribute information of the peripheral audio output device determines the output audio type of its corresponding configuration. For example, if at least two peripheral audio output devices include earphones and speakers, the attribute information of the earphone and the attribute information of the speaker can be obtained respectively, and the output audio type corresponding to the earphone configuration based on the attribute information of the earphone can be obtained, and the output audio type based on the speaker can be obtained. The attribute information obtains the output audio type corresponding to the sound configuration.
  • the attribute information of the earphone is to reduce the sound transmission range
  • the attribute information of the sound is to expand the sound transmission range.
  • the corresponding configuration is based on the characteristics of the earphone to reduce the sound transmission range.
  • the output audio type may be a call audio type
  • the output audio type corresponding to the configuration based on the feature of expanding the sound propagation range of the sound may be a media audio type.
  • the network quality of the environment in which the electronic device is located and the connection mode of the electronic device and each peripheral audio output device can be obtained, and based on The network quality of the environment where the electronic device is located and the connection mode of the electronic device with each peripheral audio output device determine the output audio type corresponding to each peripheral audio output device. For example, if at least two peripheral audio output devices include a first peripheral audio output device and a second peripheral audio output device, and the electronic device and the first peripheral audio output device are connected in a wired connection, the electronic device is connected to the second peripheral audio output device.
  • connection mode of the second peripheral audio output device is Bluetooth connection, then based on the network quality of the environment of the electronic device, the output audio type of the first peripheral audio output device wired to the electronic device can be obtained, and the Bluetooth connection with the electronic device The output audio type of the second peripheral audio output device.
  • the output audio type of the first peripheral audio output device is the media audio type
  • the output audio type of the second peripheral audio output device is the call audio type
  • the output audio type of the second peripheral audio output device is the media audio type
  • the first external audio output device can be determined Suppose the output audio type of the audio output device is a media audio type and a call audio type, and the output audio type corresponding to the configuration of the second peripheral audio output device is none.
  • a function configuration interface is displayed, and the function configuration interface is used to configure the output audio types corresponding to the at least two peripheral audio output devices.
  • the pre-configured correspondence between the peripheral audio output device and the output audio type is acquired from the local of the electronic device, based on the correspondence, Obtain respectively the output audio types corresponding to the configuration of at least two peripheral audio output devices.
  • Step S130 When the audio is to be output, the audio type of the audio is acquired.
  • the audio type of the audio to be output by the electronic device can be acquired.
  • the electronic device when the electronic device makes an outgoing call, receives an incoming call, or plays media audio, it can be determined that the electronic device has audio to be output, and the audio type of the audio to be output can be obtained.
  • the electronic device can monitor the incoming or outgoing call in real time through the built-in monitoring module. When it is monitored that the electronic device is in the ringing start (CALL_STATE_RINGING) incoming call or the dial operation is outgoing, it can be determined that the electronic device has audio to be output.
  • the electronic device when the electronic device makes an outgoing call, it will send out a system broadcast, which can be monitored by BroadcastReceiver. Among them, the electronic device can detect the operation that acts on the media audio playback software. When a voice command or touch operation for instructing the media audio playback software to perform audio playback is detected, it can be determined that the electronic device has something to be output. Audio, where media audio playback software may include, but is not limited to, audio playback software, video playback software, and search software.
  • the audio type of the audio may include the media audio type and the call audio type. Therefore, in this embodiment, when the electronic device determines that there is audio to be output, it can determine that the audio type of the audio is a media audio type. Still the call audio type. As a way, the audio source of the audio to be output from the electronic device can be analyzed. When the analysis result indicates that the audio source of the audio to be output is a video call or a voice call in call software or social software, the audio of the audio to be output can be determined The type is the call audio type. When the analysis result indicates that the audio source of the audio to be output is media audio playback software (such as audio playback software, video playback software), it can be determined that the audio type of the audio to be output is the media audio type.
  • media audio playback software such as audio playback software, video playback software
  • Step S140 Determine a target peripheral audio output device from the at least two peripheral audio output devices based on the audio type of the audio and the output audio type corresponding to each peripheral audio output device.
  • the audio type of the audio to be output is a call audio type or a media audio type
  • the output audio type corresponding to each peripheral audio output device is a call audio type or a media audio type. Therefore, audio-based audio can be used.
  • the type and the output audio type corresponding to the configuration of each peripheral audio output device, and the peripheral audio output device matching the audio type of the audio is determined from at least two peripheral audio output devices as the target peripheral audio output device.
  • the at least two peripheral audio output devices include a first peripheral audio output device and a second peripheral audio output device
  • the audio output type corresponding to the first peripheral audio output device is a call audio type.
  • the audio output type corresponding to the configuration of the second peripheral audio output device is the media audio type. Then, after obtaining the audio type of the audio to be output, it can be determined whether the audio type of the audio to be output is a call audio type or a media audio type.
  • the first peripheral audio output device is a wired headset
  • the second peripheral audio output device is a Bluetooth headset
  • the audio output type corresponding to the wired headset is call audio type
  • the audio output type corresponding to the Bluetooth headset is media audio Types of.
  • Step S150 Output the audio through the target peripheral audio output device.
  • the audio can be output through the target peripheral audio output device. For example, if a wired headset is determined to be the target peripheral audio output device, audio can be output through the wired headset, and if a Bluetooth headset is determined to be the target peripheral audio output device, audio can be output through the Bluetooth headset.
  • the audio output method detects the current connection state of the electronic device with the peripheral audio output device, and when it is detected that the electronic device is connected to at least two peripheral audio output devices, obtain at least two peripheral audios respectively
  • the output audio type corresponding to the configuration of the output device the audio type of the audio is obtained when the audio is to be output, based on the audio type of the audio and the output audio type corresponding to the configuration of each peripheral audio output device, from at least two peripheral audio output devices Determine the target peripheral audio output device, and output audio through the target peripheral audio output device, so as to obtain the output audio type corresponding to each peripheral audio output device when the electronic device is connected to at least two peripheral audio output devices, And through different peripheral audio output devices corresponding to output different types of audio, enhance the flexibility of audio output.
  • FIG. 3 shows a schematic flowchart of an audio output method provided by another embodiment of the present application. This method is applied to the above-mentioned electronic equipment. The following will describe the process shown in FIG. 3 in detail.
  • the audio output method may specifically include the following steps:
  • Step S210 Detect the current connection state of the electronic device with the peripheral audio output device.
  • step S210 For the specific description of step S210, please refer to step S110, which will not be repeated here.
  • Step S220 When it is detected that the electronic device is connected to the at least two peripheral audio output devices, a function configuration interface is displayed, and the function configuration interface is used to configure the output corresponding to the at least two peripheral audio output devices. Audio type.
  • a function configuration interface for configuring the output audio types corresponding to the at least two peripheral audio output devices may be displayed.
  • the screen of the electronic device can be lit and the function configuration interface pops up.
  • the function configuration interface can be displayed in a floating pop-up window on the current display interface of the electronic device, or the function configuration interface can be displayed over the current display interface, which is not limited here.
  • the function configuration interface is displayed.
  • Step S230 Obtain the configuration operation acting on the function configuration interface, and obtain the correspondingly configured output audio types of the at least two peripheral audio output devices based on the configuration operation.
  • the electronic device after the electronic device displays the function configuration interface, it can detect and obtain the configuration operation acting on the function configuration interface, and then obtain the corresponding configuration of at least two peripheral audio output devices based on the obtained configuration operation.
  • the output audio type after the electronic device displays the function configuration interface, it can detect and obtain the configuration operation acting on the function configuration interface, and then obtain the corresponding configuration of at least two peripheral audio output devices based on the obtained configuration operation.
  • the output audio type after the electronic device displays the function configuration interface, it can detect and obtain the configuration operation acting on the function configuration interface, and then obtain the corresponding configuration of at least two peripheral audio output devices based on the obtained configuration operation.
  • the function configuration interface may display at least two peripheral audio output devices and display an output audio type selection control at the corresponding position of each peripheral audio output device, where the output audio type selection control may be used to select The operation selects the output audio type of the corresponding peripheral audio output device.
  • the output audio type selection control can be used to select whether the output audio type of the corresponding peripheral audio output device is the call audio type or the media audio type.
  • the call audio type is the output audio type of the corresponding peripheral audio output device, it can be determined based on the selection operation that the output audio type corresponding to the peripheral audio output device is the call audio type.
  • at least two external audio types can be obtained respectively. Set the output audio type corresponding to the configuration of the audio output device.
  • the function configuration interface can display at least two peripheral audio output devices and display an output audio type input box at the corresponding position of each peripheral audio output device, where the output audio type input box can be used for input-based
  • the content determines the output audio type of the corresponding peripheral audio output device.
  • the output audio type input box can be used to determine whether the output audio type of the corresponding peripheral audio output device is the call audio type or the media audio type.
  • the call audio type is the output audio type of the corresponding peripheral audio output device, it can be determined based on the input content corresponding to the input operation that the output audio type corresponding to the peripheral audio output device is the call audio type, and so on, can be obtained separately
  • At least two peripheral audio output devices correspond to the configured output audio types.
  • Step S240 When the audio is to be output, the audio type of the audio is acquired.
  • Step S250 Determine a target peripheral audio output device from the at least two peripheral audio output devices based on the audio type of the audio and the output audio type corresponding to the configuration of each peripheral audio output device.
  • Step S260 Output the audio through the target peripheral audio output device.
  • step S240 to step S260 please refer to step S130 to step S150, which will not be repeated here.
  • Step S270 When it is detected that the electronic device switches from being connected to the at least two peripheral audio output devices to being connected to one peripheral audio output device, output the audio through the one peripheral audio output device.
  • the audio during the process of the electronic device outputting audio through the target peripheral audio output device, it can be detected whether the connection state of the electronic device and the peripheral audio output device has changed.
  • the connection status of the output device is switched from connecting with at least two peripheral audio output devices to connecting with one peripheral audio output device, the audio will be output through one peripheral audio output device connected to the electronic device, that is, regardless of the audio type of the audio Whether it is a call audio type or a media audio type, the audio is output through a peripheral audio output device connected to the electronic device.
  • the output audio type corresponding to the first peripheral audio output device is the call audio type
  • the second peripheral audio output device corresponds to
  • the configured output audio type is a media audio type
  • the audio type of the audio to be output is a call audio type
  • the audio is output through the first peripheral audio output device. Then, in the process of audio output through the first peripheral audio output device, it can be detected whether the connection state between the electronic device and the first peripheral audio output device and the connection state with the second peripheral audio output device have changed.
  • the audio when it is detected that the electronic device is disconnected from the first peripheral audio output device and remains connected to the second peripheral audio output device, the audio is output through the second peripheral audio output device, and when the electronic device is detected When the device disconnects from the second peripheral audio output device and maintains the connection with the first peripheral audio output device, it outputs audio through the first audio output device.
  • Step S280 When it is detected that the electronic device is switched from being connected to the at least two peripheral audio output devices to not being connected to the peripheral audio output device, based on the audio type of the audio from the speaker and the electronic device Identify the target audio output device in the earpiece.
  • the electronic device has a built-in speaker and an earpiece, where both the speaker and the earpiece can be used to output audio.
  • the connection state of the electronic device and the peripheral audio output device it can be detected whether the connection state of the electronic device and the peripheral audio output device has changed.
  • the connection status of the output device is switched from connecting with at least two peripheral audio output devices to not connecting with the peripheral audio output device
  • one of the speakers and earpiece can be determined as the target audio output device based on the audio type of the audio currently to be output , That is, when it is detected that the electronic device is switched from being connected to at least two peripheral audio output devices to not being connected to the peripheral audio output device, the audio type of the audio to be output currently can be obtained, and based on the audio type of the audio to be output currently
  • the speaker of the electronic device is determined as the target audio output device, or the earpiece of the electronic device is determined as the target audio output device.
  • FIG. 4 shows a schematic flowchart of step S280 of the audio output method shown in FIG. 3 of the present application.
  • the following will elaborate on the process shown in FIG. 4, and the method may specifically include the following steps:
  • Step S281 When the audio type of the audio is the media audio type, determine the speaker of the electronic device as the target audio output device.
  • the audio type of audio to be output may include media audio type and call audio type.
  • the electronic device may default to the audio of the media audio type from the speaker when the electronic device is not connected to the peripheral audio output device. Output, audio that belongs to the call audio type can be output from the earpiece. Therefore, in this embodiment, when the electronic device switches from being connected to at least two peripheral audio output devices to not being connected to the peripheral audio output devices, when the audio type currently to be output is the media audio type, the The speaker of the electronic device is determined as the target audio output device, and when the audio type of the audio currently to be output is the call audio type, the earpiece of the electronic device can be determined as the target audio output device.
  • Step S282 When the audio type of the audio is the call audio type, determine the earpiece of the electronic device as the target audio output device.
  • Step S290 Output the audio through the target audio output device.
  • the audio can be output through the target audio output device. For example, if it is determined that the speaker is the target audio output device, audio can be output through the speaker, and if it is determined that the earpiece is the target audio output device, audio can be output through the earpiece.
  • the audio output method provided in another embodiment of the present application detects the current connection status of the electronic device with the peripheral audio output device, and when it is detected that the electronic device is connected to at least two peripheral audio output devices, the function configuration interface is displayed to obtain the effect In the configuration operation of the function configuration interface, the output audio types corresponding to the configuration of at least two peripheral audio output devices are respectively obtained based on the configuration operation. Obtain the audio type of the audio when the audio is to be output. Based on the audio type of the audio and the output audio type corresponding to each peripheral audio output device, determine the target peripheral audio output device from at least two peripheral audio output devices, and pass The target peripheral audio output device outputs audio.
  • the electronic device When it is detected that the electronic device switches from being connected to at least two peripheral audio output devices to being connected to one peripheral audio output device, output audio through the one peripheral audio output device.
  • the audio type based on the audio determines the target audio output device from the speaker and earpiece of the electronic device, and the target audio The output device outputs audio.
  • this embodiment when the electronic device is connected to at least two peripheral audio output devices, enter the function configuration interface to perform the output audio types corresponding to the at least two peripheral audio output devices. Configure to improve flexibility.
  • this embodiment also outputs audio through different devices or devices when the electronic device switches from connecting with at least two peripheral audio output devices to connecting with one peripheral audio output device or not connecting with the peripheral audio output device, To enhance the adaptability of electronic equipment.
  • FIG. 5 shows a schematic flowchart of an audio output method provided by another embodiment of the present application. This method is applied to the above-mentioned electronic equipment. The following will elaborate on the process shown in FIG. 5.
  • the audio output method may specifically include the following steps:
  • Step S310 Detect the current connection state of the electronic device with the peripheral audio output device.
  • step S310 For the specific description of step S310, please refer to step S110, which will not be repeated here.
  • Step S320 When it is detected that the electronic device is connected to the at least two peripheral audio output devices, obtain the pre-configured correspondence between the peripheral audio output device and the output audio type from the local of the electronic device.
  • the correspondence between the pre-configured peripheral audio output device and the output audio type can be obtained locally from the electronic device.
  • a function configuration interface for configuring the output audio types corresponding to the at least two peripheral audio output devices may be displayed, and the user interface may be obtained.
  • the output audio type corresponding to the configuration of at least two peripheral audio output devices is obtained based on the configuration operation, and the corresponding configuration of each peripheral audio output device of the at least two peripheral audio output devices is obtained.
  • the corresponding relationship between the peripheral audio output device and the output audio type can be established (as shown in Table 1), and the corresponding relationship can be stored in the local of the electronic device, so that every time the electronic device is detected and at least When two peripheral audio output devices are connected, both can directly determine the output audio type corresponding to the connected peripheral audio output device from the corresponding relationship stored in the electronic device, so as to speed up the output of the connected peripheral audio output device corresponding configuration The acquisition speed of the audio type.
  • Peripheral audio output device Output audio type Peripheral audio output device 1 Output audio type 1 Peripheral audio output device 2 Output audio type 2 Peripheral audio output device 3 Output audio type 3
  • Step S330 Based on the corresponding relationship, respectively obtain the output audio types corresponding to the configuration of the at least two peripheral audio output devices.
  • the output audio types corresponding to the configuration of the at least two peripheral audio output devices connected to the electronic device can be obtained respectively. For example, when the electronic device is connected to the peripheral audio output device 1 and the peripheral audio output device 2, based on the corresponding relationship, it can be determined that the output audio type corresponding to the peripheral audio output device 1 is output audio type 1. It is assumed that the output audio type corresponding to the configuration of the audio output device 2 is output audio type 2.
  • Step S340 When the audio is to be output, obtain the audio type of the audio.
  • Step S350 Determine a target peripheral audio output device from the at least two peripheral audio output devices based on the audio type of the audio and the output audio type corresponding to the configuration of each peripheral audio output device.
  • Step S360 Output the audio through the target peripheral audio output device.
  • step S340-step S360 please refer to step S130-step S150 for the description, which will not be repeated here.
  • Step S370 When it is detected that the electronic device switches from being connected to the at least two peripheral audio output devices to being connected to one peripheral audio output device, output the audio through the one peripheral audio output device.
  • Step S380 When it is detected that the electronic device is switched from being connected to the at least two peripheral audio output devices to not being connected to the peripheral audio output device, based on the audio type of the audio from the speaker and Identify the target audio output device in the earpiece.
  • Step S390 Output the audio through the target audio output device.
  • step S370-step S390 please refer to step S270-step S290, which will not be repeated here.
  • the audio output method provided by another embodiment of the present application detects the current connection state of the electronic device with the peripheral audio output device, and when it is detected that the electronic device is connected to at least two peripheral audio output devices, obtain the advance information from the local of the electronic device.
  • the configured corresponding relationship between the peripheral audio output device and the output audio type, and the corresponding configured output audio types of the at least two peripheral audio output devices are obtained based on the corresponding relationship.
  • Based on the audio type of the audio and the output audio type corresponding to the configuration of each peripheral audio output device determine the target peripheral audio output device from at least two peripheral audio output devices, and pass The target peripheral audio output device outputs audio.
  • the audio-based audio type determines the target audio output device from the speaker and earpiece of the electronic device, and the target audio The output device outputs audio.
  • the pre-configured peripheral audio output device and output audio type are obtained locally from the electronic device.
  • this embodiment also outputs audio through different devices or devices when the electronic device switches from connecting with at least two peripheral audio output devices to connecting with one peripheral audio output device or not connecting with the peripheral audio output device, To enhance the adaptability of electronic equipment.
  • the at least two peripheral audio output devices include a first peripheral audio output device and a second peripheral audio output device. Two peripheral audio output devices, the first peripheral audio output device is correspondingly configured with a first output audio type, and the second peripheral audio output device is correspondingly configured with a second output audio type.
  • the audio output method may specifically include the following step:
  • Step S410 Detect the current connection state of the electronic device with the peripheral audio output device.
  • Step S420 When it is detected that the electronic device is connected to at least two peripheral audio output devices, respectively obtain the output audio types corresponding to the configuration of the at least two peripheral audio output devices.
  • Step S430 When the audio is to be output, obtain the audio type of the audio.
  • step S410-step S430 please refer to step S110-step S130, which will not be repeated here.
  • Step S440 When the audio type of the audio matches the first output audio type, determine the first peripheral audio output device as the target peripheral audio output device.
  • the at least two peripheral audio output devices connected to the electronic device include a first peripheral audio output device and a second peripheral audio output device, and the first peripheral audio output device is correspondingly configured with a first output audio type,
  • the second peripheral audio output device corresponds to the second output audio type, where the first peripheral audio output device may include a wired peripheral audio output device, for example, a wired headset, and the second peripheral audio output device may include a Bluetooth peripheral Audio output device, for example, Bluetooth headset.
  • the audio type of the audio to be output may be compared with the first output audio type and the second output audio type to determine whether the audio type of the audio to be output Match with the first output audio type, and whether it matches with the second output audio type, wherein, when the judgment result indicates that the audio type of the audio to be output matches the first output audio type, the first output audio type corresponding to the first output audio type may be selected.
  • a peripheral audio output device is determined to be the target peripheral audio output device.
  • the second peripheral audio corresponding to the second output audio type may be selected The output device is determined as the target peripheral audio output device.
  • Step S450 When the audio type of the audio matches the second output audio type, determine the second peripheral audio output device as the target peripheral audio output device.
  • Step S460 Output the audio through the target peripheral audio output device.
  • step S460 please refer to step S150, which will not be repeated here.
  • the audio output method provided in yet another embodiment of the present application detects the current connection status of the electronic device with the peripheral audio output device, and when it is detected that the electronic device is connected to at least two peripheral audio output devices, obtain at least two external audio output devices respectively.
  • the audio is to be output, obtain the audio type of the audio.
  • the audio type of the audio matches the first output audio type, determine the first peripheral audio output device as the target peripheral
  • the second peripheral audio output device is determined as the target peripheral audio output device, and the audio is output through the target peripheral audio output device.
  • this embodiment also performs audio output through a peripheral audio output device corresponding to the output audio type that matches the audio type of the audio, so as to meet the configuration requirements of the user and improve the user experience.
  • FIG. 7 shows a block diagram of the audio output device 400 provided by an embodiment of the present application.
  • the audio output device 400 is applied to the above-mentioned electronic equipment. The following will describe the block diagram shown in FIG. 7.
  • the audio output device 400 includes: a connection state detection module 410, an output audio type acquisition module 420, an audio type acquisition module 430, The target peripheral audio output device determining module 440 and the audio output module 450, wherein:
  • the connection state detection module 410 is configured to detect the current connection state of the electronic device and the peripheral audio output device.
  • the output audio type obtaining module 420 is configured to obtain output audio types corresponding to the at least two peripheral audio output devices when it is detected that the electronic device is connected to at least two peripheral audio output devices.
  • the output audio type obtaining module 420 includes: a function configuration interface display sub-module and a first output audio type obtaining sub-module, wherein:
  • the function configuration interface display sub-module is configured to display a function configuration interface when it is detected that the electronic device is connected to the at least two peripheral audio output devices, and the function configuration interface is used to configure the at least two peripherals The output audio type corresponding to the audio output device.
  • the first output audio type acquisition sub-module is configured to acquire the configuration operation acting on the function configuration interface, and respectively acquire the output audio types corresponding to the configuration of the at least two peripheral audio output devices based on the configuration operation.
  • the output audio type obtaining module 420 includes: a corresponding relationship obtaining sub-module and a second output audio type obtaining sub-module, wherein:
  • Correspondence acquisition sub-module used to obtain the pre-configured peripheral audio output device and output audio type from the local of the electronic device when it is detected that the electronic device is connected to the at least two peripheral audio output devices Correspondence.
  • the second output audio type obtaining sub-module is configured to obtain the output audio types corresponding to the configuration of the at least two peripheral audio output devices based on the corresponding relationship.
  • the audio type obtaining module 430 is configured to obtain the audio type of the audio when the audio is to be output.
  • the target peripheral audio output device determining module 440 is configured to determine the target peripheral from the at least two peripheral audio output devices based on the audio type of the audio and the output audio type corresponding to the configuration of each peripheral audio output device Audio output device.
  • the at least two peripheral audio output devices include a first peripheral audio output device and a second peripheral audio output device, the first peripheral audio output device is correspondingly configured with a first output audio type, and the first peripheral audio output device is configured with a first output audio type.
  • the second peripheral audio output device is correspondingly configured with the second output audio type.
  • the target peripheral audio output device determining module 440 includes: a first target peripheral audio output device determining sub-module and a second target peripheral audio output device determining sub-module ,among them:
  • the first target peripheral audio output device determining submodule is configured to first determine the first peripheral audio output device as the target external device when the audio type of the audio matches the first output audio type. Set up audio output device.
  • the first target peripheral audio output device determining sub-module is configured to determine the second peripheral audio output device as the target peripheral audio when the audio type of the audio matches the second output audio type Output device.
  • the audio output module 450 is configured to output the audio through the target peripheral audio output device.
  • the audio output device 400 further includes: a first audio output module, wherein:
  • the first audio output module is configured to output through the one peripheral audio output device when it is detected that the electronic device switches from being connected to the at least two peripheral audio output devices to being connected to one peripheral audio output device The audio.
  • the audio output device 400 further includes: a target audio output device determining module and a second audio output module, wherein:
  • the target audio output device determination module is configured to switch from the audio type based on the audio when it is detected that the electronic device is switched from being connected to the at least two peripheral audio output devices to not being connected to the peripheral audio output device.
  • the target audio output device is determined in the speaker and earpiece of the electronic device.
  • the audio type of the audio includes a media audio type and a call audio type
  • the target audio output device determining module includes: a first target audio output device determining sub-module and a second target audio output device determining sub-module, wherein:
  • the first target audio output device determining sub-module is configured to determine the speaker of the electronic device as the target audio output device when the audio type of the audio is a media audio type.
  • the second target audio output device determining submodule is configured to determine the earpiece of the electronic device as the target audio output device when the audio type of the audio is the call audio type.
  • the second audio output module is configured to output the audio through the target audio output device.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or software functional modules.
  • FIG. 8 shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, or an e-book.
  • the electronic device 100 in this application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more application programs, of which one or more application programs may be stored in the memory 120 and configured To be executed by one or more processors 110, one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and calling data stored in the memory 120.
  • Various functions and processing data of the electronic device 100 may use at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), a modem, and the like.
  • the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing the content to be displayed; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented by a communication chip alone.
  • the memory 120 may include random access memory (RAM) or read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, code sets or instruction sets.
  • the memory 120 may include a program storage area and a data storage area, where the program storage area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, image playback function, etc.) , Instructions used to implement the following various method embodiments, etc.
  • the storage data area can also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.
  • FIG. 9 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 500 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
  • the computer-readable storage medium 500 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 500 has a storage space for the program code 510 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • the program code 510 may be compressed in a suitable form, for example.
  • the audio output method, device, electronic device, and storage medium detect the current connection status of the electronic device with the peripheral audio output device, and when the electronic device and at least two peripheral audio output devices are detected When the device is connected, obtain the output audio type corresponding to the configuration of at least two peripheral audio output devices, and obtain the audio type of the audio when the audio is to be output, based on the audio type of the audio and the output audio corresponding to the configuration of each peripheral audio output device Type, determine the target peripheral audio output device from at least two peripheral audio output devices, and output audio through the target peripheral audio output device, thereby obtaining each audio output device when the electronic device is connected to at least two peripheral audio output devices Peripheral audio output devices correspond to the configured output audio types, and output different types of audio through different peripheral audio output devices to improve the flexibility of audio output.

Abstract

一种音频输出方法、装置、电子设备以及存储介质,涉及电子设备技术领域。方法包括:检测电子设备当前与外设音频输出设备的连接状态(S110);当检测到电子设备与至少两个外设音频输出设备连接时,分别获取至少两个外设音频输出设备对应配置的输出音频类型(S120);当音频待输出时,获取音频的音频类型(S130);基于音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从至少两个外设音频输出设备中确定目标外设音频输出设备(S140);通过目标外设音频输出设备输出音频(S150)。

Description

音频输出方法、装置、电子设备以及存储介质
相关申请的交叉引用
本申请要求于2019年12月24日提交的申请号为CN201911349069.4的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及电子设备技术领域,更具体地,涉及一种音频输出方法、装置、电子设备以及存储介质。
背景技术
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。目前,电子设备可以与外设音频输出设备连接,以通过外设音频输出设备进行音频输出。
发明内容
鉴于上述问题,本申请提出了一种音频输出方法、装置、电子设备以及存储介质,以解决上述问题。
第一方面,本申请实施例提供了一种音频输出方法,应用于电子设备,所述方法包括:检测所述电子设备当前与外设音频输出设备的连接状态;当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型;当音频待输出时,获取所述音频的音频类型;基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备;通过所述目标外设音频输出设备输出所述音频。
第二方面,本申请实施例提供了一种音频输出装置,应用于电子设备,所述装置包括:连接状态检测模块,用于检测所述电子设备当前与外设音频输出设备的连接状态;输出音频类型获取模块,用于当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型;音频类型获取模块,用于当音频待输出时,获取所述音频的音频类型;目标外设音频输出设备确定模块,用于基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备;音频输出模块,用于通过所述目标外设音频输出设备输出所述音频。
第三方面,本申请实施例提供了一种电子设备,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行上述方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行上述方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1示出了可用于本申请实施例提供的音频输出方法的应用环境示意图;
图2示出了本申请一个实施例提供的音频输出方法的流程示意图;
图3示出了本申请又一个实施例提供的音频输出方法的流程示意图;
图4示出了本申请的图3所示的音频输出方法的步骤S280的流程示意图;
图5示出了本申请再一个实施例提供的音频输出方法的流程示意图;
图6示出了本申请另一个实施例提供的音频输出方法的流程示意图;
图7示出了本申请实施例提供的音频输出装置的模块框图;
图8示出了本申请实施例用于执行根据本申请实施例的音频输出方法的电子设备的框图;
图9示出了本申请实施例的用于保存或者携带实现根据本申请实施例的音频输出方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
随着用户对电子设备的要求越来越高,因此,电子设备为了满足用户的需求以及为用户提供方便,开始支持播放音频数据,例如,播放音频、播放视频、语音聊天、视频聊天等。其中,电子设备的音频架构和计算机的音频架构类似,主要是由处理器和内置音频CODEC(编解码器)来完成。具体地,处理器接收音频数据的输入后,转化成I2S信号,并传输至CODEC转换成模拟信号,然后进行播放。
进一步地,电子设备可以与外设音频输出设备连接,通过所述外设音频输出设备输出音频数据,具体地,该外设音频输出设备可以接收电子设备传输过来的音频数据,并将音频数据进行播放,其中,该外设音频输出设备可以包括耳机、音箱以及车载设备等。其中,电子设备与外设音频输出设备可以通过无线保真(Wireless Fidelity,WiFi)连接进行数据传输,电子设备与外设音频输出设备可以通过蓝牙(Bluetooth,BT)连接进行数据传输,电子设备与外设音频输出设备可以通过有线连接进行输出传输等。
其中,电子设备还可以同时与多个外设音频输出设备连接,例如,电子设备可以通过蓝牙与耳机连接的同时,通过有线与音响连接,又例如,电子设备可以同时通过蓝牙与耳机和音响连接,或者可以同时通过蓝牙与第一耳机和第二耳机连接等。但是,发明人经过研究发现,电子设备在同时与多个外设音频输出设备连接时,电子设备的音频仅能从其中一个外设音频输出设备输出,且输出逻辑是固定的,例如,当电子设备通过蓝牙与耳机连接的同时,通过有线与音响连接,则电子设备可能仅从耳机输出,造成用户体验不佳。
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的音频输出方法、装置、电子设备以及存储介质,通过在电子设备与至少两个外设音频输出设备连接时,获取每个外设音频输出设备对应配置的输出音频类型,并通过不同的外设音频输出设备对应输出不同类型的音频,提升音频输出的灵活性。其中,具体的音频输出方法在后续的实施例中进行详细的说明。
下面将针对可用于本申请实施例提供的音频输出方法的应用环境进行描述。
请参阅图1,图1示出了可用于本申请实施例提供的音频输出方法的应用环境示意图。其包括:电子设备100、第一外设音频输出设备200以及第二外设音频输出设备300,其中,电子设备100分别与第一外设音频输出设备200和第二外设音频输出设备300连接,以实现电子设备100的音频通过第一外设音频输出设备200或第二外设音频输出设备300输出。当然,电子设备100还可以与其他更多的外设音频输出设备连接,例如,电子设备100还可以与第三外设音频输出设备、第四外设音频输出设备……第N外设音频输出设备等,在此不做限定。
其中,电子设备100一般都有蓝牙模块,蓝牙模块可以是指集成蓝牙功能的芯片基本电路集合,用于无线网络通讯。进一步地,电子设备100可以通过蓝牙模块与第一外设音频输出设备200进行蓝牙连接。另外,电子设备100一般都设置有数据接口,数据接口用于实现电子设备100与外设的连接,则电子设备可以通过数据接口与第二外设音频输出设备300进行有线连接。当然,电子设备100还可以通过其他更多的方式与第一外设音频输出设备200和第二外设音频输出设备300连接,在此不做限定。
请参阅图2,图2示出了本申请一个实施例提供的音频输出方法的流程示意图。所述音频输出方法用于通过在电子设备与至少两个外设音频输出设备连接时,获取每个外设音频输出设备对应配置的输出音频类型,并通过不同的外设音频输出设备对应输出不同类型的音频,提升音频输出的灵活性。在具体的实施例中,所述音频输出方法应用于如图6所示的音频输出装置400以及配置有所述音频输出装置400的电子设备100(图7)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为台式电脑、平板电脑、智能手机、穿戴式电子设备等,在此不做限定。下面将针对图2所示的流程进行详细的阐述,所述音频输出方法具体可以包括以下步骤:
步骤S110:检测所述电子设备当前与外设音频输出设备的连接状态。
在一些实施方式中,可以对电子设备当前与外设音频输出设备的连接状态进行检测。其中,可以实时检测电子设备当前与外设音频输出设备的连接状态,可以间隔预设时长检测电子设备与外设音频输出设备的连接状态,可以按预设时间检测电子设备与外设音频输出设备的连接状态,也可以按用户设置的方式检测电子设备与外设音频输出设备的连接状态等,在此不做限定。
其中,电子设备与外设音频输出设备之间的连接状态可以包括处于连接状态和没有处于连接状态,且没有处于连接状态包括非连接状态和连接中状态。作为一种方式,可以通过查看电子设备的状态值的方式来判断电子设备和外设音频输出设备之间是否处于连接状态,具体地,当电子设备连接外设音频输出设备时,返回第一状态值,当电子设备断开与外设音频输出设备的连接时,返回第二状态值,从而可以通过检测第一状态值和第二状态值的方式确定电子设备是否与外设音频输出设备处于连接状态。作为另一种方式,Android系统在连接外设音频输出设备或断开外设音频输出设备的时候都会发送广播,所以,电子设备可以通过监听广播的方式,确定电子设备是否与外设音频输出设备处于连接状态。
在一些实施方式中,在检测到电子设备与外设音频输出设备处于连接状态时,还可以对与电子设备处于连接状态的外设音频输出设备的数量进行检测。作为一种方式,可以通过查看电子设备的状态值的方式来确定与电子设备处于连接状态的外设音频输出设备的数量,具体地,当电子设备连接一个外设音频输出设备时,返回第三状态值,当电子设备连接两个外设音频输出设备时,返回第四状态值,以此类推,从而可以通过检测第三状态值、第四状态值、……的方式确定与电子设备处于连接状态的外设音频输出设备的数量。
步骤S120:当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
在一些实施方式中,当检测结果表征电子设备没有与外设音频输出设备连接时,则可以通过电子设备内置的装置进行音频输出。例如,当检测结果表征电子设备没有与外设音频输出设备连接时,则可以通过电子设备内置的听筒或扬声器等进行音频输出。
在一些实施方式中,当检测结果表征电子设备与一个外设音频输出设备连接时,则可以通过与电子设备连接的一个外设音频输出设备进行音频输出,其中,电子设备可以通过WiFi与一个外设音频输出设备连接,可以通过有线与一个外设音频输出设备连接,可以通过蓝牙与一个外设音频输出设备连接,可以通过ZigBee与一个外设音频输出设备连接等,在此不做限定。例如,当检测结果表征电子设备通过WiFi、蓝牙、有线、或ZigBee与一个耳机连接时,则可以通过与电子设备连接的一个耳机进行音频输出。
在一些实施方式中,当检测结果表征电子设备与至少两个外设音频输出设备连接时,则可以分别获取至少两个外设音频输出设备对应配置的输出音频类型。以电子设备与两个外设音频输出设备连接,且两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备为例,则当检测结果表征电子设备与第一外设音频输出设备和第二外设音频输出设备连接时,则可以分别获取第一外设音频输出设备对应配置的输出音频类型,以及第二外设音频输出设备对应配置的输出音频类型。作为一种方式,电子设备可以通过同一方式同时与第 一外设音频输出设备和第二外设音频输出设备连接,例如,电子设备可以通过WiFi同时与第一外设音频输出设备和第二外设音频输出设备连接;电子设备可以通过有线同时与第一外设音频输出设备和第二外设音频输出设备连接;电子设备可以通过蓝牙同时与第一外设音频输出设备和第二外设音频输出设备连接;电子设备可以通过ZigBee同时与第一外设音频输出设备和第二外设音频输出设备连接等,在此不做限定。作为另一种方式,电子设备可以通过不同的方式同时与第一外设音频输出设备和第二外设音频输出设备连接,例如,电子设备可以通过WiFi与第一外设音频输出设备连接,且通过蓝牙与第二外设音频输出设备连接;电子设备可以通过蓝牙与第一外设音频输出设备连接,且通过有线与第二外设音频输出设备连接;电子设备可以通过有线与第一外设音频输出设备连接,且通过ZigBee与第二外设音频输出设备连接等,在此不做限定。
其中,输出音频类型可以包括媒体音频类型和通话音频类型,其中,媒体音频类型下的音频可以包括:音乐播放软件输出的音频、视频播放软件输出的音频、搜索软件输出的音频等,通话音频类型下的音频可以包括:通话(电话)软件输出的音频、社交软件在语音或视频过程中输出的音频等。
在一些实施方式中,当检测到电子设备与至少两个外设音频输出设备连接时,可以获取至少两个外设音频输出设备中的每个外设音频输出设备的属性信息,并基于每个外设音频输出设备的属性信息确定其对应配置的输出音频类型。例如,若至少两个外设音频输出设备包括耳机和音响时,则可以分别获取耳机的属性信息和音响的属性信息,并基于耳机的属性信息获取耳机对应配置的输出音频类型,以及基于音响的属性信息获取音响对应配置的输出音频类型,例如,耳机的属性信息为减小声音的传播范围,音响的属性信息为扩大声音的传播范围,则基于耳机减小声音的传播范围的特性对应配置的输出音频类型可以为通话音频类型,基于音响扩大声音的传播范围的特征对应配置的输出音频类型可以为媒体音频类型。
在一些实施方式中,当检测到电子设备与至少两个外设音频输出设备连接时,可以获取电子设备所处环境的网络质量和电子设备与每个外设音频输出设备的连接方式,并基于电子设备所处环境的网络质量和电子设备与每个外设音频输出设备的连接方式,确定每个外设音频输出设备对应配置的输出音频类型。例如,若至少两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备,且电子设备与第一外设音频输出设备的连接方式为有线连接,电子设备与第二外设音频输出设备的连接方式为蓝牙连接,则可以基于电子设备所述环境的网络质量,获取与电子设备有线连接的第一外设音频输出设备的输出音频类型,以及与电子设备蓝牙连接的第二外设音频输出设备的输出音频类型。如果电子设备所处环境的网络质量较好,则可以确定第一外设音频输出设备的输出音频类型为媒体音频类型,第二外设音频输出设备的输出音频类型为通话音频类型,或者可以确定第一外设音频输出设备的输出音频类型为通话音频类型,第二外设音频输出设备的输出音频类型为媒体音频类型;如果电子设备所处环境的网络质量较差,则可以确定第一外设音频输出设备的输出音频类型为媒体音频类型和通话音频类型,第二外设音频输出设备对应配置的的输出音频类型为无。
在一些实施方式中,当检测结果表征电子设备与至少两个外设音频输出设备连接时,显示功能配置界面,该功能配置界面用于配置至少两个外设音频输出设备对应的输出音频类型,获取作用于功能配置界面的配置操作,基于配置操作分别获取至少两个外设音频输出设备对应配置的输出音频类型。
在一些实施方式中,当检测结果表征电子设备与至少两个外设音频输出设备连接时,从电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系,基于对应关系,分别获取至少两个外设音频输出设备对应配置的输出音频类型。
步骤S130:当音频待输出时,获取所述音频的音频类型。
在本实施例中,当电子设备存在待输出的音频时,可以获取电子设备待输出音频的音频类型。在一些实施方式中,当电子设备拨打去电、接收来电时、播放媒体音频时,可以确定电子设备存在待输出的音频,则可以获取待输出音频的音频类型。其中,电子设备可以通过 内置的监听模块对来电或去电进行实时监听,当监听到电子设备处于响铃开始(CALL_STATE_RINGING)来电时或拨打操作去电时,可以确定电子设备存在待输出的音频,其中,在电子设备进行拨打去电时,会发出系统广播,可以使用BroadcastReceiver来监听。其中,电子设备可以对作用于媒体音频播放类软件上的操作进行检测,当检测到用于指示媒体音频播放类软件进行音频播放的语音指令或触控操作时,可以确定电子设备存在待输出的音频,其中,媒体音频播放类软件可以包括但不限于音频播放类软件、视频播放类软件、搜索类软件。
在一些实施方式中,音频的音频类型可以包括媒体音频类型和通话音频类型,因此,在本实施例中,电子设备在确定存在待输出的音频时,可以判断该音频的音频类型为媒体音频类型还是通话音频类型。作为一种方式,可以对电子设备待输出音频的音频来源进行分析,当分析结果表征待输出音频的音频来源为通话软件或者社交软件中的视频通话或语音通话时,可以确定待输出音频的音频类型为通话音频类型,当分析结果表征待输出音频的音频来源为媒体音频播放类软件(如音频播放软件、视频播放软件)时,可以确定待输出音频的音频类型为媒体音频类型。
步骤S140:基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备。
在一些实施方式中,待输出音频的音频类型为通话音频类型或媒体音频类型,每个外设音频输出设备对应配置的输出音频类型为通话音频类型或媒体音频类型,因此,可以基于音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从至少两个外设音频输出设备中确定与音频的音频类型匹配的外设音频输出设备作为目标外设音频输出设备。
在一些实施方式中,假设至少两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备,且第一外设音频输出设备对应配置的音频输出类型为通话音频类型,第二外设音频输出设备对应配置的音频输出类型为媒体音频类型。那么,在获取待输出音频的音频类型后,可以判断待输出音频的音频类型是通话音频类型还是媒体音频类型,当判断结果表征待输出音频的音频类型为通话音频类型时,可以将第一外设音频输出设备确定为目标外设音频输出设备,当判断结果表征待输出音频的音频类型为媒体音频类型时,可以将第二外设音频输出设备确定为目标外设音频输出设备。
例如,假设第一外设音频输出设备为有线耳机,第二外设音频输出设备为蓝牙耳机,且有线耳机对应配置的音频输出类型为通话音频类型,蓝牙耳机对应配置的音频输出类型为媒体音频类型。那么,在获取待输出音频的音频类型后,可以判断待输出音频的音频类型是通话音频类型还是媒体音频类型,当判断结果表征待输出音频的音频类型为通话音频类型时,可以将有线耳机确定为目标外设音频输出设备,当判断结果表征待输出音频的音频类型为媒体音频类型时,可以将蓝牙耳机确定为目标外设音频输出设备。
步骤S150:通过所述目标外设音频输出设备输出所述音频。
在一些实施方式中,在确定目标外设音频输出设备后,可以通过目标外设音频输出设备输出该音频。例如,如果确定有线耳机作为目标外设音频输出设备,则可以通过有线耳机输出音频,如果确定蓝牙耳机作为目标外设音频输出设备,则可以通过蓝牙耳机输出音频。
本申请一个实施例提供的音频输出方法,检测电子设备当前与外设音频输出设备的连接状态,当检测到电子设备与至少两个外设音频输出设备连接时,分别获取至少两个外设音频输出设备对应配置的输出音频类型,当音频待输出时获取音频的音频类型,基于音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从至少两个外设音频输出设备中确定目标外设音频输出设备,通过目标外设音频输出设备输出音频,从而通过在电子设备与至少两个外设音频输出设备连接时,获取每个外设音频输出设备对应配置的输出音频类型,并通过不同的外设音频输出设备对应输出不同类型的音频,提升音频输出的灵活性。
请参阅图3,图3示出了本申请又一个实施例提供的音频输出方法的流程示意图。该方法应用于上述电子设备,下面将针对图3所示的流程进行详细的阐述,所述音频输出方法具体可以包括以下步骤:
步骤S210:检测所述电子设备当前与外设音频输出设备的连接状态。
其中,步骤S210的具体描述请参阅步骤S110,在此不再赘述。
步骤S220:当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,所述功能配置界面用于配置所述至少两个外设音频输出设备对应的输出音频类型。
在本实施例中,当检测结果表征电子设备与至少两个外设音频输出设备连接时,可以显示用于配置至少两个外设音频输出设备对应的输出音频类型的功能配置界面。在一些实施方式中,当检测到电子设备与至少两个外设音频输出设备连接时,如果电子设备处于息屏状态,则可以点亮电子设备的屏幕并弹窗显示功能配置界面,如果电子设备处于亮屏状态,则可以在电子设备的当前显示界面上悬浮弹窗显示功能配置界面,或者覆盖当前显示界面显示功能配置界面,在此不做限定。
在一些实施方式中,每当检测到电子设备与至少两个外设音频输出设备连接时,均显示功能配置界面。
步骤S230:获取作用于所述功能配置界面的配置操作,基于所述配置操作分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
在本实施例中,电子设备在显示功能配置界面后,可以对作用于功能配置界面上的配置操作进行检测并获取,再基于获取到的配置操作分别获取至少两个外设音频输出设备对应配置的输出音频类型。
在一些实施方式中,功能配置界面可以显示至少两个外设音频输出设备以及在每个外设音频输出设备的对应位置显示输出音频类型选择控件,其中,输出音频类型选择控件可以用于基于选择操作选择对应外设音频输出设备的输出音频类型,例如,输出音频类型选择控件可以用于选择对应外设音频输出设备的输出音频类型为通话音频类型还是媒体音频类型,其中,当选择操作指示选择通话音频类型为对应外设音频输出设备的输出音频类型时,可以基于该选择操作确定该外设音频输出设备对应配置的输出音频类型为通话音频类型,以此类推,可以分别获取至少两个外设音频输出设备对应配置的输出音频类型。
在一些实施方式中,功能配置界面可以显示至少两个外设音频输出设备以及在每个外设音频输出设备的对应位置显示输出音频类型输入框,其中,输出音频类型输入框可以用于基于输入内容确定对应外设音频输出设备的输出音频类型,例如,输出音频类型输入框可以用于确定对应外设音频输出设备的输出音频类型为通话音频类型还是媒体音频类型,其中,当输入内容指示选择通话音频类型为对应外设音频输出设备的输出音频类型时,可以基于该输入操作对应的输入内容确定该外设音频输出设备对应配置的输出音频类型为通话音频类型,以此类推,可以分别获取至少两个外设音频输出设备对应配置的输出音频类型。
步骤S240:当音频待输出时,获取所述音频的音频类型。
步骤S250:基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备。
步骤S260:通过所述目标外设音频输出设备输出所述音频。
其中,步骤S240-步骤S260的具体描述请参阅步骤S130-步骤S150,在此不再赘述。
步骤S270:当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接时,通过所述一个外设音频输出设备输出所述音频。
在一些实施方式中,在电子设备通过目标外设音频输出设备输出音频的过程中,可以检测电子设备与外设音频输出设备的连接状态是否发生变化,其中,当检测到电子设备与外设音频输出设备的连接状态从与至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接时,则通过与电子设备连接的一个外设音频输出设备输出音频,即无论音频的音频类 型是通话音频类型还是媒体音频类型,该音频均通过与电子设备连接的一个外设音频输出设备输出。
例如,假设电子设备与第一外设音频输出设备和第二外设音频输出设备连接,且第一外设音频输出设备对应配置的输出音频类型为通话音频类型,第二外设音频输出设备对应配置的输出音频类型为媒体音频类型,当待输出音频的音频类型为通话音频类型时,该音频通过第一外设音频输出设备输出。那么,在音频通过第一外设音频输出设备输出的过程中,可以检测电子设备与第一外设音频输出设备的连接状态和与第二外设音频输出设备的连接状态是否发生变化。其中,当检测到电子设备断开与第一外设音频输出设备的连接,且保持与第二外设音频输出设备的连接时,则通过第二外设音频输出设备输出音频,当检测到电子设备断开与第二外设音频输出设备的连接,且保持与第一外设音频输出设备的连接时,则通过第一音频输出设备输出音频。
步骤S280:当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,基于所述音频的音频类型从所述电子设备的扬声器和听筒中确定目标音频输出装置。
在本实施例中,电子设备内置有扬声器和听筒,其中,扬声器和听筒均可以用于输出音频。
在一些实施方式中,在电子设备通过目标外设音频输出设备输出音频的过程中,可以检测电子设备与外设音频输出设备的连接状态是否发生变化,其中,当检测到电子设备与外设音频输出设备的连接状态从与至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,则可以基于当前待输出音频的音频类型从扬声器和听筒中确定一个作为目标音频输出装置,即当检测到电子设备从与至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,可以获取当前待输出音频的音频类型,并基于当前待输出音频的音频类型将电子设备的扬声器确定为目标音频输出装置,或者将电子设备的听筒确定为目标音频输出装置。
请参阅图4,图4示出了本申请的图3所示的音频输出方法的步骤S280的流程示意图。下面将针对图4所示的流程进行详细的阐述,所述方法具体可以包括以下步骤:
步骤S281:当所述音频的音频类型为媒体音频类型时,将所述电子设备的扬声器确定为所述目标音频输出装置。
在一些实施方式中,待输出音频的音频类型可以包括媒体音频类型和通话音频类型,其中,电子设备可以默认在电子设备没有与外设音频输出设备连接时,属于媒体音频类型的音频可以从扬声器输出,属于通话音频类型的音频可以从听筒输出。因此,在本实施例中,当电子设备从与至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,在当前待输出音频的音频类型为媒体音频类型时,可以将电子设备的扬声器确定为目标音频输出装置,在当前待输出音频的音频类型为通话音频类型时,可以将电子设备的听筒确定为目标音频输出装置。
步骤S282:当所述音频的音频类型为通话音频类型时,将所述电子设备的听筒确定为所述目标音频输出装置。
步骤S290:通过所述目标音频输出装置输出所述音频。
在一些实施方式中,在确定目标音频输出装置后,可以通过目标音频输出装置输出该音频。例如,如果确定扬声器作为目标音频输出装置,则可以通过扬声器输出音频,如果确定听筒作为目标音频输出装置,则可以通过听筒输出音频。
本申请又一个实施例提供的音频输出方法,检测电子设备当前与外设音频输出设备的连接状态,当检测到电子设备与至少两个外设音频输出设备连接时,显示功能配置界面,获取作用于功能配置界面的配置操作,基于该配置操作分别获取至少两个外设音频输出设备对应配置的输出音频类型。当音频待输出时获取音频的音频类型,基于音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从至少两个外设音频输出 设备中确定目标外设音频输出设备,通过目标外设音频输出设备输出音频。当检测到电子设备从与至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接时,通过该一个外设音频输出设备输出音频。当检测到电子设备从与至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,基于音频的音频类型从电子设备的扬声器和听筒中确定目标音频输出装置,通过目标音频输出装置输出音频。相较于图2所示的音频输出方法,本实施例还在电子设备与至少两个外设音频输出设备连接时,进入功能配置界面进行至少两个外设音频输出设备对应的输出音频类型的配置,提升灵活性。另外,本实施例还在电子设备从与至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接或没有与外设音频输出设备连接时,通过不同的设备或装置输出音频,以提升电子设备的适应性。
请参阅图5,图5示出了本申请再一个实施例提供的音频输出方法的流程示意图。该方法应用于上述电子设备,下面将针对图5所示的流程进行详细的阐述,所述音频输出方法具体可以包括以下步骤:
步骤S310:检测所述电子设备当前与外设音频输出设备的连接状态。
其中,步骤S310的具体描述请参阅步骤S110,在此不再赘述。
步骤S320:当检测到所述电子设备与所述至少两个外设音频输出设备连接时,从所述电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系。
在本实施例中,当检测结果表征电子设备与至少两个外设音频输出设备连接时,可以从电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系。在一些实施方式中,当检测到电子设备首次与至少两个外设音频输出设备连接时,可以显示用于配置至少两个外设音频输出设备对应的输出音频类型的功能配置界面,并获取用于与功能配置界面的配置操作,基于配置操作分别获取至少两个外设音频输出设备对应配置的输出音频类型,在获取至少两个外设音频输出设备中的每个外设音频输出设备对应配置的输出音频类型后,可以建立外设音频输出设备和输出音频类型的对应关系(如表1所示),并将该对应关系存储在电子设备的本地,以在之后每检测到电子设备与至少两个外设音频输出设备连接时,均可以直接从电子设备存储的对应关系中确定所连接的外设音频输出设备对应配置的输出音频类型,以加快连接的外设音频输出设备对应配置的输出音频类型的获取速度。
表1
外设音频输出设备 输出音频类型
外设音频输出设备1 输出音频类型1
外设音频输出设备2 输出音频类型2
外设音频输出设备3 输出音频类型3
步骤S330:基于所述对应关系,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
在一些实施方式中,在获取外设音频输出设备和输出音频类型的对应关系后,可以分别获取电子设备所连接的至少两个外设音频输出设备对应配置的输出音频类型。例如,当电子设备分别与外设音频输出设备1和外设音频输出设备2连接时,则基于对应关系,可以确定外设音频输出设备1对应配置的输出音频类型为输出音频类型1,确定外设音频输出设备2对应配置的输出音频类型为输出音频类型2。
步骤S340:当音频待输出时,获取所述音频的音频类型。
步骤S350:基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备。
步骤S360:通过所述目标外设音频输出设备输出所述音频。
其中,步骤S340-步骤S360的具体,描述请参阅步骤S130-步骤S150,在此不再赘述。
步骤S370:当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到与 一个外设音频输出设备连接时,通过所述一个外设音频输出设备输出所述音频。
步骤S380:当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,基于所述音频的音频类型从所述电子设备的扬声器和听筒中确定目标音频输出装置。
步骤S390:通过所述目标音频输出装置输出所述音频。
其中,步骤S370-步骤S390的具体描述请参阅步骤S270-步骤S290,在此不再赘述。
本申请再一个实施例提供的音频输出方法,检测电子设备当前与外设音频输出设备的连接状态,当检测到电子设备与至少两个外设音频输出设备连接时,从电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系,基于对应关系分别获取至少两个外设音频输出设备对应配置的输出音频类型。当音频待输出时获取音频的音频类型,基于音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从至少两个外设音频输出设备中确定目标外设音频输出设备,通过目标外设音频输出设备输出音频。当检测到电子设备从与至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接时,通过该一个外设音频输出设备输出音频。当检测到电子设备从与至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,基于音频的音频类型从电子设备的扬声器和听筒中确定目标音频输出装置,通过目标音频输出装置输出音频。相较于图2所示的音频输出方法,本实施例还在电子设备与至少两个外设音频输出设备连接时,从电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系,以获取至少两个外设音频输出设备对应的输出音频类型,提升至少两个外设音频输出设备对应的输出音频类型的获取速度。另外,本实施例还在电子设备从与至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接或没有与外设音频输出设备连接时,通过不同的设备或装置输出音频,以提升电子设备的适应性。
请参阅图6,图6示出了本申请另一个实施例提供的音频输出方法的流程示意图。该方法应用于上述电子设备,下面将针对图6所示的流程进行详细的阐述,其中,在本实施例中,所述至少两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备,所述第一外设音频输出设备对应配置第一输出音频类型,所述第二外设音频输出设备对应配置第二输出音频类型,所述音频输出方法具体可以包括以下步骤:
步骤S410:检测所述电子设备当前与外设音频输出设备的连接状态。
步骤S420:当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
步骤S430:当音频待输出时,获取所述音频的音频类型。
其中,步骤S410-步骤S430的具体描述请参阅步骤S110-步骤S130,在此不再赘述。
步骤S440:当所述音频的音频类型和所述第一输出音频类型匹配时,将所述第一外设音频输出设备确定为所述目标外设音频输出设备。
在一些实施方式中,电子设备连接的至少两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备,第一外设音频输出设备对应配置第一输出音频类型,第二外设音频输出设备对应配置第二输出音频类型,其中,第一外设音频输出设备可以包括有线外设音频输出设备,例如,有线耳机,第二外设音频输出设备可以包括蓝牙外设音频输出设备,例如,蓝牙耳机。
在一些实施方式中,在确定电子设备待输出音频的音频类型时,可以将待输出音频的音频类型和第一输出音频类型与第二输出音频类型进行比较,以判断待输出音频的音频类型是否与第一输出音频类型匹配,以及是否与第二输出音频类型匹配,其中,当判断结果表征待输出音频的音频类型与第一输出音频类型匹配时,可以将与第一输出音频类型对应的第一外设音频输出设备确定为目标外设音频输出设备,当判断结果表征待输出的音频的音频类型与第二输出音频类型匹配时,可以将与第二输出音频类型对应的第二外设音频输出设备确定为目标外设音频输出设备。
步骤S450:当所述音频的音频类型和所述第二输出音频类型匹配时,将所述第二外设音频输出设备确定为所述目标外设音频输出设备。
步骤S460:通过所述目标外设音频输出设备输出所述音频。
其中,步骤S460的具体描述请参阅步骤S150,在此不再赘述。
本申请又再一个实施例提供的音频输出方法,检测电子设备当前与外设音频输出设备的连接状态,当检测到电子设备与至少两个外设音频输出设备连接时,分别获取至少两个外设音频输出设备对应配置的输出音频类型,当音频待输出时,获取音频的音频类型,当音频的音频类型和第一输出音频类型匹配时,将第一外设音频输出设备确定为目标外设音频输出设备,当音频的音频类型和第二输出音频类型匹配时,将第二外设音频输出设备确定为目标外设音频输出设备,通过目标外设音频输出设备输出音频。相较于图2所示的音频输出方法,本实施例还通过与音频的音频类型匹配的输出音频类型对应的外设音频输出设备进行音频输出,以满足用户的配置需求,提升用户体验。
请参阅图7,图7示出了本申请实施例提供的音频输出装置400的模块框图。该音频输出装置400应用于上述电子设备,下面将针对图7所示的框图进行阐述,所述音频输出装置400包括:连接状态检测模块410、输出音频类型获取模块420、音频类型获取模块430、目标外设音频输出设备确定模块440以及音频输出模块450,其中:
连接状态检测模块410,用于检测所述电子设备当前与外设音频输出设备的连接状态。
输出音频类型获取模块420,用于当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
进一步地,所述输出音频类型获取模块420包括:功能配置界面显示子模块和第一输出音频类型获取子模块,其中:
功能配置界面显示子模块,用于当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,所述功能配置界面用于配置所述至少两个外设音频输出设备对应的输出音频类型。
第一输出音频类型获取子模块,用于获取作用于所述功能配置界面的配置操作,基于所述配置操作分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
进一步地,所述输出音频类型获取模块420包括:对应关系获取子模块和第二输出音频类型获取子模块,其中:
对应关系获取子模块,用于当检测到所述电子设备与所述至少两个外设音频输出设备连接时,从所述电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系。
第二输出音频类型获取子模块,用于基于所述对应关系,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
音频类型获取模块430,用于当音频待输出时,获取所述音频的音频类型。
目标外设音频输出设备确定模块440,用于基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备。
进一步地,所述至少两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备,所述第一外设音频输出设备对应配置第一输出音频类型,所述第二外设音频输出设备对应配置第二输出音频类型,所述目标外设音频输出设备确定模块440包括:第一目标外设音频输出设备确定子模块和第二目标外设音频输出设备确定子模块,其中:
第一目标外设音频输出设备确定子模块,用于第一当所述音频的音频类型和所述第一输出音频类型匹配时,将所述第一外设音频输出设备确定为所述目标外设音频输出设备。
第一目标外设音频输出设备确定子模块,用于当所述音频的音频类型和所述第二输出音频类型匹配时,将所述第二外设音频输出设备确定为所述目标外设音频输出设备。
音频输出模块450,用于通过所述目标外设音频输出设备输出所述音频。
进一步地,所述音频输出装置400还包括:第一音频输出模块,其中:
第一音频输出模块,用于当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接时,通过所述一个外设音频输出设备输出所述音频。
进一步地,所述音频输出装置400还包括:目标音频输出装置确定模块和第二音频输出模块,其中:
目标音频输出装置确定模块,用于当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,基于所述音频的音频类型从所述电子设备的扬声器和听筒中确定目标音频输出装置。
进一步地,所述音频的音频类型包括媒体音频类型和通话音频类型,所述目标音频输出装置确定模块包括:第一目标音频输出装置确定子模块和第二目标音频输出装置确定子模块,其中:
第一目标音频输出装置确定子模块,用于当所述音频的音频类型为媒体音频类型时,将所述电子设备的扬声器确定为所述目标音频输出装置。
第二目标音频输出装置确定子模块,用于当所述音频的音频类型为通话音频类型时,将所述电子设备的听筒确定为所述目标音频输出装置。
第二音频输出模块,用于通过所述目标音频输出装置输出所述音频。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参阅图8,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、触摸屏130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集,以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
请参阅图9,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。 该计算机可读介质500中存储有程序代码,所述程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质500可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质500包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质500具有执行上述方法中的任何方法步骤的程序代码510的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码510可以例如以适当形式进行压缩。
综上所述,本申请实施例提供的音频输出方法、装置、电子设备以及存储介质,检测电子设备当前与外设音频输出设备的连接状态,当检测到电子设备与至少两个外设音频输出设备连接时,分别获取至少两个外设音频输出设备对应配置的输出音频类型,当音频待输出时获取音频的音频类型,基于音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从至少两个外设音频输出设备中确定目标外设音频输出设备,通过目标外设音频输出设备输出音频,从而通过在电子设备与至少两个外设音频输出设备连接时,获取每个外设音频输出设备对应配置的输出音频类型,并通过不同的外设音频输出设备对应输出不同类型的音频,提升音频输出的灵活性。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种音频输出方法,其特征在于,应用于电子设备,所述方法包括:
    检测所述电子设备当前与外设音频输出设备的连接状态;
    当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型;
    当音频待输出时,获取所述音频的音频类型;
    基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备;
    通过所述目标外设音频输出设备输出所述音频。
  2. 根据权利要求1所述的方法,其特征在于,所述当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型,包括:
    当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,所述功能配置界面用于配置所述至少两个外设音频输出设备对应的输出音频类型;
    获取作用于所述功能配置界面的配置操作,基于所述配置操作分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
  3. 根据权利要求2所述的方法,其特征在于,所述当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,包括:
    当检测到所述电子设备与所述至少两个外设音频输出设备连接且所述电子设备处于息屏状态时,点亮所述电子设备的屏幕并弹窗显示所述功能配置界面。
  4. 根据权利要求2所述的方法,其特征在于,所述当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,包括:
    当检测到所述电子设备与所述至少两个外设音频输出设备连接且所述电子设备处于亮屏状态时,在所述电子设备的当前显示界面以悬浮弹窗显示所述功能配置界面,或者,覆盖所述电子设备的当前显示界面显示所述功能配置界面。
  5. 根据权利要求2-4任一项所述的方法,其特征在于,所述当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,包括:
    当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示所述至少两个外设音频输出设备以及在所述至少两个外设音频输出设备中的每个外设音频输出设备的对应位置显示输出音频类型选择控件,其中,所述输出音频类型选择控件用于基于选择操作选择对应外设音频输出设备的输出音频类型。
  6. 根据权利要求2-4任一项所述的方法,其特征在于,所述所述当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示功能配置界面,包括:
    当检测到所述电子设备与所述至少两个外设音频输出设备连接时,显示所述至少两个外设音频输出设备以及在所述至少两个外设音频输出设备中的每个外设音频输出设备的对应位置显示输出音频类型输入框,其中,所述输出音频类型输入框用于基于输入内容确定对应外设音频输出设备的输出音频类型。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型,包括:
    当检测到所述电子设备与所述至少两个外设音频输出设备连接时,从所述电子设备的本地获取预先配置的外设音频输出设备和输出音频类型的对应关系;
    基于所述对应关系,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型。
  8. 根据权利要求1-6任一项所述的方法,其特征在于,所述当检测到所述电子设备与至 少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型,包括:
    当监测到所述电子设备与所述至少两个外设音频输出设备连接时,获取所述至少两个外设音频输出设备中的每个外设音频输出设备的属性信息;
    基于所述每个外设音频输出设备的属性信息,确定所述每个外设音频输出设备对应配置的输出音频类型。
  9. 根据权利要求8所述的方法,其特征在于,所述属性信息包括减小声音的传播范围和扩大声音的传播范围。
  10. 根据权利要求1-6任一项所述的方法,其特征在于,所述当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型,包括:
    当监测到所述电子设备与所述至少两个外设音频输出设备连接时,获取所述电子设备所处环境的网络质量和所述电子设备与所述至少两个外设音频输出设备中的每个外设音频输出设备的连接方式;
    基于所述电子设备所处环境的网络质量和所述电子设备与所述每个外设音频输出设备的连接方式,确定所述每个外设音频输出设备对应配置的输出音频类型。
  11. 根据权利要求1-10任一项所述的方法,其特征在于,在通过所述目标外设音频输出设备输出所述音频之后,还包括:
    当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到与一个外设音频输出设备连接时,通过所述一个外设音频输出设备输出所述音频。
  12. 根据权利要求1-10任一项所述的方法,其特征在于,在通过所述目标外设音频输出设备输出所述音频之后,还包括:
    当检测到所述电子设备从与所述至少两个外设音频输出设备连接切换到没有与外设音频输出设备连接时,基于所述音频的音频类型从所述电子设备的扬声器和听筒中确定目标音频输出装置;
    通过所述目标音频输出装置输出所述音频。
  13. 根据权利要求12所述的方法,其特征在于,所述音频的音频类型包括媒体音频类型和通话音频类型,所述基于所述音频的音频类型从所述电子设备的扬声器和听筒中确定目标音频输出装置,包括:
    当所述音频的音频类型为媒体音频类型时,将所述电子设备的扬声器确定为所述目标音频输出装置;
    当所述音频的音频类型为通话音频类型时,将所述电子设备的听筒确定为所述目标音频输出装置。
  14. 根据权利要求1-13任一项所述的方法,其特征在于,所述至少两个外设音频输出设备包括第一外设音频输出设备和第二外设音频输出设备,所述第一外设音频输出设备对应配置第一输出音频类型,所述第二外设音频输出设备对应配置第二输出音频类型,所述基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备,包括:
    当所述音频的音频类型和所述第一输出音频类型匹配时,将所述第一外设音频输出设备确定为所述目标外设音频输出设备;
    当所述音频的音频类型和所述第二输出音频类型匹配时,将所述第二外设音频输出设备确定为所述目标外设音频输出设备。
  15. 根据权利要求14所述的方法,其特征在于,所述第一外设音频输出设备包括有线外设音频输出设备,所述第二外设音频输出设备包括蓝牙外设音频输出设备。
  16. 根据权利要求1-15任一项所述的方法,其特征在于,所述当音频待输出时,获取所述音频的音频类型之前,还包括:
    对作用于媒体音频播放类软件上的操作进行检测;
    当检测到作用于指示所述媒体音频播放类软件进行音频播放的语音指令或出口操作时,确定存在待输出音频。
  17. 根据权利要求1-15任一项所述的方法,其特征在于,所述当音频待输出时,获取所述音频的音频类型,包括:
    当音频待输出时,获取所述音频的来源;
    基于所述音频的来源,获取所述音频的音频类型。
  18. 一种音频输出装置,其特征在于,应用于电子设备,所述装置包括:
    连接状态检测模块,用于检测所述电子设备当前与外设音频输出设备的连接状态;
    输出音频类型获取模块,用于当检测到所述电子设备与至少两个外设音频输出设备连接时,分别获取所述至少两个外设音频输出设备对应配置的输出音频类型;
    音频类型获取模块,用于当音频待输出时,获取所述音频的音频类型;
    目标外设音频输出设备确定模块,用于基于所述音频的音频类型和每个外设音频输出设备对应配置的输出音频类型,从所述至少两个外设音频输出设备中确定目标外设音频输出设备;
    音频输出模块,用于通过所述目标外设音频输出设备输出所述音频。
  19. 一种电子设备,其特征在于,包括存储器和处理器,所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
PCT/CN2020/138666 2019-12-24 2020-12-23 音频输出方法、装置、电子设备以及存储介质 WO2021129674A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP20905687.8A EP4075259A4 (en) 2019-12-24 2020-12-23 AUDIO OUTPUT METHOD AND DEVICE, AND ELECTRONIC DEVICE AND STORAGE MEDIA
US17/808,805 US20220326903A1 (en) 2019-12-24 2022-06-24 Audio output method, electronic device and computer-readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911349069.4A CN111124351B (zh) 2019-12-24 2019-12-24 音频输出方法、装置、电子设备以及存储介质
CN201911349069.4 2019-12-24

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/808,805 Continuation US20220326903A1 (en) 2019-12-24 2022-06-24 Audio output method, electronic device and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2021129674A1 true WO2021129674A1 (zh) 2021-07-01

Family

ID=70501994

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/138666 WO2021129674A1 (zh) 2019-12-24 2020-12-23 音频输出方法、装置、电子设备以及存储介质

Country Status (4)

Country Link
US (1) US20220326903A1 (zh)
EP (1) EP4075259A4 (zh)
CN (1) CN111124351B (zh)
WO (1) WO2021129674A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124351B (zh) * 2019-12-24 2021-11-16 RealMe重庆移动通信有限公司 音频输出方法、装置、电子设备以及存储介质
CN112286481A (zh) * 2020-10-28 2021-01-29 维沃移动通信(杭州)有限公司 音频输出方法及电子设备
CN112533188B (zh) * 2020-11-24 2024-03-08 广州橙行智动汽车科技有限公司 一种播放源的输出处理方法和装置
CN113840032A (zh) * 2021-09-23 2021-12-24 Oppo广东移动通信有限公司 音频控制方法、音频控制装置和电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050066000A1 (en) * 2003-09-18 2005-03-24 Yee Liaw Multimedia-capable computer management system for selectively operating a plurality of computers
CN103699501A (zh) * 2013-12-17 2014-04-02 上海斐讯数据通信技术有限公司 一种移动终端的音频设备管理方法及系统
CN107770760A (zh) * 2017-10-18 2018-03-06 维沃移动通信有限公司 一种识别蓝牙设备的类型的方法及移动终端
CN111124351A (zh) * 2019-12-24 2020-05-08 RealMe重庆移动通信有限公司 音频输出方法、装置、电子设备以及存储介质

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4384179B2 (ja) * 2004-10-26 2009-12-16 パナソニック株式会社 情報出力装置、情報出力制御方法、情報出力制御プログラム
US7558529B2 (en) * 2005-01-24 2009-07-07 Broadcom Corporation Earpiece/microphone (headset) servicing multiple incoming audio streams
CN101867657B (zh) * 2010-06-24 2014-03-12 中兴通讯股份有限公司南京分公司 一种手机上切换音频输出设备的方法及装置
CN103905880A (zh) * 2014-03-13 2014-07-02 北京奇艺世纪科技有限公司 音视频数据的播放方法、智能电视和移动设备
US9319792B1 (en) * 2014-03-17 2016-04-19 Amazon Technologies, Inc. Audio capture and remote output
CN105007053A (zh) * 2015-06-03 2015-10-28 维融集团有限公司 一种音频播放方法及设备
CN105045555A (zh) * 2015-07-22 2015-11-11 北京元心科技有限公司 一种基于配置文件实现音频冲突解决的方法及装置
CN106095387B (zh) * 2016-06-16 2019-06-25 Oppo广东移动通信有限公司 一种终端的音效设置方法及终端
CN106302997B (zh) * 2016-07-29 2020-02-21 联想(北京)有限公司 一种输出控制方法、电子设备及系统
US11343614B2 (en) * 2018-01-31 2022-05-24 Sonos, Inc. Device designation of playback and network microphone device arrangements
CN109257500B (zh) * 2018-09-30 2021-06-15 Oppo广东移动通信有限公司 音频播放方法、装置、电子设备及存储介质
CN110032356A (zh) * 2019-03-29 2019-07-19 联想(北京)有限公司 信息处理方法以及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050066000A1 (en) * 2003-09-18 2005-03-24 Yee Liaw Multimedia-capable computer management system for selectively operating a plurality of computers
CN103699501A (zh) * 2013-12-17 2014-04-02 上海斐讯数据通信技术有限公司 一种移动终端的音频设备管理方法及系统
CN107770760A (zh) * 2017-10-18 2018-03-06 维沃移动通信有限公司 一种识别蓝牙设备的类型的方法及移动终端
CN111124351A (zh) * 2019-12-24 2020-05-08 RealMe重庆移动通信有限公司 音频输出方法、装置、电子设备以及存储介质

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
US20220326903A1 (en) 2022-10-13
EP4075259A1 (en) 2022-10-19
CN111124351A (zh) 2020-05-08
CN111124351B (zh) 2021-11-16
EP4075259A4 (en) 2023-05-31

Similar Documents

Publication Publication Date Title
WO2021129674A1 (zh) 音频输出方法、装置、电子设备以及存储介质
US11630636B2 (en) Changing companion communication device behavior based on status of wearable device
WO2017215639A1 (zh) 音效配置方法、系统及相关设备
WO2020048222A1 (zh) 音效调整方法、装置、电子设备以及存储介质
CN109062535B (zh) 发声控制方法、装置、电子装置及计算机可读介质
JP2018505463A (ja) 音声ベース装置の外部視覚的インタラクション
WO2020048216A1 (zh) 音效调整方法、装置、电子设备以及存储介质
KR20130050987A (ko) 엔터테인먼트 디바이스들 및 시스템들의 음향 관리를 위한 기술들
KR20190028043A (ko) 이어폰을 통한 어플리케이션별 오디오 출력 제어 방법 및 이를 구현한 전자 장치
CN109271129B (zh) 音效调整方法、装置、电子设备以及存储介质
CN110876180B (zh) 功耗处理方法、装置、电子设备及计算机可读介质
CN109271131B (zh) 耳机控制方法、装置、电子设备及存储介质
US20220322059A1 (en) Bluetooth data transmission method and apparatus, terminal and storage medium
WO2021136141A1 (zh) 播放方法及电子设备
US20170102914A1 (en) Electronic device and audio ouputting method thereof
WO2022237704A1 (zh) 一种设备连接方法、装置、设备及存储介质
WO2015106515A1 (zh) 一种在分屏终端进行声音控制的方法、系统和计算机存储介质
US8670556B2 (en) Multi-participant communication system with audio manager responsive to mode change requests
US9369587B2 (en) System and method for software turret phone capabilities
CN110086941B (zh) 语音播放方法、装置及终端设备
WO2021098708A1 (zh) 通话方法及终端设备
WO2022048020A1 (zh) 蓝牙音箱的控制方法及系统、存储介质及移动终端
CN111124353B (zh) 一种控制方法及电子设备
WO2021120383A1 (zh) 屏幕色温控制方法、装置、存储介质及移动终端
WO2021072760A1 (zh) 触摸屏报点方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20905687

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2020905687

Country of ref document: EP

Effective date: 20220713