CN111654780B - Automatic switching method of audio signals and audio equipment - Google Patents

Automatic switching method of audio signals and audio equipment Download PDF

Info

Publication number
CN111654780B
CN111654780B CN201911415467.1A CN201911415467A CN111654780B CN 111654780 B CN111654780 B CN 111654780B CN 201911415467 A CN201911415467 A CN 201911415467A CN 111654780 B CN111654780 B CN 111654780B
Authority
CN
China
Prior art keywords
audio
audio signal
audio signals
broadcasted
signals
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
CN201911415467.1A
Other languages
Chinese (zh)
Other versions
CN111654780A (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.)
Guangzhou Leafun Culture Science and Technology Co Ltd
Original Assignee
Guangzhou Leafun Culture Science and Technology 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 Guangzhou Leafun Culture Science and Technology Co Ltd filed Critical Guangzhou Leafun Culture Science and Technology Co Ltd
Priority to CN201911415467.1A priority Critical patent/CN111654780B/en
Publication of CN111654780A publication Critical patent/CN111654780A/en
Application granted granted Critical
Publication of CN111654780B publication Critical patent/CN111654780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones
    • H04R3/007Protection circuits for transducers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01HMEASUREMENT OF MECHANICAL VIBRATIONS OR ULTRASONIC, SONIC OR INFRASONIC WAVES
    • G01H11/00Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by detecting changes in electric or magnetic properties
    • G01H11/06Measuring mechanical vibrations or ultrasonic, sonic or infrasonic waves by detecting changes in electric or magnetic properties by electric means

Abstract

An automatic switching method of audio signals and an audio device are provided, the method comprises the following steps: acquiring at least two paths of audio signals accessed to the audio equipment, wherein the audio signals have unique priorities and are different from each other; determining an audio signal to be broadcast from the audio signal; respectively recording the level values of the audio signals according to preset time intervals; if the priority of the audio signal to be broadcasted is not the highest, selecting at least one path of target audio signal from a first audio signal set, wherein the first audio signal set is composed of other audio signals with the priority higher than that of the audio signal to be broadcasted in the audio signals, and the variation trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition; and switching the audio signal to be broadcasted into the audio signal with the highest priority in the target audio signals. By implementing the embodiment of the application, flexible automatic switching of the audio signals can be realized, and the audio equipment can select the optimal audio signal to process and output the audio signal.

Description

Automatic switching method of audio signals and audio equipment
Technical Field
The present application relates to the technical field of audio devices, and in particular, to an automatic switching method for audio signals and an audio device.
Background
Currently, in the occasion of important performance, in order to ensure that the performance is normally performed, most of sound source devices simultaneously provide multiple channels of audio signals, and the audio signals are accessed to audio devices (such as an active sound box, a power amplifier and the like) as input signals to be processed and then output; if the audio signal played currently breaks down, the audio equipment can be switched to other audio signals, and the interruption of performance caused by the interruption of the audio signal is avoided. However, in practice, it is found that the audio device is usually designed to start the switching mechanism only after the audio signal currently being played fails, and the audio device is switched to other audio signals without actively switching back to the original audio signal, so that the audio signal with better quality may be left unused; in addition, in the process of switching audio signals, the audio device usually needs to detect multiple channels of audio signals one by one and compare the detected multiple channels of audio signals with currently played audio signals, and cannot find and switch to the optimal audio signal in time, so that flexible automatic switching of audio signals cannot be realized.
Disclosure of Invention
The embodiment of the application discloses an automatic switching method of audio signals and audio equipment, which can realize flexible automatic switching of the audio signals and are beneficial to the selection of the optimal audio signals for processing and outputting by the audio equipment.
A first aspect of an embodiment of the present application discloses an automatic switching method for audio signals, including:
acquiring at least two paths of audio signals accessed to the audio equipment, wherein the at least two paths of audio signals have unique priorities respectively, and the unique priorities of the at least two paths of audio signals are different from each other;
determining audio signals to be broadcasted from the at least two paths of audio signals;
respectively recording level values of the at least two paths of audio signals according to a time interval preset by the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted;
if the priority of the audio signal to be broadcasted is not the highest priority, selecting at least one path of target audio signal from a first audio signal set; the first audio signal set consists of other audio signals with higher priority than the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition;
and switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal.
As an optional implementation manner, in the first aspect of this embodiment of the present application, the method further includes:
if the priority of the audio signal to be broadcast is not the lowest priority, selecting at least one path of backup audio signal from a second audio signal set; the second audio signal set consists of other audio signals of which the priority is lower than that of the audio signal to be broadcasted in the at least two paths of audio signals; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the backup audio signal meets a second preset condition;
and switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of backup audio signal.
As another optional implementation manner, in the first aspect of the embodiments of the present application, the at least two audio signals are digital audio signals or analog audio signals.
As another optional implementation manner, in the first aspect of the embodiment of the present application, after respectively recording level values of the at least two audio signals according to a time interval preset by the audio device, the method further includes:
determining a preferred audio signal from the at least two audio signals according to the variation trend of the level values of the at least two audio signals within a specified time;
and switching the audio signal to be broadcasted into the preferred audio signal.
As another optional implementation manner, in the first aspect of the embodiment of the present application, after switching the audio signal to be broadcast to the preferred audio signal, the method further includes:
and updating the unique priority of each of the at least two audio signals according to the priority of the preferred audio signal.
A second aspect of an embodiment of the present application discloses an audio device, including:
the audio equipment comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least two paths of audio signals accessed to the audio equipment, the at least two paths of audio signals have unique priorities respectively, and the unique priorities of the at least two paths of audio signals are different from each other;
the first determining unit is used for determining the audio signals to be broadcasted from the at least two paths of audio signals;
the recording unit is used for respectively recording the level values of the at least two paths of audio signals according to a time interval preset by the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted;
the first selection unit is used for selecting at least one path of target audio signal from a first audio signal set when the priority of the audio signal to be broadcasted is not the highest priority; the first audio signal set consists of other audio signals with higher priority than the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition;
and the first switching unit is used for switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal.
As an optional implementation manner, in the second aspect of the embodiments of the present application, the audio device further includes:
the second selection unit is used for selecting at least one path of backup audio signals from a second audio signal set when the priority of the audio signals to be broadcasted is not the lowest priority; the second audio signal set consists of other audio signals of which the priority is lower than that of the audio signal to be broadcasted in the at least two paths of audio signals; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the backup audio signal meets a second preset condition;
and the second switching unit is used for switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of backup audio signal.
As another optional implementation manner, in the second aspect of the embodiments of the present application, the at least two audio signals are digital audio signals or analog audio signals.
As another optional implementation manner, in the second aspect of the embodiments of the present application, the audio device further includes:
the second determining unit is used for determining the preferred audio signal from the at least two paths of audio signals according to the change trend of the level values of the at least two paths of audio signals in the designated time after the recording unit respectively records the level values of the at least two paths of audio signals according to the time interval preset by the audio equipment;
and the third switching unit is used for switching the audio signal to be broadcasted into the preferred audio signal.
As another optional implementation manner, in the second aspect of the embodiments of the present application, the audio device further includes:
and the priority updating unit is used for updating the unique priorities of the at least two paths of audio signals according to the priority of the preferred audio signal after the third switching unit switches the audio signal to be broadcasted into the preferred audio signal.
A third aspect of the embodiments of the present application discloses another audio device, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute all or part of the steps of any one of the automatic switching methods of the audio signal disclosed in the first aspect of the embodiments of the present application.
A fourth aspect of the embodiments of the present application discloses a computer-readable storage medium storing a computer program, where the computer program enables a computer to execute all or part of the steps in any one of the automatic switching methods for audio signals disclosed in the first aspect of the embodiments of the present application.
A fifth aspect of the embodiments of the present application discloses a computer program product, which, when running on a computer, causes the computer to execute all or part of the steps in any one of the automatic switching methods of audio signals of the first aspect of the embodiments of the present application.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
in the embodiment of the application, the automatic switching method of the audio signals is applied to the audio equipment, at least two paths of audio signals accessed to the audio equipment are firstly obtained, the at least two paths of audio signals have unique priorities, and the unique priorities of the at least two paths of audio signals are different from each other; determining audio signals to be broadcasted from the at least two paths of audio signals; respectively recording level values of the at least two paths of audio signals according to a time interval preset by the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted; if the priority of the audio signal to be broadcasted is not the highest priority, selecting at least one path of target audio signal from the first audio signal set; the first audio signal set consists of other audio signals with higher priority than the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition; and switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal. Therefore, by implementing the embodiment of the application, the current optimal audio signal can be judged according to the change trend of the priority of the multi-channel audio signal accessed to the audio equipment and the level difference value between the multi-channel audio signal, and then the audio signal is selected to be switched to the audio equipment for processing and output. In the process, the priority of the multi-channel audio signals can ensure that the selected audio signals are currently available and have the highest priority, so that the condition that the audio signals with better quality are idle is avoided; in addition, the audio equipment monitors the level values of the multiple audio signals simultaneously, so that the best audio signal can be found and switched in time, and flexible automatic switching of the audio signals is realized.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, those skilled in the art will understand that other drawings can be obtained according to the drawings required to be used in the embodiments without creative efforts.
Fig. 1 is a schematic flowchart of an automatic switching method of an audio signal according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another automatic switching method for audio signals disclosed in the embodiments of the present application;
fig. 3 is a schematic flowchart of another automatic switching method for audio signals according to an embodiment of the present application;
FIG. 4 is a block diagram of an audio device according to an embodiment of the present disclosure;
FIG. 5 is a modular schematic diagram of another audio device disclosed in embodiments of the present application;
FIG. 6 is a modular schematic diagram of yet another audio device disclosed in embodiments of the present application;
FIG. 7 is a modular schematic diagram of yet another audio device disclosed in an embodiment of the present application;
fig. 8 is a schematic diagram of an audio signal access audio device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the embodiments of the present application, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
The embodiment of the application discloses an automatic switching method of audio signals and audio equipment, which can realize flexible automatic switching of the audio signals and are beneficial to the selection of the optimal audio signals for processing and outputting by the audio equipment. The following detailed description is made with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart illustrating an automatic switching method of an audio signal according to an embodiment of the present application, where the automatic switching method is applied to an audio device. As shown in fig. 1, the automatic switching method may include the steps of:
101. the audio equipment acquires at least two audio signals accessed to the audio equipment, wherein the at least two audio signals have unique priorities respectively, and the unique priorities of the at least two audio signals are different from each other.
In this embodiment of the present application, the at least two audio signals may be digital audio signals or analog audio signals, and this embodiment of the present application is not limited specifically.
Taking four audio signals (a, B, C, D) as an example, as shown in fig. 8, the four audio signals may be all digital audio signals, all analog audio signals, or a part of the four audio signals may be digital audio signals and the rest of the four audio signals may be analog audio signals. When the audio device accesses the four audio signals, the priority of each audio signal can be obtained respectively, wherein the priority of each audio signal is unique and different from each other, that is, the four audio signals can be sorted in the order of their priorities from high to low (for example, sorted as a, B, C, D) without generating a conflict.
102. And the audio equipment determines the audio signal to be broadcasted from the at least two paths of audio signals.
For example, the audio signal to be broadcasted may be randomly determined from the at least two audio signals, or may be specified according to an external setting, for example, one audio signal with the highest priority in the at least two audio signals may be specified as the audio signal to be broadcasted.
103. And respectively recording the level values of the at least two paths of audio signals by the audio equipment according to a preset time interval of the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted.
Taking the four audio signals (a, B, C, D) as an example, the audio device may record level values of the four audio signals according to a preset time interval, obtain a level value sequence with the same four timestamps, where the level value sequence includes a level value sequence of an audio signal to be broadcasted (e.g., C), and may perform subsequent steps based on the level value sequence.
104. If the priority of the audio signal to be broadcasted is not the highest priority, the audio equipment selects at least one path of target audio signal from the first audio signal set; the first audio signal set consists of other audio signals of the at least two paths of audio signals, wherein the priority of the other audio signals is higher than that of the audio signal to be broadcasted; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition.
In this embodiment, the audio device may combine, by the audio device, other audio signals with a priority higher than that of the audio signal to be played in the at least two paths of audio signals into the first audio signal set. Taking the above four audio signals (a, B, C, D) as an example, when the audio signal to be broadcast is C, the other audio signals a and B with higher priority than the audio signal to be broadcast C constitute the first audio signal set. On the basis, the audio device can select at least one target audio signal (e.g. both a and B are selected) from the first audio signal set (a, B), wherein the variation trend of the difference between the level value of the audio signal to be broadcast (C) and the level value of the target audio signal (a or B) should satisfy a first preset condition.
For example, the first preset condition may include: the continuous times that the absolute value of the difference is smaller than the preset reference threshold value exceed a first designated time N; or the number of times that the absolute value of the difference value is smaller than the preset reference threshold value within the specified time exceeds a second specified number of times M; or the ratio of the number of times that the absolute value of the difference is smaller than the preset reference threshold value in the recording number of times within the specified time exceeds the specified ratio.
Specifically, since the difference between the levels of the audio signal to be broadcast (C) and the target audio signal (a or B) fluctuates around a fixed value when there is no interruption between the two, the audio device can set a predetermined reference threshold value based on the fixed value. On the basis, the variation trend of the difference value between the level values of the audio signal (C) to be broadcasted and the target audio signal (a or B) should satisfy a first preset condition, which may be that the number of consecutive times that the absolute value of the difference value is smaller than a preset reference threshold exceeds a first specified number N, that is, the absolute values of N consecutive difference values recorded in time sequence are all smaller than the preset reference threshold; or, the number of times that the absolute value of the difference is smaller than the preset reference threshold in the specified time exceeds the second specified number M, that is, the absolute values of at least M differences in the differences recorded in the time period of the specified length are all smaller than the preset reference threshold; alternatively, the ratio of the number of times the absolute value of the difference is smaller than the preset reference threshold to the number of times of recording exceeds a predetermined ratio within a predetermined time period, that is, the ratio S/S of the number S of level differences having an absolute value smaller than the preset reference threshold among S differences recorded within a predetermined length of time period may exceed a predetermined ratio.
When the first preset condition is satisfied, it may be determined that neither the audio signal (C) to be played nor the target audio signal (a or B) is interrupted, and the audio device may switch the target audio signal (a or B) having a higher priority than the audio signal (C) to be played by performing the following step 105.
105. And the audio equipment switches the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal.
For example, taking the four audio signals (a, B, C, D) as an example, when the target audio signals (a and B) are more than one, the audio device may switch the audio signal (C) to be broadcast to the audio signal (a) with the highest priority in the target audio signals (a and B) to obtain the currently best audio signal.
By implementing the method, the current optimal audio signal can be judged according to the change trend of the priority of the multi-channel audio signals accessed to the audio equipment and the level difference value between the multi-channel audio signals, and then the audio signal is selected to be switched to the audio equipment for processing and output. In the process, the priority of the multi-channel audio signals can ensure that the selected audio signals are currently available and have the highest priority, so that the condition that the audio signals with better quality are idle is avoided; in addition, the audio equipment monitors the level values of the multiple audio signals simultaneously, so that the best audio signal can be found and switched in time, and flexible automatic switching of the audio signals is realized.
Therefore, the implementation of the automatic switching method described in fig. 1 can realize flexible automatic switching of audio signals, which is beneficial for the audio device to select the optimal audio signal for processing and outputting.
Referring to fig. 2, fig. 2 is a flow chart illustrating another automatic switching method of audio signals according to an embodiment of the present application, wherein the automatic switching method is applied to an audio device. As shown in fig. 2, the automatic switching method may include the steps of:
201. the audio equipment acquires at least two audio signals accessed to the audio equipment, wherein the at least two audio signals have unique priorities respectively, and the unique priorities of the at least two audio signals are different from each other.
202. And the audio equipment determines the audio signal to be broadcasted from the at least two paths of audio signals.
203. And respectively recording the level values of the at least two paths of audio signals by the audio equipment according to a preset time interval of the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted.
204. If the priority of the audio signal to be broadcasted is not the highest priority, the audio equipment selects at least one path of target audio signal from the first audio signal set; the first audio signal set consists of other audio signals of the at least two paths of audio signals, wherein the priority of the other audio signals is higher than that of the audio signal to be broadcasted; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition.
205. And the audio equipment switches the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal.
Similar to the above steps 101 to 105, by implementing the above method, the currently best audio signal can be determined according to the change trend of the priority of the multiple audio signals accessed to the audio device and the level difference value between the multiple audio signals, and then the audio signal is selected to be switched to the audio device for processing and output. In the process, the priority of the multi-channel audio signals can ensure that the selected audio signals are currently available and have the highest priority, so that the condition that the audio signals with better quality are idle is avoided; in addition, the audio equipment monitors the level values of the multiple audio signals simultaneously, so that the best audio signal can be found and switched in time, and flexible automatic switching of the audio signals is realized.
It should be noted that, when the audio device performs the steps 201 to 205, if the audio signal to be played is not switched to the target audio signal with higher priority, that is, if no other audio signal satisfying the first preset condition and having higher priority than the audio signal to be played is obtained, the audio device may continue to perform the following steps 206 to 207 to determine whether to switch the audio signal to be played to the backup audio signal with lower priority.
206. If the priority of the audio signal to be broadcasted is not the lowest priority, the audio equipment selects at least one path of backup audio signal from the second audio signal set; the second audio signal set consists of other audio signals of which the priority is lower than that of the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcast and the level value of the backup audio signal meets a second preset condition.
In this embodiment, the audio device may combine, into the second audio signal set, other audio signals of the at least two paths of audio signals whose priorities are lower than the priority of the audio signal to be played. Taking the above four audio signals (a, B, C, D) as an example, when the audio signal to be broadcast is B, the other audio signals C and D with lower priority than the audio signal to be broadcast B constitute a second audio signal set. On the basis, the audio device can select at least one backup audio signal (e.g., C, D are both selected) from the second audio signal set (C, D), wherein a variation trend of a difference between the level value of the audio signal to be broadcast (B) and the level value of the backup audio signal (C or D) should satisfy a second preset condition.
For example, the second preset condition may include: the number of consecutive times that the absolute value of the above-mentioned difference is greater than or equal to another preset reference threshold (different from the preset reference threshold in the above-mentioned embodiment) exceeds a third prescribed number P; or the number of times that the absolute value of the difference value is greater than or equal to another preset reference threshold value within the specified time exceeds a fourth specified number of times Q; or the ratio of the number of times that the absolute value of the difference is greater than or equal to another preset reference threshold value to the number of times of recording within the specified time exceeds a specified ratio.
Specifically, since the difference between the levels of the audio signal to be broadcast (B) and the backup audio signal (C or D) fluctuates up and down around a fixed value when there is no interruption in either of the two signals, the audio device may set a predetermined reference threshold on the basis of the fixed value as another predetermined reference threshold different from the predetermined reference threshold in the above-described embodiment. On the basis, the variation trend of the difference value between the level values of the audio signal to be broadcast (B) and the backup audio signal (C or D) satisfies a second preset condition, which may be that the consecutive times that the absolute value of the difference value is greater than or equal to another preset reference threshold value exceed a third designated time P, that is, the absolute values of the P consecutive differences recorded in time sequence are all greater than or equal to the another preset reference threshold value; or, the number of times that the absolute value of the difference is greater than or equal to another preset reference threshold in a given time exceeds a fourth specified number of times Q, that is, the absolute values of at least Q differences in the differences recorded in a time period of a specified length are all greater than or equal to the another preset reference threshold; further alternatively, it may be that the ratio of the number of times that the absolute value of the difference is greater than or equal to another preset reference threshold value to the number of times of recording exceeds a predetermined ratio within a predetermined period of time, that is, the ratio R/R of the number R of differences whose absolute value is greater than or equal to the another preset reference threshold value among the R differences recorded within a period of a predetermined length exceeds a predetermined ratio.
Since the level of the audio signal (B) to be broadcast is gradually decreased when the audio signal (B) to be broadcast is interrupted, when the second preset condition is satisfied, it can be determined that the audio signal (B) to be broadcast is interrupted and the backup audio signal (C or D) is not interrupted, and the audio device can switch the backup audio signal (C or D) with a lower priority than the audio signal (B) to be broadcast by performing the next step 205.
207. And the audio equipment switches the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of backup audio signal.
For example, taking the four audio signals (a, B, C, D) as an example, when the backup audio signals (C and D) are more than one, the audio device may switch the audio signal (B) to be broadcast to the audio signal (C) with the highest priority in the backup audio signals (C and D) to implement hot backup of the audio signals.
By implementing the method, when the audio signal to be broadcasted is interrupted and a better audio signal with the priority higher than that of the audio signal to be broadcasted cannot be obtained, the current best backup audio signal can be quickly found according to the change trend of the priority of the multi-channel audio signal connected to the audio equipment and the level difference value between the multi-channel audio signals, and then the backup audio signal is selected to be switched to the audio equipment for processing and output, so that the hot backup of the audio signal is realized, and the flexibility and the practicability of the automatic switching of the audio signal are favorably improved.
Further, by executing the steps 203 to 207 in a circulating manner, the audio device can further improve the flexibility of automatic switching of the audio signals, which is beneficial to continuously selecting the currently optimal audio signal as the audio signal to be broadcasted for processing and outputting.
It can be seen that, by implementing the automatic switching method described in fig. 2, flexible automatic switching of audio signals can be achieved, which is beneficial for the audio device to select the optimal audio signal for processing and outputting.
In addition, the implementation of the automatic switching method described in fig. 2 can implement hot backup of the audio signal, which is beneficial to improving the flexibility and the practicability of automatic switching of the audio signal.
Referring to fig. 3, fig. 3 is a flowchart illustrating another automatic switching method for audio signals according to an embodiment of the present application, wherein the automatic switching method is applied to an audio device. As shown in fig. 3, the automatic switching method may include the steps of:
301. the audio equipment acquires at least two audio signals accessed to the audio equipment, wherein the at least two audio signals have unique priorities respectively, and the unique priorities of the at least two audio signals are different from each other.
302. And the audio equipment determines the audio signal to be broadcasted from the at least two paths of audio signals.
303. And respectively recording the level values of the at least two paths of audio signals by the audio equipment according to a preset time interval of the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted.
304. And the audio equipment determines a preferred audio signal from the at least two audio signals according to the variation trend of the level values of the at least two audio signals in a specified time.
For example, the audio device may determine, as the preferred audio signal, one of the at least two audio signals that has the least number of interruptions and is the most stable signal, according to the number of times that the at least two audio signals have been interrupted within a specified time, that is, the number of times that a variation trend of a difference between level values of a certain audio signal and other audio signals satisfies a first preset condition within the specified time; for another example, the audio device may also determine, as the preferred audio signal, one of the at least two audio signals with the longest playing time according to the duration of the at least two audio signals determined as the audio signal to be played within the specified time.
305. And the audio equipment switches the audio signal to be broadcasted into the preferred audio signal.
306. And the audio equipment updates the unique priority of each of the at least two audio signals according to the priority of the preferred audio signal.
Illustratively, the audio device may raise the priority of the preferred audio signal and defer the priority of the other audio signals. Taking the four audio signals (a, B, C, D) as an example, if the audio signals are ranked as a, B, C, D in the order of their priorities from high to low, when it is determined that the preferred audio signal is C, the audio device may update the ranking of its priorities as C, a, B, D in the order of high to low.
By implementing the method, the preferred audio signal can be determined according to the actual playing condition of the audio signal, and the priority of the preferred audio signal is improved, so that the priorities of the at least two paths of audio signals can be properly adjusted according to the actual playing condition, and the reliability of automatic switching of the audio signals is improved.
It can be seen that, by implementing the automatic switching method described in fig. 3, flexible automatic switching of audio signals can be achieved, which is beneficial for the audio device to select the optimal audio signal for processing and outputting.
In addition, by implementing the automatic switching method described in fig. 3, the priority of the audio signal can be appropriately adjusted according to the actual playing condition of the audio signal, which is beneficial to improving the reliability of automatic switching of the audio signal.
Referring to fig. 4, fig. 4 is a schematic block diagram of an audio device according to an embodiment of the present disclosure. As shown in fig. 4, the audio device may include:
the obtaining unit 401 is configured to obtain at least two audio signals accessed to the audio device, where the at least two audio signals have unique priorities, and the unique priorities of the at least two audio signals are different from each other.
A first determining unit 402, configured to determine an audio signal to be played from the at least two audio signals.
A recording unit 403, configured to record level values of the at least two audio signals respectively according to a preset time interval of the audio device, where the level values of the at least two audio signals include the level value of the audio signal to be broadcasted.
A first selecting unit 404, configured to select at least one path of target audio signal from a first audio signal set when the priority of the audio signal to be broadcast is not the highest priority; the first audio signal set consists of other audio signals of the at least two paths of audio signals, wherein the priority of the other audio signals is higher than that of the audio signal to be broadcasted; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition.
The first switching unit 405 is configured to switch the audio signal to be broadcasted to an audio signal with the highest priority in the at least one path of target audio signal.
As an alternative embodiment, the first preset condition may include: the continuous times that the absolute value of the difference is smaller than the preset reference threshold value exceed a first designated time N; or the number of times that the absolute value of the difference value is smaller than the preset reference threshold value within the specified time exceeds a second specified number of times M; or the ratio of the number of times that the absolute value of the difference is smaller than the preset reference threshold value in the recording number of times within the specified time exceeds the specified ratio.
With the audio device implemented, the first selecting unit 404 can determine the currently best audio signal according to the change trend of the priority of the multiple audio signals accessed to the audio device and the change trend of the level difference value between the multiple audio signals, and then select the audio signal and switch the audio signal to be played into the audio signal by the first switching unit 405. The priority of the multi-channel audio signals can ensure that the selected audio signals are currently available and have the highest priority, so that the condition that the audio signals with better quality are idle is avoided; in addition, the recording unit 403 monitors the level values of the multiple audio signals simultaneously, which is beneficial to finding and switching to the best audio signal in time, thereby realizing flexible automatic switching of the audio signals.
It can be seen that, by implementing the audio device described in fig. 4, flexible automatic switching of audio signals can be achieved, which is beneficial for the audio device to select the optimal audio signal for processing and outputting.
Referring to fig. 5, fig. 5 is a schematic block diagram of another audio device according to an embodiment of the disclosure. The audio device shown in fig. 5 is optimized from the audio device shown in fig. 4. Compared to the audio apparatus shown in fig. 4, the audio apparatus shown in fig. 5 further includes:
a second selecting unit 406, configured to select at least one backup audio signal from a second audio signal set when the first switching unit 405 does not switch the audio signal to be broadcasted to an audio signal with a highest priority in the at least one target audio signal and the priority of the audio signal to be broadcasted is not a lowest priority; the second audio signal set consists of other audio signals of which the priority is lower than that of the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcast and the level value of the backup audio signal meets a second preset condition.
The second switching unit 407 is configured to switch the audio signal to be broadcasted to an audio signal with the highest priority in the at least one path of backup audio signals.
As an alternative implementation, the second preset condition may include: the number of consecutive times that the absolute value of the above-mentioned difference is greater than or equal to another preset reference threshold (different from the preset reference threshold in the above-mentioned embodiment) exceeds a third prescribed number P; or the number of times that the absolute value of the difference value is greater than or equal to another preset reference threshold value within the specified time exceeds a fourth specified number of times Q; or the ratio of the number of times that the absolute value of the difference is greater than or equal to another preset reference threshold value to the number of times of recording within the specified time exceeds a specified ratio.
By implementing the audio equipment, when the audio signal to be played is interrupted, the current best backup audio signal can be quickly found according to the change trend of the priority of the multi-channel audio signal accessed into the audio equipment and the change trend of the level difference value between the multi-channel audio signal, and then the backup audio signal is selected and the audio signal to be played is switched into the backup audio signal by the second switching unit 407, so that hot backup of the audio signal is realized, and the flexibility and the practicability of automatic switching of the audio signal are improved.
Further, if the first switching unit 405 does not switch the audio signal to be broadcasted to the target audio signal with higher priority, the second selecting unit 406 may determine whether to switch the audio signal to be broadcasted to a backup audio signal with lower priority, and the second switching unit 407 switches the audio signal to be broadcasted to the backup audio signal. By circulating the process, the audio equipment can realize flexible automatic switching of the audio signals, and is favorable for keeping and selecting the current optimal audio signal as the audio signal to be broadcasted for processing and outputting.
It can be seen that, with the audio device described in fig. 5, flexible automatic switching of audio signals can be achieved, which is beneficial for the audio device to select the best audio signal for processing and outputting.
In addition, the audio device described in fig. 5 can implement hot backup of the audio signal, which is beneficial to improving the flexibility and practicability of automatic switching of the audio signal.
Referring to fig. 6, fig. 6 is a schematic block diagram of another audio device according to an embodiment of the present disclosure. The audio device shown in fig. 6 is optimized by the audio device shown in fig. 5. Compared to the audio apparatus shown in fig. 5, the audio apparatus shown in fig. 6 further includes:
a second determining unit 408, configured to determine, after the recording unit 403 respectively records the level values of the at least two audio signals according to a time interval preset by the audio device, a preferred audio signal from the at least two audio signals according to a variation trend of the level values of the at least two audio signals within a specified time.
A third switching unit 409, configured to switch the audio signal to be broadcast into the preferred audio signal.
A priority updating unit 410, configured to update the unique priority of each of the at least two audio signals according to the priority of the preferred audio signal after the third switching unit 409 switches the audio signal to be broadcast to the preferred audio signal.
By implementing the audio device, the second determining unit 408 can determine a preferred audio signal according to the actual playing condition of the audio signal, the third switching unit 409 switches the audio signal to be played to the preferred audio signal, and the priority updating unit 410 increases the priority of the preferred audio signal, so that the priorities of the at least two paths of audio signals can be appropriately adjusted according to the actual playing condition, which is beneficial to increasing the reliability of automatic switching of the audio signals.
It can be seen that, with the audio device described in fig. 6, flexible automatic switching of audio signals can be achieved, which is beneficial for the audio device to select the best audio signal for processing and outputting.
In addition, the audio device described in fig. 6 can appropriately adjust the priority of the audio signal according to the actual playing condition of the audio signal, which is beneficial to improving the reliability of automatic switching of the audio signal.
Referring to fig. 7, fig. 7 is a schematic block diagram of another audio device according to an embodiment of the disclosure. As shown in fig. 7, the audio device may include:
a memory 701 in which executable program code is stored;
a processor 702 coupled to the memory 701;
the processor 702 calls the executable program code stored in the memory 701 to execute all or part of the steps in the automatic switching method of the audio signal of any one of fig. 1 to 3.
In addition, the embodiment of the present application further discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute all or part of the steps in the automatic switching method of an audio signal in any one of fig. 1 to 3.
In addition, the embodiment of the present application further discloses a computer program product, which, when running on a computer, causes all or part of the steps in the automatic switching method of any one of the audio signals of the computers 1 to 3.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by hardware instructions of a program, and the program may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM), or other Memory, such as a magnetic disk, or a combination thereof, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
The foregoing describes in detail an automatic audio signal switching method and an audio device disclosed in the embodiments of the present application, and specific examples are applied herein to explain the principles and embodiments of the present invention, and the description of the foregoing embodiments is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for automatically switching audio signals, the method being applied to an audio device and comprising:
acquiring at least two paths of audio signals accessed to the audio equipment, wherein the at least two paths of audio signals have unique priorities respectively, and the unique priorities of the at least two paths of audio signals are different from each other;
determining audio signals to be broadcasted from the at least two paths of audio signals;
respectively recording level values of the at least two paths of audio signals according to a time interval preset by the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted;
if the priority of the audio signal to be broadcasted is not the highest priority, selecting at least one path of target audio signal from a first audio signal set; the first audio signal set consists of other audio signals with higher priority than the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition, wherein the first preset condition comprises: the continuous times that the absolute value of the difference is smaller than the preset reference threshold value exceed a first designated time N; or the number of times that the absolute value of the difference value is smaller than the preset reference threshold value within the specified time exceeds a second specified number of times M; or the ratio of the number of times that the absolute value of the difference value is smaller than the preset reference threshold value to the number of recording times within the specified time exceeds a specified ratio;
and switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal.
2. The automatic switching method according to claim 1, further comprising:
if the priority of the audio signal to be broadcast is not the lowest priority, selecting at least one path of backup audio signal from a second audio signal set; the second audio signal set consists of other audio signals of which the priority is lower than that of the audio signal to be broadcasted in the at least two paths of audio signals; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the backup audio signal meets a second preset condition;
and switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of backup audio signal.
3. The automatic switching method according to claim 1 or 2, wherein the at least two audio signals are digital audio signals or analog audio signals.
4. The automatic switching method according to claim 3, wherein after the level values of the at least two audio signals are respectively recorded at time intervals preset by the audio device, the method further comprises:
determining a preferred audio signal from the at least two audio signals according to the variation trend of the level values of the at least two audio signals within a specified time;
and switching the audio signal to be broadcasted into the preferred audio signal.
5. The automatic switching method of claim 4, wherein after switching the audio signal to be broadcast to the preferred audio signal, the method further comprises:
and updating the unique priority of each of the at least two audio signals according to the priority of the preferred audio signal.
6. An audio device, comprising:
the audio equipment comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring at least two paths of audio signals accessed to the audio equipment, the at least two paths of audio signals have unique priorities respectively, and the unique priorities of the at least two paths of audio signals are different from each other;
the first determining unit is used for determining the audio signals to be broadcasted from the at least two paths of audio signals;
the recording unit is used for respectively recording the level values of the at least two paths of audio signals according to a time interval preset by the audio equipment, wherein the level values of the at least two paths of audio signals comprise the level values of the audio signals to be broadcasted;
the first selection unit is used for selecting at least one path of target audio signal from a first audio signal set when the priority of the audio signal to be broadcasted is not the highest priority; the first audio signal set consists of other audio signals with higher priority than the audio signal to be broadcasted in the at least two paths of audio signals; the variation trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the target audio signal meets a first preset condition, wherein the first preset condition comprises: the continuous times that the absolute value of the difference is smaller than the preset reference threshold value exceed a first designated time N; or the number of times that the absolute value of the difference value is smaller than the preset reference threshold value within the specified time exceeds a second specified number of times M; or the ratio of the number of times that the absolute value of the difference value is smaller than the preset reference threshold value to the number of recording times within the specified time exceeds a specified ratio;
and the first switching unit is used for switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of target audio signal.
7. The audio device of claim 6, further comprising:
the second selection unit is used for selecting at least one path of backup audio signals from a second audio signal set when the priority of the audio signals to be broadcasted is not the lowest priority; the second audio signal set consists of other audio signals of which the priority is lower than that of the audio signal to be broadcasted in the at least two paths of audio signals; the change trend of the difference value between the level value of the audio signal to be broadcasted and the level value of the backup audio signal meets a second preset condition;
and the second switching unit is used for switching the audio signal to be broadcasted into the audio signal with the highest priority in the at least one path of backup audio signal.
8. The audio device according to any of claims 6 to 7, wherein the at least two audio signals are digital audio signals or analog audio signals.
9. The audio device of claim 8, further comprising:
the second determining unit is used for determining the preferred audio signal from the at least two paths of audio signals according to the change trend of the level values of the at least two paths of audio signals in the designated time after the recording unit respectively records the level values of the at least two paths of audio signals according to the time interval preset by the audio equipment;
and the third switching unit is used for switching the audio signal to be broadcasted into the preferred audio signal.
10. The audio device of claim 9, further comprising:
and the priority updating unit is used for updating the unique priorities of the at least two paths of audio signals according to the priority of the preferred audio signal after the third switching unit switches the audio signal to be broadcasted into the preferred audio signal.
CN201911415467.1A 2019-12-31 2019-12-31 Automatic switching method of audio signals and audio equipment Active CN111654780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911415467.1A CN111654780B (en) 2019-12-31 2019-12-31 Automatic switching method of audio signals and audio equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911415467.1A CN111654780B (en) 2019-12-31 2019-12-31 Automatic switching method of audio signals and audio equipment

Publications (2)

Publication Number Publication Date
CN111654780A CN111654780A (en) 2020-09-11
CN111654780B true CN111654780B (en) 2021-06-25

Family

ID=72349216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911415467.1A Active CN111654780B (en) 2019-12-31 2019-12-31 Automatic switching method of audio signals and audio equipment

Country Status (1)

Country Link
CN (1) CN111654780B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1219027A1 (en) * 1999-08-28 2002-07-03 Volkswagen Aktiengesellschaft Method and device for operating an audio device in a motor vehicle
CN101500112A (en) * 2008-01-31 2009-08-05 日本电气株式会社 Automatic switch apparatus and method
WO2016064637A1 (en) * 2014-10-22 2016-04-28 T-Mobile Usa, Inc. Dynamic rate adaptation during real-time lte communication
CN105681974A (en) * 2016-04-01 2016-06-15 北京小鸟听听科技有限公司 Multiple-sound-source switching method and device and audio equipment
CN105872899A (en) * 2016-04-20 2016-08-17 乐视控股(北京)有限公司 Audio playing method and device and terminal equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9025773B2 (en) * 2012-04-21 2015-05-05 Texas Instruments Incorporated Undetectable combining of nonaligned concurrent signals
US20130282372A1 (en) * 2012-04-23 2013-10-24 Qualcomm Incorporated Systems and methods for audio signal processing
US9344788B2 (en) * 2014-08-20 2016-05-17 Bose Corporation Motor vehicle audio system
CN105898569B (en) * 2016-04-11 2019-01-08 阿不力孜·牙生 A kind of audio signal method and system that intelligently switching exports
CN108513212B (en) * 2018-02-12 2020-12-04 深圳易科声光科技股份有限公司 Method and device for switching audio channels in operation process
CN108471571A (en) * 2018-02-26 2018-08-31 深圳市易科声光科技有限公司 A kind of audio frequency power amplifier and audio system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1219027A1 (en) * 1999-08-28 2002-07-03 Volkswagen Aktiengesellschaft Method and device for operating an audio device in a motor vehicle
CN101500112A (en) * 2008-01-31 2009-08-05 日本电气株式会社 Automatic switch apparatus and method
WO2016064637A1 (en) * 2014-10-22 2016-04-28 T-Mobile Usa, Inc. Dynamic rate adaptation during real-time lte communication
CN105681974A (en) * 2016-04-01 2016-06-15 北京小鸟听听科技有限公司 Multiple-sound-source switching method and device and audio equipment
CN105872899A (en) * 2016-04-20 2016-08-17 乐视控股(北京)有限公司 Audio playing method and device and terminal equipment

Also Published As

Publication number Publication date
CN111654780A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
US6760635B1 (en) Automatic sound reproduction setting adjustment
US4667314A (en) Compact disc player for playing a sequence of discs and selecting a sequence of stored programs in each disc to be played
JPH01231510A (en) Output level controller
CN110308888B (en) Volume control method, electronic equipment and computer readable storage medium
CN104916295A (en) Method and terminal for play control
US20060288042A1 (en) System and method for generating a play-list
CN111654780B (en) Automatic switching method of audio signals and audio equipment
KR20060054409A (en) Program recording device
CN106649645A (en) Playlist processing method and device
JP4330143B2 (en) Content data playback apparatus, content data playback system, and content data playback program
CN114928423B (en) Switching control method and system for multi-channel broadcast tuner and terminal equipment
CN107333171B (en) Method and device for synchronizing sound of television broadcast and terminal equipment
US20190258449A1 (en) System and method for playing music
US20160247540A1 (en) Method of recording multiple highlights concurrently
CN113934397A (en) Broadcast control method in electronic equipment and electronic equipment
US10547910B2 (en) Adjusting speaker settings
US8731217B2 (en) Method and apparatus for controlling audio signal output level of portable audio device
KR20050072132A (en) Method and system for selecting chapter boundaries for digital video recordings
US20220174348A1 (en) Media playback apparatus and method having audio channel automatic selection mechanism
US20050232582A1 (en) Content data reproducing apparatus, content data reproducing system and content data reproducing program
CN111970070A (en) Channel selection method, device, storage medium and communication equipment
KR100778001B1 (en) method for reproducing multimedia file, and apparatus thereof
CN111653286A (en) Hot backup method of audio signal and audio equipment
US20180192145A1 (en) Method and Apparatus for Processing IPTV Program, and IPTV System
US11138260B2 (en) Method and apparatus for determining output information

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