CN106161714A - A kind of ring playing method and device, terminal - Google Patents

A kind of ring playing method and device, terminal Download PDF

Info

Publication number
CN106161714A
CN106161714A CN201510157837.1A CN201510157837A CN106161714A CN 106161714 A CN106161714 A CN 106161714A CN 201510157837 A CN201510157837 A CN 201510157837A CN 106161714 A CN106161714 A CN 106161714A
Authority
CN
China
Prior art keywords
audio
fragment
duration
jingle bell
audio file
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.)
Granted
Application number
CN201510157837.1A
Other languages
Chinese (zh)
Other versions
CN106161714B (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.)
Nanjing ZTE New Software Co Ltd
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510157837.1A priority Critical patent/CN106161714B/en
Priority to PCT/CN2015/083554 priority patent/WO2016155139A1/en
Publication of CN106161714A publication Critical patent/CN106161714A/en
Application granted granted Critical
Publication of CN106161714B publication Critical patent/CN106161714B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/60Substation equipment, e.g. for use by subscribers including speech amplifiers
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a kind of ring playing method and device, terminal.The ring playing method of the present invention includes: obtain jingle bell duration;From the audio file of terminal storage, choose at least one audio file, and carry out cutting according to the described jingle bell duration audio file to choosing and obtain multiple audio fragment, store described audio fragment;After triggering jingle bell, the described audio fragment calling correspondence from storage plays out;The method of the present invention can solve to arrange and play cause the technical problem of poor user experience owing to current terminal can not realize the tinkle of bells of personalization.

Description

A kind of ring playing method and device, terminal
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of ring playing method and device, terminal.
Background technology
Along with developing rapidly of intelligent terminal, the alarm clock function on intelligent terminal the most almost becomes the function of standard configuration, Become an indispensable part in people's daily life.Although the function of alarm clock is the most powerful at present, can It is arbitrarily set to various pattern, but but lacks the setting of the ring of alarm clock of personalization, one can only be arranged every time Kind of quarter-bell song, and to sound be all from the beginning to play the same song every time, can be more dry as dust, user's body Test comparison bad.
It addition, the incoming ring tone of terminal also lacks the setting of personalization at present, a kind of incoming call can only be set every time The tinkle of bells song, and to sound be all from the beginning to play the same song every time, equally can be more dry as dust, user Experience bad.
As can be seen here, owing to current terminal can not realize the tinkle of bells setting of personalization and plays, user can be caused It is poor to experience.
Summary of the invention
The main technical problem to be solved in the present invention is to provide a kind of ring playing method and device, terminal, Can solve the problem that and arrange and play cause the skill of poor user experience owing to current terminal can not realize the tinkle of bells of personalization Art problem.
For solving above-mentioned technical problem, the present invention provides a kind of ring playing method, comprises the steps:
Obtain jingle bell duration;
At least one audio file is chosen from the audio file of terminal storage;According to described jingle bell duration The audio file chosen is carried out cutting and obtains multiple audio fragment, store described audio fragment;
After triggering jingle bell, the described audio fragment calling correspondence from storage plays out.
Further, the described audio file according to described jingle bell duration to choosing carries out cutting and obtains many The step of individual audio fragment includes:
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
Further, the described step according to all audio files chosen one total audio file of generation includes:
All audio files chosen are carried out arrangement and obtains a total audio file, described total audio file The all audio file duration sums chosen of Shi Changwei.
Further, described according to described jingle bell duration, described total audio file carried out cutting and obtain many The step of the audio fragment that individual duration is equal with described jingle bell duration includes:
When described total audio file during the integral multiple of a length of described jingle bell duration, hold with described jingle bell Time continuous, the duration of an a length of fragment carries out fragment cutting and obtains multiple audio fragment described total audio file.
Further, described according to described jingle bell duration, described total audio file carried out cutting and obtain many The step of the audio fragment that individual duration is equal with described jingle bell duration also includes:
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to being somebody's turn to do Audio fragment make the duration of this audio fragment equal to described jingle bell duration.
Further, carry out cutting at the described audio file according to described jingle bell duration to choosing to obtain Before multiple audio fragments, described method also includes:
The audio file chosen is identified obtaining the audio time of the complete words and phrases of the audio file chosen Point;
Carry out cutting at the described audio file according to described jingle bell duration to choosing and obtain multiple audio frequency sheet After Duan, before triggering jingle bell, described method also includes:
Audio time point and the time point of described audio fragment according to described complete words and phrases judge described audio frequency sheet The words and phrases of section are the most complete, and the time point of described audio fragment includes the initial of audio fragment and/or end time Point;
If it is not, audio frequency corresponding to the words and phrases that then lacked by described audio fragment is supplemented to described audio fragment and makes The words and phrases of described audio fragment are complete.
Further, the step that the described described audio fragment calling correspondence from storage plays out includes:
The described audio fragment calling correspondence according to number of rings from storage plays out.
It is similarly the technical problem that solution is above-mentioned, present invention also offers a kind of the tinkle of bells playing device, including: Acquisition module, choose module, audio processing modules, memory module and playing module;
Described acquisition module, for obtaining the jingle bell duration of user setup;
Described choose module, for choosing at least one audio file from the audio file of terminal storage;
Described audio processing modules, for cutting the audio file chosen according to described jingle bell duration Cut and obtain multiple audio fragment;
Described memory module, is used for storing described audio fragment;
Described playing module, for after triggering jingle bell, calls the described sound of correspondence from described memory module Frequently fragment plays out.
Further, described audio processing modules, it is used for:
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
Further, described audio processing modules, obtain for all audio files chosen are carried out arrangement One total audio file, time a length of all audio file duration sums chosen of described total audio file.
Further, described audio processing modules, it is used for:
When described total audio file during the integral multiple of a length of described jingle bell duration, hold with described jingle bell Time continuous, the duration of an a length of fragment carries out fragment cutting and obtains multiple audio fragment described total audio file;
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to being somebody's turn to do Audio fragment make the duration of this audio fragment equal to described jingle bell duration.
Further, described device, also include: words and phrases identification module, judge module and words and phrases complementary module: Described words and phrases identification module, for choosing after module chooses audio file described, described memory module is deposited Before storage audio fragment, the audio file chosen is identified obtaining the audio frequency of the complete words and phrases of audio file Time point;
Described judge module, before storing audio fragment in described memory module, described Audio Processing mould Block carries out after cutting obtains multiple audio fragment, according to audio time point and the described sound of described complete words and phrases Frequently the time point of fragment judges that the words and phrases of described audio fragment are the most complete, the time point bag of described audio fragment Include the initial of audio fragment and/or end time point;
Described words and phrases complementary module, in the case of described judge module is no, described audio fragment lacks Audio frequency corresponding to words and phrases lost is supplemented to described audio fragment and makes the words and phrases of described audio fragment complete.
Further, described playing module, for calling the described sound of correspondence from storage according to number of rings Frequently fragment plays out.
It is similarly the technical problem that solution is above-mentioned, present invention also offers a kind of terminal, including: processor And memorizer, described processor is used for:
Obtain jingle bell duration;
At least one audio file meeting preset audio condition is chosen from the audio file of terminal storage;Root Carry out cutting according to the described jingle bell duration audio file to choosing and obtain multiple audio fragment, by described sound Frequently fragment stores to described memorizer;
After triggering jingle bell, the described audio fragment calling correspondence from described memorizer plays out.
The invention has the beneficial effects as follows:
The invention provides a kind of ring playing method and device, terminal, the ring playing method bag of the present invention Include: obtain jingle bell duration;At least one audio file is chosen from the audio file of terminal storage, and Carry out cutting according to the described jingle bell duration audio file to choosing and obtain multiple audio fragment, store institute State audio fragment;After triggering jingle bell, the described audio fragment calling correspondence from storage plays out;This The ring playing method of invention can choose the audio file needed for user from terminal storage, then will choose Audio file cut into multiple audio fragment, using audio fragment as terminal the tinkle of bells (incoming ring tone or Ring of alarm clock), the method terminal of the application present invention can realize personalized or diversified the tinkle of bells and arranges and broadcast Put, improve Consumer's Experience.
Accompanying drawing explanation
The schematic flow sheet of a kind of ring playing method that Fig. 1 provides for the embodiment of the present invention one;
The schematic flow sheet of a kind of ring of alarm clock playing process that Fig. 2 provides for the embodiment of the present invention one;
The structural representation of a kind of the tinkle of bells playing device that Fig. 3 provides for the embodiment of the present invention two;
The structural representation of the another kind of the tinkle of bells playing device that Fig. 4 provides for the embodiment of the present invention two;
The structural representation of a kind of terminal that Fig. 5 provides for the embodiment of the present invention three;
The structural representation of a kind of ring of alarm clock playing device that Fig. 6 provides for the embodiment of the present invention four.
Detailed description of the invention
Combine accompanying drawing below by detailed description of the invention the present invention is described in further detail.
Embodiment one:
Terminal can not realize the tinkle of bells setting of personalization and play the technical problem causing poor user experience at present, Present embodiments provide a kind of ring playing method, can be used for playing incoming ring tone or ring of alarm clock, such as Fig. 1 Shown in, comprise the steps:
Step 101: obtain jingle bell duration.
Specifically, this step can obtain the jingle bell duration that user is arranged in terminal, such as, playing alarm clock During the tinkle of bells, user can be obtained and arrange in terminal or the alarm clock jingle bell duration of terminal acquiescence, application When the present embodiment method plays incoming ring tone, incoming call jingle bell duration, or it can be obtained from network side Front measure incoming ring tone obtains incoming call jingle bell duration, such as, can measure an incoming call and ring The average duration that bell is lasting.
In the present embodiment, jingle bell duration refers to: play the duration of the tinkle of bells continuously;Alarm clock is being set or is coming Electricity event be triggered after repeatedly in the case of jingle bell, in the present embodiment, jingle bell duration is that single jingle bell continues Duration, such as, arrange and need after alarm clock is triggered to carry out No. five jingle bells, during the interval of jingle bell a length of 1 minute, Now, jingle bell duration is each jingle bell duration (for example, 1 minute).
Step 102: choose at least one audio file from the audio file of terminal storage, and according to described sound The bell duration audio file to choosing carries out cutting and obtains multiple audio fragment, stores described audio frequency sheet Section.
Specifically, the present embodiment sound intermediate frequency file can be the song of terminal storage, and the present embodiment step can root According to preset audio selection rule from terminal storage and be labeled as the song liked choosing at least one song. In the present embodiment, preset audio selection rule may include that and chooses finger-popping audio file, or chooses The audio file etc. of predetermined bent wind.
Such as, the song in the list of songs that will be labeled as liking in user's music libraries carries out filtered audio, filters soft With, at a low speed, sense of rhythm is slow, be not suitable as the song of alarm clock, chooses that sense of rhythm is strong, be suitable as the tinkle of bells (alarm clock or the tinkle of bells of incoming call);The most such as, the audio file of Chinese musical telling class is chosen.Preset audio in the present embodiment Selection rule can be set according to the actual demand of user, using select audio file needed for user as Quarter-bell or incoming ring tone.
This step carries out cutting according to the described jingle bell duration audio file to choosing and obtains multiple audio frequency The process of fragment may include that
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
After choosing audio file in the present embodiment, all audio files chosen can be combined raw Become a total audio file, specifically, all audio files chosen can be carried out arrangement and always obtain one Audio file, time a length of all audio file duration sums chosen of described total audio file.Such as by institute There is audio file to be arranged in order and the end time of previous audio file is put rising as later audio file All audio files are thus coupled together and form a total audio file by beginning time point in time.
Certainly, the present embodiment can such as choose each audio frequency to have other modes to generate total audio file The audio-frequency unit that in file, sense of rhythm is the strongest, audio-frequency unit one audio file of composition then will chosen.
Specifically, described total audio file is cut by the present embodiment method according to described jingle bell duration Cut and obtain the detailed process of multiple duration audio fragment equal with described jingle bell duration and may include that
When described total audio file during the integral multiple of a length of described jingle bell duration, hold with described jingle bell Time continuous, the duration of an a length of fragment carries out fragment cutting and obtains multiple audio fragment described total audio file;
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to being somebody's turn to do Audio fragment make the duration of this audio fragment equal to described jingle bell duration.
Such as, having song A, B, C, D that three users are labeled as liking, A after screening, B, C meet conduct The condition of alarm clock, time a length of 03:10, Yong Hushe of time a length of 03:00, C of time a length of 02:40, B of A The alarm clock persistent period put is 1 minute, then after data calculating processes, duration amounts to 08:50, generates 9 Fragment, last fragment fills the default ring tone of 10 seconds.
Step 103: after triggering jingle bell, the described audio fragment calling correspondence from storage plays out.
Specifically, when current time arrives the time that alarm clock is arranged, trigger alarm clock jingle bell, or terminal connects When receiving calling, triggering terminal incoming call jingle bell.
In the case of an event repeatedly jingle bell, this step is called from storage the described audio frequency sheet of correspondence The process that section plays out includes: the described audio fragment calling correspondence according to number of rings from storage is carried out Play.Further, the present embodiment method can call different audio frequency sheets according to number of rings from storage Section plays out.
Such as, after triggering alarm clock jingle bell, when alarm clock sounds for the first time, play the first audio fragment, postpone After again sound, play the second audio fragment, the like, when alarm clock n-th is sounded, play N Individual audio fragment.In like manner, as after triggering incoming call jingle bell being also, each jingle bell calls different audio frequency sheets Section plays out.
The present embodiment method can choose the audio file needed for user from terminal, so from terminal storage After the audio file chosen is cut into multiple audio fragment, using audio fragment as terminal the tinkle of bells (incoming call The tinkle of bells or ring of alarm clock), enrich the tinkle of bells of terminal, it is achieved that the tinkle of bells personalized with diversified equipment and Play, improve Consumer's Experience.
Imperfect in view of the words and phrases that audio file cutting can be caused audio fragment, when playing audio fragment What user heard is not complete words and phrases, and Consumer's Experience can almost, therefore, in order to improve user further Experience, the present embodiment method can also audio fragment incomplete to words and phrases carry out supplement make it complete.Specifically Ground, the audio file chosen is being cut according to described jingle bell duration by the present embodiment method described Also include before obtaining multiple audio fragment: be identified the audio file chosen obtaining the audio frequency literary composition chosen The time point of complete words and phrases in part;
Carry out cutting at the described audio file according to described jingle bell duration to choosing and obtain multiple audio frequency sheet After Duan, before triggering jingle bell, the present embodiment method also includes:
Time point and the time point of described audio fragment according to described complete words and phrases judge described audio fragment Words and phrases are the most complete, and the time point of described audio fragment includes the initial of audio fragment and/or end time point;
If it is not, audio frequency corresponding to the words and phrases that then lacked by described audio fragment is supplemented to described audio fragment and makes The words and phrases of described audio fragment are complete.
For example, it is possible to after cutting audio fragment, before storage audio fragment, it is judged that words and phrases are the most complete, And the words and phrases of supplementary audio fragment;Or, after storage audio fragment, judging that words and phrases are the completeest Whole, and the words and phrases of supplementary audio fragment.
The time point of the present embodiment sound intermediate frequency fragment is: the cut point time of total audio file.
The present embodiment method can be automatically replenished the words and phrases imperfection caused because of fragment cutting.First obtain The time point (including start time point and/or end time point) of the complete words and phrases of the audio file chosen;So After the start time point of each audio fragment and end time point are carried out with the corresponding time point completing words and phrases Relatively, judge that audio fragment is the most complete according to comparative result;Such as audio fragment end point is at lyrics Centre, i.e. this end point time are less than this complete end time point, cause these lyrics not play, The tinkle of bells that then automatically prolongs play, until this sentence finishes, automatically update the fragment end point time be this knot The time point of bundle;For audio fragment starting point, if this o'clock is in the middle of lyrics, i.e. this time point is more than This complete starting point, causes this sentence not play from complete words, say, that to be to start to broadcast from half word Putting, self adaptation supplements this sentence complete the most forward, has reached the broadcasting of complete words, and has automatically updated fragment Starting point is the time point that this is initial.
Below as a example by playing ring of alarm clock, the method illustrating the present embodiment, as in figure 2 it is shown, bag Include following steps:
Step 201: be labeled as, in detection terminal music libraries, song and the alarm clock jingle bell of user setup that user likes Duration.
The present embodiment method can regularly detect in music libraries and is labeled as, by user, the song track and the user that like The ring of alarm clock duration every time arranged.
Step 202: choose finger-popping song from the song that user likes.
Specifically, soft, low and slow, joint can be filtered out to detecting that the song that user likes filters Play the song that sense is slow, be not suitable as alarm clock, retain the song that sense of rhythm is strong, be suitable as alarm clock.
Step 203: the song chosen is identified obtaining the audio time point of the complete words and phrases of song.
Specifically, identify the time point of the complete words and phrases filtering out song, and preserve each complete words and phrases Audio time point.The complete words and phrases of each song specifically can be identified according to the parameter filtering out song Audio time point.
In order to facilitate follow-up use, the present embodiment clicks on rower can also to the audio time of complete words and phrases Know, then preserve, call corresponding audio time point, example for during follow-up judgement integrity by mark If the song title belonging to complete words and phrases is as mark,.
Step 204: the song chosen is carried out arrangement and generates an alarm clock song, according to alarm clock jingle bell duration pair Described alarm clock song carries out cutting and obtains the audio frequency sheet that multiple duration is equal with described alarm clock jingle bell duration Section.
Specifically, the song chosen is arranged in a song as alarm clock song, the duration of this alarm clock song Duration sum equal to all songs chosen;Then with alarm clock jingle bell duration as unit, alarm clock is sung Song cuts into multiple audio fragment.
When alarm clock song during the integral multiple of a length of alarm clock jingle bell duration, cutting obtains multiple audio frequency sheet The duration of section is equal to alarm clock jingle bell duration;
When the integral multiple that the duration of alarm clock song is not alarm clock jingle bell duration, cutting obtains multiple audio frequency Fragment can exist the duration audio fragment less than alarm clock jingle bell duration, the audio frequency sheet of such as last cutting Section, for this audio fragment, needs to fill audio file and makes its duration equal to alarm clock jingle bell duration, example As filled this audio fragment of the tinkle of bells value of terminal acquiescence.
Such as having song A, B, C, D that three users are labeled as liking, A after screening, B, C meet as noisy The condition of clock, time a length of 03:10 of time a length of 03:00, C of time a length of 02:40, B of A, user setup The alarm clock persistent period be 1 minute, then data calculating process after, duration amounts to 08:50, generates 9 sheets Section, last fragment fills the default ring tone of 10 seconds.
Step 205: judge institute according to the audio time point of described complete words and phrases and the time point of described audio fragment The words and phrases stating audio fragment are the most complete, if it is not, then perform step 206, the most then perform step 207.
Specifically, can obtain according to the mark (such as song title) of the audio time point completing words and phrases right The audio time point of the complete words and phrases answered, then compares with corresponding audio fragment, according to comparative result Judge that the words and phrases of audio fragment are the most complete.
Step 206: the audio frequency that the words and phrases that lacked by described audio fragment are corresponding is supplemented to described audio fragment and makes The words and phrases of described audio fragment are complete.
Specifically, if the end point of audio fragment is in the middle of lyrics, i.e. the end time of this audio fragment Point, less than this complete audio frequency end time point, causes these lyrics not play, then judges this audio frequency sheet The words and phrases of section are imperfect, now require supplementation with disappearance audio frequency corresponding to words and phrases to this fragment, make completely i.e. to play The complete local exchange lyrics.For audio fragment starting point, if this o'clock is in the middle of lyrics, i.e. this audio fragment Start time point is more than this complete audio frequency starting point, causes this sentence not play from complete words, the most just It is to say it is to commence play out from half, then judges that the words and phrases of this audio fragment are imperfect, now need forward certainly Adapt to supplement this sentence complete.
Such as, above-mentioned 9 audio fragments being judged respectively, and words and phrases are the most complete, if not completing, supplementing disappearance The audio frequency that words and phrases are corresponding.After words and phrases supplement, audio fragment is respectively as follows:
{ (A, 00:00, xxx, 2:40, mp3) (A, 01:00, xxx, 2:40, mp3) }, (A, 01:00, Xxx, 2:40, mp3) (A, 02:10, xxx, 2:40, mp3) }, (A, 01:55, xxx, 2:40, Mp3), (B, 00:20, xxx, 3:00, mp3) } ... the parameter of A/B represents to obtain and processes through operation After the coded sequence of song, the time below represents starting point or the end point of audio fragment, " xxx " generation Table song title, " 2:40 " represents the total duration of song, and " mp3 " represents types of songs, and each fragment has two groups Data, second time factor in first data represents fragment initial time, in second data Two time factors represent the end time of fragment.In two adjacent audio fragments, the end of a upper fragment The starting point of point and next fragment can be that order arrangement is (such as first audio fragment and second audio frequency sheet Section), it is also possible to there are overlapping part because words and phrases are automatically replenished (such as second audio fragment and the 3rd Audio fragment).
Step 207: store after audio fragment labelling.
Specifically, each audio fragment is numbered, then storage audio fragment and numbering thereof.
Step 208: after triggering alarm clock jingle bell, calls the sound of correspondence from storage according to the number of times of alarm clock jingle bell Frequently fragment plays out.
Specifically, the audio frequency of correspondence can be called according to the number order of the number of times of alarm clock jingle bell and audio fragment Fragment plays out.
Such as, when alarm clock sounds for the first time, play the first audio fragment, again sound after delay, play the Two audio fragments, the like, when alarm clock n-th is sounded, play n-th audio fragment.
Above-mentioned introduction be ring of alarm clock play detailed process, but for incoming ring tone play process with The process that ring of alarm clock is play is similar, is referred to foregoing.
On the basis of the above, the present embodiment method can also update the tinkle of bells, specifically, can work as and ring The audio file of bell duration or terminal storage can reset bell according to above-mentioned steps when changing Sound.
The present embodiment method can according to the alarm clock persistent period change self-adaptative adjustment ring of alarm clock broadcasting, Automatic screening user likes that song is complete as the words and phrases of the tinkle of bells supplementary audio fragment, it is achieved ring of alarm clock Variation, improves Consumer's Experience.
Application the present embodiment method can bring diversified ring of alarm clock broadcast mode to user, and friendliness is high, Improve user's experience.
Embodiment two:
As it is shown on figure 3, present embodiments provide a kind of the tinkle of bells playing device, including: acquisition module, choose Module, audio processing modules, memory module and playing module;
Described acquisition module, for obtaining the jingle bell duration of user setup;
Described choose module, for choosing at least one audio file from the audio file of terminal storage;
Described audio processing modules, for cutting the audio file chosen according to described jingle bell duration Cut and obtain multiple audio fragment;
Described memory module, is used for storing described audio fragment;
Described playing module, for after triggering jingle bell, calls the described sound of correspondence from described memory module Frequently fragment plays out.
Application the present embodiment the tinkle of bells playing device can realize the diversified or personalized setting of the tinkle of bells and broadcasting, Promote Consumer's Experience.
Preferentially, described audio processing modules, it is used for:
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
Preferentially, described audio processing modules, obtain one for all audio files chosen are carried out arrangement Individual total audio file, time a length of all audio file duration sums chosen of described total audio file.
Preferentially, described audio processing modules, it is used for:
When described total audio file during the integral multiple of a length of described jingle bell duration, hold with described jingle bell Time continuous, the duration of an a length of fragment carries out fragment cutting and obtains multiple audio fragment described total audio file;
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to being somebody's turn to do Audio fragment make the duration of this audio fragment equal to described jingle bell duration.
As shown in Figure 4, on the basis of above-mentioned module, the present embodiment device can also include: words and phrases identification Module, judge module and words and phrases complementary module;
Described words and phrases identification module, for choosing after module chooses audio file described, described memory module is deposited Before storage audio fragment, the audio file chosen is identified obtaining the audio frequency of the complete words and phrases of audio file Time point;
Described judge module, before storing audio fragment in described memory module, described Audio Processing mould Block carries out after cutting obtains multiple audio fragment, according to audio time point and the described sound of described complete words and phrases Frequently the time point of fragment judges that the words and phrases of described audio fragment are the most complete, the time point bag of described audio fragment Include the initial of audio fragment and/or end time point;
Described words and phrases complementary module, in the case of described judge module is no, described audio fragment lacks Audio frequency corresponding to words and phrases lost is supplemented to described audio fragment and makes the words and phrases of described audio fragment complete.
Preferentially, described playing module, for calling the described audio frequency of correspondence from storage according to number of rings Fragment plays out.
The present embodiment device can according to the alarm clock persistent period change self-adaptative adjustment ring of alarm clock broadcasting, Automatic screening user likes that song is complete as the words and phrases of the tinkle of bells supplementary audio fragment, it is achieved ring of alarm clock Variation, improves Consumer's Experience.
Embodiment three:
As it is shown in figure 5, present embodiments provide a kind of terminal, including: processor and memorizer;Described place Reason device, is used for:
Obtain jingle bell duration;
At least one audio file is chosen from the audio file of terminal storage;According to described jingle bell duration The audio file chosen is carried out cutting and obtains multiple audio fragment, described audio fragment is stored and deposits to described Reservoir;
After triggering jingle bell, the described audio fragment calling correspondence from described memorizer plays out.
Preferentially, the described audio file according to described jingle bell duration to choosing carries out cutting and obtains multiple sound Frequently the step of fragment includes:
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
Preferentially, the described step according to all audio files chosen one total audio file of generation includes:
All audio files chosen are carried out arrangement and obtain a total audio file, described total audio file time A length of all audio file duration sums chosen.
Preferentially, described according to described jingle bell duration, described total audio file is carried out cutting when obtaining multiple The step of the long audio fragment equal with described jingle bell duration includes:
When described total audio file during the integral multiple of a length of described jingle bell duration, continue with described jingle bell The duration of mono-fragment of Shi Changwei carries out fragment cutting and obtains multiple audio fragment described total audio file;
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to this sound Frequently fragment make the duration of this audio fragment equal to described jingle bell duration.
Preferentially, described processor, it is additionally operable to: at the described audio frequency according to described jingle bell duration to choosing File carries out before cutting obtains multiple audio fragment, is identified the audio file chosen obtaining and chooses The audio time point of the complete words and phrases of audio file;At the described sound according to described jingle bell duration to choosing Frequency file carries out after cutting obtains multiple audio fragment, before triggering jingle bell, according to described complete words and phrases The time point of audio time point and described audio fragment judges that the words and phrases of described audio fragment are the most complete, described The time point of audio fragment includes the initial of audio fragment and/or end time point, if it is not, then by described audio frequency The audio frequency that the words and phrases of fragment deletion are corresponding is supplemented to described audio fragment and makes the words and phrases of described audio fragment complete Whole.
Embodiment four:
As shown in Figure 6, present embodiments provide a kind of ring of alarm clock playing device, including: the first detection mould Block, the second detection module, filtered audio module, words and phrases identification module, judge module, data computation module, Self adaptation words and phrases complementary module, data memory module, playing module sum counter;
First detection module, for detecting, when this persistent period the alarm clock persistent period of alarm clock module Parameter is set when changing, just obtains this parameter and be delivered to next unit module;If this parameter is not changed in, It is not required to transmit data to next module;
To user's labelling in music libraries, second detection module, for liking that song detects;This detection side Method is timing detection, and system default is one week, and user can be from the Row sum-equal matrix time.Song is liked when detecting When list is empty, then use acquiescence quarter-bell;When detect like that number of songs changes time, including increase, delete Remove, replace, all the song parameter under this state can be transferred to next unit module;
Filtered audio module, for receiving the song parameter of a module transmission, screens song, Can according to factors such as the rhythm of music, tune, speed, dynamics, filter out soft slowly, sense of rhythm weak Song, retain sense of rhythm strong song strong, dynamic, and on the one hand the song filtered out passed to data Computing unit, on the other hand passes to words and phrases recognition unit;If without being suitable as the song of ring of alarm clock after Shai Xuan Song, then keep current state constant, do not change;
Words and phrases identification module, for according to song character and parameter, identify judge each complete words and phrases time Between point, and by these data by song title retain, for data computation module with reference to contrast;
Judge module, first judges the parameter one whether time parameter received, song parameter received with last time Cause, if unanimously, then keep current state, do not change;If both there being side's parameter inconsistent, then need Data Computation Unit is wanted to recalculate process.
Data computation module, for getting the song data filtered out, numbers after arrangement in some sequence, Calculate all songs time span and, then will carry out fragment with alarm clock duration parameters for unit and cut Cut, the starting point parameter of audio fragment is stored.If the alarm clock persistent period of user setup is " to begin Eventually ", then it is not required to carry out song cutting, all songs are circulated broadcasting as an entirety.If cutting After completing, last fragment song duration less than a unit, is then filled with the ring of alarm clock of acquiescence. And the slice parameter after cutting is passed to self adaptation words and phrases supplementary units;
Self adaptation words and phrases complementary module, for being automatically replenished the words and phrases imperfection caused because of fragment cutting. Herein for the judgement of audio fragment cut point, then need and the complete words that identified in words and phrases recognition unit Sentence time point compares.Need preferential by the characteristic factor of song, such as song title, type etc., obtain Take the data preserved corresponding in words and phrases recognition unit, carry out contrast on this basis and compare;According to comparing Result judges that audio fragment is the most complete;
Data memory module, cuts for the song parameter that receives of storage and carrying out, self adaptation words and phrases are mended The parameter of the tonal range after filling.These parameters mainly include but not limited to following sections, as segment number, Song sequence number, time point, song title, song length, classification etc..
Playing module, is triggered after occurring when alarm clock jingle bell order, will carry out according to audio fragment order Play.When alarm clock sounds for the first time, playing the first audio fragment, enumerator adds one, again sounds after delay, Playing the second audio fragment, enumerator adds one again, the like, when alarm clock n-th is sounded, play N Individual audio fragment.When data update, when needing to recalculate process, counter O reset, restarts;As Carpostrote is put into last audio fragment does not all have data to update, then audio fragment loop play, then from first Individual beginning.
Application the present embodiment device can broadcasting according to the change self-adaptative adjustment ring of alarm clock of alarm clock persistent period Putting, automatic screening user likes that song is complete as the words and phrases of the tinkle of bells supplementary audio fragment, it is achieved alarm clock bell The variation of sound, improves Consumer's Experience.
Above content is to combine specific embodiment further description made for the present invention, it is impossible to recognize Determine the present invention be embodied as be confined to these explanations.Ordinary skill for the technical field of the invention For personnel, without departing from the inventive concept of the premise, it is also possible to make some simple deduction or replace, All should be considered as belonging to protection scope of the present invention.

Claims (14)

1. a ring playing method, it is characterised in that comprise the steps:
Obtain jingle bell duration;
At least one audio file is chosen from the audio file of terminal storage;According to described jingle bell duration The audio file chosen is carried out cutting and obtains multiple audio fragment, store described audio fragment;
After triggering jingle bell, the described audio fragment calling correspondence from storage plays out.
2. the method for claim 1, it is characterised in that described according to described jingle bell continue time Long cut the audio file chosen obtains the step of multiple audio fragment and includes:
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
3. method as claimed in claim 2, it is characterised in that described according to all audio frequency chosen The step of one total audio file of file generated includes:
All audio files chosen are carried out arrangement and obtains a total audio file, described total audio file The all audio file duration sums chosen of Shi Changwei.
4. method as claimed in claim 2, it is characterised in that described when continuing according to described jingle bell Long cut described total audio file obtains the audio frequency sheet that multiple duration is equal with described jingle bell duration The step of section includes:
When described total audio file during the integral multiple of a length of described jingle bell duration, hold with described jingle bell Time continuous, the duration of an a length of fragment carries out fragment cutting and obtains multiple audio fragment described total audio file.
5. method as claimed in claim 4, it is characterised in that described when continuing according to described jingle bell Long cut described total audio file obtains the audio frequency sheet that multiple duration is equal with described jingle bell duration The step of section also includes:
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to being somebody's turn to do Audio fragment make the duration of this audio fragment equal to described jingle bell duration.
6. the method as described in any one of claim 1-5, it is characterised in that described in described basis The jingle bell duration audio file to choosing carries out before cutting obtains multiple audio fragment, and described method is also Including:
The audio file chosen is identified obtaining the audio time of the complete words and phrases of the audio file chosen Point;
Carry out cutting at the described audio file according to described jingle bell duration to choosing and obtain multiple audio frequency sheet After Duan, before triggering jingle bell, described method also includes:
Audio time point and the time point of described audio fragment according to described complete words and phrases judge described audio frequency sheet The words and phrases of section are the most complete, and the time point of described audio fragment includes the initial of audio fragment and/or end time Point;
If it is not, audio frequency corresponding to the words and phrases that then lacked by described audio fragment is supplemented to described audio fragment and makes The words and phrases of described audio fragment are complete.
7. the method as described in any one of claim 1-5, it is characterised in that described tune from storage The step played out with corresponding described audio fragment includes:
The described audio fragment calling correspondence according to number of rings from storage plays out.
8. a tinkle of bells playing device, it is characterised in that including: acquisition module, choose module, sound Frequently processing module, memory module and playing module;
Described acquisition module, for obtaining the jingle bell duration of user setup;
Described choose module, for choosing at least one audio file from the audio file of terminal storage;
Described audio processing modules, for cutting the audio file chosen according to described jingle bell duration Cut and obtain multiple audio fragment;
Described memory module, is used for storing described audio fragment;
Described playing module, for after triggering jingle bell, calls the described sound of correspondence from described memory module Frequently fragment plays out.
9. device as claimed in claim 8, it is characterised in that described audio processing modules, is used for:
A total audio file is generated according to all audio files chosen;
According to described jingle bell duration, described total audio file is carried out cutting and obtain multiple duration and described sound The audio fragment that bell duration is equal.
10. device as claimed in claim 9, it is characterised in that described audio processing modules, is used for All audio files chosen are carried out arrangement and obtains a total audio file, the duration of described total audio file For all audio file duration sums chosen.
11. devices as claimed in claim 9, it is characterised in that described audio processing modules, are used for:
When described total audio file during the integral multiple of a length of described jingle bell duration, hold with described jingle bell Time continuous, the duration of an a length of fragment carries out fragment cutting and obtains multiple audio fragment described total audio file;
When the integral multiple that the duration of described total audio file is not described jingle bell duration, with described jingle bell Duration be the duration of a fragment described total audio file is carried out fragment cutting obtain multiple audio frequency sheet Section;
For duration less than the audio fragment of described jingle bell duration, default audio file is filled to being somebody's turn to do Audio fragment make the duration of this audio fragment equal to described jingle bell duration.
12. devices as described in any one of claim 8-11, it is characterised in that also include: words and phrases are known Other module, judge module and words and phrases complementary module;
Described words and phrases identification module, for choosing after module chooses audio file described, described storage mould Before block storage audio fragment, the audio file chosen is identified the complete words and phrases of acquisition audio file Audio time point;
Described judge module, before storing audio fragment in described memory module, described Audio Processing mould Block carries out after cutting obtains multiple audio fragment, according to audio time point and the described sound of described complete words and phrases Frequently the time point of fragment judges that the words and phrases of described audio fragment are the most complete, the time point bag of described audio fragment Include the initial of audio fragment and/or end time point;
Described words and phrases complementary module, in the case of described judge module is no, described audio fragment lacks Audio frequency corresponding to words and phrases lost is supplemented to described audio fragment and makes the words and phrases of described audio fragment complete.
13. devices as described in any one of claim 8-11, it is characterised in that described playing module, Play out for calling the described audio fragment of correspondence from storage according to number of rings.
14. 1 kinds of terminals, it is characterised in that including: processor and memorizer, described processor is used for:
Obtain jingle bell duration;
At least one audio file is chosen from the audio file of terminal storage;According to described jingle bell duration The audio file chosen is carried out cutting and obtains multiple audio fragment, described audio fragment is stored and deposits to described Reservoir;
After triggering jingle bell, the described audio fragment calling correspondence from described memorizer plays out.
CN201510157837.1A 2015-04-03 2015-04-03 Ringtone playing method and device, and terminal Active CN106161714B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510157837.1A CN106161714B (en) 2015-04-03 2015-04-03 Ringtone playing method and device, and terminal
PCT/CN2015/083554 WO2016155139A1 (en) 2015-04-03 2015-07-08 Ringtone playing method and apparatus, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510157837.1A CN106161714B (en) 2015-04-03 2015-04-03 Ringtone playing method and device, and terminal

Publications (2)

Publication Number Publication Date
CN106161714A true CN106161714A (en) 2016-11-23
CN106161714B CN106161714B (en) 2020-07-31

Family

ID=57003924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510157837.1A Active CN106161714B (en) 2015-04-03 2015-04-03 Ringtone playing method and device, and terminal

Country Status (2)

Country Link
CN (1) CN106161714B (en)
WO (1) WO2016155139A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635083A (en) * 2017-09-28 2018-01-26 努比亚技术有限公司 The tinkle of bells method to set up, mobile terminal and readable storage medium storing program for executing
CN112349303A (en) * 2019-07-22 2021-02-09 北京声智科技有限公司 Audio playing method, device and storage medium
CN115268248A (en) * 2022-07-14 2022-11-01 深圳市坤弘智能电子有限公司 Alarm clock control method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000354087A (en) * 1999-06-11 2000-12-19 Casio Comput Co Ltd Telephone set and control method for incoming report
EP1487187A2 (en) * 2003-06-11 2004-12-15 Nec Corporation Cellular phone and incoming call reception informing method
CN101064895A (en) * 2006-06-05 2007-10-31 北京恒基伟业投资发展有限公司 Method for controlling play of mobile phone bell
CN101882438A (en) * 2009-05-06 2010-11-10 晨星软件研发(深圳)有限公司 Music data processing method and electronic device using same
CN102316202A (en) * 2011-09-29 2012-01-11 深圳市五巨科技有限公司 Phone ring optimization method and apparatus thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000354087A (en) * 1999-06-11 2000-12-19 Casio Comput Co Ltd Telephone set and control method for incoming report
EP1487187A2 (en) * 2003-06-11 2004-12-15 Nec Corporation Cellular phone and incoming call reception informing method
CN101064895A (en) * 2006-06-05 2007-10-31 北京恒基伟业投资发展有限公司 Method for controlling play of mobile phone bell
CN101882438A (en) * 2009-05-06 2010-11-10 晨星软件研发(深圳)有限公司 Music data processing method and electronic device using same
CN102316202A (en) * 2011-09-29 2012-01-11 深圳市五巨科技有限公司 Phone ring optimization method and apparatus thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107635083A (en) * 2017-09-28 2018-01-26 努比亚技术有限公司 The tinkle of bells method to set up, mobile terminal and readable storage medium storing program for executing
CN112349303A (en) * 2019-07-22 2021-02-09 北京声智科技有限公司 Audio playing method, device and storage medium
CN112349303B (en) * 2019-07-22 2021-09-24 北京声智科技有限公司 Audio playing method, device and storage medium
CN115268248A (en) * 2022-07-14 2022-11-01 深圳市坤弘智能电子有限公司 Alarm clock control method and device, electronic equipment and storage medium
CN115268248B (en) * 2022-07-14 2024-04-30 深圳市坤弘智能电子有限公司 Alarm clock control method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2016155139A1 (en) 2016-10-06
CN106161714B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
US9524706B2 (en) Displaying content in relation to music reproduction by means of information processing apparatus independent of music reproduction apparatus
EP2302621B1 (en) Speech processing apparatus, speech processing method and program
CN108268530B (en) Lyric score generation method and related device
CN106161714A (en) A kind of ring playing method and device, terminal
CN109785859A (en) The method, apparatus and computer equipment of management music based on speech analysis
CN102419998B (en) Voice frequency processing method and system
US7592533B1 (en) Audio loop timing based on audio event information
CN107481735A (en) Method for converting audio sound production, server and computer readable storage medium
CN104867494B (en) The name sorting technique and system of a kind of recording file
CN107644637A (en) Phoneme synthesizing method and device
CN101667422A (en) Method and device for adjusting mode of song accompaniment
CN110688520A (en) Audio feature extraction method, apparatus, and medium
CN101615417B (en) Synchronous Chinese lyrics display method which is accurate to words
CN109237740A (en) Control method and device of electric appliance, storage medium and electric appliance
KR20160076316A (en) Apparatus and method for producing a rhythm game, and computer program for executing the method
CN103871433B (en) A kind of control method and electronic equipment
CN109841203A (en) A kind of electronic musical instrument music harmony determines method and system
CN107018238A (en) A kind of music quarter-bell and its application method
CN106331841B (en) Network speed information indicating method and device
EP3210203B1 (en) Ringtone sequences based on music harmony, modulation symbols and calling telephone number.
CN108322816A (en) The playback method and system of background music in broadcast program
JP2017068046A (en) Singing reference data correction device, karaoke system, and program
JP2004069815A (en) System, method, and program for editing content
CN108109609B (en) Audio and video recording method and device
CN107330025A (en) A kind of method and apparatus of recommendation song

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
TA01 Transfer of patent application right

Effective date of registration: 20200706

Address after: 210012 Nanjing, Yuhuatai District, South Street, Bauhinia Road, No. 68

Applicant after: Nanjing Zhongxing Software Co.,Ltd.

Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building

Applicant before: ZTE Corp.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant