CN105704341A - Ring playing method and terminal - Google Patents

Ring playing method and terminal Download PDF

Info

Publication number
CN105704341A
CN105704341A CN201610184696.7A CN201610184696A CN105704341A CN 105704341 A CN105704341 A CN 105704341A CN 201610184696 A CN201610184696 A CN 201610184696A CN 105704341 A CN105704341 A CN 105704341A
Authority
CN
China
Prior art keywords
tone
machine
value sequence
frequency characteristics
extraneous
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610184696.7A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201610184696.7A priority Critical patent/CN105704341A/en
Publication of CN105704341A publication Critical patent/CN105704341A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/02Feature extraction for speech recognition; Selection of recognition unit
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/16Communication-related supplementary services, e.g. call-transfer or call-hold

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computational Linguistics (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Telephone Function (AREA)

Abstract

An embodiment of the invention discloses a ring playing method and a terminal, wherein recognizability of a terminal ring and intelligence of a terminal can be improved. The ring playing method comprises the steps of acquiring an external ring, wherein the external ring is a non-preset ring; calculating similarity between the external ring and a preset first local machine ring; when the similarity is larger than a preset threshold, performing audio processing on the first local machine ring for obtaining a second local machine ring; and in a preset time period, if communication information for reminding through the first local machine ring is received, prompting the communication information through playing the second local machine ring.

Description

A kind of tone player method and terminal
Technical field
The present invention relates to field of terminal, particularly relate to a kind of tone player method and terminal。
Background technology
At present, including smart mobile phone etc., the application of terminal is more and more extensive。But, the tone that the terminal of same brand is preset is identical, or different terminals has downloaded identical tone according to end-user demands, in this case, there is the different terminals of identical tone when being in same public place, such as office, during the places such as classroom, if one of them terminal receives an information and reminds by playing tone, and now another terminal also receives information and reminds by playing identical tone, so, owing to different terminals realizes information reminding function by identical tone, terminal tone is made not have identification, cannot intelligence carry out information reminding。
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of tone player method and terminal, adds the identification of terminal tone, improves the intelligent of terminal。
The technical scheme is that and be achieved in that:
First aspect, the embodiment of the present invention provides a kind of tone player method, including:
Obtaining extraneous tone, wherein, extraneous tone is non-default tone;
Calculate the similarity of extraneous tone and the first the machine tone preset;
When similarity is more than predetermined threshold value, first the machine tone is carried out Audio Processing and obtains second the machine tone;
In preset time period, adopt first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing second the machine tone。
Further, calculate extraneous tone and the similarity of the first the machine tone preset, specifically include:
Tone carries out the extraneous tone audio frequency characteristics value sequence of Audio Processing acquisition to external world;
Calculate first the machine tone audio frequency characteristics value sequence of first the machine tone;
Similarity is calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Further, calculate similarity according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence, specifically include:
The first dynamic time consolidation algorithm DTW distance is calculated according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;
The 2nd DTW distance is calculated according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence;
Calculating the similarity of a DTW distance and the 2nd DTW distance, wherein, the similarity of a DTW distance and the 2nd DTW distance, for characterizing the similarity calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Further, after calculating the similarity of extraneous tone and first default the machine tone, method also includes:
When similarity is more than predetermined threshold value, other the machine tone that at least one except first the machine tone is preset carry out Audio Processing and obtain the 3rd the machine tone;
In preset time period, adopt other the machine tone to carry out the communication information reminded if receiving, then by broadcasting the 3rd the machine tone, communication information is reminded。
Further, after first the machine tone carrying out Audio Processing and obtains second the machine tone, method also includes:
After preset time period, adopt first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing first the machine tone。
Second aspect, the embodiment of the present invention provides a kind of terminal, including: acquiring unit, computing unit, audio treatment unit and broadcast unit, wherein:
Acquiring unit, is used for obtaining extraneous tone, and wherein, extraneous tone is non-default tone;
Computing unit, for calculating the similarity of the acquiring unit extraneous tone obtained and the first the machine tone preset;
Audio treatment unit, for when the similarity of computing unit calculating is more than predetermined threshold value, carrying out Audio Processing to first the machine tone and obtain second the machine tone;
Broadcast unit, for, in preset time period, adopting first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by the second the machine tone obtained by playing audio treatment unit to process。
Further, computing unit, specifically for:
The extraneous tone that acquiring unit is obtained carries out Audio Processing and obtains extraneous tone audio frequency characteristics value sequence;Calculate first the machine tone audio frequency characteristics value sequence of first the machine tone;Similarity is calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Further, computing unit, specifically for:
The first dynamic time consolidation algorithm DTW distance is calculated according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;The 2nd DTW distance is calculated according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence;Calculating the similarity of a DTW distance and the 2nd DTW distance, wherein, the similarity of a DTW distance and the 2nd DTW distance, for characterizing the similarity calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Further, audio treatment unit, it is additionally operable to:
When the similarity that computing unit calculates is more than predetermined threshold value, other the machine tone that at least one except first the machine tone is preset carry out Audio Processing and obtain the 3rd the machine tone;
Broadcast unit, is additionally operable to: in preset time period, adopts other the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by the 3rd the machine tone obtained by playing audio treatment unit to process。
Further, broadcast unit, it is additionally operable to:
After preset time period, adopt first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing first the machine tone。
Embodiments providing a kind of tone player method and terminal, obtain extraneous tone, wherein, extraneous tone is non-default tone;Calculate the similarity of extraneous tone and the first the machine tone preset;When similarity is more than predetermined threshold value, first the machine tone is carried out Audio Processing and obtains second the machine tone;In preset time period, adopt first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing second the machine tone, add the identification of terminal tone, improve the intelligent of terminal。
Accompanying drawing explanation
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the communication system that the mobile terminal of the present invention is operable to;
A kind of tone player method schematic flow sheet one that Fig. 3 provides for the embodiment of the present invention;
A kind of tone player method schematic flow sheet two that Fig. 4 provides for the embodiment of the present invention;
A kind of tone player method schematic flow sheet three that Fig. 5 provides for the embodiment of the present invention;
A kind of tone player method schematic flow sheet four that Fig. 6 provides for the embodiment of the present invention;
The interface schematic diagram of the selection Audio Processing mode that Fig. 7 provides for the embodiment of the present invention;
The structural representation one of a kind of terminal that Fig. 8 provides for the embodiment of the present invention;
The structural representation two of a kind of terminal that Fig. 9 provides for the embodiment of the present invention。
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described。
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing。In follow-up description, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to the explanation of the present invention, itself do not have specific meaning。Therefore, " module " and " parts " can mixedly use。
Mobile terminal can be implemented in a variety of manners。Such as, the terminal described in the present invention can include the mobile terminal of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable media player (PMP), guider etc. and the fixed terminal of such as numeral TV, desk computer etc.。Hereinafter it is assumed that terminal is mobile terminal。However, it will be understood by those skilled in the art that, except being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type。
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention。
Mobile terminal 1 can include wireless communication unit 110, audio/video (A/V) input block 120, user input unit 130, output unit 150, memorizer 160, controller 180 etc.。Fig. 1 illustrates the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated。Can alternatively implement more or less of assembly。Will be discussed in more detail below the element of mobile terminal。
Wireless communication unit 110 generally includes one or more assembly, and it allows the radio communication between mobile terminal 1 and wireless communication system or network。Such as, wireless communication unit can include at least one in mobile communication module 112, wireless Internet module 113, short range communication module 114。
Mobile communication module 112 sends radio signals at least one in base station (such as, access point, node B etc.), exterior terminal and server and/or receives from it radio signal。Such radio signal can include voice call signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving。
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal。This module can internally or externally be couple to terminal。Wi-Fi (Wireless Internet Access) technology involved by this module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.。
Short range communication module 114 is the module for supporting junction service。Some examples of short-range communication technology include bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc.。
A/V input block 120 is used for receiving audio or video signal。A/V input block 120 can include mike 122。Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by mike 122。Audio frequency (voice) data after process can be converted to the form output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model。Mike 122 can implement various types of noise elimination (or suppression) algorithm to eliminate (or suppression) in the noise received and produce in the process of transmission audio signal or interference。
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input。User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electric capacity etc. the sensitive component of change), roller, rocking bar etc.。Especially, when touch pad is superimposed upon on display unit 151 as a layer, it is possible to form touch screen。
Display unit 151 may be displayed on the information processed in mobile terminal 1。Such as, when mobile terminal 1 is in telephone calling model, display unit 151 can show the user interface (UI) relevant with call or other communicate (such as, text messaging, multimedia file download etc.) or graphic user interface (GUI)。When being in video calling pattern or image capture mode when mobile terminal 1, display unit 151 can show the image of image and/or the reception caught, UI or GUI illustrating video or image and correlation function etc.。
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch screen time, display unit 151 can serve as input equipment and output device。Display unit 151 can include at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.。Some in these display may be constructed such that transparence, and to allow user to watch from outside, this is properly termed as transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.。According to the specific embodiment wanted, mobile terminal 1 can include two or more display units (or other display device), such as, mobile terminal can include outernal display unit (not shown) and inner display unit (not shown)。Touch screen can be used for detecting touch input pressure and touch input position and touch input area。
Dio Output Modules 152 can mobile terminal be in call signal receive under the isotype such as pattern, call mode, logging mode, speech recognition mode, broadcast reception mode time, that wireless communication unit 110 is received or storage in memorizer 160 voice data transducing audio signal and be output as sound。And, dio Output Modules 152 can provide the audio frequency output (such as, call signal receive sound, message sink sound etc.) relevant to the specific function of mobile terminal 1 execution。Dio Output Modules 152 can include speaker, buzzer etc.。
Alarm unit 153 can provide output so that event to inform mobile terminal 1。Typical event can include calling reception, message sink, key signals input, touch input etc.。Except audio or video exports, alarm unit 153 can provide in a different manner and export the generation with notification event。Such as, alarm unit 153 can provide output with the form of vibration, when receiving calling, message or some other entrance communication (incomingcommunication), alarm unit 153 can provide sense of touch output (that is, vibration) to notify to user。By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also is able to identify the generation of various event。Alarm unit 153 can also provide the output of the generation of notification event via display unit 151 or dio Output Modules 152。
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can temporarily store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output。And, memorizer 160 can store the vibration about the various modes exported when touching and being applied to touch screen and the data of audio signal。
Memorizer 160 can include the storage medium of at least one type, described storage medium includes flash memory, hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), read only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.。And, mobile terminal 1 can be connected the network storage device cooperation of the storage function performing memorizer 160 with by network。
Controller 180 generally controls the overall operation of mobile terminal。Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process。It addition, controller 180 can include the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct in controller 180, or it is so structured that separates with controller 180。Controller 180 can perform pattern recognition process, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image。
Various embodiment described herein can to use such as computer software, hardware or its any combination of computer-readable medium to implement。Hardware is implemented, embodiment described herein can pass through to use application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, at least one that is designed to perform in the electronic unit of function described herein to implement, in some cases, such embodiment can be implemented in controller 180。Implementing for software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation。Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in memorizer 160 and be performed by controller 180。
So far, oneself is through describing mobile terminal according to its function。Below, for the sake of brevity, by the slide type mobile terminal in the various types of mobile terminals describing such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily。Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal。
Mobile terminal 1 as shown in Figure 1 may be constructed such that utilization operates via such as wired and wireless communication system and the satellite-based communication system of frame or packet transmission data。
The communication system being wherein operable to according to the mobile terminal of the present invention is described referring now to Fig. 2。
Such communication system can use different air interfaces and/or physical layer。Such as, the air interface used by communication system includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and UMTS (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.。As non-limiting example, as explained below relates to cdma communication system, but such instruction is equally applicable to other type of system。
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280。MSC280 is configured to form interface with Public Switched Telephony Network (PSTN) 290。MSC280 is also structured to and the BSC275 formation interface that can be couple to BS270 via back haul link。Back haul link can construct according to any one in some interfaces that oneself knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL。It will be appreciated that system as shown in Figure 2 can include multiple BSC2750。
Each BS270 can service one or more subregion (or region), by each subregion of multidirectional antenna or the antenna covering pointing to specific direction radially away from BS270。Or, each subregion can be covered by two or more antennas for diversity reception。Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.)。
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel。BS270 can also be referred to as base station transceiver subsystem (BTS) or other equivalent terms。In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270。Base station can also be referred to as " cellular station "。Or, each subregion of specific BS270 can be referred to as multiple cellular station。
As shown in Figure 2, broadcast singal is sent in system the mobile terminal 1 of operation by broadcsting transmitter (BT) 295。In fig. 2 it is shown that several global positioning systems (GPS) satellite 300, satellite 300 helps to position at least one in multiple mobile terminals 1。
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtains useful location information。Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other technology of the position of mobile terminal can be followed the tracks of。It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission。
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminals 1。Mobile terminal 1 generally participates in call, information receiving and transmitting communicates with other type of。Each reverse link signal that specific BS270 receives is processed in specific BS270。The data obtained are forwarded to relevant BSC275。BSC provides call resource distribution and the mobile management function of the coordination of soft switching process included between BS270。The data received also are routed to MSC280 by BSC275, and it provides the extra route service for forming interface with PSTN290。Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 so that forward link signals to be sent to mobile terminal 1。
Based on above-mentioned mobile terminal hardware configuration and communication system, it is proposed to each embodiment of the inventive method。
It should be noted that the device of the unblock of embodiment of the present invention offer can be divided into both sides, i.e. mobile terminal side and user equipment side, wherein, it is achieved the mobile terminal of the embodiment of the present invention and subscriber equipment can be identical equipment, it is also possible to for different equipment。It is that Wearable is specifically described for subscriber equipment below。
Embodiment one
A kind of tone player method schematic flow sheet one that Fig. 3 provides for the embodiment of the present invention, the method includes:
Step 101: obtain extraneous tone, wherein, extraneous tone is non-default tone;
In actual applications, terminal can timing acquisition external world tone, it is also possible to obtaining extraneous tone according to user's request, this is not specifically limited by the embodiment of the present invention。
It should be noted that the extraneous tone that terminal obtains is the tone that nonterminal self is preset, including the tone of the other-end being in same public place。
Step 102: calculate the similarity of extraneous tone and the first the machine tone preset;
Wherein, first the machine tone that terminal is preset is for when terminal receives communication information, realizing communication information prompting function by playing first the machine tone。
It should be noted that first the machine tone that terminal is preset includes tone that terminal presets when dispatching from the factory, terminal likes the tone etc. downloaded voluntarily according to user, the kind of first the machine tone that terminal is preset is not particularly limited by the embodiment of the present invention。
Intelligible, terminal is by calculating the similarity of extraneous tone and the first the machine tone preset, may determine that namely extraneous tone is in the tone of the other-end of same public place, whether similar to first the machine tone that self presets, and terminal judges go out extraneous tone similar to first the machine tone in, carry out follow-up process, in order to terminal improves the identification of self tone when there is the other-end tone similar to self tone in same public place。
Specifically, step 102 includes: tone carries out the extraneous tone audio frequency characteristics value sequence of Audio Processing acquisition to external world;Calculate first the machine tone audio frequency characteristics value sequence of first the machine tone;Similarity is calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Wherein, extraneous tone audio frequency characteristics value sequence is for characterizing the audio frequency characteristics of extraneous tone, including multiple crests and trough。Same, first the machine tone audio frequency characteristics value sequence is for characterizing the audio frequency characteristics of first the machine tone, including multiple crests and trough。
In reality, terminal tone to external world carries out Audio Processing and obtains extraneous tone audio frequency characteristics value sequence;Calculate first the machine tone audio frequency characteristics value sequence of first the machine tone, it is possible to determined that module processes by the audio feature vector arranged in terminal。
In practical application, terminal tone to external world carries out Audio Processing and obtains extraneous tone audio frequency characteristics value sequence, it is possible to including: terminal tone to external world carries out Audio Processing and obtains extraneous tone frequency spectrum data;Carrying out sampling according to default employing frequency tone frequency spectrum data to external world and obtain M crest and M trough, wherein, M is be more than or equal to 2;Extraneous tone audio frequency characteristics value sequence is determined according to M crest and M trough。
Similarly, terminal calculates first the machine tone audio frequency characteristics value sequence of first the machine tone, it is possible to including: first the machine tone is carried out Audio Processing and obtains first the machine tone frequency spectrum data by terminal;According to default employing frequency, first the machine tone frequency spectrum data being carried out sampling and obtain Y crest and Y trough, wherein, Y is be more than or equal to 2;First the machine tone audio frequency characteristics value sequence is determined according to Y crest and Y trough。
It addition, the crest that the sampling of tone frequency spectrum data obtains to external world and trough quantity M, obtain crest and trough quantity Y with to first the machine tone frequency spectrum data sampling, it is possible to identical can also be different, this is not particularly limited by the embodiment of the present invention。
You need to add is that, the Audio Processing that terminal tone to external world carries out, interference process, sub-frame processing, preemphasis process can be included, add the bright window process of Hamming and Fourier transform processing etc., certainly, the mode of above-mentioned Audio Processing also includes other modes, and this is not specifically limited by the embodiment of the present invention。
It should be noted that the employing frequency that first the machine tone frequency spectrum data is sampled by terminal, and the employing frequency that terminal tone frequency spectrum data to external world carries out sampling can be the same or different。
More specifically, similarity is calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence, including: calculate the first dynamic time consolidation algorithm DTW (DynamicTimeWarping, dynamic time consolidation algorithm) distance according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;The 2nd DTW distance is calculated according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence;Calculating the similarity of a DTW distance and the 2nd DTW distance, wherein, the similarity of a DTW distance and the 2nd DTW distance, for characterizing the similarity calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Wherein, DTW algorithm is a kind of algorithm occurring relatively morning, comparatively classics in speech recognition, the template matching problem different in size for solving pronunciation。In embodiments of the present invention, the sampled point quantity obtained due to the sampling of tone to external world and crest and trough quantity, it is likely to unequal (such as leakage is adopted) with the sampled point quantity that first the machine tone sampling is obtained, the extraneous tone audio frequency characteristics value sequence that directly sampling of tone to external world cannot be obtained, and first the machine tone audio frequency characteristics value sequence of first the machine tone sampling acquisition is compared。Therefore, DTW algorithm can be passed through external world's tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence are calculated with reference audio characteristic value sequence respectively, and respectively obtain a DTW distance and the 2nd DTW distance, by calculating the similarity of a DTW distance and the 2nd DTW distance, indirectly obtain extraneous tone audio frequency characteristics value sequence and the similarity of first the machine tone audio frequency characteristics value sequence calculating。
Optionally, preset reference audio characteristic value sequence calculates corresponding DTW distance for terminal by DTW algorithm。
In actual applications, if reference audio characteristic value sequence is set to include the sequence of N number of crest and trough, so, feature according to DTW algorithm, crest and the quantity of trough that no matter extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence include are how many, a DTW distance is calculated according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence, calculate the 2nd DTW distance with according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence, all include N number of crest and namely trough is all normalized to N。
Owing to a DTW distance and the 2nd DTW distance have identical element number, namely there is identical crest and trough quantity, therefore, it can compare a DTW distance with the 2nd DTW distance。Specifically, the similarity of a DTW distance and the 2nd DTW distance is calculated, it is possible to pass through range formulaCalculate。Wherein, XiIt it is a DTW distance;YiIt it is the 2nd DTW distance。XiAnd YiThe sequence vector that respectively N number of DTW distance is constituted。
It addition, the calculated DTW distance of terminal, it is the audio-frequency fingerprint of extraneous tone, the calculated 2nd DTW distance of terminal, is the audio-frequency fingerprint of first the machine tone。And audio-frequency fingerprint is the one group of unique identification calculated according to audio signal, and similar audio frequency should have similar audio-frequency fingerprint。Therefore, in audio identification field, usually by comparing two audio-frequency fingerprints corresponding to audio frequency to determine that whether the two audio frequency is similar。That is, terminal is by calculating the similarity of a DTW distance and the 2nd DTW distance, the similarity of extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence can be calculated, thus judging that whether extraneous tone is similar with first the machine tone。
In practical application, terminal calculates a DTW distance according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;The 2nd DTW distance is calculated, it is possible to determined that module processes by the audio-frequency fingerprint arranged in terminal according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence。Terminal calculates the similarity of a DTW distance and the 2nd DTW distance and can be processed by the similarity calculation module arranged in terminal。
Step 103: when similarity is more than predetermined threshold value, carries out Audio Processing to first the machine tone and obtains second the machine tone;
Specifically, terminal is when similarity is more than predetermined threshold value, namely it is believed that terminal exists the extraneous tone of other terminal similar to the first the machine tone preset in the environment, it is thus desirable to first the machine tone is carried out Audio Processing obtain second the machine tone, in order to distinguished by the extraneous tone of second the machine tone Yu other terminal。
In actual applications, the Audio Processing that first the machine tone is carried out by terminal includes but not limited to: the synthesis etc. improving Audio Processing, compression or extension rhythm and other special syllable processes。It can be seen that be different through second the machine tone of Audio Processing from first the machine tone。It addition, the Audio Processing that first the machine tone is carried out by terminal can be processed by the audio frequency processing module arranged in terminal。
Step 104: in preset time period, adopts first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing second the machine tone。
Preset time period, gets a period of time after the extraneous tone similar to the first the machine tone of self for terminal。Preset time period is configured according to actual needs, for instance, it is possible to it is set to 30 minutes。
Intelligible, owing to second the machine tone through Audio Processing is different from first the machine tone, therefore, when receiving employing first the machine tone and carrying out the communication information reminded, play second the machine tone, to be different from the extraneous tone of other terminal。
Alternatively, with reference to shown in Fig. 4, after step 103, method also includes step 107, particularly as follows:
Step 107: after preset time period, adopts first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing first the machine tone。
Understandably, after preset time period, illustrate that distance terminal gets the extraneous tone similar to first the machine tone and pass by the long period, it is believed that terminal current place environment is absent from the extraneous tone similar to first the machine tone, therefore, when terminal receives and adopts first the machine tone to carry out the communication information reminded, it is possible to continue through broadcasting first the machine tone and communication information is reminded。
Alternatively, with reference to shown in Fig. 5, after step 102, method also includes step 105-step 106, particularly as follows:
Step 105: when similarity is more than predetermined threshold value, other the machine tone that at least one except first the machine tone is preset carry out Audio Processing and obtain the 3rd the machine tone;
Step 106: in preset time period, adopts other the machine tone to carry out the communication information reminded if receiving, then by broadcasting the 3rd the machine tone, communication information is reminded。
In reality, terminal often presets the tone of corresponding different communication message when dispatching from the factory。For example, manufacturer terminal A, preset incoming call tone is A1, preset note tone to be A2, preset notice tone be A3, preset alarm clock tone are A4。Terminal 1 and terminal 2 all have vendor A to produce, so when terminal 1 does not change the notice tone carried, it is that any one tone in A4 is similar to terminal 2 when terminal 1 A2 that recognizes in surrounding that to be A1, note tone to the incoming call tone of self be, notice tone are A3, alarm clock tone, so, terminal 1 also have with other tone of terminal 2 bigger be probably similar。Therefore, other the machine tone that at least one except first the machine tone is preset are carried out Audio Processing and obtain the 3rd the machine tone by terminal needs。
Embodiment two
A kind of tone player method schematic flow sheet four that Fig. 6 provides for the embodiment of the present invention, with reference to shown in Fig. 6, the method includes:
Step: 600: open tone playing function, arranges Audio Processing mode for processing with other special syllable synthesis;
Wherein, shown in Figure 7, Audio Processing mode also includes improving the synthesis etc. of Audio Processing, compression or extension rhythm and other special syllable (syllable with labeled such as user's typing) and processes。Here, Audio Processing mode can be configured according to terminal use's hobby。
Step 601: obtain extraneous tone, wherein, extraneous tone is non-default tone;
Step 602: tone carries out the extraneous tone audio frequency characteristics value sequence of Audio Processing acquisition to external world;
Step 603: calculate first the machine tone audio frequency characteristics value sequence of first the machine tone;
Wherein, first the machine tone that terminal is preset is for when terminal receives communication information, realizing communication information prompting function by playing first the machine tone。It should be noted that first the machine tone that terminal is preset includes tone that terminal presets when dispatching from the factory, terminal likes the tone etc. downloaded voluntarily according to user, the kind of first the machine tone that terminal is preset is not particularly limited by the embodiment of the present invention。
Step 604: calculate a DTW distance according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;
Preset reference audio characteristic value sequence calculates corresponding DTW distance for terminal by DTW algorithm。
Step 605: calculate the 2nd DTW distance according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence;
Step 606: calculate the similarity of a DTW distance and the 2nd DTW distance;
Step 607: when similarity is more than predetermined threshold value, carries out first the machine tone and other special syllable synthesis process and obtains second the machine tone;
Step 608: in preset time period, it may be judged whether receive communication information, if so, then performs step 609;If it is not, then perform step 610;
Step 609: when judging that communication information adopts first the machine tone to remind, then remind communication information by playing second the machine tone。
Understandably, owing to Audio Processing mode is that terminal use is arranged, so, in preset time period, if terminal plays and other special syllable carry out second the machine tone of synthesis process, terminal use may determine that it is that oneself terminal receives communication information, it is to avoid it is the tone of oneself terminal that the tone of other people terminal is takeed for by terminal use, or, the tone of oneself terminal is treated as the tone of other people terminal。
Step 610: after preset time period, adopts first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing first the machine tone。
In sum, embodiments provide a kind of tone player method, by obtaining extraneous tone;Calculate the similarity of extraneous tone and the first the machine tone preset;When similarity is more than predetermined threshold value, first the machine tone is carried out Audio Processing and obtains second the machine tone;In preset time period, first the machine tone is adopted to carry out the communication information reminded if receiving, then communication information is reminded by playing second the machine tone, add the identification of terminal tone, improve the intelligent of terminal, first the machine tone of distinguishing terminal and the purpose of similar extraneous tone are reached, it is to avoid terminal carries out false alert。
Embodiment three
The structural representation one of a kind of terminal that Fig. 8 provides for the embodiment of the present invention, with reference to shown in Fig. 8, this terminal 1 includes: acquiring unit 801, computing unit 802, audio treatment unit 803 and broadcast unit 804, wherein:
Acquiring unit 801, is used for obtaining extraneous tone, and wherein, extraneous tone is non-default tone;
Computing unit 802, for calculating the similarity of the acquiring unit 801 extraneous tone obtained and the first the machine tone preset;
Audio treatment unit 803, for when the similarity of computing unit 802 calculating is more than predetermined threshold value, carrying out Audio Processing to first the machine tone and obtain second the machine tone;
Broadcast unit 804, for, in preset time period, adopting first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by the second the machine tone obtained by playing audio treatment unit 803 to process。
Further, computing unit 802, specifically for: the extraneous tone that acquiring unit 801 is obtained carries out Audio Processing and obtains extraneous tone audio frequency characteristics value sequence;Calculate first the machine tone audio frequency characteristics value sequence of first the machine tone;Similarity is calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Further, computing unit 802, specifically for: calculate the first dynamic time consolidation algorithm DTW distance according to extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;The 2nd DTW distance is calculated according to first the machine tone audio frequency characteristics value sequence and reference audio characteristic value sequence;Calculating the similarity of a DTW distance and the 2nd DTW distance, wherein, the similarity of a DTW distance and the 2nd DTW distance, for characterizing the similarity calculated according to extraneous tone audio frequency characteristics value sequence and first the machine tone audio frequency characteristics value sequence。
Further, audio treatment unit 803, it is additionally operable to: when the similarity that computing unit 802 calculates is more than predetermined threshold value, other the machine tone that at least one except first the machine tone is preset carry out Audio Processing and obtain the 3rd the machine tone;Broadcast unit 804, is additionally operable to: in preset time period, adopts other the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by the 3rd the machine tone obtained by playing audio treatment unit 803 to process。
Further, broadcast unit 804, being additionally operable to: after preset time period, adopting first the machine tone to carry out the communication information reminded if receiving, then communication information is reminded by playing first the machine tone。
Embodiment four
The structural representation two of a kind of terminal that Fig. 9 provides for the embodiment of the present invention, with reference to shown in Fig. 9, this terminal includes processor 106, player 107, memorizer 108 and bus 109。
Specifically, acquiring unit 801 in above-described embodiment three, computing unit 802 and audio treatment unit 803 can be realized by the processor 106 being positioned in terminal, are specially central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) etc. and realize。Broadcast unit 804 in above-described embodiment three can be realized by the player 107 in terminal。Memorizer 108 can pass through system bus 109 and be connected with processor 106 and player 107, wherein, memorizer 108 is used for storing executable program code, this program code includes computer-managed instruction, memorizer 108 is likely to comprise high-speed RAM memorizer, it is likely to and also includes nonvolatile memory, for instance, at least one disk memory。
It should be noted that the terminal in the embodiment of the present invention includes smart mobile phone, intelligent appliance, panel computer etc.。
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program。Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect。And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code。
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe。It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame。These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame。
The above, be only presently preferred embodiments of the present invention, is not intended to limit protection scope of the present invention。

Claims (10)

1. a tone player method, it is characterised in that including:
Obtaining extraneous tone, wherein, described extraneous tone is non-default tone;
Calculate the similarity of described extraneous tone and the first the machine tone preset;
When described similarity is more than predetermined threshold value, described first the machine tone is carried out Audio Processing and obtains second the machine tone;
In preset time period, adopt described first the machine tone to carry out the communication information reminded if receiving, then described communication information is reminded by playing described second the machine tone。
2. method according to claim 1, it is characterised in that the described extraneous tone of described calculating and the similarity of the first the machine tone preset, specifically includes:
Described extraneous tone is carried out Audio Processing and obtains extraneous tone audio frequency characteristics value sequence;
Calculate first the machine tone audio frequency characteristics value sequence of described first the machine tone;
Similarity is calculated according to described extraneous tone audio frequency characteristics value sequence and described first the machine tone audio frequency characteristics value sequence。
3. method according to claim 2, it is characterised in that described calculate similarity according to described extraneous tone audio frequency characteristics value sequence and described first the machine tone audio frequency characteristics value sequence, specifically includes:
The first dynamic time consolidation algorithm DTW distance is calculated according to described extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;
The 2nd DTW distance is calculated according to described first the machine tone audio frequency characteristics value sequence and described reference audio characteristic value sequence;
Calculate the similarity of a described DTW distance and described 2nd DTW distance, wherein, the similarity of a described DTW distance and described 2nd DTW distance, for characterizing the described similarity calculated according to described extraneous tone audio frequency characteristics value sequence and described first the machine tone audio frequency characteristics value sequence。
4. method according to claim 1, it is characterised in that after the similarity of the described extraneous tone of described calculating and first default the machine tone, described method also includes:
When described similarity is more than predetermined threshold value, other the machine tone that at least one except described first the machine tone is preset carry out Audio Processing and obtain the 3rd the machine tone;
In preset time period, adopt other the machine tone described to carry out the communication information reminded if receiving, then described communication information is reminded by playing described 3rd the machine tone。
5. method according to claim 1, it is characterised in that described first the machine tone being carried out after Audio Processing obtains second the machine tone described, described method also includes:
After preset time period, adopt described first the machine tone to carry out the communication information reminded if receiving, then described communication information is reminded by playing described first the machine tone。
6. a terminal, it is characterised in that including: acquiring unit, computing unit, audio treatment unit and broadcast unit, wherein:
Described acquiring unit, is used for obtaining extraneous tone, and wherein, described extraneous tone is non-default tone;
Described computing unit, for calculating the similarity of described the acquiring unit described extraneous tone obtained and the first the machine tone preset;
Described audio treatment unit, for when the described similarity that described computing unit calculates is more than predetermined threshold value, carrying out Audio Processing to described first the machine tone and obtain second the machine tone;
Described broadcast unit, for, in preset time period, adopting described first the machine tone to carry out the communication information reminded if receiving, then described communication information is reminded by the described second the machine tone obtained by playing described audio treatment unit to process。
7. terminal according to claim 6, it is characterised in that described computing unit, specifically for:
The described extraneous tone that described acquiring unit is obtained carries out Audio Processing and obtains extraneous tone audio frequency characteristics value sequence;Calculate first the machine tone audio frequency characteristics value sequence of described first the machine tone;Similarity is calculated according to described extraneous tone audio frequency characteristics value sequence and described first the machine tone audio frequency characteristics value sequence。
8. terminal according to claim 7, it is characterised in that described computing unit, specifically for:
The first dynamic time consolidation algorithm DTW distance is calculated according to described extraneous tone audio frequency characteristics value sequence and preset reference audio characteristic value sequence;The 2nd DTW distance is calculated according to described first the machine tone audio frequency characteristics value sequence and described reference audio characteristic value sequence;Calculate the similarity of a described DTW distance and described 2nd DTW distance, wherein, the similarity of a described DTW distance and described 2nd DTW distance, for characterizing the described similarity calculated according to described extraneous tone audio frequency characteristics value sequence and described first the machine tone audio frequency characteristics value sequence。
9. terminal according to claim 6, it is characterised in that described audio treatment unit, is additionally operable to:
When the described similarity that described computing unit calculates is more than predetermined threshold value, other the machine tone that at least one except described first the machine tone is preset carry out Audio Processing and obtain the 3rd the machine tone;
Described broadcast unit, is additionally operable to: in preset time period, adopts other the machine tone described to carry out the communication information reminded if receiving, then described communication information is reminded by the described 3rd the machine tone obtained by playing described audio treatment unit to process。
10. terminal according to claim 6, it is characterised in that described broadcast unit, is additionally operable to:
After preset time period, adopt described first the machine tone to carry out the communication information reminded if receiving, then described communication information is reminded by playing described first the machine tone。
CN201610184696.7A 2016-03-28 2016-03-28 Ring playing method and terminal Pending CN105704341A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610184696.7A CN105704341A (en) 2016-03-28 2016-03-28 Ring playing method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610184696.7A CN105704341A (en) 2016-03-28 2016-03-28 Ring playing method and terminal

Publications (1)

Publication Number Publication Date
CN105704341A true CN105704341A (en) 2016-06-22

Family

ID=56233045

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610184696.7A Pending CN105704341A (en) 2016-03-28 2016-03-28 Ring playing method and terminal

Country Status (1)

Country Link
CN (1) CN105704341A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330689A (en) * 2008-07-11 2008-12-24 北京天语君锐科技有限公司 Method and device for playing prompting sound
WO2012044645A2 (en) * 2010-10-01 2012-04-05 Imerj, Llc Extended graphics context with common compositing
CN102572089A (en) * 2010-12-31 2012-07-11 联想(北京)有限公司 Mobile terminal and method for changing prompt tone of mobile terminal
CN102740250A (en) * 2012-06-29 2012-10-17 华为终端有限公司 Ring judgment method, server, terminals and system
CN103309657A (en) * 2013-05-17 2013-09-18 北京小米科技有限责任公司 Method, device and equipment for exchanging mobile equipment ring voice frequency

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330689A (en) * 2008-07-11 2008-12-24 北京天语君锐科技有限公司 Method and device for playing prompting sound
WO2012044645A2 (en) * 2010-10-01 2012-04-05 Imerj, Llc Extended graphics context with common compositing
CN102572089A (en) * 2010-12-31 2012-07-11 联想(北京)有限公司 Mobile terminal and method for changing prompt tone of mobile terminal
CN102740250A (en) * 2012-06-29 2012-10-17 华为终端有限公司 Ring judgment method, server, terminals and system
CN103309657A (en) * 2013-05-17 2013-09-18 北京小米科技有限责任公司 Method, device and equipment for exchanging mobile equipment ring voice frequency

Similar Documents

Publication Publication Date Title
CN104808944B (en) Touch operation inducing method and device
CN105100892A (en) Video playing device and method
CN105718071A (en) Terminal and method for recommending associational words in input method
CN105430158A (en) Processing method of non-touch operation and terminal
CN104898979A (en) Music playing control method and system
CN104915582A (en) Unlocking method and unlocking device
CN105760057A (en) Screenshot device and method
CN104954867A (en) Media playing method and device
CN104809221A (en) Recommending method for music information and device
CN106303088A (en) Prompting control method and mobile terminal
CN105577532A (en) Application message processing method and device based on keywords, and mobile terminal
CN106157970A (en) A kind of audio identification methods and terminal
CN105100477B (en) Terminal notifying device and method
CN105094532A (en) Method and device for data access
CN104980549A (en) Information processing method and mobile terminal
CN105764085A (en) Abnormal electricity consumption detection method and terminal
CN105760055A (en) Mobile terminal and control method thereof
CN105099701A (en) Terminal and terminal authentication method
CN105096987B (en) A kind of processing method and terminal of audio data
CN104731508A (en) Audio playing method and device
CN104980576A (en) Method and device for automatically extracting number for mobile terminal
CN105094887A (en) Equipment terminal and fingerprint identification method thereof
CN105096962A (en) Information processing method and terminal
CN106550133A (en) Calling identification device and method
CN106790904A (en) The functional definition method and mobile terminal of a kind of button

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160622