CN113852944A - Audio output method and device - Google Patents
Audio output method and device Download PDFInfo
- Publication number
- CN113852944A CN113852944A CN202111126405.6A CN202111126405A CN113852944A CN 113852944 A CN113852944 A CN 113852944A CN 202111126405 A CN202111126405 A CN 202111126405A CN 113852944 A CN113852944 A CN 113852944A
- Authority
- CN
- China
- Prior art keywords
- audio
- electronic device
- acquiring
- pull
- mute
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 208000003028 Stuttering Diseases 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 2
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L25/00—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
- G10L25/48—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
- G10L25/51—Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
- H04W28/14—Flow control between communication endpoints using intermediate storage
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/15—Setup of multiple wireless link connections
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
The application discloses an audio output method and device, and belongs to the technical field of audio processing. The method comprises the following steps: in the process of playing the audio of the first electronic device, acquiring a first audio of the first electronic device and a second audio of the second electronic device; acquiring audio parameters of the first audio; and under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, outputting the second audio and stopping outputting the first audio.
Description
Technical Field
The application belongs to the technical field of audio processing, and particularly relates to an audio output method and device.
Background
In the mobile wireless era, along with the popularization and the popularization of intelligent terminals, the Bluetooth headset has gradually become a portable device for people to live, work and travel, the use frequency is second to that of a mobile phone, a plurality of Bluetooth headsets support double connection, namely two devices can be connected at the same time, audio playing can be freely switched on the two devices, and complex operation of connecting the other device after one device is disconnected is not needed.
When playing the audio frequency of electronic equipment through bluetooth headset, it is the silence audio frequency that the audio frequency that equipment sent to bluetooth headset probably exists, or the equipment of broadcast audio frequency is far away with bluetooth headset distance, the condition that the audio frequency is intermittent appears, at this moment, all can influence the user and normally listen to the audio frequency, has reduced user experience.
Disclosure of Invention
The embodiment of the application aims to provide an audio output method and an audio output device, which can solve the problems that in the prior art, when audio played through a Bluetooth headset is mute audio or when a playing audio device is far away from the Bluetooth headset, normal listening to the audio by a user is influenced, and user experience is reduced.
In a first aspect, an embodiment of the present application provides an audio output method, where the method includes:
in the process of playing the audio of first electronic equipment, acquiring a first audio of the first electronic equipment and a second audio of second electronic equipment;
acquiring audio parameters of the first audio;
and under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, outputting the second audio and stopping outputting the first audio.
In a second aspect, an embodiment of the present application provides an audio output apparatus, including:
the second audio acquisition module is used for acquiring a first audio of the first electronic equipment and a second audio of the second electronic equipment in the process of playing the audio of the first electronic equipment;
the audio parameter acquisition module is used for acquiring the audio parameters of the first audio;
and the second audio output module is used for outputting the second audio and stopping outputting the first audio under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a distance pulling state.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the audio output method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the audio output method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the audio output method according to the first aspect.
In the embodiment of the application, in the process of playing the audio of the first electronic device, the first audio of the first electronic device and the second audio of the second electronic device are obtained, the audio parameter of the first audio is obtained, and when the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, the second audio is output, and the output of the first audio is stopped. According to the embodiment of the application, when the currently played audio of the Bluetooth headset is the mute audio or is in the pull-distance state, the equipment for playing the audio is switched in time, so that a user can be ensured to listen to the normally played audio, and the user experience is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of an audio output method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a silent audio detection provided in an embodiment of the present application;
fig. 3 is a schematic diagram of device switching according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an audio output device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The audio output method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, a flowchart illustrating steps of an audio output method provided by an embodiment of the present application is shown, and as shown in fig. 1, the audio output method may include the following steps:
step 101: in the process of playing the audio of the first electronic device, the first audio of the first electronic device and the second audio of the second electronic device are obtained.
The embodiment of the application can be applied to the scene of switching the equipment for playing the audio when the audio currently played by the Bluetooth headset is the mute audio or the audio in the pull distance state.
The embodiment of the application can be applied to a bluetooth headset, and the bluetooth headset is in communication connection with a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device can be electronic devices of the same type, for example, the first electronic device and the second electronic device are both PC devices or both mobile phones and the like. The first electronic device and the second electronic device may also be different types of electronic devices, for example, the first electronic device is a PC device, and the second electronic device is a mobile phone.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
The first audio refers to the audio of the first electronic device currently output by the bluetooth headset.
The second audio refers to the audio of the second electronic device acquired and buffered by the bluetooth headset.
In the process that the Bluetooth headset is connected with the first electronic device and the second electronic device at the same time, and the audio of the first electronic device is output through the Bluetooth headset, the Bluetooth headset can also acquire the first audio of the first electronic device and the second audio of the second electronic device and buffer the first audio and the second audio for audio output in the subsequent process.
After the first audio of the first electronic device and the second audio of the second electronic device are acquired, step 102 is executed.
Step 102: and acquiring audio parameters of the first audio.
In this embodiment, the audio parameters may include: the audio parameters can be used for judging whether the first audio is a mute audio or not, or judging whether the first audio is an audio in a pull distance state or not.
After the first audio of the first electronic device is acquired, the first audio may be analyzed to obtain an audio parameter of the first audio.
After the audio parameters of the first audio are acquired, step 103 is performed.
Step 103: and under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, outputting the second audio and stopping outputting the first audio.
The pull-distance state is a state in which the first audio is intermittent when the distance between the first electronic device and the bluetooth headset is suddenly and suddenly changed (if the first electronic device is in a static state, the user wears the bluetooth headset to move back and forth).
After the audio parameter of the first audio is acquired, it may be determined whether the first audio is a mute audio or whether the first audio is in a pull-distance state according to the audio parameter, for example, when music is played through a bluetooth headset, and the played music is intermittent (e.g., sound is output sometimes, sound is muted sometimes, etc.), it may be determined that the played music is in the pull-distance state. As shown in fig. 2, when the bluetooth headset is connected to the PC device and the mobile phone at the same time, and the currently output audio of the bluetooth headset is the audio of the PC device, the audio of the PC device may be detected to detect whether the output audio of the PC device is a mute audio.
When the audio parameter of the first audio indicates that the first audio is a non-silent audio and the first audio is in a non-pull-distance state, the playing of the first audio can be maintained.
When the audio parameter of the first audio indicates that the first audio is a mute audio or the first audio is in a pull-distance state, the second audio is output, and the output of the first audio is stopped, as shown in fig. 3, when the audio of the PC device that is output is detected to be a mute audio, the audio of the mobile phone can be output, and the output of the audio of the PC device is suspended.
In one specific implementation of the present application, the audio parameters of the first audio may include: and determining that the first audio is mute audio in the case that the audio amplitude of the first audio is smaller than the audio amplitude threshold value. In this example, the audio amplitude threshold refers to a preset threshold for determining whether the audio is a mute audio, and a specific value of the audio amplitude threshold may be determined according to a service requirement, which is not limited in this embodiment.
In another specific implementation of the present application, the audio parameters of the first audio may include: the integrity of the data packet may be determined that the first audio is in the pull-distance state under the condition that the integrity of the data packet corresponding to the first audio is lower than the integrity threshold, for example, when the first audio is music, the bluetooth headset may receive and buffer the music data packet in real time, the bluetooth headset may detect the integrity of the buffered music data packet in real time, and when the integrity of the music data packet is lower than the integrity threshold, it may be determined that the first audio is in the pull-distance state.
In another specific implementation of the present application, in a case that the audio parameter of the first audio indicates that the first audio is an audio with a discontinuous phenomenon, it may be determined that the first audio is in a pull-distance state, for example, when the first audio is music, the bluetooth headset may receive and buffer a music data packet in real time, and a Digital Signal Processor (DSP) in the bluetooth headset may detect a sound energy value of music data in the buffered music data packet, and determine whether the first audio is an audio with a discontinuous phenomenon according to a sound energy value detection result.
According to the embodiment of the application, when the currently played audio of the Bluetooth headset is the mute audio or is in the pull-distance state, the equipment for playing the audio is switched in time, so that a user can be ensured to listen to the normally played audio, and the user experience is improved.
In this embodiment, whether to perform device switching for playing audio may be determined according to the audio types of the received first audio and the second audio, and in particular, detailed description may be performed in conjunction with the following specific implementation manner.
In another specific implementation manner of the present application, after the step 101, the method may further include:
step C1: a second audio type of the second audio is obtained.
In this embodiment, the second audio type refers to an audio type of the second audio, and in practical applications, the audio type may include: alarm clock, type of prompt, type of game background sound, etc.
After the second audio is acquired, the second audio type of the second audio may be acquired, and then, step C2 is performed.
Step C2: and under the condition that the second audio type is prompt audio, maintaining the first audio to be played.
When the second audio type of the second audio is obtained, it may be determined whether the second audio type is a prompt type audio, and if so, the first audio is kept to be played, for example, when the first audio is music and the second audio type is a pop-up prompt tone, the music is kept to be played, and the pop-up prompt tone is not played.
In a specific implementation, priorities of different audio types may also be preset, and after a first audio type of a first audio and a second audio type of a second audio are acquired, a high-low relationship between the priority of the first audio type and the priority of the second audio type may be determined. If the priority of the second audio type is higher than that of the first audio type, the second audio of the second electronic device can be output, and the output of the first audio of the first electronic device is stopped.
This application embodiment can realize that two way audios of bluetooth headset switch based on audio priority in a flexible way, for example, to alarm clock, music, recreation background sound, prompt tone in bluetooth headset, can set up corresponding priority order, by the order sequencing of high to low in proper order according to the priority: when the first audio is the alarm clock and the second audio is the game background sound, the first audio is played through the Bluetooth earphone; and when the first audio is prompt sound and the second audio is game background sound, the game background sound is played through the Bluetooth earphone.
According to the audio output method provided by the embodiment of the application, in the process of playing the audio of the first electronic device, the first audio of the first electronic device and the second audio of the second electronic device are obtained, the audio parameter of the first audio is obtained, and when the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, the second audio is output, and the output of the first audio is stopped. According to the embodiment of the application, when the currently played audio of the Bluetooth headset is the mute audio or is in the pull-distance state, the equipment for playing the audio is switched in time, so that a user can be ensured to listen to the normally played audio, and the user experience is improved.
It should be noted that, in the audio output method provided in the embodiment of the present application, the execution main body may be an audio output device, or a control module in the audio output device for executing the audio output method. In the embodiment of the present application, an audio output device executing an audio output method is taken as an example to describe the audio output device provided in the embodiment of the present application.
Referring to fig. 4, which shows a schematic structural diagram of an audio output device provided in an embodiment of the present application, as shown in fig. 4, the audio output device 400 may include the following modules:
a second audio acquiring module 410, configured to acquire a first audio of a first electronic device and a second audio of a second electronic device in a process of playing an audio of the first electronic device;
an audio parameter obtaining module 420, configured to obtain an audio parameter of the first audio;
a second audio output module 430, configured to output the second audio and stop outputting the first audio when the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull-distance state.
Optionally, the audio parameters include: the amplitude of the audio frequency is set to be,
the second audio output module 430 includes:
a mute audio determining unit, configured to determine that the first audio is a mute audio when the audio amplitude of the first audio is smaller than an audio amplitude threshold.
Optionally, the audio parameters include: the degree of integrity of the data packet,
the second audio output module 430 includes:
the first span state determination unit is configured to determine that the first audio is in a span state when the integrity of the data packet corresponding to the first audio is lower than an integrity threshold.
Optionally, the second audio output module 430 includes:
and the second pull-distance state determining unit is used for determining that the first audio is in a pull-distance state under the condition that the audio parameter indicates that the first audio is the audio with the intermittent phenomenon.
Optionally, the apparatus further comprises:
the audio type acquisition module is used for acquiring a second audio type of the second audio;
and the first audio maintaining and playing module is used for maintaining and playing the first audio under the condition that the second audio type is the prompt audio.
According to the audio output device provided by the embodiment of the application, in the process of playing the audio of the first electronic device, the first audio of the first electronic device and the second audio of the second electronic device are obtained, the audio parameter of the first audio is obtained, and when the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, the second audio is output, and the output of the first audio is stopped. According to the embodiment of the application, when the currently played audio of the Bluetooth headset is the mute audio or is in the pull-distance state, the equipment for playing the audio is switched in time, so that a user can be ensured to listen to the normally played audio, and the user experience is improved.
The audio output device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The audio output device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The audio output device provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and executable on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the foregoing audio output method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 610 is configured to acquire a first audio of a first electronic device and a second audio of a second electronic device in a process of playing an audio of the first electronic device; acquiring audio parameters of the first audio; and under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, outputting the second audio and stopping outputting the first audio.
According to the embodiment of the application, when the currently played audio of the Bluetooth headset is the mute audio or is in the pull-distance state, the equipment for playing the audio is switched in time, so that a user can be ensured to listen to the normally played audio, and the user experience is improved.
Optionally, the processor 610 is further configured to determine that the first audio is a mute audio if the audio amplitude of the first audio is smaller than an audio amplitude threshold.
Optionally, the processor 610 is further configured to determine that the first audio is in a stretch state if the integrity of the data packet corresponding to the first audio is lower than an integrity threshold.
Optionally, the processor 610 is further configured to determine that the first audio is in a stretch state if the audio parameter indicates that the first audio is an audio with a stutter phenomenon.
Optionally, the processor 610 is further configured to obtain a second audio type of the second audio; and under the condition that the second audio type is prompt audio, maintaining the first audio to be played.
The embodiment of the application can also perform equipment switching for playing the audio based on the audio type so that a user can pay attention to the flexible switching.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned audio output method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above-mentioned audio output method embodiment, and can achieve the same technical effect, and is not described here again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (12)
1. An audio output method, comprising:
in the process of playing the audio of first electronic equipment, acquiring a first audio of the first electronic equipment and a second audio of second electronic equipment;
acquiring audio parameters of the first audio;
and under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a pull distance state, outputting the second audio and stopping outputting the first audio.
2. The method of claim 1, wherein the audio parameters comprise: the amplitude of the audio frequency is set to be,
the audio parameter indicating that the first audio is a muted audio, comprising:
determining that the first audio is a muted audio if the audio amplitude of the first audio is less than an audio amplitude threshold.
3. The method of claim 1, wherein the audio parameters comprise: the degree of integrity of the data packet,
the audio parameter indicates that the first audio is in a span state, including:
and under the condition that the integrity of the data packet corresponding to the first audio is lower than an integrity threshold value, determining that the first audio is in a pull distance state.
4. The method of claim 1, wherein the audio parameter indicates that the first audio is in a span state, comprising:
determining that the first audio is in a pull-distance state if the audio parameter indicates that the first audio is an audio with a stuttering phenomenon.
5. The method of claim 1, further comprising, after the obtaining the first audio of the first electronic device and the second audio of the second electronic device:
acquiring a second audio type of the second audio;
and under the condition that the second audio type is prompt audio, maintaining the first audio to be played.
6. An audio output device, comprising:
the second audio acquisition module is used for acquiring a first audio of the first electronic equipment and a second audio of the second electronic equipment in the process of playing the audio of the first electronic equipment;
the audio parameter acquisition module is used for acquiring the audio parameters of the first audio;
and the second audio output module is used for outputting the second audio and stopping outputting the first audio under the condition that the audio parameter indicates that the first audio is a mute audio or the first audio is in a distance pulling state.
7. The apparatus of claim 6, wherein the audio parameters comprise: the amplitude of the audio frequency is set to be,
the second audio output module includes:
a mute audio determining unit, configured to determine that the first audio is a mute audio when the audio amplitude of the first audio is smaller than an audio amplitude threshold.
8. The apparatus of claim 6, wherein the audio parameters comprise: the degree of integrity of the data packet,
the second audio output module includes:
the first span state determination unit is configured to determine that the first audio is in a span state when the integrity of the data packet corresponding to the first audio is lower than an integrity threshold.
9. The apparatus of claim 6, wherein the second audio output module comprises:
and the second pull-distance state determining unit is used for determining that the first audio is in a pull-distance state under the condition that the audio parameter indicates that the first audio is the audio with the intermittent phenomenon.
10. The apparatus of claim 6, further comprising:
the audio type acquisition module is used for acquiring a second audio type of the second audio;
and the first audio maintaining and playing module is used for maintaining and playing the first audio under the condition that the second audio type is the prompt audio.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the audio output method of any of claims 1-5.
12. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the audio output method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111126405.6A CN113852944A (en) | 2021-09-24 | 2021-09-24 | Audio output method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111126405.6A CN113852944A (en) | 2021-09-24 | 2021-09-24 | Audio output method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113852944A true CN113852944A (en) | 2021-12-28 |
Family
ID=78980069
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111126405.6A Pending CN113852944A (en) | 2021-09-24 | 2021-09-24 | Audio output method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113852944A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115022766A (en) * | 2022-07-21 | 2022-09-06 | 荣耀终端有限公司 | Audio data playing method and equipment |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223406A (en) * | 2011-06-09 | 2011-10-19 | 华平信息技术股份有限公司 | System and method for network-based digitalized real-time transmission of video information |
US20160112792A1 (en) * | 2014-10-17 | 2016-04-21 | Samsung Electronics Co., Ltd. | Electronic device and method for controlling audio input/output |
CN106847316A (en) * | 2017-01-22 | 2017-06-13 | 斑马信息科技有限公司 | Car machine audio control method and its control system |
CN107122158A (en) * | 2017-04-14 | 2017-09-01 | 北京小米移动软件有限公司 | The method and device of broadcast information prompting audio, electronic equipment |
CN109640165A (en) * | 2018-12-20 | 2019-04-16 | 深圳Tcl新技术有限公司 | Multi-medium play method, terminal device and the readable storage medium storing program for executing of track switching |
CN111372228A (en) * | 2020-02-24 | 2020-07-03 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
CN111372159A (en) * | 2020-03-17 | 2020-07-03 | 维沃移动通信有限公司 | Earphone play control method and earphone |
CN111447325A (en) * | 2020-04-03 | 2020-07-24 | 上海闻泰电子科技有限公司 | Call auxiliary method, device, terminal and storage medium |
CN111988770A (en) * | 2020-07-23 | 2020-11-24 | 炬芯科技股份有限公司 | Control method and system of wireless equipment |
-
2021
- 2021-09-24 CN CN202111126405.6A patent/CN113852944A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102223406A (en) * | 2011-06-09 | 2011-10-19 | 华平信息技术股份有限公司 | System and method for network-based digitalized real-time transmission of video information |
US20160112792A1 (en) * | 2014-10-17 | 2016-04-21 | Samsung Electronics Co., Ltd. | Electronic device and method for controlling audio input/output |
CN106847316A (en) * | 2017-01-22 | 2017-06-13 | 斑马信息科技有限公司 | Car machine audio control method and its control system |
CN107122158A (en) * | 2017-04-14 | 2017-09-01 | 北京小米移动软件有限公司 | The method and device of broadcast information prompting audio, electronic equipment |
CN109640165A (en) * | 2018-12-20 | 2019-04-16 | 深圳Tcl新技术有限公司 | Multi-medium play method, terminal device and the readable storage medium storing program for executing of track switching |
CN111372228A (en) * | 2020-02-24 | 2020-07-03 | 维沃移动通信有限公司 | Audio control method and electronic equipment |
CN111372159A (en) * | 2020-03-17 | 2020-07-03 | 维沃移动通信有限公司 | Earphone play control method and earphone |
CN111447325A (en) * | 2020-04-03 | 2020-07-24 | 上海闻泰电子科技有限公司 | Call auxiliary method, device, terminal and storage medium |
CN111988770A (en) * | 2020-07-23 | 2020-11-24 | 炬芯科技股份有限公司 | Control method and system of wireless equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115022766A (en) * | 2022-07-21 | 2022-09-06 | 荣耀终端有限公司 | Audio data playing method and equipment |
CN115022766B (en) * | 2022-07-21 | 2022-12-27 | 荣耀终端有限公司 | Audio data playing method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8320586B2 (en) | System and method for reducing volume spike in an electronic device | |
CN108470571B (en) | Audio detection method and device and storage medium | |
CN108712566B (en) | Voice assistant awakening method and mobile terminal | |
CN107613146B (en) | Volume adjustment method and device and mobile terminal | |
CN109243488B (en) | Audio detection method, device and storage medium | |
CN106940997B (en) | Method and device for sending voice signal to voice recognition system | |
CN109032732B (en) | Notification display method and device, storage medium and electronic equipment | |
CN106068020A (en) | Hinting abnormal states method and device | |
KR20210057790A (en) | Information processing method and terminal | |
US20170192741A1 (en) | Method, System, and Computer Storage Medium for Voice Control of a Split-Screen Terminal | |
WO2019076250A1 (en) | Push message management method and related products | |
CN112764710A (en) | Audio playing mode switching method and device, electronic equipment and storage medium | |
WO2023011370A1 (en) | Audio playing method and apparatus | |
CN111277697B (en) | Audio processing method and device, storage medium and electronic equipment | |
CN112289336A (en) | Audio signal processing method and device | |
CN112291672A (en) | Speaker control method, control device and electronic equipment | |
CN111081283A (en) | Music playing method and device, storage medium and terminal equipment | |
CN108270928B (en) | Voice recognition method and mobile terminal | |
CN113852944A (en) | Audio output method and device | |
CN113220365A (en) | Control method and control device | |
CN103677582A (en) | Method for controlling electronic device, and electronic device | |
CN110851106B (en) | Audio output method and electronic equipment | |
CN113766385B (en) | Earphone noise reduction method and device | |
CN108418961B (en) | Audio playing method and mobile terminal | |
CN111028867B (en) | Audio playing 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 |