CN111432061B - Method and device for generating multi-playing signal tones and storage medium - Google Patents

Method and device for generating multi-playing signal tones and storage medium Download PDF

Info

Publication number
CN111432061B
CN111432061B CN202010136742.2A CN202010136742A CN111432061B CN 111432061 B CN111432061 B CN 111432061B CN 202010136742 A CN202010136742 A CN 202010136742A CN 111432061 B CN111432061 B CN 111432061B
Authority
CN
China
Prior art keywords
tone
playing
time
timer
signal sound
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
CN202010136742.2A
Other languages
Chinese (zh)
Other versions
CN111432061A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202010136742.2A priority Critical patent/CN111432061B/en
Publication of CN111432061A publication Critical patent/CN111432061A/en
Application granted granted Critical
Publication of CN111432061B publication Critical patent/CN111432061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/30Devices which can set up and transmit only one digit at a time
    • H04M1/50Devices which can set up and transmit only one digit at a time by generating or selecting currents of predetermined frequencies or combinations of frequencies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/041Encoding the ringing signal, i.e. providing distinctive or selective ringing capability

Abstract

The invention provides a method, a device and a storage medium for generating multi-playing signal tones, wherein the method comprises the following steps: starting a timer to monitor whether a signal sound playing completion event occurs or not; if no signal sound playing completion event occurs, stopping the playing of the rhythm and starting the playing of the signal sound of the next rhythm; and when the playing time of all the rhythms of the signal sound is greater than or equal to the preset repetition time, the signal sound is played. The invention can monitor the signal sound and then continue to generate the subsequent signal sound by arranging the timer until the whole signal sound is completely generated, can finish the multi-syllable playback and meet the diversified playback requirements of users.

Description

Method and device for generating multi-playing signal tones and storage medium
Technical Field
The invention relates to the technical field of VoIP systems, in particular to a method and a device for generating multi-playing signal tones and a storage medium.
Background
A single rhythm tone is composed of key parameters such as frequency 1, amplitude 1, frequency 2, amplitude 2, signal tone generation time, signal tone turn-off time, tone repetition number, etc. The single syllable sound meets the sound reproduction requirement of the calling process of many countries, the voice encoding and decoding chip used at ordinary times only supports the sound reproduction of the single syllable, but the individual signal sound used by individual countries is multi-syllable, and the existing device only supports the sound reproduction of the single syllable, can not finish the sound reproduction of the multi-syllable, and brings inconvenience to users.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The present invention provides a method, an apparatus and a storage medium for generating multi-syllable playing signal tones, aiming to solve the problem that the existing apparatus only supports single-syllable playing, cannot complete multi-syllable playing, and is inconvenient for people.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a method for generating a multi-ensemble tone, comprising:
starting a timer to monitor whether a signal sound playing completion event occurs or not;
if no signal sound playing completion event occurs, stopping the playing of the rhythm and starting the playing of the signal sound of the next rhythm;
and when the playing time of all the rhythms of the signal sound is greater than or equal to the preset repetition time, the signal sound is played.
Further, the step of enabling the timer to monitor whether the tone playing completion event occurs further includes, before the step of enabling the timer:
the preset repetition time is initialized.
Further, the expression of the signal tones is as follows: "frequency 1, amplitude 1, frequency 2, amplitude 2, tone generation time, tone off time, tone repetition number" is a toneBlock.
Further, if no tone playing completion event occurs, stopping the playing of the rhythm, and starting the playing of the next rhythm tone specifically includes:
if no signal sound playing completion event occurs, actively stopping the playing of the toneBlock;
the play of the toneBlock of the next tempo is started.
Further, the step of enabling the timer to monitor whether the tone playing completion event occurs further includes:
and monitoring a tone playing completion event generated by the voice digital signal device.
Further, time T > (tone generation time + tone off time) of the timer is repeated a number of times.
Further, the time T of the timer is (tone generation time + tone off time) × repetition times +10 ms.
Further, if the tone is a single segment, the playing time of the tone is set to 0.
The present invention also provides an apparatus comprising a memory, a processor and a multi-ensemble tone generating program stored on the memory and executable on the processor, wherein the multi-ensemble tone generating program, when executed by the processor, implements the steps of the multi-ensemble tone generating method as described above.
The present invention also provides a storage medium, wherein the storage medium stores a computer program executable for implementing the multi-ensemble tone generating method as described above.
The invention provides a method, a device and a storage medium for generating multi-playing signal tones, wherein the method comprises the following steps: starting a timer to monitor whether a signal sound playing completion event occurs or not; if no signal sound playing completion event occurs, stopping the playing of the rhythm and starting the playing of the signal sound of the next rhythm; and when the playing time of all the rhythms of the signal sound is greater than or equal to the preset repetition time, the signal sound is played. The invention can monitor the signal sound and then continue to generate the subsequent signal sound by arranging the timer until the whole signal sound is completely generated, can finish the multi-syllable playback, and brings convenience to people.
Drawings
FIG. 1 is a flow chart of a method for generating multi-ensemble tones in accordance with a preferred embodiment of the present invention.
Fig. 2 is a flow chart of playing a multi-tempo semaphore in accordance with the present invention.
Fig. 3 is a functional block diagram of a preferred embodiment of the apparatus of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The call process tone comprises signal tones such as a dial tone, a secondary dial tone, a ring back tone, a busy tone, a call waiting tone, an on-hook tone and an inaccessible number, the signal tones used by each country are different, the signal tone with a single rhythm almost meets most of application requirements, a certain signal tone of an individual country is multi-syllables, and if singapore indicates that the signal tone with the inaccessible number is composed of 2 rhythms:
a first tempo: 450Hz, -10dbov, 0Hz, 0dbov, 400ms, 400ms, repeat 1 time
The second rhythm: 425Hz, -10dbov, 0Hz, 0dbov, 100ms, 100ms, repeating for 3 times
Then, the rule that the 2-rhythm tones are repeatedly not stopped (first rhythm, second rhythm), … (first rhythm, second rhythm) is played.
The invention uses the method for generating the single rhythm sound of the chip to generate the single rhythm sound, but the subsequent signal sound is continuously generated after the generation of the monitoring signal sound is finished until the whole signal sound is completely generated.
Referring to fig. 1, fig. 1 is a flowchart of a method for generating a multi-ensemble tone according to the present invention. As shown in fig. 1, the method for generating a multi-ensemble tone according to the embodiment of the present invention includes the following steps:
and S100, starting a timer to monitor whether a signal sound playing completion event occurs.
The invention redefines the signal sound expression method, which refers to the frequency 1, the amplitude 1, the frequency 2, the amplitude 2, the signal sound generation time, the signal sound closing time and the single sound repetition times as a toneBlock, the multi-rhythm signal sound can be recorded as oneBlock [ n ], and then a repetition time is needed in the oneBlock [ n ] to express the specific playing time of the signal sound and is recorded as repeatTimems. Then the representation of a tone is:
Figure BDA0002397591290000041
if the tone is playing indefinitely, repeatTimes is 0 xffff.
In one implementation, the step S100 further includes, before the step S: the preset repetition time is initialized.
Further, the step S100 further includes: and monitoring a tone playing completion event generated by the voice digital signal device. In order to reliably monitor the completion condition of the signal sound playing of each block, the program at the host side monitors the event of the completion of the signal sound playing sent back by the voice digital annunciator, and also starts a timer to monitor whether the event of the completion of the playing is received, because the host and the digital signal processor are interacted through the network port, the event of the completion of the signal playing which cannot be received due to the packet loss is prevented.
And S200, if no signal sound playing completion event occurs, stopping playing of the rhythm and starting playing of the signal sound of the next rhythm.
In one implementation, the expression of the signal tone is as follows: "frequency 1, amplitude 1, frequency 2, amplitude 2, tone generation time, tone off time, tone repetition number" is a toneBlock.
Further, the step S200 specifically includes:
s210, if no signal sound playing completion event occurs, actively stopping playing of the toneBlock;
and S220, starting playing of toneBlock of the next rhythm.
Specifically, if the event of generating the completion is not monitored, actively stopping playing the toneBlock and starting playing the toneBlock of the next rhythm; the completion of the signal play is indicated until the time for all the rhythms to play is greater than or equal to the repeat Timems.
And S300, when the playing time of all rhythms of the signal sound is greater than or equal to the preset repetition time, the signal sound is played. Specifically, when the playback time of all the rhythms recorded by the timer is equal to or greater than the preset repetition time, the playback of the tone is completed.
In one implementation, the timer has a time T > (tone generation time + tone off time) repeated a number of times. The accumulated time of the timer is slightly longer than (tone generation time + tone off time) × repetition times. For example, the timer has a time T (tone generation time + tone off time) which is the number of repetitions +10 ms.
Further, if the tone is a single segment, the playing time of the tone is set to 0.
As shown in fig. 2, fig. 2 is a flowchart of playing a multi-ensemble tone. The step of playing the multi-rhythm signal sound is specifically as follows:
s1, initializing repeatTimems according to the signalTone description; tempTimeMs is 0, i is 0;
s2, judging whether the repetiTimes is more than tempTimes; if yes, executing S3, otherwise executing S8;
s3, playing the ith toneBlock, and starting a timer to monitor a playback completion event;
s4, judging whether a playback completion event is received or the timer is overtime; if not, go to S5;
s5, tempTimeMs + (play time, i + +);
s6, i is more than or equal to n; if yes, go to S7;
s7, i ═ 0; and returns to S2;
and S8, ending playback.
In the figure, the playing time (tone generation time + tone off time) is the number of times of repetition; if the signal sound of single rhythm is the signal sound played in infinite loop, the playing time should be set to 0, so that the event that the timer is started to monitor whether the playing is finished is not needed. The signal sound played in an infinite loop can only use the command of stopping playing, which is issued by the upper software, to stop playing.
As shown in fig. 3, the present invention further provides an apparatus, which includes a memory 20, a processor 10 and a multi-ensemble tone generating program stored on the memory 20 and operable on the processor 10, wherein the multi-ensemble tone generating program, when executed by the processor, implements the steps of the multi-ensemble tone generating method as described above; as described above.
The present invention also relates to a storage medium, wherein the storage medium stores a computer program, the computer program can be executed for implementing the multi-ensemble tone generating method as described above; as described above.
In summary, the method, apparatus and storage medium for generating a multi-playing tone disclosed in the present invention include: starting a timer to monitor whether a signal sound playing completion event occurs or not; if no signal sound playing completion event occurs, stopping the playing of the rhythm and starting the playing of the signal sound of the next rhythm; and when the playing time of all the rhythms of the signal sound is greater than or equal to the preset repetition time, the signal sound is played. The invention can monitor the signal sound and then continue to generate the subsequent signal sound by arranging the timer until the whole signal sound is completely generated, can finish the multi-syllable playback, and brings convenience to people.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method for generating multi-playing signal tones, comprising:
starting a timer to monitor whether a signal sound playing completion event occurs or not and judging whether the timer is overtime or not;
if the timer is not overtime, the signal sound playing completion event does not occur, the playing of the current rhythm is stopped, and the playing of the signal sound of the next rhythm is started;
and when the playing time of all rhythms of the signal sound recorded by the timer is greater than or equal to the preset repetition time, the playing of the signal sound is finished.
2. The multi-ensemble tone generating method according to claim 1, wherein said step of enabling a timer to monitor whether a tone play completion event occurs further comprises:
the preset repetition time is initialized.
3. The method for generating a multi-ensemble tone according to claim 1, wherein said tone is represented by: "frequency 1, amplitude 1, frequency 2, amplitude 2, tone generation time, tone off time, tone repetition number" is a rhythm and is called toneBlock.
4. The method for generating a multi-rhythm signal tone according to claim 3, wherein if the timer does not time out, and no signal tone playing completion event occurs, the playing of the current rhythm is stopped, and the step of starting the playing of the signal tone of the next rhythm specifically comprises:
if no signal sound playing completion event occurs, actively stopping playing of the toneBlock of the current rhythm;
the play of the toneBlock of the next tempo is started.
5. The multi-ensemble tone generating method according to claim 1, wherein said step of enabling a timer to monitor whether a tone play completion event occurs further comprises:
and monitoring a tone playing completion event generated by the voice digital signal device.
6. The method of generating a multi-ensemble tone of claim 1, wherein the timer has a time T > (tone generation time + tone off time) repeated a number of times.
7. The multi-ensemble tone generating method according to claim 6, wherein the timer has a time T (tone generation time + tone off time) repetition times +10 ms.
8. The method for generating a multi-ensemble tone according to claim 1, wherein if the tone is a single-ensemble tone, the playing time of the tone is set to 0.
9. A multi-ensemble tone generating apparatus comprising a memory, a processor, and a multi-ensemble tone generating program stored on the memory and executable on the processor, the multi-ensemble tone generating program, when executed by the processor, implementing the steps of the multi-ensemble tone generating method according to any one of claims 1 to 8.
10. A storage medium characterized in that the storage medium stores a computer program executable for implementing the multi-ensemble tone generating method according to any one of claims 1 to 8.
CN202010136742.2A 2020-03-02 2020-03-02 Method and device for generating multi-playing signal tones and storage medium Active CN111432061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010136742.2A CN111432061B (en) 2020-03-02 2020-03-02 Method and device for generating multi-playing signal tones and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010136742.2A CN111432061B (en) 2020-03-02 2020-03-02 Method and device for generating multi-playing signal tones and storage medium

Publications (2)

Publication Number Publication Date
CN111432061A CN111432061A (en) 2020-07-17
CN111432061B true CN111432061B (en) 2022-03-29

Family

ID=71547384

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010136742.2A Active CN111432061B (en) 2020-03-02 2020-03-02 Method and device for generating multi-playing signal tones and storage medium

Country Status (1)

Country Link
CN (1) CN111432061B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604513A (en) * 2003-09-29 2005-04-06 华为技术有限公司 A method for playing variable sound in CDMA system
CN1859448A (en) * 2005-09-21 2006-11-08 华为技术有限公司 Ringring prompting method for telephone device
CN1905459A (en) * 2006-09-08 2007-01-31 杭州华为三康技术有限公司 Timer and timing controlling method for playback server
CN101778179A (en) * 2009-01-09 2010-07-14 华为技术有限公司 Method, system, media gateway for reporting dual tone multi-frequency(DTMF) number
CN104168183A (en) * 2014-08-12 2014-11-26 烽火通信科技股份有限公司 Home gateway and method and device capable of achieving flexible ringing with caller identifications

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7421066B1 (en) * 1996-06-12 2008-09-02 Estech Systems, Inc. Telephone call/voice processing system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604513A (en) * 2003-09-29 2005-04-06 华为技术有限公司 A method for playing variable sound in CDMA system
CN1859448A (en) * 2005-09-21 2006-11-08 华为技术有限公司 Ringring prompting method for telephone device
CN1905459A (en) * 2006-09-08 2007-01-31 杭州华为三康技术有限公司 Timer and timing controlling method for playback server
CN101778179A (en) * 2009-01-09 2010-07-14 华为技术有限公司 Method, system, media gateway for reporting dual tone multi-frequency(DTMF) number
CN104168183A (en) * 2014-08-12 2014-11-26 烽火通信科技股份有限公司 Home gateway and method and device capable of achieving flexible ringing with caller identifications

Also Published As

Publication number Publication date
CN111432061A (en) 2020-07-17

Similar Documents

Publication Publication Date Title
US7844454B2 (en) Apparatus and method for providing voice recognition for multiple speakers
TW496062B (en) Cellular phone and music playback method
CN109547649A (en) Emmergency call method, device, call terminal and the storage medium of call terminal
WO2020063451A1 (en) Call voicemail messaging method, terminal, and device having storage function
CN111432061B (en) Method and device for generating multi-playing signal tones and storage medium
CN103813031B (en) Call processing method and device
CN110795551A (en) Intelligent conversation method, device and related equipment
CN109447750A (en) A kind of server, order processing method and system
WO2009097802A1 (en) Method, device and system for playing multilingual changeable voice in calling
JP2007019600A (en) Telephone set and call termination notice method
JPS60126953A (en) Identifying device for connection information
CN100536507C (en) System for realizing memory color bell tone and method thereof
KR100658889B1 (en) Method for generating a receiving ring in a mobile communication system
CN105653229A (en) Method and device for implementing voice control
JPH0946397A (en) Ringer sound varying system for telephone set
CN109474752A (en) Data processing method and device
KR960039801A (en) Scheduled Dialing Method for Parallel-Connected Telephones
CN115914366B (en) Virtual character object language pushing method, system and electronic equipment
CN114584656B (en) Streaming voice response method and device and voice call robot thereof
CN110336912B (en) Voice broadcasting method, device, equipment and storage medium
JP2018160798A (en) Communication device, communication method, and communication program
KR100605882B1 (en) Ringing Method
CN116567148A (en) Intelligent outbound control method, device, medium and electronic equipment
KR0154464B1 (en) Method for calling a voice of key-phone system
CN115038002A (en) Bluetooth audio playing method, storage medium and true wireless earphone

Legal Events

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