CN106713978A - Method and device for selecting audio output channel and terminal equipment - Google Patents
Method and device for selecting audio output channel and terminal equipment Download PDFInfo
- Publication number
- CN106713978A CN106713978A CN201710004545.3A CN201710004545A CN106713978A CN 106713978 A CN106713978 A CN 106713978A CN 201710004545 A CN201710004545 A CN 201710004545A CN 106713978 A CN106713978 A CN 106713978A
- Authority
- CN
- China
- Prior art keywords
- audio output
- output channel
- priority level
- audio
- channel
- 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 43
- 230000000694 effects Effects 0.000 claims description 25
- 238000004891 communication Methods 0.000 claims description 11
- 238000001514 detection method Methods 0.000 claims description 10
- 238000004422 calculation algorithm Methods 0.000 abstract description 14
- 230000003993 interaction Effects 0.000 abstract description 11
- 230000002093 peripheral effect Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 238000010187 selection method Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 6
- 230000005236 sound signal Effects 0.000 description 4
- PCTMTFRHKVHKIS-BMFZQQSSSA-N (1s,3r,4e,6e,8e,10e,12e,14e,16e,18s,19r,20r,21s,25r,27r,30r,31r,33s,35r,37s,38r)-3-[(2r,3s,4s,5s,6r)-4-amino-3,5-dihydroxy-6-methyloxan-2-yl]oxy-19,25,27,30,31,33,35,37-octahydroxy-18,20,21-trimethyl-23-oxo-22,39-dioxabicyclo[33.3.1]nonatriaconta-4,6,8,10 Chemical compound C1C=C2C[C@@H](OS(O)(=O)=O)CC[C@]2(C)[C@@H]2[C@@H]1[C@@H]1CC[C@H]([C@H](C)CCCC(C)C)[C@@]1(C)CC2.O[C@H]1[C@@H](N)[C@H](O)[C@@H](C)O[C@H]1O[C@H]1/C=C/C=C/C=C/C=C/C=C/C=C/C=C/[C@H](C)[C@@H](O)[C@@H](C)[C@H](C)OC(=O)C[C@H](O)C[C@H](O)CC[C@@H](O)[C@H](O)C[C@H](O)C[C@](O)(C[C@H](O)[C@H]2C(O)=O)O[C@H]2C1 PCTMTFRHKVHKIS-BMFZQQSSSA-N 0.000 description 2
- 238000009825 accumulation Methods 0.000 description 2
- 239000003550 marker Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- WNKZOJNKBOBRAY-UHFFFAOYSA-N cdba Chemical compound O=CC1=CC=CC=C1.O1C(C(C2O)O)C(COC)OC2OC(C(C2O)O)C(COC)OC2OC(C(C2O)O)C(COC)OC2OC(C(C2O)O)C(COC)OC2OC(C(O)C2O)C(COC)OC2OC(C(C2O)O)C(COC)OC2OC2C(O)C(O)C1OC2COC WNKZOJNKBOBRAY-UHFFFAOYSA-N 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000000682 scanning probe acoustic microscopy Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/439—Processing of audio elementary streams
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/44—Receiver circuitry for the reception of television signals according to analogue transmission standards
- H04N5/60—Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals
- H04N5/602—Receiver circuitry for the reception of television signals according to analogue transmission standards for the sound signals for digital sound signals
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Circuit For Audible Band Transducer (AREA)
- Stereophonic System (AREA)
Abstract
The invention provides a method and device for selecting an audio output channel and terminal equipment. According to the invention, by a set of algorithm, a target priority level is automatically determined, and by an audio output channel corresponding to the target priority level, an audio is output, so that automatic selection of a plurality of audio output channels is implemented. Various human-computer interaction interfaces and channel control algorithms do not need to be designed, and thus, a computation burden and operation time of a television terminal program can be reduced. Moreover, when a new audio output channel is added according to actual demands, only a priority level and a connection state of the newly added audio output channel need to be determined, thereby benefiting for improving flexibility in program design. According to the method, in a mode of setting various priority levels, various combination modes of the audio output channels can be provided; when the priority level and the connection state of each audio output channel are changed, the target priority level can be changed accordingly. According to the method for dynamically selecting the audio output channel, operability and flexibility of selecting the audio output channels can be improved.
Description
Technical Field
The invention relates to the technical field of television terminals, in particular to a method and a device for selecting an audio output channel and terminal equipment.
Background
The television terminal is generally provided with a plurality of independent audio output channels (such as a speaker channel, an earphone channel, a bluetooth channel, and the like), and the audio signal can be directly transmitted to the built-in audio playing device of the television terminal through the corresponding audio output channel, or the audio signal in one or more of the audio output channels is transmitted to an external audio playing device such as an external sound box, a bluetooth earphone, and the like through an audio output interface such as an HDMI (High definition multimedia interface), a USB (Universal Serial Bus), and the like, so as to realize audio output of the television terminal.
From the above, the television terminal can select one or more audio output channels to output the audio signal. Fig. 1 is a diagram of a common audio output channel selection scenario. As shown in fig. 1, the Audio output channels of the tv terminal include a speaker Channel, an ARC (Audio Return Channel), an earphone Channel, and an Spdif (Sony, Philips Digital Audio Interface, Sony/Philips Digital Interface Format) Channel. The control of the television terminal on the four channels is mutually independent, and the channel states of the four channels, such as opening, closing, volume output and the like, need to be controlled through an independent human-computer interaction interface and a channel control algorithm respectively. The selection of the audio output channels can be realized by respectively setting the switch states of the four audio output channels. The selection mode of the audio output channel needs to operate various human-computer interaction interfaces and channel control algorithms, and the operation amount and the operation time of the television terminal program are increased. In addition, when a new audio output channel is added according to actual requirements, a set of new human-computer interaction interface and a corresponding channel control algorithm need to be additionally added according to the functional characteristics of the added audio output channel. When the audio output channel is selected, the newly added human-computer interaction interface and the channel control algorithm further prolong the running time of the television terminal program; meanwhile, a brand new human-computer interaction interface and a channel control algorithm are added, so that the program design is complex, and the flexibility of the program design is reduced.
In addition, some television terminals limit the starting relationship of two or more audio output channels according to the output characteristics of the audio output channels on the basis of independently controlling the audio output channels in order to reduce the computation amount of the television terminal program. If the loudspeaker channel is in the opening state, the earphone channel with lower use frequency in the state is automatically set to be in the non-selectable state. The selection mode of the audio output channel can reduce the operation amount and the running time of the television terminal program, but the mandatory performance on the selection of the audio output channel is higher, and the operability and the flexibility of the selection of the audio output channel are reduced.
Disclosure of Invention
The invention provides a method and a device for selecting an audio output channel and terminal equipment, and aims to solve the technical problem that the audio channel selection method in the prior art is poor in flexibility.
In a first aspect, the present invention provides a method for selecting an audio output channel, the method comprising:
determining the priority level of each audio output channel, wherein each priority level corresponds to at least one audio/video output channel;
determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level;
and outputting the audio through the audio output channel corresponding to the target priority level.
In a second aspect, the present invention further provides an apparatus for selecting an audio output channel, comprising: the processor, the memory and the communication interface are connected with a communication bus;
the communication interface is used for receiving and sending signals;
the memory for storing program code;
the processor is used for reading the program codes stored in the memory and executing the method.
In a third aspect, the present invention further provides a terminal device, including a device main body;
the apparatus body including therein the selection means of the audio output channel as claimed in claim 9, further comprising:
at least one audio output channel for outputting audio;
the detection module is used for detecting the connection state of the audio output channel and the playing equipment;
and the display screen is used for displaying the selection result of the audio output channel.
The technical scheme provided by the embodiment of the invention can have the following beneficial effects:
the invention provides a method for selecting an audio output channel, which comprises the following steps: determining the priority level of each audio output channel, wherein each priority level corresponds to at least one audio/video output channel; determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level; and outputting the audio through the audio output channel corresponding to the target priority level. The invention can automatically determine the target priority level through the set of algorithms, and outputs the audio through the audio output channel corresponding to the target priority level, thereby realizing the automatic selection of a plurality of audio output channels. Because various human-computer interaction interfaces and channel control algorithms are not required to be designed, the method can reduce the operation amount and the operation time of the television terminal program. In addition, when a new audio output channel is added according to actual requirements, only the priority level and the connection state of the newly added audio output channel need to be determined, and a new set of human-computer interaction interface and a corresponding channel control algorithm do not need to be additionally added, so that the flexibility in program design is improved. The method can provide a combination mode of a plurality of audio output channels by setting the priority level, and when the priority level and the connection state of the audio output channels are changed, the target priority level can be changed accordingly. The method for dynamically selecting the audio output channel can improve the operability and flexibility of audio output channel selection.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
FIG. 1 is a diagram illustrating a selection scenario of a common audio output channel provided by the present invention;
fig. 2 is a flowchart of a method for selecting an audio output channel according to an embodiment of the present invention;
fig. 3 is a flowchart of a method for selecting an audio output channel according to a second embodiment of the present invention;
fig. 4 is a diagram of a selection scenario of an audio output channel according to a second embodiment of the present invention;
fig. 5 is a flowchart of a method for selecting an audio output channel according to a third embodiment of the present invention;
fig. 6 is a diagram of a selection scenario of an audio output channel provided in the third embodiment of the present invention;
fig. 7 is a flowchart of a method for selecting an audio output channel according to a fourth embodiment of the present invention;
fig. 8 is a diagram of a selection scenario of an audio output channel provided in the fourth embodiment of the present invention;
fig. 9 is a schematic structural diagram of an apparatus for selecting an audio output channel according to a fifth embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus consistent with certain aspects of the invention, as detailed in the appended claims.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
Fig. 2 is a flowchart of a method for selecting an audio output channel according to an embodiment of the present invention. As can be seen from fig. 2, the method comprises:
step S101: the priority level of each audio output channel is determined.
In one possible implementation manner, the terminal system includes three audio output channels, namely a bluetooth channel, an earphone channel and a loudspeaker channel, and two priority levels (a first priority level and a second priority level) are preset. Through the use characteristics or the output effect characteristics of the bluetooth channel, the headset channel and the ARC, the priority level corresponding to each audio output channel can be determined. Under the same condition, the audio/video output channel with high priority level can be preferentially selected. For example, if the usage of ARC is better, the priority level of ARC may be set to the first priority level.
Step S102: and determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level.
In this embodiment, two threads may be provided, where one thread is used to detect the connection state between each audio/video output channel and the playing device; and the other thread is used for determining the target priority level according to the connection state of the audio and video output channel. When the target priority level is determined, whether the audio/video output channels corresponding to the priority levels are all connected with the playing device or not can be respectively determined, a plurality of priority levels of which the corresponding audio/video output channels are all connected with the playing device are selected, and the highest priority level is determined as the target priority level. In addition, the priority level that the first audio output channel corresponding to the requirement is connected with the audio playing device can also be determined as the target priority level according to the sequence from high priority level to low priority level. In the second mode, after the target priority level is determined, the related threads can stop running, so that the operation amount and the running time for determining the target priority level are relatively reduced.
The embodiment can detect the interface state of the audio interface through the connection state detection module, so as to determine the connection state of each audio/video output channel and the playing device. For example, if the connection state of the earphone channel with the audio playing device needs to be determined, the high and low levels of a GPIO (General Purpose Input/Output) interface can be detected. The connection state of the earphone channel and the audio playing device can be determined by comparing the preset state and the detection state of the GPIO interface. For example, the preset state of the GPIO interface is set to a high level, and the detection state is a low level, which indicates that the state of the GPIO interface changes, and the headphone channel and the audio playback device are in a connected state. In addition, the ARC and bluetooth channels may detect interface states of corresponding audio interfaces based on a CEC (Consumer electronics Control) protocol and a bluetooth protocol, respectively.
Step S103: and outputting the audio through the audio output channel corresponding to the target priority level.
The invention can automatically determine the target priority level through the set of algorithms, and outputs the audio through the audio output channel corresponding to the target priority level, thereby realizing the automatic selection of a plurality of audio output channels. The method does not need to design various human-computer interaction interfaces and channel control algorithms, and reduces the operation amount and the operation time of the television terminal program. In addition, when a new audio output channel is added according to actual requirements, only the priority level and the connection state of the newly added audio output channel need to be determined, and a new set of human-computer interaction interface and a corresponding channel control algorithm do not need to be additionally added, so that the flexibility in program design is improved. Meanwhile, the selection method is a dynamic selection method, when the priority level and the connection state of the audio output channel are changed, the target priority level can be changed accordingly, and the operability and the flexibility of the selection of the audio output channel are improved.
Fig. 3 is a flowchart of a method for selecting an audio output channel according to a second embodiment of the present invention. As can be seen from fig. 3, the method comprises:
step S201: and acquiring the characteristic value of each audio output channel.
The characteristic value is a use frequency value of an audio output channel, a preset output effect value, or a weighted value of the use frequency value and the output effect value. In this embodiment, the usage frequency value of the audio output channel can be obtained through historical usage data of the audio output channel, and is automatically updated after the audio output channel is selected. The output effect value of the audio output channel can be preset according to the actual output effect of each audio output channel, and the audio output channel with better output effect has larger corresponding output effect. For example, in order of sequentially increasing output effects, common audio output channels may be ordered as: the output effect values of the bluetooth channel < headphone channel < speaker channel < ARC can be preset to 1, 3, 5, and 7 in sequence according to the output effect of the above audio output channels.
In addition, the characteristic value of each audio output channel may be determined by using the frequency value and a weighting value of the output effect value. The formula for this approach is as follows:
wherein,for the characteristic value, x, of the audio output channel1And x2Respectively, the use frequency value and the output effect value of the audio output channel, f1To use the weighting coefficient of the frequency value, f2Weighting coefficients for the output effect values.
f1And f2Can be determined according to actual requirements. If user preferences are emphasized, f can be set1Greater than f2(ii) a If emphasis is placed on the quality of the output audio, f can be set2Greater than f1. The weighted value of the use frequency value and the output effect value is determined as the characteristic value of the audio output channel, so that the characteristics of the use characteristic and the output effect characteristic of the audio output channel can be comprehensively embodied, and the priority level of each audio output channel can be flexibly determined. In addition, the characteristic value of each audio output channel can also be eachThe time-of-use accumulation value of each audio output channel, or the frequency value, the output effect value, and the weight value using the time-of-use accumulation value. Similar to the use frequency, the weighting coefficient of the use time accumulated value is increased, and the personal preference of the user can be fully reflected.
The formula using the use frequency value, the output effect value and the weighting value of the use time accumulated value of the audio output channel as the characteristic value of the audio output channel is as follows:
wherein,for the characteristic value, x, of the audio output channel1、x2And x3Respectively the use frequency value, the output effect value and the use time accumulated value f of the audio output channel1To use the weighting coefficient of the frequency value, f2Weighting coefficients, f, for the output effect values3A weighting factor for the frequency values is used.
Step S202: and determining the sequence of the characteristic values of the audio output channels from large to small as the priority level of each audio output channel.
Specifically, a flag bit outblag of 4 bits may be set according to the number of audio output channels: ABCD, each of the marker bits uniquely corresponds to one audio output channel (e.g., ABCD corresponds to bluetooth channel, headphone channel, ARC, and speaker channel, respectively). And according to the sequence of the characteristic values of the audio output channels determined by the output effect from large to small, namely ARC, loudspeaker channel, earphone channel and Bluetooth channel, adjusting the arrangement sequence of the marking bits to OutFlag: CDBA, and determines the arrangement order of the marking bits as the priority level of each audio output channel. The priority level of each audio output channel is determined in a simple arrangement mode, the operation is simple, and the actual requirement that two or more audio output channels output simultaneously cannot be met.
Step S203: and determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level.
In this embodiment, the connection states of the ARC, the speaker channel, the headphone channel, and the bluetooth channel with the playback device may be sequentially detected in order of priority levels from high to low, and if the ARC is not in the connection state and the speaker channel is in the connection state, the second priority level where the speaker channel is located is determined as the target priority level, and the audio is output through the speaker channel.
Step S204: and outputting the audio through the audio output channel corresponding to the target priority level.
Fig. 4 is a diagram of a selection scenario of an audio output channel according to a second embodiment of the present invention. As can be seen from fig. 4, the method for selecting an audio output channel provided by the present embodiment is an automatic selection method. Since the second priority level is the target priority level, the relevant settings such as volume adjustment on the display screen are all for the speaker channel, and other audio output channels are all in the off state. According to the embodiment, the automatic selection of the audio output channel can be completed through a man-machine interaction interface and a set of channel control algorithm, the complexity of program design is reduced, and the program running speed is increased.
Fig. 5 is a flowchart of a method for selecting an audio output channel according to a third embodiment of the present invention. As can be seen from fig. 5, the method includes:
step S301: and acquiring the characteristic value of each audio output channel.
In this embodiment, the feature value may be a use frequency value, a use time accumulated value, and a preset output effect value of the audio output channel, or a weighted value of any two or three of the use frequency value, the use time accumulated value, and the output effect value.
Step S302: and determining the range of the characteristic values covered by the audio output channels according to the maximum value and the minimum value in the characteristic values corresponding to the audio output channels.
In this embodiment, the two endpoints of the range of the feature values covered by the audio output channels may be the maximum value and the minimum value of the feature values corresponding to each audio output channel, so as to ensure that the range of the feature values can fully cover the feature values corresponding to each audio output channel.
Step S303: and dividing the characteristic value range into a plurality of characteristic value intervals, wherein each characteristic value interval corresponds to a priority level, and no intersection of characteristic values exists between any two characteristic value intervals.
Wherein, each eigenvalue interval corresponds to a priority level. To ensure that each eigenvalue interval has a corresponding audio output channel, at least one endpoint of each eigenvalue interval may be set as the eigenvalue corresponding to the audio output channel.
Step S304: and determining the characteristic value interval to which the characteristic value of each audio output channel belongs, and determining the priority level of each audio output channel according to the characteristic value interval to which the characteristic value of each audio output channel belongs.
In this embodiment, there is no intersection of feature values between any two feature value intervals, so that the feature value of each audio output channel only falls into the unique corresponding feature value interval, that is, each audio output channel corresponds to a unique priority level. The terminal device of this embodiment may be provided with 6 audio output channels, which are respectively a speaker channel, an ARC channel, an earphone channel, a bluetooth channel, and an Spdif channel, and the feature values corresponding to the respective audio output channels are 15, 25, 7,5, and 18, respectively. The preference level selection data for each audio output channel is shown in table 1.
Table 1: priority level selection data table for each audio output channel in the third embodiment
Priority level | Interval of characteristic value | Audio output channel |
1 | [25,18) | ARC |
2 | [18,7) | Spdif channel and loudspeaker channel |
3 | [7,5] | Earphone channel and Bluetooth channel |
As shown in table 1, in this embodiment, the eigenvalue range can be divided into 3 eigenvalue intervals, which are [25,18 ], [18,7 ], and [7,5], where the above 3 eigenvalue intervals correspond to 3 priority levels, and there is no intersection of eigenvalues. According to the eigenvalue interval where the eigenvalue corresponding to each audio output channel is located, the ARC can be determined as a first priority level; determining the Spdif channel and the loudspeaker channel as a second priority level; the headset channel and the bluetooth channel are determined as a third priority level. The present embodiment may output audio in two or more audio output channels simultaneously.
Of course, other feature value intervals may also be set according to the feature value corresponding to each audio output channel in this embodiment. Since there is no intersection of feature values between any two feature value intervals, each audio output channel corresponds to only one priority level. In the embodiment, at most 5 eigenvalue intervals and corresponding 5-level priority levels are set. When the target priority level is determined, the calculation amount is favorably reduced, but the priority level more than the number of the audio output channels cannot be set, so that the possibility and flexibility of selecting the audio output channels are limited.
Step S305: and determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level.
For each level of priority, a 5-bit priority flag bit outblag may be set, each bit flag bit corresponding to an audio output channel in the following order, where one possible order is as follows: ARC, Spdif channel, speaker channel, headphone channel, and bluetooth channel. Setting the corresponding audio output channel in each priority level to a high level value, namely 1; the further audio output channel is set to a low value, i.e. 0. The outblag corresponding to the first priority level is 10000; the OutFlag corresponding to the second priority level is 01100; the third priority level corresponds to an OutFlag of 00011.
Setting an access state flag bit ConnectFlag of 5 bits corresponding to the above sequence, wherein each access state flag bit corresponds to an audio output channel, and when the audio output channel is in a connection state with the playing device, the access state flag bit is set to be a high level value, namely 1; when the audio output channel and the playing device are not in the connected state, the access state flag bit is set to a low level value, i.e. 0.
When the target priority level is determined, performing bit and calculation on OutFlag and ConnectFlag of the priority level according to the priority level from high to low, namely if the level values of the corresponding flag bits in the OutFlag and ConnectFlag are both 1, the result of the bit and calculation is a high level value; otherwise, the low value is used. Therefore, the bit and the calculation result of the audio output channel corresponding to the priority level are high level values, which indicates that the audio output channel corresponding to the priority level is connected with the playing device, determines the priority level as a target priority level, and stops judging and calculating other priority levels lower than the target priority level. If the bit sum calculation result of the second priority level is 01100 in this embodiment, the second priority level is determined as the target priority level, and the bit sum calculation of the third priority level is not performed.
Step S306: and outputting the audio through the audio output channel corresponding to the target priority level.
Fig. 6 is a diagram of a selection scenario of an audio output channel according to a third embodiment of the present invention. As can be seen from fig. 6, the method for selecting an audio output channel provided by the present embodiment is an automatic selection method. Since the second priority level is the target priority level, the relevant settings such as volume adjustment on the display screen are all for the Spdif channel and the speaker channel, and other audio output channels are all in the off state.
Referring to fig. 7, a flowchart of a method for selecting an audio output channel according to a fourth embodiment of the present invention is shown. As can be seen from fig. 7, the method comprises:
step S401: and acquiring the characteristic value of each audio output channel.
In this embodiment, the weighted values of the usage frequency value, the usage time accumulated value, and the output effect value may be used as the feature values of the audio output channels.
Step S402: and determining the range of the characteristic values covered by the audio output channels according to the maximum value and the minimum value in the characteristic values corresponding to the audio output channels.
Step S403: and dividing the characteristic value range into a plurality of characteristic value intervals, wherein each characteristic value interval corresponds to a priority level, and an intersection of characteristic values exists between any two adjacent characteristic value intervals.
Step S404: and determining the characteristic value interval to which the characteristic value of each audio output channel belongs, and determining the priority level of each audio output channel according to the characteristic value interval to which the characteristic value of each audio output channel belongs.
In this embodiment, an intersection of feature values exists between any two adjacent feature value intervals. The feature value of each audio output channel may fall within at least one feature value interval, i.e. each audio output channel may correspond to a plurality of priority levels. The terminal device of this embodiment may be provided with 6 audio output channels, which are a speaker channel, an ARC channel, an earphone channel, a bluetooth channel, and an Spdif channel, and feature values corresponding to the audio output channels are 15, 25, 7,5, and 18, respectively. The priority selection data for each audio output channel is shown in table 2.
Table 2: priority level selection data table for each audio output channel in the fourth embodiment
As shown in table 2, in this embodiment, the eigenvalue range can be divided into 6 eigenvalue intervals, which are [25,18 ], [20,15 ], [18,13 ], [15,10 ], [13,6 ], and [7,5], where the above 6 eigenvalue intervals correspond to 6 priority levels. According to the eigenvalue interval where the eigenvalue corresponding to each audio output channel is located, the ARC can be determined as a first priority level; determining the Spdif channel as a second priority level; determining the Spdif channel and the loudspeaker channel as a third priority level; determining the speaker channel as a fourth priority level; determining the earphone channel as a fifth priority level; the headset channel and the bluetooth channel are determined to be a sixth priority level. The embodiment can output audio in two or more audio output channels simultaneously, and simultaneously, because the intersection of the feature values exists between any two adjacent feature value intervals, each audio output channel may simultaneously correspond to a plurality of priority levels. If the earphone channel simultaneously corresponds to the fifth priority level and the sixth priority level, the combination type of each audio output channel is expanded, the flexibility of audio output channel selection is improved, and various requirements of a user on the selection of the audio output channels can be met.
Of course, the present embodiment may set various feature value intervals and priority levels according to actual requirements and the number of audio output channels. When the characteristic value interval is set, the characteristic value range can be averagely divided into a plurality of characteristic value intervals, and after the characteristic value interval to which the characteristic value corresponding to the audio output channel belongs is determined, the characteristic value interval to which no audio output channel corresponds is deleted. In addition, in other embodiments of the present invention, it is not limited to that an intersection of feature values exists between any two adjacent feature value intervals, as long as an intersection of feature values exists between two feature value intervals.
Step S405: and determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level.
Step S406: and outputting the audio through the audio output channel corresponding to the target priority level.
In addition, when the method detects that the connection state between each audio output channel and the audio playing device changes, the target priority level can be determined again according to the method described in the above embodiment, and the audio is output through the audio output channel corresponding to the determined target priority level.
Fig. 8 is a diagram of a selection scenario of an audio output channel according to a fourth embodiment of the present invention. As can be seen from fig. 8, the method for selecting an audio output channel provided in the present embodiment is an automatic selection method. In this embodiment, the sixth priority level is the target priority level, and therefore, the volume adjustment and other related settings on the display screen are all for the earphone channel and the bluetooth channel, and other audio output channels are all in the off state.
Fig. 9 is a schematic structural diagram of an apparatus for selecting an audio output channel according to an embodiment of the present invention. As shown in fig. 9, the selecting device 900 may include: at least one processor (processor)901, memory 902, peripheral interface 903, input/output subsystem (I/O subsystem)904, power lines 905, and communication lines 906.
In fig. 9, arrows indicate that communication and data transfer between components of the computer system are possible, and the communication and data transfer may be implemented using a high-speed serial bus (high-speed serial bus), a parallel bus (parallel bus), a Storage Area Network (SAN), and/or other appropriate communication technology.
The memory 902 may include an operating system 912 and a selection routine 922. For example, memory 902 may include a high-speed random access memory (high-speed random access memory), magnetic disk, static random access memory (SPAM), Dynamic Random Access Memory (DRAM), Read Only Memory (ROM), flash memory, or non-volatile memory. The memory 902 may store program code for the operating system 912 and the selection routine 922, which may include software modules, instruction set architectures, or a variety of data other than those required for operation of the selection device 900. In this case, the access to the memory 902 and other controllers such as the processor 901 and the peripheral interface 906 can be controlled by the processor 901.
The peripherals interface 903 may combine input and/or output peripherals of the selection apparatus 900 with the processor 901 and the memory 902. Also, input/output subsystem 904 may combine a variety of input/output peripherals with peripheral interface 906. For example, the input/output subsystem 904 may include a display, keyboard, mouse, printer, or controller for interfacing peripherals such as cameras, various sensors, etc., with the peripheral interface 903 as desired. Depending on the input/output peripherals, the peripherals may also be combined with the peripheral interface 903 without going through the input/output subsystem 904, i.e., the terminal equipment circuitry and selection circuitry may also be combined with the peripheral interface 903 without going through the input/output subsystem 904.
The power line 905 may supply power to all or part of the circuit elements of the terminal device. For example, the power line 905 may include, for example, a power management system, a battery or one or more power supplies for Alternating Current (AC), a charging system, a power failure detection circuit (power failure detection circuit), a power converter or inverter, a power status marker, or any other circuit element for power generation, management, distribution.
The communication line 906 may utilize at least one interface to communicate with other computer systems.
The processor 901 can be configured to process commands of a computer program by performing basic arithmetic, logic, and input/output operations of the computer system.
The invention also provides terminal equipment, which comprises an equipment main body; the device main body comprises the selection device of the audio output channel, and the device main body further comprises: at least one audio output channel connected to the processor for outputting audio; in addition, a signal receiving device, a decoder, a frequency modulation device and the like can be connected between the processor and the audio output channel, and the audio signal received by the signal receiving device is processed by the decoder, the frequency modulation device and the processor and then input into the audio output channel meeting the requirement; the detection module is connected with the memory and used for detecting the connection state of the audio output channel and the playing equipment so as to enable the processor to determine a target output channel according to a detection result fed back by the detection module; the display screen is connected with the processor and used for displaying the selection result of the audio output channel.
The above-described embodiments of the present invention do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method for selecting an audio output channel, the method comprising:
determining the priority level of each audio output channel, wherein each priority level corresponds to at least one audio/video output channel;
determining the highest priority level in at least one priority level which meets the condition that the corresponding audio/video output channels are connected with the playing equipment as a target priority level;
and outputting the audio through the audio output channel corresponding to the target priority level.
2. The method of claim 1, wherein determining a highest priority level among at least one priority level satisfying that the corresponding audio/video output channels are all connected with a playback device as a target priority level comprises:
and determining the priority level which meets the condition that the corresponding audio output channels are connected with the audio playing equipment as the target priority level according to the sequence from high to low of the priority levels.
3. The method of claim 1, wherein determining the priority level of each audio output channel comprises:
acquiring a characteristic value of each audio output channel, wherein the characteristic value is a use frequency value of the audio output channel and a preset output effect value, or a weighted value of the use frequency value and the output effect value;
and determining the priority level of each audio output channel according to the characteristic value of each audio output channel.
4. The method of claim 3, wherein determining the priority level of each audio output channel based on the characteristic value of each audio output channel comprises:
and determining the sequence of the characteristic values of the audio output channels from large to small as the priority level of each audio output channel.
5. The method of claim 3, wherein determining the priority level of each audio output channel according to the characteristic value of each audio output channel comprises:
determining the range of the characteristic values covered by the audio output channels according to the maximum value and the minimum value in the characteristic values corresponding to the audio output channels;
dividing the characteristic value range into a plurality of characteristic value intervals, wherein each characteristic value interval corresponds to a priority level;
and determining the characteristic value interval to which the characteristic value of each audio output channel belongs, and determining the priority level of each audio output channel according to the characteristic value interval to which the characteristic value of each audio output channel belongs.
6. The method of claim 5, wherein there is no intersection of eigenvalues between any two eigenvalue bins.
7. The method of claim 5, wherein there is an intersection of eigenvalues between any two adjacent eigenvalue bins.
8. The method of claim 1, wherein after outputting audio via the audio output channel corresponding to the target priority level, the method further comprises:
detecting whether the connection state of each audio output channel and the audio playing equipment changes or not;
and if the connection state of each audio output channel and the audio playing equipment is changed, re-determining the target priority level.
9. An apparatus for selecting an audio output channel, comprising: the processor, the memory and the communication interface are connected with a communication bus;
the communication interface is used for receiving and sending signals;
the memory for storing program code;
the processor for reading the program code stored in the memory and executing the method of any one of claims 1 to 7.
10. A terminal device characterized by comprising a device main body;
the apparatus body including therein the selection means of the audio output channel as claimed in claim 9, further comprising:
at least one audio output channel for outputting audio;
the detection module is used for detecting the connection state of the audio output channel and the playing equipment;
and the display screen is used for displaying the selection result of the audio output channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710004545.3A CN106713978A (en) | 2017-01-04 | 2017-01-04 | Method and device for selecting audio output channel and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710004545.3A CN106713978A (en) | 2017-01-04 | 2017-01-04 | Method and device for selecting audio output channel and terminal equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106713978A true CN106713978A (en) | 2017-05-24 |
Family
ID=58906719
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710004545.3A Pending CN106713978A (en) | 2017-01-04 | 2017-01-04 | Method and device for selecting audio output channel and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106713978A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107197367A (en) * | 2017-06-30 | 2017-09-22 | 青岛海信电器股份有限公司 | A kind of player method, device and the terminal device of startup advertisement sound |
CN107894943A (en) * | 2017-12-05 | 2018-04-10 | 深圳市东微智能科技股份有限公司 | Data processing monitor method, device, storage medium and its computer equipment in processor |
CN108259946A (en) * | 2018-03-05 | 2018-07-06 | 长沙开雅电子科技有限公司 | A kind of novel audio signal and video signal transmission control device |
CN108600917A (en) * | 2018-05-30 | 2018-09-28 | 扬州航盛科技有限公司 | A kind of built-in type multiplex audio management system and management method |
CN109445745A (en) * | 2018-12-27 | 2019-03-08 | 努比亚技术有限公司 | Audio stream processing method, device, mobile terminal and storage medium |
CN111176605A (en) * | 2019-11-29 | 2020-05-19 | 联想(北京)有限公司 | Audio output method and electronic equipment |
CN111580781A (en) * | 2020-05-27 | 2020-08-25 | 重庆蓝岸通讯技术有限公司 | Mobile terminal audio output method and mobile terminal |
CN112118472A (en) * | 2020-09-04 | 2020-12-22 | 三星电子(中国)研发中心 | Method and apparatus for playing multimedia |
CN112333533A (en) * | 2020-09-07 | 2021-02-05 | 深圳Tcl新技术有限公司 | Selection method, device and equipment of playing equipment and computer readable storage medium |
WO2023103824A1 (en) * | 2021-12-06 | 2023-06-15 | 华为技术有限公司 | Audio channel selection method and apparatus, storage medium and vehicle |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1292967A (en) * | 1998-03-05 | 2001-04-25 | 艾利森电话股份有限公司 | Audio device selector for wireless communication |
JP2001197029A (en) * | 1999-12-27 | 2001-07-19 | Samsung Electronics Co Ltd | Audio channel id adding method, audio channel selecting method using same, and optical recording and reproducing device suitable to same |
CN1753316A (en) * | 2004-09-21 | 2006-03-29 | 华为技术有限公司 | Audio frequency output channel switching device and method |
CN1845580A (en) * | 2005-04-07 | 2006-10-11 | 深圳Tcl新技术有限公司 | Audio and video signal source recognition and automatic switching method and apparatus |
CN101340212A (en) * | 2007-07-03 | 2009-01-07 | 艾威梯软件技术(北京)有限公司 | Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing |
CN102945010A (en) * | 2012-11-07 | 2013-02-27 | Tcl通力电子(惠州)有限公司 | Method and device for realizing automatic switching of sound source |
CN103517216A (en) * | 2012-06-21 | 2014-01-15 | 成都鼎桥通信技术有限公司 | Audio switching method and user terminal |
CN103617803A (en) * | 2013-11-08 | 2014-03-05 | 中标软件有限公司 | Multi-sound-source automatic switching method and system on vehicle-mounted system |
CN105554638A (en) * | 2016-01-15 | 2016-05-04 | 深圳市蜗蜗科技有限责任公司 | Method and system for realizing multi-channel audio switching |
CN205545883U (en) * | 2016-04-07 | 2016-08-31 | 深圳市慧想物联科技有限公司 | Multichannel audio frequency selecting arrangement |
-
2017
- 2017-01-04 CN CN201710004545.3A patent/CN106713978A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1292967A (en) * | 1998-03-05 | 2001-04-25 | 艾利森电话股份有限公司 | Audio device selector for wireless communication |
JP2001197029A (en) * | 1999-12-27 | 2001-07-19 | Samsung Electronics Co Ltd | Audio channel id adding method, audio channel selecting method using same, and optical recording and reproducing device suitable to same |
CN1753316A (en) * | 2004-09-21 | 2006-03-29 | 华为技术有限公司 | Audio frequency output channel switching device and method |
CN1845580A (en) * | 2005-04-07 | 2006-10-11 | 深圳Tcl新技术有限公司 | Audio and video signal source recognition and automatic switching method and apparatus |
CN101340212A (en) * | 2007-07-03 | 2009-01-07 | 艾威梯软件技术(北京)有限公司 | Method, apparatus and system for triggering automatic switchover of Bluetooth connecting device by key pressing |
CN103517216A (en) * | 2012-06-21 | 2014-01-15 | 成都鼎桥通信技术有限公司 | Audio switching method and user terminal |
CN102945010A (en) * | 2012-11-07 | 2013-02-27 | Tcl通力电子(惠州)有限公司 | Method and device for realizing automatic switching of sound source |
CN103617803A (en) * | 2013-11-08 | 2014-03-05 | 中标软件有限公司 | Multi-sound-source automatic switching method and system on vehicle-mounted system |
CN105554638A (en) * | 2016-01-15 | 2016-05-04 | 深圳市蜗蜗科技有限责任公司 | Method and system for realizing multi-channel audio switching |
CN205545883U (en) * | 2016-04-07 | 2016-08-31 | 深圳市慧想物联科技有限公司 | Multichannel audio frequency selecting arrangement |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107197367A (en) * | 2017-06-30 | 2017-09-22 | 青岛海信电器股份有限公司 | A kind of player method, device and the terminal device of startup advertisement sound |
CN107894943B (en) * | 2017-12-05 | 2021-02-26 | 深圳市东微智能科技股份有限公司 | Data processing monitoring method and device in processor, storage medium and computer equipment thereof |
CN107894943A (en) * | 2017-12-05 | 2018-04-10 | 深圳市东微智能科技股份有限公司 | Data processing monitor method, device, storage medium and its computer equipment in processor |
CN108259946A (en) * | 2018-03-05 | 2018-07-06 | 长沙开雅电子科技有限公司 | A kind of novel audio signal and video signal transmission control device |
CN108600917A (en) * | 2018-05-30 | 2018-09-28 | 扬州航盛科技有限公司 | A kind of built-in type multiplex audio management system and management method |
CN109445745A (en) * | 2018-12-27 | 2019-03-08 | 努比亚技术有限公司 | Audio stream processing method, device, mobile terminal and storage medium |
CN111176605A (en) * | 2019-11-29 | 2020-05-19 | 联想(北京)有限公司 | Audio output method and electronic equipment |
CN111176605B (en) * | 2019-11-29 | 2022-07-26 | 联想(北京)有限公司 | Audio output method and electronic equipment |
CN111580781A (en) * | 2020-05-27 | 2020-08-25 | 重庆蓝岸通讯技术有限公司 | Mobile terminal audio output method and mobile terminal |
CN112118472A (en) * | 2020-09-04 | 2020-12-22 | 三星电子(中国)研发中心 | Method and apparatus for playing multimedia |
CN112333533A (en) * | 2020-09-07 | 2021-02-05 | 深圳Tcl新技术有限公司 | Selection method, device and equipment of playing equipment and computer readable storage medium |
CN112333533B (en) * | 2020-09-07 | 2023-12-05 | 深圳Tcl新技术有限公司 | Method, device, equipment and computer readable storage medium for selecting playing equipment |
WO2023103824A1 (en) * | 2021-12-06 | 2023-06-15 | 华为技术有限公司 | Audio channel selection method and apparatus, storage medium and vehicle |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106713978A (en) | Method and device for selecting audio output channel and terminal equipment | |
CN101909190B (en) | Wireless transmission system | |
US10846041B2 (en) | Audio and video processors | |
EP2390969A1 (en) | Connector and interface device | |
US20140149617A1 (en) | I2c bus structure and device availability query method | |
EP2763274A2 (en) | Charging Apparatus and Charging Method | |
CN103237189A (en) | Electronic equipment, MHL (mobile high-definition link) connector, MHL system and connector detection method | |
US20140055928A1 (en) | Accessory apparatus, system, and method for supporting hierarchical connection | |
CN108763139A (en) | A kind of control method and device of I2C communications | |
CN111580774A (en) | Sound effect adjusting method, device, equipment and storage medium | |
JP6387775B2 (en) | Portable electronic devices | |
CN105095122A (en) | Method for controlling memory chip, chip controller, and memory controller | |
CN105824609A (en) | Setting method for play parameters and electronic equipment | |
CN111176605B (en) | Audio output method and electronic equipment | |
CN108966079A (en) | control method and system of audio device | |
CN106954138A (en) | A kind of information processing method and electronic equipment | |
US10511922B2 (en) | Method adapted to be implemented in a master device of a sound system, corresponding method adapted to be implemented in an audio rendering device of a sound system, corresponding master device, audio rendering device, system, computer readable program product and computer readable storage media | |
US11770011B2 (en) | Processing circuit, method, and electronic device for multiple power supply ports | |
CN103945305A (en) | Information processing method and electronic equipment | |
CN115145862A (en) | System on chip and signal driving adjustment method for storage device | |
JP5506895B1 (en) | Computer peripheral device and operation method thereof | |
US20150123477A1 (en) | Power integrated device and power control method thereof | |
JP5928243B2 (en) | Content transceiver | |
JP5148639B2 (en) | Video / audio processing apparatus and video / audio processing method | |
US20240232114A1 (en) | Relay device and control method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170524 |
|
RJ01 | Rejection of invention patent application after publication |