CN112527231B - Method and apparatus for audio output device selection - Google Patents

Method and apparatus for audio output device selection Download PDF

Info

Publication number
CN112527231B
CN112527231B CN201910883070.9A CN201910883070A CN112527231B CN 112527231 B CN112527231 B CN 112527231B CN 201910883070 A CN201910883070 A CN 201910883070A CN 112527231 B CN112527231 B CN 112527231B
Authority
CN
China
Prior art keywords
audio output
equipment
audio
output device
power amplifier
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910883070.9A
Other languages
Chinese (zh)
Other versions
CN112527231A (en
Inventor
程李
余艳辉
程成
蔡学江
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910883070.9A priority Critical patent/CN112527231B/en
Priority to PCT/CN2020/113664 priority patent/WO2021052202A1/en
Publication of CN112527231A publication Critical patent/CN112527231A/en
Application granted granted Critical
Publication of CN112527231B publication Critical patent/CN112527231B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The application provides a method and a device for selecting audio output equipment, which can improve user experience. The audio output device selection method comprises the following steps: the terminal equipment determines that a user executes audio output equipment mode selection on an audio strategy selection interface, wherein the audio output equipment mode selection comprises an automatic mode and a manual mode; and the terminal equipment determines the audio output equipment according to the mode selection of the audio output equipment.

Description

Method and apparatus for audio output device selection
Technical Field
The present application relates to the field of audio output, and more particularly, to methods and apparatus for audio output device selection.
Background
With the rapid development of intelligent terminal equipment, more and more audio devices can be connected with the terminal equipment. However, when a user selects an audio output device according to actual requirements, the user basically has to rely on a terminal device system, and the user cannot select the audio output device according to the own requirements, which results in poor user experience.
For example, when playing audio, if more than one audio output device (e.g., bluetooth, wired headset, etc.) is connected to a terminal device (e.g., a mobile phone, a tablet computer, etc.), when a user needs to select which audio output device to output, which audio output device to select can only be controlled by plugging and unplugging the audio output device, which audio output device reduces the audio experience of the user. Or, in some scenes that need privacy protection, for example, when a call is connected, if the mobile phone is connected with power amplifier devices such as a similar vehicle-mounted sound box, the call sound is sent from the power amplifier devices such as the vehicle-mounted sound box, the privacy of the user is revealed, and the experience is poor. Or, when the user shares music with a peer through the earphones, only one earphone can be worn by one person, if the music is divided into left and right sound channels, one person can only hear half of the music, and the audio experience of the user is very poor.
Therefore, how to improve the audio experience of the user becomes an urgent problem to be solved.
Disclosure of Invention
The application provides a method and a device for selecting audio output equipment, which can improve the audio experience of a user.
In a first aspect, a method for audio output device selection is provided, in which a terminal device determines that a user performs audio output device mode selection on an audio policy selection interface, where the audio output device mode selection includes an automatic mode and a manual mode; and the terminal equipment determines the audio output equipment according to the mode selection of the audio output equipment.
In the embodiment of the application, when the terminal device determines that the user executes the mode selection of the audio output device on the audio policy selection interface, the terminal device determines the audio output device according to the mode selection of the audio output device, which is beneficial to improving the user experience.
With reference to the first aspect, in some possible implementation manners of the first aspect, when the mode selection of the audio output device is an automatic mode, the determining, by the terminal device, an audio output device according to the mode selection of the audio output device includes: the terminal equipment determines that the at least one audio output equipment is non-power amplifier equipment; and the terminal equipment determines that the non-power amplifier equipment is the audio output equipment.
With reference to the first aspect, in some possible implementation manners of the first aspect, the determining, by the terminal device, whether the at least one audio output device is a non-power amplifier device includes: and the terminal equipment determines that the at least one audio output equipment is non-power amplifier equipment according to the first information.
In practical application, in order to protect user privacy and prevent user privacy from being revealed, before the terminal device determines the audio output device, it needs to determine whether the audio output device is a non-power amplifier device or not, and determine the determined non-power amplifier device as a final audio output device, and the terminal device routes audio to the non-power amplifier device, so that user privacy is protected while user experience is improved.
With reference to the first aspect, in some possible implementations of the first aspect, the first information includes at least one of the following information: the device type number; a Bluetooth device type number; the current value of the device; and recording the echo comparison value.
It should be noted that the information included in the first information is merely an example, and in some possible implementations, the first information may further include a voltage value of the device, which is not specifically limited in this embodiment of the application.
With reference to the first aspect, in some possible implementation manners of the first aspect, the determining, by the terminal device according to the first information, that the at least one audio output device is a non-power amplifier device includes: when the weighted value of the first information of the at least one audio output device is greater than a preset threshold value, the terminal device determines that the at least one audio output device is a power amplifier device; and when the weighted value of the first information of the at least one audio output device is smaller than a preset threshold value, the terminal device determines that the at least one audio output device is a non-power amplifier device.
For example, a device type number normalization value in the first information of the audio output device is denoted as a, a bluetooth device type number normalization value is denoted as B, a device current value normalization value is denoted as P, and a recording echo comparison value normalization value is denoted as Q, then a weighting value of the first information of the audio output device is S = a + M + B + N + C + P + D + Q, where S is a weighting value of the first information of the audio output device, and M, N, P, Q is a weighting value of the device type number, the bluetooth device type number, the device current value, and the recording echo comparison value, respectively.
When the S is larger than the preset threshold value, the terminal equipment determines that the audio output equipment is power amplifier equipment, and the terminal equipment does not route the audio to the audio output equipment; and when the S is smaller than the preset threshold value, the terminal equipment determines that the audio output equipment is non-power amplifier equipment, and the terminal equipment routes the audio to the audio output equipment.
It should be noted that the preset threshold may be self-defined by the system, or may be set by the user, which is not limited in the embodiment of the present application.
It should be further understood that, when a plurality of audio output devices are connected to the terminal device, the terminal device may determine whether each audio output device is a non-power amplifier device according to a power amplifier device determination algorithm. At this time, the determined number of the non-power amplifier devices may be one or more, and when the determined number of the non-power amplifier devices is one, the terminal device determines that the non-power amplifier device is an audio output device, and routes the audio to the audio output device. When a plurality of non-power amplifying devices are determined, the terminal device may route the audio to any one of the plurality of non-power amplifying devices, which is not limited in this embodiment of the present application.
With reference to the first aspect, in some possible implementation manners of the first aspect, when the mode selection of the audio output device is a manual mode, the determining, by the terminal device, an audio output device according to the mode selection of the audio output device includes: the terminal device detects that the user performs manual selection operation on the at least one audio output device; and the terminal equipment determines the audio output equipment according to the manually selected operation.
And after the terminal equipment determines that the user performs audio output equipment mode selection on the audio strategy selection interface, when the user selects a manual selection mode, the user autonomously determines the audio output equipment. In practical application, when the number of the audio output devices connected with the terminal device exceeds one, a user can select one or more audio output devices according to own requirements without plugging and unplugging the device, and meanwhile, the output of multiple audio devices can be realized, so that the hearing experience of the user is improved.
With reference to the first aspect, in some possible implementation manners of the first aspect, when the terminal device detects that the user performs a manual selection operation on multiple audio devices, the method further includes: the terminal device outputs audio from the plurality of audio devices in response to a plurality of mixing threads created by the system.
When the terminal device plays audio, the system creates a track (AudioTrack) to play audio, then the AudioTrack will inform an audio decision (audiopolicy) to play the AudioTrack according to a plurality of audio output devices selected by a user, an executor of an audio policy (audiolinger) opens a duplicate thread (duplicate) to play the AudioTrack, while the duplicate thread will create a plurality of mixed threads (mixthreadlike) to write data in hardware abstraction layers (Hal) of the plurality of audio output devices, and hals corresponding to different devices will inform a driver layer to open corresponding path registers, and output Pulse Code Modulation (PCM) data to a designated plurality of audio output devices, thereby realizing output of sound from the plurality of audio output devices, for example, playing music from a wired earphone and a bluetooth earphone at the same time.
According to the technical scheme, the terminal equipment executes the mode selection of the audio output equipment to determine the audio output equipment according to the audio strategy selection interface of the user, so that the user equipment experience is improved.
In a second aspect, an apparatus for audio output device selection is provided, the apparatus being configured to perform the method of the first aspect or any of the possible implementations of the first aspect. In particular, the apparatus may comprise means for performing the method of the first aspect or any possible implementation manner of the first aspect.
In a third aspect, a terminal device is provided, which includes: one or more processors; a memory; a plurality of application programs; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the terminal device to perform the method of the first aspect or any possible implementation of the first aspect.
In a fourth aspect, a terminal device is provided, which includes: a display, an input-output device, and a baseband processing circuit, such that the terminal device performs the method of the first aspect or any possible implementation manner of the first aspect.
In a fifth aspect, a computer-readable storage medium is provided, having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the first aspect or any possible implementation manner of the first aspect.
A sixth aspect provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect or any of its possible implementations.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a method for audio output device selection provided by an embodiment of the present application;
FIG. 2 shows a flow diagram of the terminal device determining an audio output device based on a user determined audio output device mode selection;
fig. 3 shows a schematic flow chart of a power amplifier device judgment algorithm provided in the embodiment of the present application;
FIG. 4 is a schematic flow chart diagram illustrating a multiple audio output scheme provided by an embodiment of the present application;
FIG. 5 is a schematic block diagram illustrating an apparatus for audio output device selection provided by an embodiment of the present application;
fig. 6 shows a schematic block diagram of another apparatus for audio output device selection provided in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
In the description of the embodiments of the present application, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality" means two or more than two.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. Further, in the description of the present embodiment, unless otherwise specified, "a plurality" means two or more, and for example, a plurality of tasks may mean two or more tasks.
The method provided by the embodiment of the application can be applied to terminal equipment, and in some embodiments, the terminal equipment can further include other functions such as portable terminal equipment, for example, a mobile phone, a tablet computer, wearable terminal equipment (such as a smart watch) with a wireless communication function, and the like. Exemplary embodiments of the portable terminal device include, but are not limited to, a mount
Figure BDA0002206462070000031
Figure BDA0002206462070000041
Or other operating system. The portable terminal device may also be other portable terminal devices such as a laptop computer (laptop) or the like. It should also be understood that in other embodiments, the terminal device may not be a portable terminal device, but may be a desktop computer. In some embodiments, the end device may be a smart appliance, such as a smart speaker, a smart home device, and so forth. The embodiment of the present application does not set any limit to the specific type of the terminal device.
Fig. 1 shows a schematic flow chart of a method 100 for audio output device selection provided by an embodiment of the present application. It should be understood that fig. 1 shows steps or operations of a method for audio output device selection, but the steps or operations are merely examples, and other operations or variations of the operations in fig. 1 may also be performed by embodiments of the present application. Moreover, the various steps in FIG. 1 may be performed in a different order presented than in FIG. 1, and it is possible that not all of the operations in FIG. 1 may be performed.
As shown in fig. 1, the method 100 includes:
s110, the terminal device determines that the user performs audio output device mode selection on the audio strategy selection interface.
In order to realize that a user can autonomously select audio output equipment according to actual requirements and cause poor experience, two modes of an automatic selection mode and a manual selection mode can be set on an audio strategy selection interface for the user to autonomously select. When the user selects the audio output equipment, the mode selection mode of the audio output equipment can be selected and determined in the audio strategy selection interface, namely, the terminal equipment automatically selects or the user manually selects, so that the audio experience of the user is greatly improved.
And S120, the terminal equipment selects and determines the audio output equipment according to the mode of the audio output equipment.
When the user selects one of the two selection modes on the audio policy selection interface, the terminal device may determine the audio output device according to the selection of the user.
FIG. 2 shows a flow chart for the terminal device determining an audio output device based on a user determined audio output device mode selection.
When the terminal equipment determines that the user performs audio output equipment mode selection on the audio strategy selection interface, and when the user selects the automatic selection mode, the terminal equipment autonomously determines the audio output equipment. In practical application, in order to protect user privacy and prevent user privacy from being revealed, before the terminal device determines the audio output device, it needs to determine whether the audio output device is a non-power amplifier device or not, and determine the determined non-power amplifier device as a final audio output device, and the terminal device routes audio to the non-power amplifier device, so that user privacy is protected while user experience is improved.
In some possible implementation manners, the terminal device determines whether the audio output device is a non-power amplifier device according to the first information. Wherein the first information may include at least one of the following information: the type of the device, the type of the Bluetooth device, the current value of the device and the comparison value of the recorded echo.
It should be noted that the information included in the first information is only an example, and in some possible implementations, the first information may further include a voltage value of a device, which is not specifically limited in this embodiment of the present application.
In order to determine whether the audio output device is a non-power amplifier device, the terminal device determines whether the audio output device is a non-power amplifier device according to a size relationship between a weighted value of the first information of the audio output device and a preset threshold value.
Fig. 3 shows a schematic flowchart of a power amplifier device judgment algorithm, and as shown in fig. 3, a device type number normalization value in first information of an audio output device is denoted as a, a bluetooth device type number normalization value is denoted as B, a device current value normalization value is denoted as P, and a recording echo contrast value normalization value is denoted as Q, so that a weighted value of the first information of the audio output device is shown in formula (1):
s = A M + B N + C P + D Q formula (1)
Wherein, S is the weighted value of the first information of the audio output device, and M, N, P, Q is the weighted value of the device type, the Bluetooth device type, the device current value and the recording echo contrast value respectively.
When the S is larger than the preset threshold value, the terminal equipment determines that the audio output equipment is power amplifier equipment, and the terminal equipment does not route the audio to the audio output equipment; and when the S is smaller than the preset threshold value, the terminal equipment determines that the audio output equipment is non-power amplifier equipment, and the terminal equipment routes the audio to the audio output equipment. As shown in table 1:
TABLE 1 determination of power amplifier devices
Figure BDA0002206462070000051
It should be noted that the preset threshold may be self-defined by the system, or may be set by the user, which is not limited in the embodiment of the present application.
It should be further understood that, when a plurality of audio output devices are connected to the terminal device, the terminal device may determine whether each audio output device is a non-power amplifier device according to the power amplifier device determination algorithm shown in equation (1). At this time, the number of the determined non-power amplifier devices may be one or more, and when the number of the determined non-power amplifier devices is one, the terminal device determines that the non-power amplifier device is an audio output device, and routes an audio to the audio output device. When a plurality of non-power amplifying devices are determined, the terminal device may route the audio to any one of the plurality of non-power amplifying devices, which is not limited in this embodiment of the present application.
Table 2 and table 3 show the determination modes of the non-power amplifier device and the power amplifier device by taking a common 3.5 earphone and a bluetooth car speaker as examples respectively.
TABLE 2 common 3.5 earphone
Figure BDA0002206462070000052
TABLE 3 Bluetooth vehicle speaker
Figure BDA0002206462070000053
As shown in table 2, the first information weighted value of the common 3.5 earphone is 92, the preset threshold is 100, and the first information weighted value is smaller than the preset threshold, so that the common 3.5 earphone is a non-power amplifier device, and at this time, the terminal device may route the audio to the common 3.5 earphone. As shown in table 3, the first information weighted value of the bluetooth car speaker is 160, the preset threshold is 100, and the first information weighted value is greater than the preset threshold, so that the bluetooth car speaker is a power amplifier device, and the terminal device does not route the audio to the bluetooth car speaker.
And after the terminal equipment determines that the user performs audio output equipment mode selection on the audio strategy selection interface, when the user selects a manual selection mode, the user autonomously determines the audio output equipment. In practical application, when the audio output equipment connected with the terminal equipment exceeds one type, a user can select one or more audio output equipment according to the self requirement without plugging equipment, and meanwhile, the output of multiple audio equipment can be realized, so that the hearing experience of the user is improved.
Fig. 4 shows a schematic flowchart of a multiple audio output scheme provided by an embodiment of the present application. When a user selects a plurality of audio output devices, the terminal device needs to route audio to the plurality of audio output devices, thereby realizing audio multiplexed output. As shown in fig. 4, when the terminal device plays audio, the system creates a track (AudioTrack) to play audio, and then the AudioTrack notifies an audio decision (audiopolicy) to play the AudioTrack according to a plurality of audio output devices selected by a user, an executor of an audio policy (audiomessenger) opens a repeat thread (duplicate) to play the AudioTrack, and the duplicate thread creates a plurality of mixed threads (mixthreadwrite) of hardware abstraction layer (hall) write data of the plurality of audio output devices, and hals corresponding to different devices notify a driver layer to open corresponding path registers to output Pulse Code Modulation (PCM) data to the designated plurality of audio output devices, thereby realizing sound output from the plurality of audio output devices, for example, music is played from headphones and bluetooth headphones at the same time.
According to the technical scheme, the terminal equipment executes the mode selection of the audio output equipment to determine the audio output equipment according to the audio strategy selection interface of the user, so that the user equipment experience is improved.
It will be appreciated that the terminal device, in order to implement the above-described functions, comprises corresponding hardware and/or software modules for performing the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In this embodiment, the terminal device may be divided into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The method for selecting an audio output device provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 4, and the apparatus for selecting an audio output device according to the embodiment of the present application is described in detail below with reference to fig. 5.
Fig. 5 shows a schematic block diagram of an apparatus 500 for audio output device selection provided by an embodiment of the present application. The image processing apparatus comprises a determination unit 510 and a processing unit 520.
A determining unit 510, configured to determine that the user performed an audio output device mode selection on the audio policy selection interface, where the audio output device mode selection includes an automatic mode and a manual mode.
The determining unit 510 is further configured to determine an audio output device according to the audio output device mode selection.
Optionally, the determining unit 510 is further configured to determine that the at least one audio output device is a non-power amplifier device.
Optionally, the determining unit 510 determines that the non-power amplifier device is the audio output device.
Optionally, the determining unit 510 is further specifically configured to: and determining that the at least one audio output device is a non-power amplifier device according to the first information.
Optionally, the first information includes at least one of: the device type number; a Bluetooth device type number; the current value of the device; and recording the echo comparison value.
Optionally, the determining unit 510 is further specifically configured to: when the weighted value of the first information of the at least one audio output device is larger than a preset threshold value, determining that the at least one audio output device is a power amplifier device; and when the weighted value of the first information of the at least one audio output device is smaller than a preset threshold value, determining that the at least one audio output device is a non-power amplifier device.
Optionally, when the mode of the audio output device is selected to be the manual mode, the apparatus further includes a processing unit 520, configured to detect that the user performs a manual selection operation on the at least one audio output device.
Optionally, the determining unit 510 is further specifically configured to determine the audio output device according to the manually selected operation.
Optionally, the processing unit 520 is further specifically configured to output audio from the plurality of audio devices in response to a plurality of mixing threads created by the system.
It should be understood that the apparatus 500 for selecting an audio output device provided in the embodiment of the present application is used to implement any one of the methods in the foregoing method embodiments, and specific details may be referred to the foregoing method, which are not described herein again.
It should be noted that in the embodiment of the present application, the determining unit 510 and the processing unit 520 may be implemented by a processor. As shown in fig. 6, the audio output device selection apparatus 600 may include a processor 610, a memory 620, and a communication interface 630. The memory 620 may be used for storing codes and the like executed by the processor 610, and the processor 610 may be used for processing data or programs.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 610. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, etc. as is well known in the art. The storage medium is located in the memory 620, and the processor 610 reads the information in the memory 620 and performs the steps of the above method in combination with the hardware thereof. To avoid repetition, it is not described in detail here.
The apparatus 500 shown in fig. 5 or the apparatus 600 shown in fig. 6 can implement the processes of the method for selecting an audio output device corresponding to the foregoing method embodiment, specifically, the apparatus 500 or the apparatus 600 may refer to the description above, and in order to avoid repetition, details are not described here again.
The embodiment of the present application further provides a computer-readable medium for storing a computer program, where the computer program includes instructions for executing the method corresponding to the above-mentioned method embodiment.
An embodiment of the present application further provides a computer program product, where the computer program product includes: computer program code means for causing the image processing apparatus to perform a method corresponding to any of the method embodiments described above.
The embodiments in the present application may be used independently or jointly, and are not limited herein.
It should also be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not imply any order of execution, and the order of execution of the processes should be determined by their functions and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded or executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more collections of available media. The available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media. The semiconductor medium may be a solid state disk.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A method of audio output device selection, comprising:
the method comprises the steps that the terminal equipment determines that a user executes audio output equipment mode selection on an audio strategy selection interface, wherein the audio output equipment mode selection comprises an automatic mode and a manual mode;
the terminal equipment selects and determines audio output equipment according to the mode of the audio output equipment, wherein the number of the audio output equipment accessed by the terminal equipment is multiple;
wherein, the terminal equipment selects and determines the audio output equipment according to the mode of the audio output equipment, and the method comprises the following steps:
when the mode of the audio output equipment is selected to be an automatic mode, the terminal equipment automatically determines whether the audio output equipment is non-power amplifier equipment or not, wherein the terminal equipment determines that at least one audio output equipment is the non-power amplifier equipment;
and the terminal equipment determines that the non-power amplifier equipment is the audio output equipment, and routes the audio to the non-power amplifier equipment.
2. The method of claim 1, wherein the terminal device determining that the at least one audio output device is a non-power amplifier device comprises:
and the terminal equipment determines that the at least one audio output equipment is non-power amplifier equipment according to the first information.
3. The method of claim 2, wherein the first information comprises at least one of:
the device type number;
a Bluetooth device type number;
the current value of the device;
and recording the echo comparison value.
4. The method according to claim 2, wherein the terminal device determines that the at least one audio output device is a non-power amplifier device according to the first information, and the method comprises:
when the weighted value of the first information of the at least one audio output device is greater than a preset threshold value, the terminal device determines that the at least one audio output device is a power amplifier device; or
And when the weighted value of the first information of the at least one audio output device is smaller than a preset threshold value, the terminal device determines that the at least one audio output device is a non-power amplifier device.
5. The method of claim 1, wherein the terminal device determines an audio output device according to the audio output device mode selection, further comprising:
when the audio output device mode is selected to be the manual mode, the terminal device detects that the user performs manual selection operation on the at least one audio output device;
and the terminal equipment determines the audio output equipment according to the manually selected operation.
6. The method according to claim 5, wherein when the terminal device detects that the user performs a manual selection operation on a plurality of audio devices, the method further comprises:
the terminal device outputs audio from a variety of audio devices in response to a plurality of mixing threads created by the system.
7. An apparatus for audio output device selection, comprising:
the audio strategy selection device comprises a determining unit, a judging unit and a judging unit, wherein the determining unit is used for determining that a user performs audio output device mode selection on an audio strategy selection interface, and the audio output device mode selection comprises an automatic mode and a manual mode;
the determining unit is further configured to determine, according to the mode selection of the audio output device, a plurality of audio output devices that are accessed by the apparatus;
the determining unit is further specifically configured to:
when the mode of the audio output equipment is selected to be an automatic mode, the device automatically determines whether the audio output equipment is non-power amplifier equipment or not, wherein the determination unit is used for determining that at least one audio output equipment is non-power amplifier equipment; the determining unit is used for determining that the non-power amplifier equipment is the audio output equipment, and the device routes audio to the non-power amplifier equipment.
8. The apparatus according to claim 7, wherein the determining unit is further specifically configured to:
and determining that the at least one audio output device is a non-power amplifier device according to the first information.
9. The apparatus of claim 8, wherein the first information comprises at least one of:
the device type number;
a Bluetooth device type number;
the current value of the device;
and recording the echo comparison value.
10. The apparatus according to claim 8 or 9, wherein the determining unit is further configured to:
when the weighted value of the first information of the at least one audio output device is larger than a preset threshold value, determining that the at least one audio output device is a power amplifier device; or
And when the weighted value of the first information of the at least one audio output device is smaller than a preset threshold value, determining that the at least one audio output device is a non-power amplifier device.
11. The apparatus of any one of claims 7 to 9, further comprising:
a processing unit, configured to detect that the user performs a manual selection operation on the at least one audio output device when the audio output device mode is selected as a manual mode;
the determining unit is further specifically configured to determine the audio output device according to the manually selected operation.
12. The apparatus according to claim 11, wherein the processing unit is further specifically configured to:
audio is output from a variety of audio devices in response to a plurality of mixing threads created by the system.
13. A terminal device, comprising: one or more processors; a memory; a plurality of application programs; and one or more programs, wherein the one or more programs are stored in the memory, which when executed by the processor, cause the terminal device to perform the method of any of claims 1-6.
14. A terminal device, comprising: display, input-output device, baseband processing circuit, such that said terminal device performs the method according to any one of claims 1 to 6.
15. A computer storage medium comprising computer instructions that, when run on a terminal device, cause the terminal device to perform the method of any one of claims 1 to 6.
16. A terminal device, characterized in that it comprises means for performing the method according to any one of claims 1 to 6.
CN201910883070.9A 2019-09-18 2019-09-18 Method and apparatus for audio output device selection Active CN112527231B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910883070.9A CN112527231B (en) 2019-09-18 2019-09-18 Method and apparatus for audio output device selection
PCT/CN2020/113664 WO2021052202A1 (en) 2019-09-18 2020-09-07 Method and device for selecting audio output apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910883070.9A CN112527231B (en) 2019-09-18 2019-09-18 Method and apparatus for audio output device selection

Publications (2)

Publication Number Publication Date
CN112527231A CN112527231A (en) 2021-03-19
CN112527231B true CN112527231B (en) 2023-01-13

Family

ID=74883882

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910883070.9A Active CN112527231B (en) 2019-09-18 2019-09-18 Method and apparatus for audio output device selection

Country Status (2)

Country Link
CN (1) CN112527231B (en)
WO (1) WO2021052202A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114422915A (en) * 2021-12-17 2022-04-29 珠海格力电器股份有限公司 Audio playing control method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593127A (en) * 2013-11-25 2014-02-19 华为终端有限公司 Method for selecting audio output devices and terminal
CN105657613A (en) * 2016-03-29 2016-06-08 广州视源电子科技股份有限公司 Audio output method and device
CN108063874A (en) * 2017-12-26 2018-05-22 上海展扬通信技术有限公司 A kind of information processing method, device, terminal and computer readable storage medium
CN108268234A (en) * 2016-12-30 2018-07-10 中科创达软件股份有限公司 A kind of audio output control method, device and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
SE9800697A0 (en) * 1998-03-05 1999-09-06 Ericsson Telefon Ab L M Method and apparatus for wireless communication
CN100346288C (en) * 2004-10-20 2007-10-31 大竑企业股份有限公司 Computer system with switching sound output and method for switching sound output
CN101321404A (en) * 2008-06-30 2008-12-10 华为技术有限公司 Ear microphone and terminal system
US20170039026A1 (en) * 2015-08-05 2017-02-09 Ruben Valas Auditory Transition System
CN110764730B (en) * 2018-07-25 2023-11-14 杭州海康威视数字技术股份有限公司 Method and device for playing audio data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593127A (en) * 2013-11-25 2014-02-19 华为终端有限公司 Method for selecting audio output devices and terminal
CN105657613A (en) * 2016-03-29 2016-06-08 广州视源电子科技股份有限公司 Audio output method and device
CN108268234A (en) * 2016-12-30 2018-07-10 中科创达软件股份有限公司 A kind of audio output control method, device and terminal
CN108063874A (en) * 2017-12-26 2018-05-22 上海展扬通信技术有限公司 A kind of information processing method, device, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN112527231A (en) 2021-03-19
WO2021052202A1 (en) 2021-03-25

Similar Documents

Publication Publication Date Title
EP2798636B1 (en) Multi-stream-multipoint-jack audio streaming
CN107562405B (en) Audio playing control method and device, storage medium and mobile terminal
CN105630586B (en) Information processing method and electronic equipment
CN103593127A (en) Method for selecting audio output devices and terminal
CN110049428B (en) Method, playing device and system for realizing multi-channel surround sound playing
JP2009528576A (en) Media distribution system with improved interaction
CN110308888B (en) Volume control method, electronic equipment and computer readable storage medium
CN102104680A (en) Audio playing method, plug-in playing terminal and mobile terminal
TW201412141A (en) Mobile apparatus and control method thereof
CN103929692B (en) Audio information processing method and electronic equipment
US20090318074A1 (en) Personal Wireless Network Capabilities-Based Task Portion Distribution
EP2575331A1 (en) Electronic Apparatus and Media System Using Information Terminal
CN112527231B (en) Method and apparatus for audio output device selection
CN108268234A (en) A kind of audio output control method, device and terminal
CN110730946B (en) Volume control method and device of mobile terminal, storage medium and mobile terminal
CN111857473B (en) Audio playing method and device and electronic equipment
CN105072534B (en) A kind of control method and terminal of wireless sound box system
CN111176605B (en) Audio output method and electronic equipment
CN112840678A (en) Stereo playing method, device, storage medium and electronic equipment
CN108491473A (en) Audio file playing method and device, electronic equipment and medium
CN108363628A (en) Message treatment method, device, terminal and computer readable storage medium
KR102312632B1 (en) Electronic apparatus and file storaging method thereof
CN113286219A (en) Bluetooth earphone with recording function and recording method thereof
CN105006242B (en) A kind of control method and terminal of wireless sound box system
CN106293660B (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant