CN106161714B - Ringtone playing method and device, and terminal - Google Patents

Ringtone playing method and device, and terminal Download PDF

Info

Publication number
CN106161714B
CN106161714B CN201510157837.1A CN201510157837A CN106161714B CN 106161714 B CN106161714 B CN 106161714B CN 201510157837 A CN201510157837 A CN 201510157837A CN 106161714 B CN106161714 B CN 106161714B
Authority
CN
China
Prior art keywords
audio
duration
ringing
audio file
module
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
CN201510157837.1A
Other languages
Chinese (zh)
Other versions
CN106161714A (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
Nanjing ZTE New Software 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 Nanjing ZTE New Software Co Ltd filed Critical Nanjing ZTE New Software Co Ltd
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

Images

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 ringtone playing method, a ringtone playing device and a ringtone playing terminal. The ring playing method of the invention comprises the following steps: acquiring the ringing duration; selecting at least one audio file from audio files stored in a terminal, cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, and storing the audio segments; after the ringing is triggered, calling the corresponding audio clip from the storage to play; the method of the invention can solve the technical problem of poor user experience caused by the fact that the current terminal can not realize personalized ring setting and playing.

Description

Ringtone playing method and device, and terminal
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a ringtone playing method and apparatus, and a terminal.
Background
With the rapid development of the intelligent terminal, the alarm clock function on the intelligent terminal almost becomes a standard function, and becomes an indispensable part in the daily life of people. Although the functions of the existing alarm clock are very powerful and can be set into various modes at will, the existing alarm clock lacks the setting of personalized alarm clock ring, only one alarm song can be set each time, and the same song is played from the beginning when the alarm clock rings each time, so that the alarm clock is boring and the user experience is not good.
In addition, the incoming call ringtone of the current terminal is lack of personalized setting, only one incoming call ringtone song can be set at a time, and the same song is played from the beginning every time the incoming call ringtone sounds, so that the incoming call ringtone is dull and the user experience is not good.
Therefore, the current terminal cannot realize personalized ring setting and playing, which results in poor user experience.
Disclosure of Invention
The invention provides a ringtone playing method, a ringtone playing device and a ringtone playing terminal, and aims to solve the technical problem of poor user experience caused by the fact that the existing terminal cannot realize personalized ringtone setting and playing.
In order to solve the above technical problem, the present invention provides a ring playing method, which comprises the following steps:
Acquiring the ringing duration;
Selecting at least one audio file from audio files stored in a terminal; cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, and storing the audio segments;
And after the ringing is triggered, calling the corresponding audio clip from the storage to play.
Further, the step of cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments includes:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
Further, the step of generating a total audio file according to all the selected audio files comprises:
And arranging all the selected audio files to obtain a total audio file, wherein the duration of the total audio file is the sum of the durations of all the selected audio files.
Further, the step of cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration includes:
And when the duration of the total audio file is integral multiple of the ringing duration, carrying out fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments.
Further, the step of cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration further includes:
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
Further, before the cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, the method further includes:
Identifying the selected audio file to obtain the audio time point of the complete words and sentences of the selected audio file;
After the selected audio file is cut according to the ringing duration to obtain a plurality of audio segments, and before the ringing is triggered, the method further includes:
Judging whether the words and sentences of the audio frequency fragment are complete or not according to the audio frequency time points of the complete words and sentences and the time points of the audio frequency fragment, wherein the time points of the audio frequency fragment comprise the starting time points and/or the ending time points of the audio frequency fragment;
If not, supplementing the audio corresponding to the words and sentences missing from the audio segment to the audio segment so as to enable the words and sentences of the audio segment to be complete.
Further, the step of calling the corresponding audio clip from the storage to play includes:
And calling the corresponding audio clip from the storage according to the ringing times for playing.
Also, in order to solve the above technical problem, the present invention further provides a ringtone playing device, including: the device comprises an acquisition module, a selection module, an audio processing module, a storage module and a playing module;
The acquisition module is used for acquiring the ringing duration set by the user;
The selection module is used for selecting at least one audio file from the audio files stored in the terminal;
The audio processing module is used for cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments;
The storage module is used for storing the audio clips;
And the playing module is used for calling the corresponding audio clip from the storage module to play after the ringing is triggered.
Further, the audio processing module is configured to:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
Further, the audio processing module is configured to arrange all the selected audio files to obtain a total audio file, where a duration of the total audio file is a sum of durations of all the selected audio files.
Further, the audio processing module is configured to:
When the duration of the total audio file is an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
Further, the apparatus further comprises: the system comprises a word and sentence recognition module, a judgment module and a word and sentence supplement module: the word and sentence recognition module is used for recognizing the selected audio file to acquire the audio time point of the complete word and sentence of the audio file after the audio file is selected by the selection module and before the audio fragment is stored by the storage module;
The judging module is used for judging whether the words and sentences of the audio clips are complete or not according to the audio time points of the complete words and sentences and the time points of the audio clips before the audio clips are stored in the storage module and after the audio processing module cuts the audio clips to obtain a plurality of audio clips, wherein the time points of the audio clips comprise the starting time points and/or the ending time points of the audio clips;
And the word and sentence supplementing module is used for supplementing the audio corresponding to the missing words and sentences of the audio segment to enable the words and sentences of the audio segment to be complete under the condition that the judging module is negative.
Further, the playing module is configured to call the corresponding audio clip from the storage according to the number of ringing times to play.
Also in order to solve the above technical problem, the present invention provides a terminal, including: a processor and a memory, the processor to:
Acquiring the ringing duration;
Selecting at least one audio file meeting preset audio conditions from audio files stored in a terminal; cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, and storing the audio segments into the memory;
And after the ringing is triggered, calling the corresponding audio clip from the memory to play.
The invention has the beneficial effects that:
The invention provides a ringtone playing method, a ringtone playing device and a terminal, wherein the ringtone playing method comprises the following steps: acquiring the ringing duration; selecting at least one audio file from audio files stored in a terminal, cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, and storing the audio segments; after the ringing is triggered, calling the corresponding audio clip from the storage to play; the ringtone playing method can select the audio file required by the user from the terminal storage, then cuts the selected audio file into a plurality of audio segments, and takes the audio segments as the ringtone (incoming call ringtone or alarm clock ringtone) of the terminal.
Drawings
Fig. 1 is a schematic flowchart of a ring playing method according to an embodiment of the present invention;
Fig. 2 is a schematic flow chart of an alarm clock ring playing process according to an embodiment of the present invention;
Fig. 3 is a schematic structural diagram of a ring tone playing apparatus according to a second embodiment of the present invention;
Fig. 4 is a schematic structural diagram of another ringtone playing device according to a second embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a terminal according to a third embodiment of the present invention;
Fig. 6 is a schematic structural diagram of an alarm clock and ringtone playing device according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the following detailed description and accompanying drawings.
The first embodiment is as follows:
At present, a technical problem of poor user experience caused by the fact that a terminal cannot realize personalized ring setting and playing is provided, in this embodiment, a ring playing method is provided, which can be used for playing an incoming call ring or an alarm ring, as shown in fig. 1, and includes the following steps:
Step 101: and acquiring the ringing duration.
Specifically, the ring duration set by the user on the terminal may be obtained in this step, for example, when the alarm ring is played, the alarm ring duration set by the user on the terminal or default at the terminal may be obtained, when the incoming call ring is played by applying the method of this embodiment, the incoming call ring duration may be obtained from the network side, or the incoming call ring duration may be obtained by measuring the incoming call ring before, for example, the average duration of an incoming call ring may be measured.
The ring duration in this embodiment refers to: the duration of continuously playing the ring; in the case that the alarm clock is set or the incoming call event is triggered and then rings for multiple times, the ring duration in this embodiment is a single ring duration, for example, five rings are required after the alarm clock is triggered, the interval duration of the rings is 1 minute, and at this time, the ring duration is each ring duration (for example, 1 minute).
Step 102: and selecting at least one audio file from the audio files stored in the terminal, cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, and storing the audio segments.
Specifically, in this embodiment, the audio file may be songs stored in the terminal, and in this embodiment, at least one song may be selected from the songs stored in the terminal and marked as favorite according to a preset audio selection rule. The preset audio selection rule in this embodiment may include: and selecting an audio file with strong rhythm sense, or selecting an audio file with a preset music style, and the like.
For example, the songs in the song list marked as favorite in the user music library are subjected to audio filtering, the songs which are soft, slow in rhythm and unsuitable for being used as an alarm clock are filtered, and the songs which are strong in rhythm and suitable for being used as ring tones (ring tones of the alarm clock or the incoming call) are selected; as another example, an audio file of the rap class is selected. In this embodiment, the preset audio selection rule may be set according to the actual requirement of the user, so as to select an audio file required by the user as an alarm or an incoming call ringtone.
The process of cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments in this step may include:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
In this embodiment, after the audio files are selected, all the selected audio files may be combined to generate a total audio file, specifically, all the selected audio files may be arranged to obtain a total audio file, and the duration of the total audio file is the sum of the durations of all the selected audio files. For example, all audio files are arranged in sequence with the ending time point of the previous audio file as the starting time point of the next audio file, so that all audio files are connected in time to form a total audio file.
Of course, the embodiment may also have other ways to generate the total audio file, such as selecting the audio part with the strongest rhythm sense in each audio file, and then combining the selected audio parts into one audio file.
Specifically, in the method of this embodiment, the specific process of cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration may include:
When the duration of the total audio file is an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
For example, three songs A, B, C, D marked as favorite by the user are selected, after the selection, A, B and C meet the condition of being used as an alarm clock, the time length of A is 02:40, the time length of B is 03:00, the time length of C is 03:10, the alarm clock duration set by the user is 1 minute, after the data calculation processing, the time length totals 08:50, 9 segments are generated, and the default ring tone of 10 seconds is filled in the last segment.
Step 103: and after the ringing is triggered, calling the corresponding audio clip from the storage to play.
Specifically, when the current time reaches the time set by the alarm clock, the alarm clock is triggered to ring, or when the terminal receives a call, the terminal is triggered to ring by an incoming call.
In this step, the process of calling the corresponding audio clip from the storage to play includes, under the condition that an event rings for a plurality of times: and calling the corresponding audio clip from the storage according to the ringing times for playing. Further, the method of the embodiment may call different audio clips from the storage to play according to the number of rings.
For example, when the alarm clock rings after being triggered, the alarm clock rings for the first time, a first audio clip is played, rings again after being delayed, a second audio clip is played, and so on, and when the alarm clock rings for the Nth time, an Nth audio clip is played. Similarly, after the incoming call rings, different audio clips are called to play each ring.
According to the method, the audio files required by the user can be selected from the terminal storage, then the selected audio files are cut into the audio fragments, the audio fragments are used as the ring of the terminal (incoming call ring or alarm clock ring), the ring of the terminal is enriched, the personalized and diversified equipment and playing of the ring are realized, and the user experience is improved.
Considering that words and sentences of an audio clip are incomplete due to the cutting of an audio file, and user experience is poor when the audio clip is played because a user hears incomplete words and sentences, the method can also supplement the audio clip with incomplete words and sentences to make the audio clip complete. Specifically, before the step of cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, the method of this embodiment further includes: identifying the selected audio file to acquire the time point of the complete words in the selected audio file;
After the cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments and before triggering ringing, the method of this embodiment further includes:
Judging whether the words and sentences of the audio clip are complete or not according to the time points of the complete words and sentences and the time points of the audio clip, wherein the time points of the audio clip comprise the starting time points and/or the ending time points of the audio clip;
If not, supplementing the audio corresponding to the words and sentences missing from the audio segment to the audio segment so as to enable the words and sentences of the audio segment to be complete.
For example, after the audio segment is cut and before the audio segment is stored, whether the words and sentences are complete or not and words and sentences for supplementing the audio segment can be judged; or after storing the audio segments, judging whether the words and sentences are complete or not, and supplementing the words and sentences of the audio segments.
The time points of the audio clip in this embodiment are: cut point time of the total audio file.
The method of the embodiment can automatically supplement the word and sentence incompleteness caused by segment cutting. Firstly, acquiring time points (including a starting time point and/or an ending time point) of complete words and sentences of a selected audio file; then comparing the starting time point and the ending time point of each audio segment with the corresponding time points of finishing words and sentences, and judging whether the audio segments are complete according to the comparison result; for example, if the audio clip end point is in the middle of a sentence of lyrics, that is, the end point time is less than the complete end time point of the sentence, so that the lyrics of the sentence are not played completely, the ring tone playing is automatically prolonged until the sentence is played completely, and the clip end point time is automatically updated to be the time point when the sentence is ended; for the starting point of the audio segment, if the point is in the middle of a lyric, namely the time point is larger than the complete starting point of the sentence, the sentence is not played from the complete sentence, namely the sentence is played from a half sentence, the complete sentence is adaptively supplemented forward, the playing of the complete sentence is achieved, and the starting point of the segment is automatically updated to be the starting time point of the sentence.
The method of the present embodiment is specifically described below by taking an example of playing an alarm ring, as shown in fig. 2, and includes the following steps:
Step 201: and detecting songs marked as the user likes in the terminal music library and the alarm clock ringing duration set by the user.
The method of the embodiment can detect the song tracks marked as favorite by the user in the music library and the alarm clock ring duration set by the user each time.
Step 202: and selecting songs with strong rhythmicity from songs liked by the user.
Specifically, songs that the user likes can be filtered, soft, slow rhythm feeling and unsuitable as the alarm clock are filtered, and songs that are strong in rhythm feeling and suitable as the alarm clock are reserved.
Step 203: and identifying the selected song to acquire the audio time point of the complete words and sentences of the song.
Specifically, time points of complete words of the song that have been filtered out are identified, and audio time points of each complete word are saved. Specifically, the audio time point of the complete sentence of each song can be identified according to the parameters for filtering out the songs.
In order to facilitate subsequent use, the embodiment may further identify the audio time point of the complete word and sentence, and then store the identified audio time point for calling the corresponding audio time point through the identifier when subsequently judging the integrity, for example, using the song name to which the complete word and sentence belongs as the identifier.
Step 204: and arranging the selected songs to generate an alarm clock song, and cutting the alarm clock song according to the alarm clock ringing duration to obtain a plurality of audio segments with duration equal to the alarm clock ringing duration.
Specifically, arranging the selected songs into one song as an alarm clock song, wherein the duration of the alarm clock song is equal to the sum of the durations of all the selected songs; and then, cutting the alarm clock song into a plurality of audio segments by taking the alarm clock ringing duration as a unit.
When the time length of the alarm clock song is integral multiple of the alarm clock ringing duration, cutting to obtain the time lengths of a plurality of audio segments which are equal to the alarm clock ringing duration;
When the duration of the alarm clock song is not integral multiple of the alarm clock ringing duration, an audio clip with duration less than the alarm clock ringing duration exists in the plurality of audio clips obtained by cutting, for example, the last cut audio clip, for the audio clip, the audio file needs to be filled to enable the duration to be equal to the alarm clock ringing duration, for example, the audio clip is filled with the default ring value of the terminal.
For example, if three songs A, B, C, D marked as favorite by the user are selected, a, B and C meet the condition of being used as an alarm clock, the time length of a is 02:40, the time length of B is 03:00, the time length of C is 03:10, the alarm clock duration set by the user is 1 minute, after data calculation processing, the time length totals 08:50, 9 segments are generated, and the default ring tone of 10 seconds is filled in the last segment.
Step 205: and judging whether the words and sentences of the audio frequency fragment are complete or not according to the audio frequency time points of the complete words and sentences and the time points of the audio frequency fragment, if not, executing a step 206, and if so, executing a step 207.
Specifically, the audio time point of the corresponding complete word may be obtained according to the identifier (e.g., song name) of the audio time point of the completed word, and then compared with the corresponding audio segment, and whether the word of the audio segment is complete or not may be determined according to the comparison result.
Step 206: and supplementing the audio corresponding to the words and sentences missing in the audio segment to the audio segment so as to ensure that the words and sentences of the audio segment are complete.
Specifically, if the ending point of the audio clip is in the middle of a lyric, that is, the ending point of the audio clip is smaller than the ending point of the audio with the complete lyric, and the lyric of the current sentence is not played, it is determined that the words and phrases of the audio clip are incomplete, and at this time, the audio corresponding to the missing word and phrase needs to be supplemented to the clip, so that the lyric of the current sentence is played completely. For the starting point of the audio segment, if the starting point is in the middle of a lyric, that is, the starting time point of the audio segment is greater than the complete audio starting point of the sentence, so that the sentence is not played from the complete sentence, that is, the sentence is played from a half sentence, it is determined that the sentence of the audio segment is incomplete, and at this time, the complete sentence needs to be adaptively supplemented forward.
For example, it is determined whether the words and phrases are complete for each of the 9 audio segments, and if not, the audio corresponding to the missing words and phrases is supplemented. After words and sentences are supplemented, the audio segments are respectively as follows:
Parameters of { (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) } … … A/B represent the encoding order in which the songs are obtained after the manipulation process, the following time represents the start point or end point of an audio segment, "xxx" represents the name of the song, "2: 40" represents the total duration of the song, "mp 3" represents the type of the song, each segment has two sets of data, the second time factor in the first data represents the start time of the segment, and the second time factor in the second data represents the end time of the segment. In two adjacent audio segments, the end point of the previous segment and the start point of the next segment may be arranged in sequence (e.g., the first audio segment and the second audio segment), or there may be an overlapping portion (e.g., the second audio segment and the third audio segment) due to automatic addition of words and phrases.
Step 207: and marking the audio clip and then storing the audio clip.
Specifically, each audio clip is numbered and then the audio clip and its number are stored.
Step 208: and after the alarm clock rings are triggered, calling the corresponding audio clips from the storage according to the alarm clock ring times for playing.
Specifically, the corresponding audio clip can be called to play according to the number of alarm clock rings and the number sequence of the audio clip.
For example, when the alarm clock rings for the first time, the first audio clip is played, the alarm clock rings again after delay, the second audio clip is played, and so on, when the alarm clock rings for the nth time, the nth audio clip is played.
The specific process of playing the alarm ring is described above, but the process of playing the incoming call ring is similar to the process of playing the alarm ring, and reference may be made to the above.
On the basis of the above, the method of the embodiment may further update the ring tone, and specifically, the ring tone may be reset according to the above steps when the ring duration or the audio file stored in the terminal changes.
According to the method, the playing of the alarm clock ring can be adaptively adjusted according to the change of the alarm clock duration, songs favored by a user are automatically screened to serve as the ring, and the words and sentences of the audio clip are supplemented to be complete, so that the diversification of the alarm clock ring is realized, and the user experience is improved.
By applying the method, diversified alarm clock ring playing modes can be brought to the user, the friendliness is high, and the user experience is improved.
Example two:
As shown in fig. 3, the present embodiment provides a ringtone playing device, including: the device comprises an acquisition module, a selection module, an audio processing module, a storage module and a playing module;
The acquisition module is used for acquiring the ringing duration set by the user;
The selection module is used for selecting at least one audio file from the audio files stored in the terminal;
The audio processing module is used for cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments;
The storage module is used for storing the audio clips;
And the playing module is used for calling the corresponding audio clip from the storage module to play after the ringing is triggered.
By applying the ringtone playing device of the embodiment, diversified or personalized setting and playing of ringtones can be realized, and user experience is improved.
Preferably, the audio processing module is configured to:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
Preferably, the audio processing module is configured to arrange all the selected audio files to obtain a total audio file, and a duration of the total audio file is a sum of durations of all the selected audio files.
Preferably, the audio processing module is configured to:
When the duration of the total audio file is an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
As shown in fig. 4, on the basis of the above modules, the apparatus of this embodiment may further include: the system comprises a word and sentence recognition module, a judgment module and a word and sentence supplement module;
The word and sentence recognition module is used for recognizing the selected audio file to acquire the audio time point of the complete word and sentence of the audio file after the audio file is selected by the selection module and before the audio fragment is stored by the storage module;
The judging module is used for judging whether the words and sentences of the audio clips are complete or not according to the audio time points of the complete words and sentences and the time points of the audio clips before the audio clips are stored in the storage module and after the audio processing module cuts the audio clips to obtain a plurality of audio clips, wherein the time points of the audio clips comprise the starting time points and/or the ending time points of the audio clips;
And the word and sentence supplementing module is used for supplementing the audio corresponding to the missing words and sentences of the audio segment to enable the words and sentences of the audio segment to be complete under the condition that the judging module is negative.
Preferably, the playing module is configured to call the corresponding audio clip from the storage according to the number of ringing times to play.
The device of the embodiment can adaptively adjust the playing of the alarm clock ring according to the change of the alarm clock duration, automatically screen the complete words and sentences of songs favored by a user as the ring and supplemented with audio segments, realize the diversification of the alarm clock ring, and improve the user experience.
Example three:
As shown in fig. 5, the present embodiment provides a terminal, including: a processor and a memory; the processor is configured to:
Acquiring the ringing duration;
Selecting at least one audio file from audio files stored in a terminal; cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments, and storing the audio segments into the memory;
And after the ringing is triggered, calling the corresponding audio clip from the memory to play.
Preferably, the step of cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments includes:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
Preferably, the step of generating a total audio file from all the selected audio files comprises:
And arranging all the selected audio files to obtain a total audio file, wherein the duration of the total audio file is the sum of the durations of all the selected audio files.
Preferably, the step of cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration includes:
When the duration of the total audio file is an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
Preferably, the processor is further configured to: before the selected audio file is cut according to the ringing duration to obtain a plurality of audio segments, identifying the selected audio file to obtain an audio time point of a complete word of the selected audio file; after the selected audio file is cut according to the ringing duration to obtain a plurality of audio segments, before ringing is triggered, whether the words and phrases of the audio segments are complete or not is judged according to the audio time points of the complete words and phrases and the time points of the audio segments, the time points of the audio segments comprise the starting time points and/or the ending time points of the audio segments, and if not, the audio corresponding to the words and phrases missing from the audio segments is supplemented to the audio segments to enable the words and phrases of the audio segments to be complete.
Example four:
As shown in fig. 6, the present embodiment provides an alarm clock ring tone playing device, including: the system comprises a first detection module, a second detection module, an audio filtering module, a word and sentence recognition module, a judgment module, a data calculation module, a self-adaptive word and sentence supplement module, a data storage module, a playing module and a counter;
The first detection module is used for detecting the alarm clock duration of the alarm clock module, and when the duration setting parameter changes, the parameter is acquired and transmitted to the next unit module; if the parameter is not changed, the data does not need to be transmitted to the next module;
The second detection module is used for detecting favorite songs marked by the user in the music library; the detection method is timing detection, the default of the system is one week, and the user can adjust the time by himself. When the favorite song list is detected to be empty, adopting a default alarm; when the change of the number of the favorite songs is detected, including addition, deletion and replacement, the song parameters in the state are transmitted to a next unit module;
The audio filtering module is used for receiving song parameters transmitted by the previous module, screening songs, filtering out soft and slow songs with weak rhythm sense according to factors such as rhythm, melody, speed, force and the like of music, reserving songs with strong rhythm sense and strong dynamic sense, transmitting the screened songs to the data computing unit on one hand and the word and sentence identifying unit on the other hand; if no song suitable for being used as the alarm clock ring is available after screening, the current state is kept unchanged and is not changed;
The word and sentence recognition module is used for recognizing and judging the time point of each complete word and sentence according to the property and the parameter of the song, and reserving the data according to the name of the song for reference and comparison of the data calculation module;
The judging module is used for judging whether the received time parameters and the received song parameters are consistent with the parameters received last time, if so, keeping the current state and not changing; if one of the two parameters is not consistent, the data calculation unit needs to calculate again.
And the data calculation module is used for acquiring the screened song data, numbering the selected song data after the selected song data is arranged according to a certain sequence, calculating the sum of time lengths of all songs, then performing segment cutting by taking the alarm clock duration parameter as a unit, and storing the initial point parameter of the audio segment. If the alarm clock duration set by the user is 'always', song cutting is not needed, and all songs are played circularly as a whole. And if the time length of the last segment song is less than one unit after the cutting is finished, filling the last segment song with a default alarm clock ring. Transmitting the cut segment parameters to a self-adaptive word and sentence supplementing unit;
And the self-adaptive word and sentence supplementing module is used for automatically supplementing word and sentence incompleteness caused by segment cutting. Here, the judgment of the audio segment cut point needs to be compared with the complete word and sentence time point recognized in the word and sentence recognition unit. The corresponding stored data in the word and sentence recognition unit is acquired according to the characteristic factors of the song, such as the song name, the song type and the like, and comparison are carried out based on the acquired data; judging whether the audio clip is complete according to the comparison result;
And the data storage module is used for storing the received song parameters and the parameters of the audio frequency band after cutting and self-adaptive word and sentence supplementation. These parameters include but are not limited to, such as the segment number, song sequence number, time point, song name, song length, category, and so on.
And the playing module is used for being triggered after the alarm clock ringing command occurs, and playing the alarm clock according to the audio clip sequence. When the alarm clock rings for the first time, a first audio clip is played, the counter is increased by one, the alarm clock rings again after delay, a second audio clip is played, the counter is increased by one, and the like, and when the alarm clock rings for the Nth time, the Nth audio clip is played. When data is updated and recalculation processing is needed, the counter is cleared and restarted; if no data update exists in the last audio segment after playing, the audio segments are played circularly and then started from the first one.
The device can adaptively adjust the playing of the alarm clock ring according to the change of the alarm clock duration, automatically screen the complete words and sentences of the favorite songs of the user as the ring and the complementary audio segments, realize the diversification of the alarm clock ring and improve the user experience.
The foregoing is a more detailed description of the present invention that is presented in conjunction with specific embodiments, and the practice of the invention is not to be considered limited to those descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (12)

1. A ring playing method is characterized by comprising the following steps:
Acquiring the ringing duration;
Selecting at least one audio file from audio files stored in a terminal;
Identifying the selected audio file to obtain the audio time point of the complete words and sentences of the selected audio file;
Cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments;
Judging whether the words and sentences of the audio frequency fragment are complete or not according to the audio frequency time points of the complete words and sentences and the time points of the audio frequency fragment, wherein the time points of the audio frequency fragment comprise the starting time points and/or the ending time points of the audio frequency fragment;
If not, supplementing the audio corresponding to the missing words and sentences of the audio clip to the audio clip so as to ensure that the words and sentences of the audio clip are complete;
Storing the audio clip;
And after the ringing is triggered, calling the corresponding audio clip from the storage to play.
2. The method of claim 1, wherein the step of cutting the selected audio file into a plurality of audio segments according to the ring duration comprises:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
3. The method of claim 2, wherein the step of generating a total audio file from all selected audio files comprises:
And arranging all the selected audio files to obtain a total audio file, wherein the duration of the total audio file is the sum of the durations of all the selected audio files.
4. The method as claimed in claim 2, wherein the step of cutting the total audio file according to the ring duration to obtain a plurality of audio segments with the duration equal to the ring duration comprises:
And when the duration of the total audio file is integral multiple of the ringing duration, carrying out fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments.
5. The method as claimed in claim 4, wherein the step of cutting the total audio file according to the ring duration to obtain a plurality of audio segments with the duration equal to the ring duration further comprises:
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
6. The method of any of claims 1-5, wherein the step of retrieving the corresponding audio clip from storage for playback comprises:
And calling the corresponding audio clip from the storage according to the ringing times for playing.
7. A ringtone playback apparatus, comprising: the system comprises an acquisition module, a selection module, an audio processing module, a storage module, a playing module, a word and sentence recognition module, a judgment module and a word and sentence supplement module;
The acquisition module is used for acquiring the ringing duration set by the user;
The selection module is used for selecting at least one audio file from the audio files stored in the terminal;
The word and sentence recognition module is used for recognizing the selected audio file to acquire the audio time point of the complete word and sentence of the audio file after the audio file is selected by the selection module and before the audio fragment is stored by the storage module;
The audio processing module is used for cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments;
The judging module is used for judging whether the words and sentences of the audio clips are complete or not according to the audio time points of the complete words and sentences and the time points of the audio clips before the audio clips are stored in the storage module and after the audio processing module cuts the audio clips to obtain a plurality of audio clips, wherein the time points of the audio clips comprise the starting time points and/or the ending time points of the audio clips;
The word and sentence supplementing module is used for supplementing the audio corresponding to the word and sentence missing from the audio segment to the audio segment under the condition that the judgment result of the judging module is negative so as to enable the word and sentence of the audio segment to be complete;
The storage module is used for storing the audio clips;
And the playing module is used for calling the corresponding audio clip from the storage module to play after the ringing is triggered.
8. The apparatus of claim 7, wherein the audio processing module is to:
Generating a total audio file according to all the selected audio files;
And cutting the total audio file according to the ringing duration to obtain a plurality of audio segments with duration equal to the ringing duration.
9. The apparatus of claim 8, wherein the audio processing module is configured to rank all selected audio files to obtain a total audio file, and a duration of the total audio file is a sum of durations of all selected audio files.
10. The apparatus of claim 8, wherein the audio processing module is to:
When the duration of the total audio file is an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
When the duration of the total audio file is not an integral multiple of the ringing duration, performing fragment cutting on the total audio file by taking the ringing duration as the duration of one fragment to obtain a plurality of audio fragments;
And for the audio clip with the duration less than the ringing duration, filling a preset audio file into the audio clip to enable the duration of the audio clip to be equal to the ringing duration.
11. The apparatus according to any one of claims 7-10, wherein the playing module is configured to call the corresponding audio clip from the storage for playing according to the number of rings.
12. A terminal, comprising: a processor and a memory, the processor to:
Acquiring the ringing duration;
Selecting at least one audio file from audio files stored in a terminal;
Identifying the selected audio file to obtain the audio time point of the complete words and sentences of the selected audio file;
Cutting the selected audio file according to the ringing duration to obtain a plurality of audio segments;
Judging whether the words and sentences of the audio frequency fragment are complete or not according to the audio frequency time points of the complete words and sentences and the time points of the audio frequency fragment, wherein the time points of the audio frequency fragment comprise the starting time points and/or the ending time points of the audio frequency fragment;
If not, supplementing the audio corresponding to the missing words and sentences of the audio clip to the audio clip so as to ensure that the words and sentences of the audio clip are complete;
Storing the audio clip to the memory;
And after the ringing is triggered, calling the corresponding audio clip from the memory to play.
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 CN106161714A (en) 2016-11-23
CN106161714B true 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)

Families Citing this family (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
CN112349303B (en) * 2019-07-22 2021-09-24 北京声智科技有限公司 Audio playing method, device and storage medium
CN115268248B (en) * 2022-07-14 2024-04-30 深圳市坤弘智能电子有限公司 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

Also Published As

Publication number Publication date
CN106161714A (en) 2016-11-23
WO2016155139A1 (en) 2016-10-06

Similar Documents

Publication Publication Date Title
CN105868397B (en) Song determination method and device
US10776422B2 (en) Dual sound source audio data processing method and apparatus
US10229669B2 (en) Apparatus, process, and program for combining speech and audio data
CN107766482B (en) Information pushing and sending method, device, electronic equipment and storage medium
CN102917119B (en) Method and system for processing music by mobile terminal according to voice recognition
CN106161714B (en) Ringtone playing method and device, and terminal
CN109299318A (en) Method, apparatus, storage medium and the terminal device that music is recommended
US20120101606A1 (en) Information processing apparatus, content data reconfiguring method and program
JP2003015666A (en) Play list generating device, audio information providing device, audio information providing system and its method, program, and recording medium
CN105138557A (en) Music random play method and apparatus
JP2003177784A (en) Method and device for extracting sound turning point, method and device for sound reproducing, sound reproducing system, sound delivery system, information providing device, sound signal editing device, recording medium for sound turning point extraction method program, recording medium for sound reproducing method program, recording medium for sound signal editing method program, sound turning point extraction method program, sound reproducing method program, and sound signal editing method program
CN111627463A (en) Method and device for determining voice VAD tail point, electronic equipment and computer readable medium
KR20160076316A (en) Apparatus and method for producing a rhythm game, and computer program for executing the method
CN104199864B (en) The method and apparatus that keypad tone prompts in a kind of input process
CN103871433B (en) A kind of control method and electronic equipment
EP3203466B1 (en) Performance information processing device and method
KR101547525B1 (en) Automatic music selection apparatus and method considering user input
CN107018238A (en) A kind of music quarter-bell and its application method
CN109510907B (en) Ring tone setting method and device
CN106331841B (en) Network speed information indicating method and device
CN111506765B (en) Method, device, electronic equipment and storage medium for controlling music playing rhythm
CN104991946B (en) Information processing method, server and user equipment
JP2013122561A (en) Information processing program, communication system, information processing device, and method for drawing lyric telop
CN108654061B (en) Voice playing method and device for segmented running
CN108322816A (en) The playback method and system of background music in broadcast program

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
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.

GR01 Patent grant
GR01 Patent grant