CN105282119B - Audio playing method and equipment - Google Patents

Audio playing method and equipment Download PDF

Info

Publication number
CN105282119B
CN105282119B CN201410348104.1A CN201410348104A CN105282119B CN 105282119 B CN105282119 B CN 105282119B CN 201410348104 A CN201410348104 A CN 201410348104A CN 105282119 B CN105282119 B CN 105282119B
Authority
CN
China
Prior art keywords
voice
broadcast
specified
priority
broadcasting
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
CN201410348104.1A
Other languages
Chinese (zh)
Other versions
CN105282119A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410348104.1A priority Critical patent/CN105282119B/en
Publication of CN105282119A publication Critical patent/CN105282119A/en
Application granted granted Critical
Publication of CN105282119B publication Critical patent/CN105282119B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention discloses a voice broadcasting method, which comprises the following steps: receiving a voice broadcasting request aiming at specified voice; judging whether the current broadcast voice exists or not; if the voice broadcast request exists, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to a preset queuing rule; if not, the appointed voice aimed by the voice broadcast request is broadcasted. The embodiment of the invention also discloses voice broadcasting equipment. By implementing the embodiment of the invention, the conflict of voice broadcast is effectively avoided and the broadcast effect of voice broadcast is optimized on the premise of ensuring the integrity of voice broadcast.

Description

Audio playing method and equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an audio playing method and device.
Background
Prior art when carrying out voice broadcast, generally use two kinds of schemes:
and according to the scheme A, when a voice broadcast request is received, the broadcast content of the broadcast request is directly triggered.
And the scheme B and the voice broadcasting channel have uniqueness, the new voice broadcasting request automatically terminates the old broadcasting content and broadcasts the content requested to be broadcasted by the new voice broadcasting request.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the existing scheme A, when the voice broadcasting is triggered for multiple times in a short time, the broadcasting contents can be overlapped, and the broadcasting effect is noisy and disordered;
in the existing scheme B, when the current broadcast content is not yet broadcasted, a new broadcast request is received, the current broadcast content is stopped, and the new content is directly broadcasted, so that the voice broadcast content is incomplete.
Disclosure of Invention
The embodiment of the invention discloses a voice broadcast method and voice broadcast equipment, which can sequence broadcast requests which conflict with each other and optimize the broadcast effect of voice broadcast.
The first aspect of the embodiments of the present invention discloses a voice broadcast method, including:
receiving a voice broadcasting request aiming at specified voice;
judging whether the current broadcast voice exists or not;
if the voice broadcast request exists, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to a preset queuing rule;
if not, the appointed voice aimed by the voice broadcast request is broadcasted.
A second aspect of an embodiment of the present invention discloses a voice broadcast device, including:
the receiving module is used for receiving a voice broadcasting request aiming at specified voice;
the judging module is used for judging whether the currently broadcasted voice exists or not;
the ordering module is used for adding the specified voice aimed at the voice broadcast request into a broadcast queue according to a preset queuing rule when the judgment result of the judging module is that the specified voice exists;
and the broadcasting module is used for broadcasting the appointed voice aimed by the voice broadcasting request when the judgment result of the judgment module does not exist.
The embodiment of the invention has the following beneficial effects:
through setting up the broadcast queue, when receiving the voice broadcast request to appointed pronunciation, judge whether there is the pronunciation of reporting at present, if exist, then add the broadcast queue with this appointed pronunciation according to the rule of predetermineeing, otherwise, report this appointed pronunciation, under the prerequisite of the integrality of guaranteeing voice broadcast, avoid voice broadcast's conflict effectively, optimized voice broadcast's report effect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed for the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flow chart of a voice broadcasting method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another voice broadcasting method according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another voice broadcasting method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a voice broadcast device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another voice broadcasting device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, 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 invention.
As shown in fig. 1, a schematic flow chart of a voice broadcasting method provided in an embodiment of the present invention may include the following steps:
s101, receiving a voice broadcast request aiming at specified voice.
And S102, judging whether the current broadcast voice exists or not. If yes, go to S103; otherwise, go to S104.
S103, adding the appointed voice aimed by the voice broadcast request into a broadcast queue according to a preset queuing rule.
S104, broadcasting the specified voice aimed by the voice broadcasting request.
In the embodiment of the invention, the voice-oriented broadcast queue is arranged and used for caching and queuing the voice which is oriented to the received voice broadcast request when the voice broadcast resource is occupied.
When the voice broadcasting equipment receives a voice broadcasting request aiming at specified voice, whether the voice which is being broadcasted exists at present (namely whether voice broadcasting resources are occupied) can be judged firstly, if so, in order to ensure the integrity of voice broadcasting and avoid the overlapping conflict of voice broadcasting, the voice broadcasting equipment can add the specified voice aiming at the voice broadcasting request into a broadcasting queue according to a preset queuing rule; if the voice broadcast request does not exist (that is, the current voice broadcast resource is idle), the voice broadcast device can broadcast the specified voice targeted by the voice broadcast request.
In the embodiment of the present invention, the queuing rule for the voice broadcasting device to queue the voice may include, but is not limited to, queuing the voice in chronological order, or queuing the voice in order of priority from high to low.
As an optional implementation manner, when the preset queuing rule is to queue the voices according to the time sequence, if the voice broadcast device determines that the currently broadcasted voices exist, the voice broadcast device may queue the specified voices, which are targeted by the voice broadcast request, behind the existing voices in the broadcast queue according to the time sequence of receiving the voice broadcast request.
Further, in this embodiment, when the broadcast queue has the upper limit of the capacity, before the voice broadcast device adds the voice to the broadcast queue, it is further necessary to first determine whether the existing voice in the current broadcast queue has reached the upper limit, and if the existing voice in the broadcast queue has reached the upper limit, discard the specified voice for the voice broadcast request, otherwise, arrange the specified voice for the voice broadcast request behind the existing voice in the broadcast queue according to the sequence of the time of receiving the voice broadcast request.
As another optional implementation, when the preset queuing rule is to queue voices in an order from high to low in priority, if the voice broadcast device determines that the currently broadcasted voices exist, the voice broadcast device may further determine whether the priority of the voices existing in the broadcast queue is lower than the priority of the specified voice for the voice broadcast request, and if so, the voice broadcast device may rank the specified voices in front of all the existing voices in the broadcast queue in an order from high to low in priority of the specified voices for the voice broadcast request; if not, the voice broadcasting equipment can arrange the specified voice behind the existing voice with the priority not lower than the priority of the specified voice in the broadcasting queue from high to low according to the priority of the specified voice aimed at by the voice broadcasting request.
The priority corresponding to the voice can be preconfigured and stored in the voice broadcast device, and when the voice broadcast device receives a voice broadcast request for the specified voice, the priority corresponding to the voice stored in the voice broadcast device can be inquired according to the specified voice, so that the priority of the specified voice is determined.
Further, in this embodiment, when the broadcast queue has an upper limit of capacity, before the voice broadcast device adds voice to the broadcast queue, it is further necessary to first determine whether existing voice in the current broadcast queue has reached the upper limit, and if existing voice in the broadcast queue has reached the upper limit, the voice broadcast device may further determine whether there is voice in the broadcast queue whose priority is lower than the priority of the specified voice for which the voice broadcast request is directed, and if not, discard the specified voice for which the voice broadcast request is directed; if the voice broadcasting request exists, the existing voice (namely the voice with the lowest priority) arranged at the end of the broadcasting queue is discarded, and the appointed voice aiming at the voice broadcasting request is added into the broadcasting queue, so that the voice with higher priority can be broadcasted; and if the existing voice in the broadcast queue does not reach the upper limit, queuing the specified voice aimed by the voice broadcast request according to the sequence of the priority from high to low.
It should be noted that, in this embodiment, when the existing voice in the broadcast queue reaches the upper limit, the voice broadcast device may also directly discard the specified voice for which the voice broadcast request is directed (i.e., not perform priority comparison), so as to ensure that the voice received in advance can be broadcast.
It should be appreciated that the above listed queuing rules of voices are only examples of preset queuing rules in the technical solution provided by the embodiment of the present invention, and are not limiting to the scope of the present invention, that is, in the technical solution provided by the embodiment of the present invention, the preset queuing rules may also be other rules, such as a random queuing rule, that is, when a voice broadcast request is received and there is a voice currently being broadcast, a specified voice for the voice broadcast request is added to a random position of the broadcast queue, and are not listed here.
Further, in the embodiment of the present invention, a threshold of a queuing time of the voice in the broadcast queue, that is, an aging time may also be preset, and when the queuing time of the voice in the broadcast queue exceeds the threshold, the voice may be discarded, that is, the voice is subjected to aging processing.
In the concrete application, when voice broadcast equipment added the pronunciation to the report queue, can start a timer that corresponds this pronunciation, its time-out duration is the ageing time of this pronunciation promptly, and when this timer overtime, this voice broadcast equipment can be with pronunciation from reporting the queue and delete.
The threshold values of the queuing time of the voices in the broadcast queue can be the same value, such as 10s, and corresponding threshold values can be set according to the priority levels of the voices, namely, the threshold values of the queuing time of the voices with different priority levels are different; preferably, the higher the priority of the speech, the longer its threshold value for queuing time.
When the voice broadcast that is currently broadcasting is accomplished, the voice broadcast equipment can broadcast the pronunciation in the broadcast queue in proper order.
As shown in fig. 2, a schematic flow chart of another voice broadcasting method provided in an embodiment of the present invention may include the following steps:
s201, receiving a voice broadcast request aiming at the specified voice.
S202, judging whether the current broadcast voice exists or not. If yes, go to S203; otherwise, go to S206.
S203, judging whether the existing voice in the broadcast queue reaches the upper limit or not. If the voice broadcasting request is judged to be yes, the specified voice aimed by the voice broadcasting request is discarded; otherwise, go to S204.
And S204, adding the specified voice aimed by the voice broadcast request into the back of the existing voice in the broadcast queue.
In this embodiment, the preset queuing rule is to queue voices in time order. When the voice broadcasting equipment receives a voice broadcasting request aiming at specified voice and currently has the voice which is being broadcasted, the voice broadcasting equipment determines that the specified voice aiming at the voice broadcasting request needs to be added into a broadcasting queue; at this time, the voice broadcasting device needs to judge whether the existing voice in the current broadcasting queue reaches an upper limit, and if the existing voice reaches the upper limit, the specified voice aimed at by the voice broadcasting request is directly discarded; otherwise, arranging the voice broadcast request at the tail of the current broadcast queue.
S205, when the current broadcasting voice broadcasting is completed, the voice in the broadcasting queue is broadcasted in sequence.
S206, broadcasting the appointed voice aiming at the voice broadcasting request.
As shown in fig. 3, a schematic flow chart of another voice broadcasting method provided in the embodiment of the present invention may include the following steps:
s301, receiving a voice broadcast request aiming at the specified voice.
And S302, judging whether the current broadcast voice exists or not. If yes, go to S303; otherwise, go to S310.
And S303, judging whether the voice in the broadcast queue reaches an upper limit or not. If yes, go to S304; otherwise, go to S306.
S304, judging whether existing voice with the priority lower than the priority of the specified voice aimed by the voice broadcast request exists in the broadcast queue. If yes, go to S305; otherwise, the specified voice aimed by the voice broadcast request is discarded.
And S305, discarding the existing voice arranged at the end of the broadcast queue.
S306, judging whether the existing queues in the broadcast queue are all lower than the priority of the appointed voice aimed by the voice broadcast request. If yes, go to S307; otherwise, go to S308.
And S307, arranging the specified voice in front of all the existing voices in the broadcast queue according to the sequence of the priority of the specified voice aimed by the voice broadcast request from high to low.
S308, arranging the appointed voice in the broadcasting queue from the high priority to the low priority of the appointed voice aimed by the voice broadcasting request, wherein the priority of the appointed voice is not lower than that of the existing voice of the appointed voice.
In this embodiment, the predetermined queuing rule is to queue the voices in order of high priority chose to low priority. When the voice broadcasting equipment receives a voice broadcasting request aiming at specified voice and currently has the voice which is being broadcasted, the voice broadcasting equipment determines that the specified voice aiming at the voice broadcasting request needs to be added into a broadcasting queue.
At this time, the voice broadcasting device needs to determine whether the existing voice in the current broadcasting queue reaches the upper limit.
If the priority of the existing voice is lower than that of the specified voice aimed at by the voice broadcast request, further judging whether the existing voice with the priority lower than that of the specified voice aimed at by the voice broadcast request exists in the broadcast queue, if so, discarding the existing voice (namely the voice with the lowest priority) arranged at the end of the broadcast queue at present, further judging whether the priorities of the existing voices in the broadcast voice queue are all lower than that of the specified voice aimed at by the voice broadcast request, if so, arranging the specified voice in front of the existing voice in the broadcast queue according to the sequence from high to low of the priority of the specified voice aimed at by the voice broadcast request, namely, arranging the specified voice aimed at by the voice broadcast request at the head of the broadcast queue at present; if not, the specified voice is ranked behind existing voices (including existing voices having the same priority as the specified voice) having a priority not lower than that of the specified voice in the order from high to low according to the priority of the specified voice for which the voice broadcast request is directed.
If the priority of the existing voice in the broadcast voice queue is not lower than the priority of the specified voice aimed at by the voice broadcast request, further judging whether the priority of the existing voice in the broadcast voice queue is lower than the priority of the specified voice aimed at by the voice broadcast request, and if so, arranging the specified voice in front of the existing voice in the broadcast queue according to the sequence from high to low of the priority of the specified voice aimed at by the voice broadcast request, namely arranging the specified voice aimed at by the voice broadcast request at the head of the current broadcast queue; if not, the specified voice is ranked behind existing voices (including existing voices having the same priority as the specified voice) having a priority not lower than that of the specified voice in the order from high to low according to the priority of the specified voice for which the voice broadcast request is directed.
S309, when the current broadcasting voice is finished, broadcasting the voice in the broadcasting queue in sequence.
S310, broadcasting the specified voice aimed by the voice broadcasting request.
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, by setting the broadcast queue, when a voice broadcast request for a specific voice is received, it is determined whether a voice currently being broadcast exists, and if so, the specific voice is added to the broadcast queue according to a preset rule, otherwise, the specific voice is broadcast, so that on the premise of ensuring the integrity of voice broadcast, the conflict of voice broadcast is effectively avoided, and the broadcast effect of voice broadcast is optimized.
Based on the same technical concept of the method embodiment, the embodiment of the invention also provides voice broadcasting equipment which can be applied to the method embodiment.
As shown in fig. 4, a schematic structural diagram of a voice broadcast device provided in an embodiment of the present invention may include:
a receiving module 41, configured to receive a voice broadcast request for a specified voice;
the judging module 42 is used for judging whether the currently broadcasted voice exists;
the sorting module 43 is configured to add the specified voice targeted by the voice broadcast request into a broadcast queue according to a preset queuing rule when the judgment result of the judging module is that the specified voice exists;
and the broadcasting module 44 is used for broadcasting the specified voice aimed by the voice broadcasting request when the judgment result of the judgment module is not available.
The sorting module 43 may be configured to, when the preset queuing rule is to queue voices according to a time sequence, queue specified voices, to which the voice broadcast request is directed, behind existing voices in the broadcast queue according to the time sequence of receiving the voice broadcast request.
The preset queuing rule may include, but is not limited to, queuing the voices in chronological order, or queuing the voices in order of priority from high to low.
As an optional implementation manner, the sorting module 43 may be configured to, when the preset queuing rule is to queue voices according to a chronological order of time, queue specified voices, to which the voice broadcast request is directed, behind existing voices in the broadcast queue according to the chronological order of time when the voice broadcast request is received.
In this embodiment, the determining module 42 may be further configured to, after determining that the currently broadcasted voice exists, determine whether the voice existing in the broadcast queue reaches an upper limit;
the sorting module 43 may be further configured to, when the determination result of the determining module reaches an upper limit, discard the specified voice for the voice broadcast request; and when the judgment result of the judgment module is that the upper limit is not reached, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to a preset queuing rule.
As another alternative implementation, please refer to fig. 5, where fig. 5 is a schematic structural diagram of another voice broadcasting device disclosed in the embodiment of the present invention. Wherein, the voice broadcast equipment shown in fig. 5 is obtained by optimizing the voice broadcast equipment shown in fig. 4, and compared with the voice broadcast equipment shown in fig. 4, in the voice broadcast equipment shown in fig. 5, the sorting module 43 may include:
a determining unit 431, configured to determine whether the priority of existing voices in the broadcast queue is lower than the priority of the specified voice for the voice broadcast request when the preset queuing rule is that voices are queued according to the order from high priority to low priority;
a sorting unit 432, configured to, when the determination result of the determining unit is yes, arrange the specified voices in front of all existing voices in the broadcast queue in an order from high to low in priority of the specified voices targeted by the voice broadcast request; and when the judgment result of the judgment unit is negative, arranging the specified voice behind the existing voice with the priority not lower than that of the specified voice in the broadcast queue according to the sequence from high to low of the priority of the specified voice aimed at by the voice broadcast request.
In this embodiment, the determining module 42 may be further configured to, after determining that the broadcasted voice currently exists, determine whether the voice existing in the broadcast queue reaches an upper limit;
the determining unit 431 is further configured to, when the determination result of the determining module is that an upper limit is reached, determine whether there is a voice with a priority lower than the priority of the specified voice for the voice broadcast request in the broadcast queue;
the sorting unit 432 may be further configured to, when the determination result of the determining unit is that the specified voice for the voice broadcast request is absent, discard the specified voice; when the judgment result of the judgment unit is that the voice broadcasting request exists, discarding the last existing voice arranged in the broadcasting queue, and adding the specified voice aimed at by the voice broadcasting request into the broadcasting queue according to a preset queuing rule; and when the judgment result of the judgment module is that the upper limit is not reached, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to a preset queuing rule.
Wherein, broadcast module 44 can also be used for, when the voice broadcast that is currently broadcasting is accomplished, broadcast in proper order the pronunciation in the broadcast queue.
The determining module 42 may be further configured to determine whether a voice with a queuing time exceeding a threshold exists in the broadcast queue;
correspondingly, the sorting module 43 may be further configured to, when the determination result of the determining module is that there is a voice in the queue, discard the voice whose queuing time exceeds the threshold.
The threshold values of the queuing time of the voices in the broadcast queue can be the same value, such as 10s, and corresponding threshold values can be set according to the priority levels of the voices, namely, the threshold values of the queuing time of the voices with different priority levels are different; preferably, the higher the priority of the speech, the longer its threshold value for queuing time. .
As can be seen from the above description, in the technical solution provided in the embodiment of the present invention, by setting the broadcast queue, when a voice broadcast request for a specific voice is received, it is determined whether a voice currently being broadcast exists, and if so, the specific voice is added to the broadcast queue according to a preset rule, otherwise, the specific voice is broadcast, so that on the premise of ensuring the integrity of voice broadcast, the conflict of voice broadcast is effectively avoided, and the broadcast effect of voice broadcast is optimized.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (11)

1. A voice broadcast method, for voice broadcast of a specified voice, comprising:
receiving a voice broadcasting request aiming at specified voice;
judging whether the current broadcast voice exists or not;
if yes, the appointed voice is inserted into the broadcast queue for queuing according to the sequence of the priority from high to low, simultaneously starting a timer corresponding to the appointed voice, wherein the timer is provided with a queuing time threshold corresponding to the appointed voice, judging whether the appointed voice with the queuing time exceeding the self queuing time threshold exists in the broadcast queue or not, and when the specified voice exists, discarding the specified voice with the queuing time exceeding the self queuing time threshold, wherein the priority corresponding to the appointed voice is pre-configured and stored in the voice broadcasting device, the timer corresponds to the designated voice one by one, the queuing time threshold of the designated voice is preset according to the priority of the designated voice, the queuing time thresholds of the designated voice with different priorities are different, and the higher the priority is, the longer the queuing time threshold of the designated voice is;
if not, the appointed voice aimed by the voice broadcast request is broadcasted.
2. The method according to claim 1, wherein after said determining whether there is a voice currently being announced, before said inserting the specified voice into an announcement queue for queuing in order of priority from high to low, further comprises:
judging whether the existing voice in the broadcast queue reaches an upper limit or not;
if the upper limit is reached, discarding the specified voice aimed at by the voice broadcast request;
and if the upper limit is not reached, the operation of inserting the specified voice into the broadcast queue for queuing according to the sequence from high priority to low priority is executed.
3. The method of claim 1, wherein said queuing the specified voices inserted into the announcement queue in order of priority from high to low comprises:
judging whether the priority of the existing voice in the broadcast queue is lower than the priority of the specified voice aimed by the voice broadcast request;
if the voice broadcasting request is judged to be yes, the specified voice is arranged in front of all the existing voices in the broadcasting queue according to the sequence that the priority of the specified voice aimed at by the voice broadcasting request is from high to low;
if not, the specified voice is ranked behind the existing voice with the priority not lower than the priority of the specified voice in the broadcasting queue according to the sequence of the priority of the specified voice aimed by the voice broadcasting request from high to low.
4. The method according to claim 3, wherein after said determining whether there is currently an existing voice being announced, before said inserting the specified voice into an announcement queue for queuing in order of priority from high to low, further comprises:
judging whether the existing voice in the broadcast queue reaches an upper limit or not;
if the upper limit is reached, judging whether voices with the priority lower than the priority of the specified voice aimed by the voice broadcast request exist in the broadcast queue; if the voice broadcasting request does not exist, the specified voice aimed by the voice broadcasting request is discarded; if the voice broadcasting request exists in the broadcasting queue, discarding the last existing voice arranged in the broadcasting queue, and executing the operation of adding the specified voice aiming at the voice broadcasting request into the broadcasting queue according to a preset queuing rule;
and if the voice broadcast request does not reach the upper limit, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to a preset queuing rule.
5. The method of claim 1, wherein after queuing the specified voices inserted into the announcement queue in order of priority from high to low, further comprising:
when the current voice broadcast that is broadcasting is accomplished, report in proper order the pronunciation in the broadcast queue.
6. A voice broadcast device for voice broadcast for a specified voice, comprising:
the receiving module is used for receiving a voice broadcasting request aiming at specified voice;
the judging module is used for judging whether the currently broadcasted voice exists or not and judging whether the specified voice with the queuing time exceeding the self queuing time threshold exists in the broadcast queue or not;
a sorting module, configured to insert the specified voices into a broadcast queue for queuing according to a sequence from high priority to low priority when the determination result of the determination module indicates that there is a voice being broadcast, and start a timer corresponding to the specified voices at the same time, where the timer is provided with a queuing time threshold corresponding to the specified voices, and discard the specified voices having a queuing time exceeding the queuing time threshold when there is the specified voice having a queuing time exceeding the queuing time threshold in the broadcast queue according to the determination result of the determination module, where the priority corresponding to the specified voices is preconfigured and stored in a voice broadcast device, the timer corresponds to the specified voices one-to-one, and the queuing time threshold of the specified voices is preconfigured according to the priority of the specified voices, and the queuing time thresholds of the specified voices of different priorities are different, the higher the priority is, the longer the queuing time threshold of the specified voice is;
and the broadcasting module is used for broadcasting the appointed voice aimed by the voice broadcasting request when the judgment result of the judgment module does not exist.
7. The apparatus of claim 6,
the judging module is also used for judging whether the voice in the broadcasting queue reaches the upper limit or not after judging that the voice currently being broadcasted exists;
the sorting module is further configured to discard the specified voice for the voice broadcast request when the determination result of the determining module reaches an upper limit; and when the judgment result of the judgment module is that the specified voice is not up to the upper limit, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to the sequence of the priority from high to low.
8. The apparatus of claim 6, wherein the ordering module comprises:
the judging unit is used for judging whether the priority of the existing voice in the broadcast queue is lower than the priority of the specified voice aimed by the voice broadcast request;
the sorting unit is used for sorting the specified voice in front of all the existing voices in the broadcasting queue according to the sequence from high priority to low priority of the specified voice aimed at by the voice broadcasting request when the judgment result of the judging unit is yes; and when the judgment result of the judgment unit is negative, arranging the specified voice behind the existing voice with the priority not lower than that of the specified voice in the broadcast queue according to the sequence from high to low of the priority of the specified voice aimed at by the voice broadcast request.
9. The apparatus of claim 8,
the judging module is also used for judging whether the voice in the broadcasting queue reaches the upper limit or not after judging that the broadcasted voice currently exists;
the judging unit is further configured to, when a judgment result of the judging module reaches an upper limit, judge whether there is a voice with a priority lower than the priority of the specified voice for the voice broadcast request in the broadcast queue;
the sorting unit is further configured to discard the specified voice for the voice broadcast request when the determination result of the determining unit is non-existent; when the judgment result of the judgment unit is that the voice broadcasting request exists, discarding the last existing voice arranged in the broadcasting queue, and adding the specified voice aimed at by the voice broadcasting request into the broadcasting queue according to the sequence of the priority from high to low; and when the judgment result of the judgment module is that the specified voice is not up to the upper limit, adding the specified voice aimed at by the voice broadcast request into a broadcast queue according to the sequence of the priority from high to low.
10. The apparatus of claim 6,
the broadcast module is also used for broadcasting the voice in the broadcast queue in sequence when the current voice broadcast being broadcasted is completed.
11. A computer-readable storage medium, in which one or more programs are stored, the programs being used for a processor to call and execute the voice broadcasting method according to any one of claims 1 to 5.
CN201410348104.1A 2014-07-21 2014-07-21 Audio playing method and equipment Active CN105282119B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410348104.1A CN105282119B (en) 2014-07-21 2014-07-21 Audio playing method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410348104.1A CN105282119B (en) 2014-07-21 2014-07-21 Audio playing method and equipment

Publications (2)

Publication Number Publication Date
CN105282119A CN105282119A (en) 2016-01-27
CN105282119B true CN105282119B (en) 2021-02-12

Family

ID=55150454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410348104.1A Active CN105282119B (en) 2014-07-21 2014-07-21 Audio playing method and equipment

Country Status (1)

Country Link
CN (1) CN105282119B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108462789A (en) * 2017-02-20 2018-08-28 中兴通讯股份有限公司 A kind of voice broadcast method and device
CN110429949B (en) * 2019-06-17 2021-08-13 唐山钢铁集团有限责任公司 Truck scale voice system and upgrading and modifying method thereof
CN111180069A (en) * 2019-12-27 2020-05-19 南京亚信软件有限公司 Health degree evaluation method and system of business support system
CN113141527B (en) * 2020-01-17 2022-06-14 青岛海信传媒网络技术有限公司 Voice playing method based on content and display equipment
CN111429879B (en) * 2020-03-23 2024-02-20 南京领行科技股份有限公司 Voice broadcasting method, device, equipment and storage medium
CN111949818A (en) * 2020-08-14 2020-11-17 天津中新智冠信息技术有限公司 Data processing method and device, data processing equipment and storage medium
CN113486207A (en) * 2021-07-14 2021-10-08 深圳大趋智能科技有限公司 Voice broadcasting method and device based on DAC
CN114038224B (en) * 2021-10-18 2022-08-16 中国科学院软件研究所 Intelligent voice broadcasting method and device
CN114664032A (en) * 2022-03-18 2022-06-24 上海商汤智能科技有限公司 Voice broadcasting method, system, device and readable storage medium
CN115985022A (en) * 2022-12-14 2023-04-18 江苏丰东热技术有限公司 Real-time voice broadcasting method and device for equipment condition, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246020A (en) * 2008-03-14 2008-08-20 凯立德欣技术(深圳)有限公司 Voice broadcasting device and navigation system using the same and its method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417290C (en) * 2005-04-22 2008-09-03 中兴通讯股份有限公司 Congestion control method in No.3 generation mobile communication system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101246020A (en) * 2008-03-14 2008-08-20 凯立德欣技术(深圳)有限公司 Voice broadcasting device and navigation system using the same and its method

Also Published As

Publication number Publication date
CN105282119A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN105282119B (en) Audio playing method and equipment
US20190012134A1 (en) Audio playing method,apparatus, device and server
CN106855826B (en) Background application program control method and device
CN112512008A (en) Communication resource selection method, device, electronic equipment and storage medium
US11218780B2 (en) Data processing Method and device
CN106488270B (en) Live broadcast room switching method and device
CN107317763B (en) Flow control method and device between client and metadata server
EP3544227B1 (en) Power control for a power over ethernet system
CN103517143A (en) Method, device and terminal device for playing network video
CN110017847B (en) Self-adaptive navigation voice broadcasting method, device and system
CN103686359A (en) Startup advertisement playing method and device thereof
CN110070866B (en) Voice recognition method and device
CN109376055B (en) Power supply management method and system and electronic equipment
WO2015149613A1 (en) Volume control methods and devices, and multimedia playback control methods and devices
CN108173783A (en) A kind of message treatment method and system
CN105791987B (en) media data playing method and terminal
CN113743951A (en) Intelligent contract transaction processing method and device for block chain
CN112511650A (en) Video uploading method, device, equipment and readable storage medium
CN106303563B (en) Streaming media online playing method and device, execution terminal and storage medium
EP3163855A3 (en) Method and device for making call
CN112291718B (en) Service scheduling method and system based on low-power-consumption Bluetooth broadcast
CN108536545B (en) Information processing method and device for terminal equipment
CN101827231A (en) Method for automatically turning off digital television, set-top box device and playing system
CN111429879B (en) Voice broadcasting method, device, equipment and storage medium
CN110866157B (en) Robot response method and device and robot

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Wu Xiayu

Inventor after: Wen Ming

Inventor before: Wu Xiayu

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant