WO2019052361A1 - Ring tone setting method and apparatus - Google Patents

Ring tone setting method and apparatus Download PDF

Info

Publication number
WO2019052361A1
WO2019052361A1 PCT/CN2018/103803 CN2018103803W WO2019052361A1 WO 2019052361 A1 WO2019052361 A1 WO 2019052361A1 CN 2018103803 W CN2018103803 W CN 2018103803W WO 2019052361 A1 WO2019052361 A1 WO 2019052361A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
segment
decibel value
level
audio file
Prior art date
Application number
PCT/CN2018/103803
Other languages
French (fr)
Chinese (zh)
Inventor
王学红
Original Assignee
西安中兴新软件有限责任公司
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 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2019052361A1 publication Critical patent/WO2019052361A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/08Current supply arrangements for telephone systems with current supply sources at the substations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/042Current 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 with variable loudness of the ringing tone, e.g. variable envelope or amplitude of ring signal
    • H04M19/044Current 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 with variable loudness of the ringing tone, e.g. variable envelope or amplitude of ring signal according to the level of ambient noise
    • 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
    • H04M19/00Current supply arrangements for telephone systems
    • H04M19/02Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone
    • H04M19/04Current supply arrangements for telephone systems providing ringing current or supervisory tones, e.g. dialling tone or busy tone the ringing-current being generated at the substations
    • H04M19/041Encoding the ringing signal, i.e. providing distinctive or selective ringing capability

Definitions

  • the present disclosure relates to the field of communications, and more particularly to the field of mobile terminals.
  • the ring tone currently used for mobile phone reminders can be set to the system's own ring tone, or can be set by the user to their favorite music according to preferences, but in each case, once set, the ring tone can only be played from the beginning.
  • the setting method is relatively simple.
  • the ring sound of the user is set to be small, it is not easy to be heard in a relatively noisy environment; if it is set to a ringing tone with strong rhythm, and there is a quiet environment, it is more noisy.
  • the embodiments of the present disclosure provide a ring tone setting method, a ring tone setting device, a storage medium, and a processor to at least partially solve the technical problems existing in the related art.
  • a ring tone setting method including: detecting a decibel value of an environmental noise when a voice call is detected, determining a level of the environmental noise according to the decibel value; according to a preset The matching relationship between the environmental noise level and the audio segment determines an audio segment corresponding to the decibel value; and the determined audio segment is set as a ring tone for playing.
  • a ring tone setting device comprising: a detecting module configured to detect a decibel value of an environmental noise when a voice call is detected, and determine the environmental noise according to the decibel value a determining module configured to determine an audio segment corresponding to the decibel value according to a matching relationship between the preset environmental noise level and the audio segment; and a setting module configured to set the determined audio segment as a ringtone Play it.
  • a storage medium comprising a stored program, wherein the program executes the above method while it is running.
  • a processor for running a program wherein the program executes the above method while it is running.
  • FIG. 1 is a block diagram showing the hardware structure of a mobile terminal that implements a ring tone setting method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a ring tone setting method according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of an audio file analysis process according to an embodiment of the present disclosure.
  • FIG. 5 is a flow diagram of temporary audio segmentation playback in accordance with an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of a segmentation setting ring tone setting according to an embodiment of the present disclosure
  • FIG. 7 is a block diagram of a ring tone setting apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is a block diagram of a ring tone setting device according to an embodiment of the present disclosure.
  • FIG. 1 is a hardware structural block diagram of a mobile terminal that implements a ring tone setting method according to an embodiment of the present disclosure.
  • the mobile terminal 10 may include one or two (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA).
  • FIG. 1 is merely illustrative and does not limit the structure of the above electronic device.
  • the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
  • the memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to data transmission methods in embodiments of the present disclosure.
  • the processor 102 performs various functional applications and data processing by running software programs and modules stored in the memory 104, i.e., implementing the above methods.
  • Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or two magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • Transmission device 106 is for receiving or transmitting data via a network.
  • a specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal 10.
  • the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • a ring tone setting method is provided.
  • FIG. 2 is a flowchart of a ring tone setting method according to an embodiment of the present disclosure. As shown in FIG. 2, the ring tone setting method according to this embodiment includes:
  • Step S22 when a voice call is detected, detecting a decibel value of the environmental noise, and determining a level of the environmental noise according to the decibel value;
  • Step S24 determining an audio segment corresponding to the decibel value according to a matching relationship between the preset environmental noise level and the audio segment;
  • Step S26 setting the determined audio segment as a ring tone for playing.
  • the mobile terminal detects a voice call, detecting a decibel value of the environmental noise, determining a level of the ambient noise according to the decibel value; determining and matching according to a matching relationship between the preset environmental noise level and the audio segment.
  • the audio segment corresponding to the decibel value ie, corresponding to the ambient noise level
  • setting the determined audio segment as a ring tone for playing and solving the related art
  • the ring tone setting cannot be set according to different environment playing, setting mode Compared with a single problem, it realizes playing different audio clips in audio files according to different environmental noises, so that ringtones with different loudness are used in different environments, which makes the ringtones more suitable for the environment and improves the user experience.
  • the method before detecting a decibel value of the ambient noise and determining the level of the ambient noise according to the decibel value, the method further includes: extracting an average decibel value within a predetermined time interval in the audio file; And dividing the audio file into different levels of multi-segment audio segments according to the size change of the average decibel value; matching a preset environmental noise level with the multi-segment audio segment according to an average decibel value of the multi-segment audio segment, and setting The matching relationship between the ambient noise level and the audio segment.
  • the method before detecting a decibel value of the ambient noise, determining the level of the ambient noise according to the decibel value, the method further comprises: extracting a speed within a predetermined time interval in the audio file (music) Speed) dividing the audio file into different levels of audio segments according to the change in the speed; matching the preset environmental noise level with the plurality of audio segments according to the speed of the plurality of audio segments, setting The relationship between the ambient noise level and the audio segment.
  • the method before detecting a decibel value of the ambient noise, determining the level of the ambient noise according to the decibel value, the method further includes: extracting a frequency of the acoustic wave in the predetermined time interval in the audio file. Amplitude; dividing the audio file into different levels of multi-segment audio segments according to changes in frequency and amplitude of the sound waves; and setting a predetermined environmental noise level to the plurality of segments according to frequency and amplitude of sound waves of the plurality of audio segments The audio clips are matched to set a matching relationship between the ambient noise level and the audio clip.
  • the predetermined time interval may be selected to be 1 second, 2 seconds, 5 seconds, or the like. For example, assuming a predetermined time interval of 1 second, extracting an average decibel value within a predetermined time interval in the audio file, referring to extracting an average decibel value in each second of the audio file, and so on; For example, the trend of the size (average decibel value, music speed, etc.) can be expressed, and a specific example thereof will be described below.
  • the method further comprises storing the plurality of audio segments on a time point basis.
  • the "time point” herein may refer to the start time point and the end time point of each audio clip in the audio file.
  • the user before detecting the decibel value of the ambient noise, before determining the level of the ambient noise according to the decibel value, the user needs to enable the segmentation setting ring tone function, that is, the need to receive the startup segment setting ring tone function.
  • the startup command is started, and the segmentation ring tone function is turned on according to the startup instruction.
  • the method for setting a ring tone in the embodiment of the present disclosure includes: when a user needs to use an audio file as a ring tone, first extracting an average decibel value and other information of the audio file every second, and audio according to the direction of the decibel value.
  • the file is automatically divided into several segments of audio segments, and the segmentation results are stored on a time-point basis, and then the segments of the corresponding audio file are matched according to the preset environmental noise level. For example, an audio file is divided into several segments according to the degree of loudness (decibel).
  • the degree of loudness decibel
  • an audio clip with a higher loudness level is played.
  • different segments of the same audio file can be played according to different environmental noises, so that the user experience can be effectively improved, and the ring tone set in a quiet environment is not too noisy.
  • the user is frightened, and the ring tone sound set in the noisy environment is too low, so that the user can't hear the ring tone, thereby satisfying the user's need to set his favorite ring tone, and satisfying different environments.
  • the need for ring tones with different loudness is
  • FIG. 3 is a flowchart of audio file analysis processing according to an embodiment of the present disclosure. As shown in FIG. 3, the audio file analysis processing according to the present embodiment includes:
  • S101 setting a switch on the user interface, when the user turns on the switch, the segmentation setting ringtone function is effective (otherwise, the ringtone reminding event comes, the selected ringtone is played from the beginning according to the traditional manner); correspondingly, the user is required to select Ambient noise grading section (or default ambient noise grading section).
  • S102 When the segment setting ring tone function is turned on, the user needs to select an audio file as a basis for performing the loudness trend analysis of the audio (or may be selected as the basis of the audio file of the current incoming ring tone by default).
  • the loudness trend analysis of the audio file is started.
  • the selected audio file is segmented according to the loudness value (decibel value) according to the level of the audio file loudness level.
  • the loudness of the audio file can be analyzed as follows based on 3db: detecting the average decibel per second of the audio file, through data analysis Dividing the portion with the loudness value close to the same level. If the audio segment (audio segment) of the same level is too long, the data is subdivided into segments of the same level.
  • segment data refers to the time period information segmented in the audio file when playing in the audio file in sequence
  • segment data refers to the time period information segmented in the audio file when playing in the audio file in sequence
  • the loudness level may not be in a one-to-one correspondence
  • the loudness segment close to the noise level may be preferentially searched.
  • the search is performed according to the following criteria: assuming the noise level is m level, The audio file loudness is graded to n levels, and the current noise level is i.
  • the audio file segmentation level currently to be matched is calculated by the following formula: i*(n/m), and the calculation result is rounded to obtain the audio file to be matched. Segment level.
  • Embodiments of the present disclosure are not limited to segmentation only by the loudness value (i.e., decibel value) of the audio file, and the audio file may be segmented by considering the pitch of the audio file as a parameter. Since the frequency of the sound wave determines the pitch of the sound, the amplitude of the sound wave determines the loudness of the sound. Therefore, the frequency and amplitude (loudness) of the sound wave of the audio file can be simultaneously extracted for comprehensive segmentation.
  • the loudness value i.e., decibel value
  • Speed is the expression of the speed of a song.
  • the front part may be lyrical, the middle part is passionate, and the end is solemn, so the audio file can also be segmented according to the speed.
  • the speed of music (tempo) is generally expressed by how many beats (bpm) _ are performed within one minute, and the beat refers to the combination of strong beats and weak beats. For example, in 5 seconds, the number of beats in the extracted audio file is compared with the number of beats in the next five seconds, and so on, and different speed segments are extracted.
  • the segmentation data of the speed segment, the segmentation level, the segmentation velocity value, and the like are written into the database.
  • the noise level is m level
  • the audio file speed is graded to n level
  • the current noise level is i
  • the audio file segmentation level currently to be matched is calculated by the following formula: i*(n/m), for calculation
  • the result is rounded to get the audio file segmentation level to match.
  • the audio file analysis process according to the present embodiment includes:
  • S201 Acquire an average decibel value per second of the audio file.
  • A0 can be tentatively set to 1 (the minimum sound amplitude that the microphone can receive). At this time, it is only necessary to obtain the average value of the absolute value of the amplitude of the audio file for one second. A1, you can calculate the average decibel value of this second audio.
  • S202 After obtaining the average decibel value of the audio file per second, compare the data of the five seconds before and after the ringing, if the data of the five seconds before and after the data is not higher than 3 dB, merge the data of the last five seconds with the previous data as a segment. Data, and so on, are initially segmented.
  • the minimum play duration is 20 ⁇ 5
  • the longest play duration is 40 ⁇ 5 (the general call ring tone lasts for 42 seconds).
  • the minimum play duration is 20 ⁇ 5
  • the longest play duration is 40 ⁇ 5 (the general call ring tone lasts for 42 seconds).
  • the data of the five seconds before and after is no more than 3dB (ie, the first 5 seconds)
  • the difference between the average of 5 average decibels per second and the average of 5 average decibels per second of 5 seconds is no more than 3db), and the data of the last 5 seconds is combined with the data of the previous 15 seconds as a piece of data. Otherwise, the first 15 seconds of data is divided into an audio segment, and so on.
  • S204 storing the divided audio segmentation data information into the database, where the file information such as the name of the audio file, the maximum number of segments of the audio file, and the segmentation data of the audio file (including the start time and the end time), And the number of loudness levels of the audio file segmentation data and the number of levels of environmental noise.
  • FIG. 5 is a flowchart of temporary audio segment playback according to an embodiment of the present disclosure. As shown in FIG. 5, the playback process includes:
  • the reminding event comes, the segmented audio matching and the playing process are triggered, and the reminding event is an event that needs to play an audio file (such as an incoming call ring tone, an alarm alarm ringing tone, etc.), such as an incoming call, an alarm time arrives, and the like.
  • an audio file such as an incoming call ring tone, an alarm alarm ringing tone, etc.
  • S302 Acquire environmental noise data, and the classification of the environmental noise data may be determined by the grading data selected by the user. For example, when the noise level selected by the user is three levels, the noise threshold is re-divided according to the traditional noise grading standard and the noise grading selected by the current user. Thereby determining the currently acquired ambient noise level.
  • the corresponding segmented audio segment (audio segment) is searched in the audio file segment database according to the corresponding environmental noise level. Since the loudness level and the noise segmentation level are not one-to-one correspondence, when searching for the corresponding classification, it is assumed that the noise level is m level, the audio file loudness is graded to n level, and the current noise level is i, and the current formula is used to calculate the current matching. Audio file segmentation level: i*(n/m), round the calculation result to obtain the audio file segmentation level to be matched.
  • FIG. 6 is a schematic diagram of a segment setting ring tone setting according to an embodiment of the present disclosure.
  • the function needs to add a menu entry of a segment setting ring tone in the setting interface, and enter a segment setting when the user clicks the menu.
  • Ring tone function interface The interface provides the user with a switch to turn the segmentation ringtone function on or off, and also provides a menu for the user to set the ambient noise rating.
  • the ringtone file selected by the user is subjected to loudness analysis, and then the analysis data is segmented according to the calculation result, and finally the segmentation data of the audio file and the corresponding hierarchical and audio files are obtained. Names and so on are stored in the database.
  • the detected environmental noise is classified according to the environmental noise classification number set by the user, and the audio segment corresponding to the corresponding level is played from the database according to the environmental noise level for playing. In this way, the user can hear different parts of an audio file according to different environments, which not only meets the needs of the ring tone in different environments, but also is more interesting.
  • FIG. 7 is a block diagram of a ring tone setting device according to an embodiment of the present disclosure.
  • the ring tone setting device includes:
  • the detecting module 72 is configured to detect a decibel value of the environmental noise when the voice call is detected, and determine the level of the environmental noise according to the decibel value;
  • the determining module 74 is configured to determine an audio segment corresponding to the decibel value according to a matching relationship between the preset environmental noise level and the audio segment;
  • the setting module 76 is configured to set the determined audio segment as a ring tone for playing.
  • the ring tone setting device further includes:
  • a first extraction module configured to extract an average decibel value within a predetermined time interval in the audio file
  • the first dividing module is configured to divide the audio file into different levels of multi-segment audio segments according to the size change of the average decibel value;
  • the first matching module is configured to match the preset environmental noise level with the multi-segment audio segment according to an average decibel value of the multi-segment audio segment, and set a matching relationship between the environmental noise level and the audio segment.
  • the ring tone setting device further includes:
  • a second extraction module configured to extract a speed within a predetermined time interval in the audio file
  • a second dividing module configured to divide the audio file into different levels of multi-segment audio segments according to the size change of the speed
  • the second matching module is configured to match the preset environmental noise level with the plurality of audio segments according to the speed of the plurality of audio segments, and set a matching relationship between the ambient noise level and the audio segment.
  • the ring tone setting device further includes:
  • a third extraction module configured to extract a frequency and an amplitude of the sound wave within a predetermined time interval in the audio file
  • a third dividing module configured to divide the audio file into different levels of multi-segment audio segments according to a change in a frequency and an amplitude of the sound wave
  • the third matching module is configured to match the preset environmental noise level with the plurality of audio segments according to the frequency and amplitude of the sound waves of the plurality of audio segments, and set a matching relationship between the ambient noise level and the audio segment.
  • Embodiments of the present disclosure do not require the introduction of other hardware devices.
  • FIG. 8 is a block diagram of a ring tone setting device according to an embodiment of the present disclosure.
  • the ring tone setting device mainly includes an audio data analyzing unit 82, an environment data analyzing unit 84, a storage unit 86, and a data matching unit 88.
  • the functions of some of the units are implemented in part or in whole by the detection module 72, the determination module 74, and the setting module 76 described above. Each unit will be described in detail below.
  • the audio data analyzing unit 82 is configured to analyze the selected audio file when the user selects an audio file as the ring tone, and segment the audio file according to the loudness level according to the average decibel value of the audio file per second.
  • Embodiments of the present disclosure are not limited to segmentation only by the loudness value of the audio file, and the audio file may be segmented by considering the pitch of the audio file as a parameter.
  • the frequency of the sound wave determines the pitch of the sound
  • the amplitude of the sound wave determines the loudness of the sound. Therefore, the frequency and amplitude of the sound wave of the audio file can be simultaneously extracted for comprehensive segmentation.
  • the environmental data analysis unit 84 is configured to analyze the environmental noise of the user before playing the alert ring tone, and determine the environment in which the user is located based on the noise data. For example, according to the environmental noise standard, the noise is divided into five levels, corresponding to the following values:
  • the noise level can be re-divided according to the user-selected classification. For example, when the user selects the noise level to be three levels, the noise level can be divided into mild pollution, moderate pollution and moderate, and the following three levels of standards (light pollution, Better, better) to merge; if the user chooses the noise level to be four, then the good and good standards are combined; if the user chooses the noise level to be five, then there is no need to re-divide, this standard is used as the environmental noise level standard. .
  • the storage unit 86 is configured to store the name of the audio file as well as the segmentation data (the start time and end time of the audio file segment), the segmentation level value, the segment average loudness value, and the like. After the audio data analysis unit 82 finishes analyzing the audio file loudness trend, the storage unit 86 stores the name of the audio file, the segment data, the corresponding segmentation level value, and the segment average loudness value into the database for reminding the ringtone. Match when used.
  • the data matching unit 88 is configured to determine the level of the environmental noise based on the decibel value of the acquired environmental noise when there is a reminder event, such as an incoming call, and match the corresponding audio segmentation data in the database.
  • the audio segmentation level value has a certain matching relationship with the environmental noise value. For example, if the environmental noise is divided into three levels, when it is detected that the noise level of the environment in which the user is located belongs to one of the levels, the corresponding level is searched in the database. .
  • the audio segment of the loudness close to the ambient noise loudness value may be first searched, and if not found, the matching is performed according to the following criteria: assuming the noise level is m level, the audio file loudness is graded n, current The noise level is i, and the audio file segmentation level to be matched is calculated by the following formula: i*(n/m). If there are multiple segments of the same level, one of the segments is randomly played as the reminder ringtone. .
  • Embodiments of the present disclosure also provide a storage medium including a stored program, wherein the above-described embodiment is executed when the program is executed.
  • the above storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present disclosure also provide a processor for running a program, wherein the program is executed to perform the steps of the method in the above embodiments.
  • modules or steps of the present disclosure can be implemented by a general computing device, which can be concentrated on a single computing device or distributed on a network composed of two computing devices. . Alternatively, they may be implemented by program code executable by a computing device such that they may be stored in a storage device by a computing device and, in some cases, may be executed in a different order than herein.
  • the steps shown or described are either made separately for individual integrated circuit modules, or two of them are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

Provided are a ring tone setting method and apparatus. The method comprises: when a voice call is detected, detecting a decibel value of environment noise, and determining the level of the environment noise according to the decibel value; according to a matching relationship between a pre-set environment noise level and an audio clip, determining an audio clip corresponding to the decibel value; and setting the determined audio clip as a ring tone for playing.

Description

铃音设置方法及装置Ring tone setting method and device 技术领域Technical field
本公开涉及通信领域,尤其涉及移动终端领域。The present disclosure relates to the field of communications, and more particularly to the field of mobile terminals.
背景技术Background technique
目前用于手机提醒的铃音,可设置为系统自带铃音,也可以由用户根据喜好设置为自己喜欢的音乐,但是在每种情形下,一旦设置好后,铃音只能从头开始播放,设置方式比较单一。此外,当用户设置的铃音声音较小时,在噪音比较大的环境中不太容易被听到;如果设置为节奏感较强的铃音,又存在处于安静的环境时,比较聒噪的问题。The ring tone currently used for mobile phone reminders can be set to the system's own ring tone, or can be set by the user to their favorite music according to preferences, but in each case, once set, the ring tone can only be played from the beginning. The setting method is relatively simple. In addition, when the ring sound of the user is set to be small, it is not easy to be heard in a relatively noisy environment; if it is set to a ringing tone with strong rhythm, and there is a quiet environment, it is more noisy.
发明内容Summary of the invention
本公开实施例提供了一种铃音设置方法、铃音设置装置、存储介质及处理器,以至少部分解决相关技术中存在的技术问题。The embodiments of the present disclosure provide a ring tone setting method, a ring tone setting device, a storage medium, and a processor to at least partially solve the technical problems existing in the related art.
根据本公开的一个实施例,提供了一种铃音设置方法,包括:当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;以及,将确定的所述音频片段设置为铃音进行播放。According to an embodiment of the present disclosure, there is provided a ring tone setting method, including: detecting a decibel value of an environmental noise when a voice call is detected, determining a level of the environmental noise according to the decibel value; according to a preset The matching relationship between the environmental noise level and the audio segment determines an audio segment corresponding to the decibel value; and the determined audio segment is set as a ring tone for playing.
根据本公开的另一个实施例,还提供了一种铃音设置装置,包括:检测模块,配置为当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;确定模块,配置为根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;以及,设置模块,配置为将确定的所述音频片段设置为铃音进行播放。According to another embodiment of the present disclosure, there is also provided a ring tone setting device, comprising: a detecting module configured to detect a decibel value of an environmental noise when a voice call is detected, and determine the environmental noise according to the decibel value a determining module configured to determine an audio segment corresponding to the decibel value according to a matching relationship between the preset environmental noise level and the audio segment; and a setting module configured to set the determined audio segment as a ringtone Play it.
根据本公开的又一个实施例,还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述方法。According to still another embodiment of the present disclosure, there is also provided a storage medium comprising a stored program, wherein the program executes the above method while it is running.
根据本公开的又一个实施例,还提供了一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行上述方法。According to still another embodiment of the present disclosure, there is also provided a processor for running a program, wherein the program executes the above method while it is running.
附图说明DRAWINGS
此处所说明的附图用来提供对本公开的进一步理解,构成本公开的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the disclosure, and are intended to be a In the drawing:
图1是实施本公开实施例的铃音设置方法的移动终端的硬件结构框图;1 is a block diagram showing the hardware structure of a mobile terminal that implements a ring tone setting method according to an embodiment of the present disclosure;
图2是根据本公开实施例的铃音设置方法的流程图;2 is a flowchart of a ring tone setting method according to an embodiment of the present disclosure;
图3是根据本公开实施例的音频文件分析处理的流程图;3 is a flowchart of an audio file analysis process according to an embodiment of the present disclosure;
图4是根据本公开实施例的音频文件分析处理的流程图;4 is a flowchart of an audio file analysis process according to an embodiment of the present disclosure;
图5是根据本公开实施例的临时音频分段播放的流程图;5 is a flow diagram of temporary audio segmentation playback in accordance with an embodiment of the present disclosure;
图6是根据本公开实施例的分段设置铃音设置的示意图;6 is a schematic diagram of a segmentation setting ring tone setting according to an embodiment of the present disclosure;
图7是根据本公开实施例的铃音设置装置的框图;FIG. 7 is a block diagram of a ring tone setting apparatus according to an embodiment of the present disclosure; FIG.
图8是根据本公开实施例的铃音设置装置的框图。FIG. 8 is a block diagram of a ring tone setting device according to an embodiment of the present disclosure.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本公开。需要说明的是,在不冲突的情况下,本公开中的实施例及实施例中的特征可以相互组合。The present disclosure will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present disclosure and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不旨在描述特定的顺序或先后次序。It is to be understood that the terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not intended to describe a particular order or order.
实施例1Example 1
本公开实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图1是实施本公开实施例的铃音设置方法的移动终端的硬件结构框图。如图1所示,移动终 端10可以包括一个或两个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,移动终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided by Embodiment 1 of the present disclosure may be executed in a mobile terminal, a computer terminal or the like. Taking a mobile terminal as an example, FIG. 1 is a hardware structural block diagram of a mobile terminal that implements a ring tone setting method according to an embodiment of the present disclosure. As shown in FIG. 1, the mobile terminal 10 may include one or two (only one shown) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA). A memory 104 for storing data, and a transmission device 106 for communication functions. It will be understood by those skilled in the art that the structure shown in FIG. 1 is merely illustrative and does not limit the structure of the above electronic device. For example, the mobile terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
存储器104可用于存储应用软件的软件程序以及模块,如本公开实施例中的数据传输方法对应的程序指令/模块。处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者两个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至移动终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to data transmission methods in embodiments of the present disclosure. The processor 102 performs various functional applications and data processing by running software programs and modules stored in the memory 104, i.e., implementing the above methods. Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or two magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 104 may further include memory remotely located relative to processor 102, which may be connected to mobile terminal 10 over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106用于经由一个网络接收或者发送数据。上述网络的具体实例可包括移动终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission device 106 is for receiving or transmitting data via a network. A specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
基于上述移动终端,根据本公开的一个实施例,提供了一种铃音设置方法。Based on the above mobile terminal, according to an embodiment of the present disclosure, a ring tone setting method is provided.
图2是根据本公开实施例的铃音设置方法的流程图,如图2所示,根据本实施例的铃音设置方法包括:FIG. 2 is a flowchart of a ring tone setting method according to an embodiment of the present disclosure. As shown in FIG. 2, the ring tone setting method according to this embodiment includes:
步骤S22,当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;Step S22, when a voice call is detected, detecting a decibel value of the environmental noise, and determining a level of the environmental noise according to the decibel value;
步骤S24,根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;Step S24, determining an audio segment corresponding to the decibel value according to a matching relationship between the preset environmental noise level and the audio segment;
步骤S26,将确定的所述音频片段设置为铃音进行播放。Step S26, setting the determined audio segment as a ring tone for playing.
通过上述步骤,当移动终端检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应(即,与所述环境噪音等级对应)的音频片段;将确定的所述音频片段设置为铃音进行播放,解决了相关技术中铃音设置无法根据不同环境播放进行设置,设置方式比较单一的问题,实现了根据环境噪音的不同播放音频文件中的不同音频片段,从而在不同环境中用不同响度的铃音,使得铃音与环境更适配,提高了用户体验。Through the above steps, when the mobile terminal detects a voice call, detecting a decibel value of the environmental noise, determining a level of the ambient noise according to the decibel value; determining and matching according to a matching relationship between the preset environmental noise level and the audio segment. The audio segment corresponding to the decibel value (ie, corresponding to the ambient noise level); setting the determined audio segment as a ring tone for playing, and solving the related art, the ring tone setting cannot be set according to different environment playing, setting mode Compared with a single problem, it realizes playing different audio clips in audio files according to different environmental noises, so that ringtones with different loudness are used in different environments, which makes the ringtones more suitable for the environment and improves the user experience.
在本实施例中,设置所述环境噪音等级与音频片段的匹配关系的方式有很多种。In this embodiment, there are many ways to set the matching relationship between the environmental noise level and the audio segment.
在一个可选的实施方式中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:提取音频文件中预定时间间隔内的平均分贝值;根据所述平均分贝值的大小变化将所述音频文件划分成不同等级的多段音频片段;根据所述多段音频片段的平均分贝值将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。In an optional implementation manner, before detecting a decibel value of the ambient noise and determining the level of the ambient noise according to the decibel value, the method further includes: extracting an average decibel value within a predetermined time interval in the audio file; And dividing the audio file into different levels of multi-segment audio segments according to the size change of the average decibel value; matching a preset environmental noise level with the multi-segment audio segment according to an average decibel value of the multi-segment audio segment, and setting The matching relationship between the ambient noise level and the audio segment.
在另一个可选的实施方式中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:提取音频文件中预定时间间隔内的速度(音乐速度);根据所述速度的大小变化将所述音频文件划分成不同等级的多段音频片段;根据所述多段音频片段的速度将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。In another optional embodiment, before detecting a decibel value of the ambient noise, determining the level of the ambient noise according to the decibel value, the method further comprises: extracting a speed within a predetermined time interval in the audio file (music) Speed) dividing the audio file into different levels of audio segments according to the change in the speed; matching the preset environmental noise level with the plurality of audio segments according to the speed of the plurality of audio segments, setting The relationship between the ambient noise level and the audio segment.
在另一个可选的实施方式中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:提取音频文件中预 定时间间隔内声波的频率和振幅;根据所述声波的频率和振幅的大小变化将所述音频文件划分成不同等级的多段音频片段;根据所述多段音频片段的声波的频率和振幅将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。In another optional embodiment, before detecting a decibel value of the ambient noise, determining the level of the ambient noise according to the decibel value, the method further includes: extracting a frequency of the acoustic wave in the predetermined time interval in the audio file. Amplitude; dividing the audio file into different levels of multi-segment audio segments according to changes in frequency and amplitude of the sound waves; and setting a predetermined environmental noise level to the plurality of segments according to frequency and amplitude of sound waves of the plurality of audio segments The audio clips are matched to set a matching relationship between the ambient noise level and the audio clip.
在上述各实施方式中,所述的预定时间间隔可以选为1秒、2秒、5秒等。例如,假设预定时间间隔为1秒,则提取音频文件中预定时间间隔内的平均分贝值,指的是提取音频文件中每一秒内的平均分贝值,以此类推;所述的“大小变化”例如可以表示(平均分贝值、音乐速度等的)大小的走向,并且其具体实例将在下文中描述。In each of the above embodiments, the predetermined time interval may be selected to be 1 second, 2 seconds, 5 seconds, or the like. For example, assuming a predetermined time interval of 1 second, extracting an average decibel value within a predetermined time interval in the audio file, referring to extracting an average decibel value in each second of the audio file, and so on; For example, the trend of the size (average decibel value, music speed, etc.) can be expressed, and a specific example thereof will be described below.
在一个实施方式中,所述方法还包括:将所述多段音频片段按照时间点为基础进行存储。这里的“时间点”可指的是每个音频片段在音频文件中的起始时间点和结束时间点。In one embodiment, the method further comprises storing the plurality of audio segments on a time point basis. The "time point" herein may refer to the start time point and the end time point of each audio clip in the audio file.
在一个实施方式中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,需要用户开启分段设置铃音功能,即,需要接收启动分段设置铃音功能的启动指令,根据所述启动指令开启分段设置铃音功能。In one embodiment, before detecting the decibel value of the ambient noise, before determining the level of the ambient noise according to the decibel value, the user needs to enable the segmentation setting ring tone function, that is, the need to receive the startup segment setting ring tone function. The startup command is started, and the segmentation ring tone function is turned on according to the startup instruction.
本公开实施例中的铃音设置的方法,包括:当用户需要将一首音频文件作为铃音时,首先提取音频文件每一秒的平均分贝值以及其他信息,根据分贝值的走向大小将音频文件自动分成不同等级的数段音频片段,将分段结果以时间点为基础进行存储,然后根据预设的环境噪音等级来匹配对应的音频文件的片段。例如,将一首音频文件根据响度(分贝)等级的不同分为数段,当用户在室内等比较安静的环境时,如果此时来电,则播放响度等级相对较低的音频片段,当用户在户外等比较噪杂的环境中时,则播放响度等级比较高的音频片段。通过这种手段,当用户处于不同的环境中时,就可以根据环境噪音的不同播放同一音频文件的不同片段,这样就能有效提高用户体验,不会因为在安静环境下设置的铃音太吵而使用户受到惊吓,也不会因为在比较吵的环境中设置的铃音声音太低导致用户听不见铃音,从而既满足了用户设置自己喜爱铃音的需求,同时又满足了不同 环境中用不同响度的铃音的需求。The method for setting a ring tone in the embodiment of the present disclosure includes: when a user needs to use an audio file as a ring tone, first extracting an average decibel value and other information of the audio file every second, and audio according to the direction of the decibel value. The file is automatically divided into several segments of audio segments, and the segmentation results are stored on a time-point basis, and then the segments of the corresponding audio file are matched according to the preset environmental noise level. For example, an audio file is divided into several segments according to the degree of loudness (decibel). When the user is in a relatively quiet environment such as indoors, if the call is made at this time, an audio segment with a relatively low loudness level is played when the user is outdoors. When it is in a noisy environment, an audio clip with a higher loudness level is played. By this means, when the user is in a different environment, different segments of the same audio file can be played according to different environmental noises, so that the user experience can be effectively improved, and the ring tone set in a quiet environment is not too noisy. The user is frightened, and the ring tone sound set in the noisy environment is too low, so that the user can't hear the ring tone, thereby satisfying the user's need to set his favorite ring tone, and satisfying different environments. The need for ring tones with different loudness.
本公开实施例的方法可分为两个部分,第一部分为音频分析流程部分。图3是根据本公开实施例的音频文件分析处理的流程图,如图3所示,根据本实施例的音频文件分析处理包括:The method of the embodiment of the present disclosure can be divided into two parts, the first part being an audio analysis flow part. FIG. 3 is a flowchart of audio file analysis processing according to an embodiment of the present disclosure. As shown in FIG. 3, the audio file analysis processing according to the present embodiment includes:
S101:在用户界面上设置一个开关,当用户打开开关时,则分段设置铃音功能生效(否则铃音提醒事件来临时,按照传统方式从头播放所选铃音);相应的还需要用户选择环境噪音分级段(或可提供默认的环境噪音分级段)。S101: setting a switch on the user interface, when the user turns on the switch, the segmentation setting ringtone function is effective (otherwise, the ringtone reminding event comes, the selected ringtone is played from the beginning according to the traditional manner); correspondingly, the user is required to select Ambient noise grading section (or default ambient noise grading section).
S102:当分段设置铃音功能打开时,需要用户选择一首音频文件作为基础来进行音频的响度走向分析(或可默认地选定作为当前来电铃音的音频文件作为基础)。S102: When the segment setting ring tone function is turned on, the user needs to select an audio file as a basis for performing the loudness trend analysis of the audio (or may be selected as the basis of the audio file of the current incoming ring tone by default).
S103:当用户选择音频文件以及环境噪音分级数据设置结束后,开始音频文件的响度走向分析。例如,首先根据音频文件响度等级的高低,对所选择的音频文件按照响度值(分贝值)走向进行分段。一般情况下,大部分人耳可分辨的两个不同响度声音的差值为3db,因此可以以3db为基准对音频文件的响度走向做如下分析:检测音频文件每秒的平均分贝,通过数据分析,将响度值接近的部分划分为同一等级,如果同一等级的音频分段(音频片段)过长则将这一段数据再划分为数段相同等级的分段,同样的,如果分段过短,则将过短分段合并到相邻分段中(在下文中详述)。当分析结束后,将音频文件名称,分段数据(分段数据指的是在音频文件中按照顺序播放时分段在音频文件中所处的时间段信息),对应响度分级,平均响度值等都存入数据库,此时完成音频文件的响度走向分析。由于响度级与噪音分段等级可能并非一一对应关系,在查找对应分级时,可优先查找与噪音等级相近的响度段,如果未找到,则以如下准则进行查找:假设噪音分级为m级,音频文件响度分级为n级,当前噪音等级为i,利用如下公式计算出当前要匹配的音频文件分段等级:i*(n/m),对计算结果取整来获取要匹配的音频文件分段等级。S103: After the user selects the audio file and the environmental noise grading data setting ends, the loudness trend analysis of the audio file is started. For example, the selected audio file is segmented according to the loudness value (decibel value) according to the level of the audio file loudness level. Under normal circumstances, the difference between two different loudness sounds that most human ears can distinguish is 3db. Therefore, the loudness of the audio file can be analyzed as follows based on 3db: detecting the average decibel per second of the audio file, through data analysis Dividing the portion with the loudness value close to the same level. If the audio segment (audio segment) of the same level is too long, the data is subdivided into segments of the same level. Similarly, if the segment is too short, then The short segments are merged into adjacent segments (described in more detail below). When the analysis is finished, the audio file name and segmentation data (segment data refers to the time period information segmented in the audio file when playing in the audio file in sequence), corresponding to the loudness level, average loudness value, etc. All are stored in the database, and the loudness analysis of the audio file is completed at this time. Since the loudness level and the noise segmentation level may not be in a one-to-one correspondence, when looking for the corresponding classification, the loudness segment close to the noise level may be preferentially searched. If not found, the search is performed according to the following criteria: assuming the noise level is m level, The audio file loudness is graded to n levels, and the current noise level is i. The audio file segmentation level currently to be matched is calculated by the following formula: i*(n/m), and the calculation result is rounded to obtain the audio file to be matched. Segment level.
本公开实施例不限于仅通过音频文件的响度值(即分贝值)进行分段,还可以综合考虑音频文件的音调作为参数来将音频文件分段。由于声波的频率决定声音的音调,声波的振幅决定声音的响度,因此分析时可同时提取音频文件声波的频率以及振幅(响度)来综合进行分段。Embodiments of the present disclosure are not limited to segmentation only by the loudness value (i.e., decibel value) of the audio file, and the audio file may be segmented by considering the pitch of the audio file as a parameter. Since the frequency of the sound wave determines the pitch of the sound, the amplitude of the sound wave determines the loudness of the sound. Therefore, the frequency and amplitude (loudness) of the sound wave of the audio file can be simultaneously extracted for comprehensive segmentation.
另外,还可以根据音乐的速度作为分段依据。速度是一首歌进行的快慢的表现方式,在同一首音乐中,可能前面的片段抒情,中间部分激情,而结束时庄严,所以也可以根据速度来进行音频文件的分段。音乐的速度(tempo)一般是以一分钟之内进行多少节拍(bpm)_来表示的,节拍是指强拍和弱拍的组合规律。例如,可以5秒为单位,提取音频文件每五秒内的节拍数与下五秒的节拍数做比对,以此类推,提取出不同的速度分段。在提取结束后,将速度分段的分段数据,分段等级,分段速度值等写入数据库。在匹配时,假设噪音分级为m级,音频文件速度分级为n级,当前噪音等级为i,利用如下公式计算出当前要匹配的音频文件分段等级:i*(n/m),对计算结果取整来获取要匹配的音频文件分段等级。In addition, you can also use the speed of music as a segmentation basis. Speed is the expression of the speed of a song. In the same piece of music, the front part may be lyrical, the middle part is passionate, and the end is solemn, so the audio file can also be segmented according to the speed. The speed of music (tempo) is generally expressed by how many beats (bpm) _ are performed within one minute, and the beat refers to the combination of strong beats and weak beats. For example, in 5 seconds, the number of beats in the extracted audio file is compared with the number of beats in the next five seconds, and so on, and different speed segments are extracted. After the extraction is completed, the segmentation data of the speed segment, the segmentation level, the segmentation velocity value, and the like are written into the database. In the case of matching, it is assumed that the noise level is m level, the audio file speed is graded to n level, and the current noise level is i, and the audio file segmentation level currently to be matched is calculated by the following formula: i*(n/m), for calculation The result is rounded to get the audio file segmentation level to match.
图4是根据本公开实施例的音频文件分析处理的流程图,如图4所示,根据本实施例的音频文件分析处理包括:4 is a flowchart of an audio file analysis process according to an embodiment of the present disclosure. As shown in FIG. 4, the audio file analysis process according to the present embodiment includes:
S201:获取到音频文件的每秒的平均分贝值。S201: Acquire an average decibel value per second of the audio file.
一般情况下,常用下列公式计算分贝值:L dB=20log 10(A1/A0)。 In general, the following formula is commonly used to calculate the decibel value: L dB = 20log 10 (A1/A0).
上述公式需要传入A1振幅数据,A0可暂定为1(麦克风所能接收到的最小声音振幅),此时只需要获取音频文件某一秒的振幅绝对值的平均值数据带入上述公式的A1,即可算出这一秒音频的平均分贝值。The above formula needs to pass in the A1 amplitude data. A0 can be tentatively set to 1 (the minimum sound amplitude that the microphone can receive). At this time, it is only necessary to obtain the average value of the absolute value of the amplitude of the audio file for one second. A1, you can calculate the average decibel value of this second audio.
S202:获取到音频文件每秒的平均分贝值后,对前后五秒响铃的数据进行比较,若前后五秒数据走向不高于3dB,则将后五秒的数据与前面的数据合并作为一段数据,以此类推进行初步分段。S202: After obtaining the average decibel value of the audio file per second, compare the data of the five seconds before and after the ringing, if the data of the five seconds before and after the data is not higher than 3 dB, merge the data of the last five seconds with the previous data as a segment. Data, and so on, are initially segmented.
考虑到一般来电或者提醒铃音时长太短播放效果不好,太长又播放不完整,所以可规定最短播放时长为20±5,最长播放时长为40±5(一般来电铃音持续42秒左右),在分析每秒平均数据时,可从音频文件的第15 秒开始,判断15秒时刻的前后5秒数据的走向,若前后五秒数据走向不高于3dB(即,前5秒的5个每秒平均分贝值的平均值与后5秒的5个每秒平均分贝值的平均值之差不大于3db),则将后5秒的数据与前面15秒的数据合并作为一段数据,否则将前15秒的数据划分为一个音频片段,以此类推进行初步分段。Considering that the general caller or reminder ring tone is too short, the playback effect is not good, too long and the play is incomplete, so the minimum play duration is 20±5, and the longest play duration is 40±5 (the general call ring tone lasts for 42 seconds). Left and right), when analyzing the average data per second, it can judge the direction of the data of 5 seconds before and after the 15 seconds from the 15th second of the audio file, if the data of the five seconds before and after is no more than 3dB (ie, the first 5 seconds) The difference between the average of 5 average decibels per second and the average of 5 average decibels per second of 5 seconds is no more than 3db), and the data of the last 5 seconds is combined with the data of the previous 15 seconds as a piece of data. Otherwise, the first 15 seconds of data is divided into an audio segment, and so on.
S203:初步分段结束后,对于时长过短的分段,获取相邻分段的平均分贝值与当前分段的平均分贝值进行比较,将当前分段与平均分贝值接近的相邻分段进行合并;对于过长的分段,根据总时长以及规定的最短以及最长播放时长进行再分段,分段结束后计算每个分段数据的平均分贝值,按照平均分贝值高低划分为从1开始的响度等级。S203: After the initial segmentation is finished, for the segment with a short duration, the average decibel value of the obtained segment is compared with the average decibel value of the current segment, and the adjacent segment with the current segment and the average decibel value is adjacent. For the long segmentation, the segmentation is performed according to the total duration and the specified minimum and maximum playback duration. After the segmentation, the average decibel value of each segmentation data is calculated, and the average decibel value is divided into 1 The level of loudness at the beginning.
S204:将分好的音频分段数据信息存入数据库,数据库中主要存在音频文件的名称等文件信息,音频文件的最大分段数,音频文件的分段数据(包括开始时间和结束时间),以及音频文件分段数据的响度分级数和环境噪音的分级数。S204: storing the divided audio segmentation data information into the database, where the file information such as the name of the audio file, the maximum number of segments of the audio file, and the segmentation data of the audio file (including the start time and the end time), And the number of loudness levels of the audio file segmentation data and the number of levels of environmental noise.
本公开的实施例的方法的第二个部分则对应于提醒事件来临时的音频分段播放过程。图5是根据本公开实施例的临时音频分段播放的流程图,如图5所示,该播放过程包括:The second portion of the method of an embodiment of the present disclosure corresponds to an audio segmentation playback process that is temporary to the reminder event. FIG. 5 is a flowchart of temporary audio segment playback according to an embodiment of the present disclosure. As shown in FIG. 5, the playback process includes:
S301:当提醒事件来临时,触发分段音频匹配以及播放过程,提醒事件为需要播放音频文件(如来电铃音,闹钟提醒铃音等)的事件,如来电,闹钟时刻到达等。S301: When the reminding event comes, the segmented audio matching and the playing process are triggered, and the reminding event is an event that needs to play an audio file (such as an incoming call ring tone, an alarm alarm ringing tone, etc.), such as an incoming call, an alarm time arrives, and the like.
S302:获取环境噪音数据,环境噪音数据的分级可由用户选择的分级数据决定,例如用户选择的噪音分级为三级时,则根据传统噪音分级标准以及当前用户选择的噪音分级对噪音阈值重新划分,从而确定当前获取的环境噪音等级。S302: Acquire environmental noise data, and the classification of the environmental noise data may be determined by the grading data selected by the user. For example, when the noise level selected by the user is three levels, the noise threshold is re-divided according to the traditional noise grading standard and the noise grading selected by the current user. Thereby determining the currently acquired ambient noise level.
S303:当环境噪音数据获取后,根据对应的环境噪音等级在音频文件分段数据库中查找对应分级的音频分段(音频片段)。由于响度级与噪音分段等级并非一一对应关系,在查找对应分级时,假设噪音分级为m级, 音频文件响度分级为n级,当前噪音等级为i,利用如下公式计算出当前要匹配的音频文件分段等级:i*(n/m),对计算结果取整来获取要匹配的音频文件分段等级。S303: After the environmental noise data is acquired, the corresponding segmented audio segment (audio segment) is searched in the audio file segment database according to the corresponding environmental noise level. Since the loudness level and the noise segmentation level are not one-to-one correspondence, when searching for the corresponding classification, it is assumed that the noise level is m level, the audio file loudness is graded to n level, and the current noise level is i, and the current formula is used to calculate the current matching. Audio file segmentation level: i*(n/m), round the calculation result to obtain the audio file segmentation level to be matched.
S304:若成功查找出对应的音频分段数据,则将查找到的音频分段作为提醒事件的铃音进行播放;若存在多个同等级的音频分段数据,则可产生一个随机数,根据产生的随机数随机从查找出的等级结果中随机选取一个音频分段数据进行播放。S304: If the corresponding audio segment data is successfully found, the found audio segment is played as a ringing tone of the reminding event; if there are multiple audio segment data of the same level, a random number may be generated, according to The generated random number randomly randomly selects one audio segment data from the searched level results for playing.
S305:如果匹配不成功,则按照传统方式,从头播放音频文件作为提醒铃音。S305: If the matching is unsuccessful, the audio file is played from the beginning as a reminder ring tone in a conventional manner.
由于本公开实施例是个完整功能,所以需要设置对应的用户设置入口,供用户选择功能是否打开并且设置相关参数。图6是根据本公开实施例的分段设置铃音设置的示意图,如图6所示,该功能需要在设置界面增加一个分段设置铃音的菜单入口,当用户点击菜单时进入分段设置铃音功能界面。该界面提供用户一个开关,用来打开或者关闭分段设置铃音功能,同时还提供用户设置环境噪音分级数的菜单。当用户打开了分段设置铃音功能时,对用户选择的铃音文件进行响度走向分析,然后将分析数据按照计算结果进行分段,最后将音频文件的分段数据以及对应的分级,音频文件名称等都存入数据库。当有来电等场景时,根据用户设置的环境噪音分级数,对检测到的环境噪音进行分级,同时根据环境噪音等级从数据库中匹配出对应等级的音频分段进行播放。这样用户就可以根据环境不同听到一首音频文件的不同部分,既满足了不同环境对铃音的需求,同时也更加具有趣味性。Since the embodiment of the present disclosure is a complete function, it is necessary to set a corresponding user setting entry for the user to select whether the function is turned on and set relevant parameters. 6 is a schematic diagram of a segment setting ring tone setting according to an embodiment of the present disclosure. As shown in FIG. 6 , the function needs to add a menu entry of a segment setting ring tone in the setting interface, and enter a segment setting when the user clicks the menu. Ring tone function interface. The interface provides the user with a switch to turn the segmentation ringtone function on or off, and also provides a menu for the user to set the ambient noise rating. When the user turns on the segment setting ring tone function, the ringtone file selected by the user is subjected to loudness analysis, and then the analysis data is segmented according to the calculation result, and finally the segmentation data of the audio file and the corresponding hierarchical and audio files are obtained. Names and so on are stored in the database. When there is a scene such as an incoming call, the detected environmental noise is classified according to the environmental noise classification number set by the user, and the audio segment corresponding to the corresponding level is played from the database according to the environmental noise level for playing. In this way, the user can hear different parts of an audio file according to different environments, which not only meets the needs of the ring tone in different environments, but also is more interesting.
实施例2Example 2
根据本公开的另一个实施例,还提供了一种铃音设置装置,图7是根据本公开实施例的铃音设置装置的框图,如图7所示,该铃音设置装置包括:According to another embodiment of the present disclosure, there is also provided a ring tone setting device, and FIG. 7 is a block diagram of a ring tone setting device according to an embodiment of the present disclosure. As shown in FIG. 7, the ring tone setting device includes:
检测模块72,配置为当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;The detecting module 72 is configured to detect a decibel value of the environmental noise when the voice call is detected, and determine the level of the environmental noise according to the decibel value;
确定模块74,配置为根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;The determining module 74 is configured to determine an audio segment corresponding to the decibel value according to a matching relationship between the preset environmental noise level and the audio segment;
设置模块76,配置为将确定的所述音频片段设置为铃音进行播放。The setting module 76 is configured to set the determined audio segment as a ring tone for playing.
在一个实施方式中,所述铃音设置装置还包括:In an embodiment, the ring tone setting device further includes:
第一提取模块,配置为提取音频文件中预定时间间隔内的平均分贝值;a first extraction module configured to extract an average decibel value within a predetermined time interval in the audio file;
第一划分模块,配置为根据所述平均分贝值的大小变化将所述音频文件划分成不同等级的多段音频片段;The first dividing module is configured to divide the audio file into different levels of multi-segment audio segments according to the size change of the average decibel value;
第一匹配模块,配置为根据所述多段音频片段的平均分贝值将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。The first matching module is configured to match the preset environmental noise level with the multi-segment audio segment according to an average decibel value of the multi-segment audio segment, and set a matching relationship between the environmental noise level and the audio segment.
在一个实施方式中,所述铃音设置装置还包括:In an embodiment, the ring tone setting device further includes:
第二提取模块,配置为提取音频文件中预定时间间隔内的速度;a second extraction module configured to extract a speed within a predetermined time interval in the audio file;
第二划分模块,配置为根据所述速度的大小变化将所述音频文件划分成不同等级的多段音频片段;a second dividing module, configured to divide the audio file into different levels of multi-segment audio segments according to the size change of the speed;
第二匹配模块,配置为根据所述多段音频片段的速度将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。The second matching module is configured to match the preset environmental noise level with the plurality of audio segments according to the speed of the plurality of audio segments, and set a matching relationship between the ambient noise level and the audio segment.
在一个实施方式中,所述铃音设置装置还包括:In an embodiment, the ring tone setting device further includes:
第三提取模块,配置为提取音频文件中预定时间间隔内声波的频率和振幅;a third extraction module configured to extract a frequency and an amplitude of the sound wave within a predetermined time interval in the audio file;
第三划分模块,配置为根据所述声波的频率和振幅的大小变化将所述音频文件划分成不同等级的多段音频片段;a third dividing module configured to divide the audio file into different levels of multi-segment audio segments according to a change in a frequency and an amplitude of the sound wave;
第三匹配模块,配置为根据所述多段音频片段的声波的频率和振幅将 预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。The third matching module is configured to match the preset environmental noise level with the plurality of audio segments according to the frequency and amplitude of the sound waves of the plurality of audio segments, and set a matching relationship between the ambient noise level and the audio segment.
本公开实施例不需要引入其他硬件设备。Embodiments of the present disclosure do not require the introduction of other hardware devices.
图8是根据本公开实施例的铃音设置装置的框图。如图8所示,该铃音设置装置主要包括:音频数据分析单元82,环境数据分析单元84,存储单元86,数据匹配单元88。其中部分单元的功能由上述的检测模块72、确定模块74以及设置模块76部分或全部实现。下面对各个单元进行详细描述。FIG. 8 is a block diagram of a ring tone setting device according to an embodiment of the present disclosure. As shown in FIG. 8, the ring tone setting device mainly includes an audio data analyzing unit 82, an environment data analyzing unit 84, a storage unit 86, and a data matching unit 88. The functions of some of the units are implemented in part or in whole by the detection module 72, the determination module 74, and the setting module 76 described above. Each unit will be described in detail below.
音频数据分析单元82配置为当用户选择一首音频文件作为铃音时,对选择的音频文件做分析,根据音频文件每秒平均分贝值高低,对音频文件按照响度走向高低进行分段。本公开实施例不限于仅通过音频文件的响度值进行分段,还可以综合考虑音频文件的音调作为参数来将音频文件分段。本领域技术人员知晓,声波的频率决定声音的音调,声波的振幅决定声音的响度,因此分析时可同时提取音频文件声波的频率以及振幅来综合进行分段。另外,如上文所述,还可以根据音乐的速度作为分段依据。The audio data analyzing unit 82 is configured to analyze the selected audio file when the user selects an audio file as the ring tone, and segment the audio file according to the loudness level according to the average decibel value of the audio file per second. Embodiments of the present disclosure are not limited to segmentation only by the loudness value of the audio file, and the audio file may be segmented by considering the pitch of the audio file as a parameter. Those skilled in the art know that the frequency of the sound wave determines the pitch of the sound, and the amplitude of the sound wave determines the loudness of the sound. Therefore, the frequency and amplitude of the sound wave of the audio file can be simultaneously extracted for comprehensive segmentation. In addition, as described above, it is also possible to use the speed of music as a segmentation basis.
环境数据分析单元84配置为在播放提醒铃音前对用户所处的环境噪音进行分析,根据噪音数据来确定用户所处的环境。例如,根据环境噪声标准,将噪音分五级,分别对应如下值:The environmental data analysis unit 84 is configured to analyze the environmental noise of the user before playing the alert ring tone, and determine the environment in which the user is located based on the noise data. For example, according to the environmental noise standard, the noise is divided into five levels, corresponding to the following values:
重度污染:>65.0分贝Heavy pollution: >65.0 decibels
中度污染:60.0-65.0分贝Moderate pollution: 60.0-65.0 decibels
轻度污染:55.0-60.0分贝Mild pollution: 55.0-60.0 dB
较好:50.0-55.0分贝Better: 50.0-55.0 decibels
好:≤50.0分贝Good: ≤ 50.0 dB
可根据用户选择的分级对噪音等级进行重新划分,例如当用户选择噪音等级为三级时,噪音等级可以分为轻度污染,中度污染和中度,将下面三级标准(轻度污染、较好、好)进行合并;如果用户选择噪音分级为四 级,则对好和较好标准进行合并;如果用户选择噪音分级为五级,则不必进行重新划分,以此标准作为环境噪音等级标准。The noise level can be re-divided according to the user-selected classification. For example, when the user selects the noise level to be three levels, the noise level can be divided into mild pollution, moderate pollution and moderate, and the following three levels of standards (light pollution, Better, better) to merge; if the user chooses the noise level to be four, then the good and good standards are combined; if the user chooses the noise level to be five, then there is no need to re-divide, this standard is used as the environmental noise level standard. .
存储单元86配置为存储音频文件的名称以及分段数据(音频文件分段的开始时间和结束时间),分段等级值,分段平均响度值等。当音频数据分析单元82对音频文件响度走向分析结束后,存储单元86将音频文件的名称,分段数据,对应的分段等级值以及分段平均响度值等存入数据库,供提醒铃音来时匹配使用。The storage unit 86 is configured to store the name of the audio file as well as the segmentation data (the start time and end time of the audio file segment), the segmentation level value, the segment average loudness value, and the like. After the audio data analysis unit 82 finishes analyzing the audio file loudness trend, the storage unit 86 stores the name of the audio file, the segment data, the corresponding segmentation level value, and the segment average loudness value into the database for reminding the ringtone. Match when used.
数据匹配单元88配置为当有提醒事件来临时,例如来电时,根据获取的环境噪音的分贝值确定环境噪音的等级,并在数据库中匹配对应的音频分段数据。这里音频分段等级值与环境噪音值有一定的匹配关系,例如如果将环境噪音分为三级,当检测到用户所处环境的噪音等级属于其中某一级时,则在数据库中查找对应等级。在一个实施方式中,可先查找和环境噪音响度值接近的响度的音频分段,如果查找不到,则根据以下准则进行匹配:假设噪音分级为m级,音频文件响度分级为n级,当前噪音等级为i,利用如下公式计算出当前要匹配的音频文件分段等级:i*(n/m),如果存在多个同级的分段时,则随机播放其中一个分段作为提醒铃音。The data matching unit 88 is configured to determine the level of the environmental noise based on the decibel value of the acquired environmental noise when there is a reminder event, such as an incoming call, and match the corresponding audio segmentation data in the database. Here, the audio segmentation level value has a certain matching relationship with the environmental noise value. For example, if the environmental noise is divided into three levels, when it is detected that the noise level of the environment in which the user is located belongs to one of the levels, the corresponding level is searched in the database. . In one embodiment, the audio segment of the loudness close to the ambient noise loudness value may be first searched, and if not found, the matching is performed according to the following criteria: assuming the noise level is m level, the audio file loudness is graded n, current The noise level is i, and the audio file segmentation level to be matched is calculated by the following formula: i*(n/m). If there are multiple segments of the same level, one of the segments is randomly played as the reminder ringtone. .
实施例3Example 3
本公开的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述实施例中的方法。Embodiments of the present disclosure also provide a storage medium including a stored program, wherein the above-described embodiment is executed when the program is executed.
在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:In this embodiment, the above storage medium may be configured to store program code for performing the following steps:
S11,当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;S11. When a voice call is detected, detecting a decibel value of the ambient noise, and determining a level of the ambient noise according to the decibel value;
S12,根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;S12. Determine an audio segment corresponding to the decibel value according to a matching relationship between a preset environmental noise level and an audio segment.
S13,将确定的所述音频片段设置为铃音进行播放。S13. Set the determined audio segment as a ringtone for playing.
在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。In this embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
实施例4Example 4
本公开的实施例还提供了一种处理器,该处理器用于运行程序,其中,该程序运行时执行上述实施例中的方法中的步骤。Embodiments of the present disclosure also provide a processor for running a program, wherein the program is executed to perform the steps of the method in the above embodiments.
在本实施例中,上述程序用于执行以下步骤:In this embodiment, the above program is used to perform the following steps:
S31,当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;S31. When a voice call is detected, detecting a decibel value of the ambient noise, and determining a level of the ambient noise according to the decibel value;
S32,根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;S32. Determine an audio segment corresponding to the decibel value according to a matching relationship between a preset environmental noise level and an audio segment.
S33,将确定的所述音频片段设置为铃音进行播放。S33. Set the determined audio segment as a ringtone for playing.
本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,本公开的上述各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在两个计算装置所组成的网络上。可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的两个模块或步骤制作成单个集成电路模块来实现。这样,本公开不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above modules or steps of the present disclosure can be implemented by a general computing device, which can be concentrated on a single computing device or distributed on a network composed of two computing devices. . Alternatively, they may be implemented by program code executable by a computing device such that they may be stored in a storage device by a computing device and, in some cases, may be executed in a different order than herein. The steps shown or described are either made separately for individual integrated circuit modules, or two of them are fabricated as a single integrated circuit module. As such, the disclosure is not limited to any specific combination of hardware and software.
以上所述仅为本公开的优选实施例而已,并不用于限制本公开,对于本领域的技术人员来说,本公开可以有各种更改和变化。凡在本公开的原 则之内,所作的任何修改、等同替换、改进等,均应包含在本公开的保护范围之内。The above description is only a preferred embodiment of the present disclosure, and is not intended to limit the disclosure, and various changes and modifications may be made to the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (12)

  1. 一种铃音设置方法,包括:A method for setting a ring tone, comprising:
    当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;When a voice call is detected, detecting a decibel value of the ambient noise, and determining a level of the ambient noise according to the decibel value;
    根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;以及Determining an audio segment corresponding to the decibel value according to a matching relationship between a preset environmental noise level and an audio segment;
    将确定的所述音频片段设置为铃音进行播放。The determined audio segment is set as a ring tone for playing.
  2. 根据权利要求1所述的方法,其中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:The method according to claim 1, wherein before the decibel value of the ambient noise is detected, and the level of the ambient noise is determined according to the decibel value, the method further comprises:
    提取音频文件中预定时间间隔内的平均分贝值;Extracting an average decibel value within a predetermined time interval in the audio file;
    根据所述平均分贝值的大小变化将所述音频文件划分成不同等级的多段音频片段;以及Dividing the audio file into different levels of multi-segment audio segments according to a change in size of the average decibel value;
    根据所述多段音频片段的平均分贝值将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。And matching the preset environmental noise level with the multi-segment audio segment according to an average decibel value of the plurality of audio segments, and setting a matching relationship between the environmental noise level and the audio segment.
  3. 根据权利要求1所述的方法,其中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:The method according to claim 1, wherein before the decibel value of the ambient noise is detected, and the level of the ambient noise is determined according to the decibel value, the method further comprises:
    提取音频文件中预定时间间隔内的速度;Extracting the speed in the audio file for a predetermined time interval;
    根据所述速度的大小变化将所述音频文件划分成不同等级的多段音频片段;以及Dividing the audio file into different levels of multi-segment audio segments according to the change in the speed; and
    根据所述多段音频片段的速度将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。And matching the preset environmental noise level with the plurality of audio segments according to the speed of the plurality of audio segments, and setting a matching relationship between the ambient noise level and the audio segment.
  4. 根据权利要求1所述的方法,其中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:The method according to claim 1, wherein before the decibel value of the ambient noise is detected, and the level of the ambient noise is determined according to the decibel value, the method further comprises:
    提取音频文件中预定时间间隔内声波的频率和振幅;Extracting the frequency and amplitude of the sound wave within a predetermined time interval in the audio file;
    根据所述声波的频率和振幅的大小变化将所述音频文件划分成不同等级的多段音频片段;以及Dividing the audio file into different levels of multi-segment audio segments according to changes in the frequency and amplitude of the sound waves;
    根据所述多段音频片段的声波的频率和振幅将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。And matching the preset environmental noise level with the plurality of audio segments according to the frequency and amplitude of the sound waves of the plurality of audio segments, and setting a matching relationship between the ambient noise level and the audio segment.
  5. 根据权利要求2至4中任一项所述的方法,其中,所述方法还包括:The method of any one of claims 2 to 4, wherein the method further comprises:
    将所述多段音频片段按照时间点为基础进行存储。The plurality of pieces of audio are stored on a time point basis.
  6. 根据权利要求1至4中任一项所述的方法,其中,在检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级之前,所述方法还包括:The method according to any one of claims 1 to 4, wherein before the decibel value of the ambient noise is detected, and the level of the ambient noise is determined according to the decibel value, the method further comprises:
    接收启动分段设置铃音功能的启动指令;以及Receiving a start command to initiate a segment setting ring tone function;
    根据所述启动指令开启分段设置铃音功能。The segmentation ring tone function is turned on according to the start command.
  7. 一种铃音设置装置,包括:A ring tone setting device, comprising:
    检测模块,配置为当检测到语音呼叫时,检测环境噪音的分贝值,根据所述分贝值确定所述环境噪音的等级;a detecting module configured to detect a decibel value of the environmental noise when the voice call is detected, and determine a level of the environmental noise according to the decibel value;
    确定模块,配置为根据预先设置的环境噪音等级与音频片段的匹配关系确定与所述分贝值对应的音频片段;以及a determining module configured to determine an audio segment corresponding to the decibel value according to a matching relationship between a preset environmental noise level and an audio segment;
    设置模块,配置为将确定的所述音频片段设置为铃音进行播放。And a setting module configured to set the determined audio segment as a ring tone for playing.
  8. 根据权利要求7所述的装置,还包括:The apparatus of claim 7 further comprising:
    第一提取模块,配置为提取音频文件中预定时间间隔内的平均分贝值;a first extraction module configured to extract an average decibel value within a predetermined time interval in the audio file;
    第一划分模块,配置为根据所述平均分贝值的大小变化将所述音频文件划分成不同等级的多段音频片段;以及a first dividing module configured to divide the audio file into different levels of multi-segment audio segments according to a change in size of the average decibel value;
    第一匹配模块,配置为根据所述多段音频片段的平均分贝值将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。The first matching module is configured to match the preset environmental noise level with the multi-segment audio segment according to an average decibel value of the multi-segment audio segment, and set a matching relationship between the environmental noise level and the audio segment.
  9. 根据权利要求7所述的装置,还包括:The apparatus of claim 7 further comprising:
    第二提取模块,配置为提取音频文件中预定时间间隔内的速度;a second extraction module configured to extract a speed within a predetermined time interval in the audio file;
    第二划分模块,配置为根据所述速度的大小变化将所述音频文件划分成不同等级的多段音频片段;以及a second dividing module configured to divide the audio file into different levels of multi-segment audio segments according to a change in size of the speed;
    第二匹配模块,配置为根据所述多段音频片段的速度将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。The second matching module is configured to match the preset environmental noise level with the plurality of audio segments according to the speed of the plurality of audio segments, and set a matching relationship between the ambient noise level and the audio segment.
  10. 根据权利要求7所述的装置,还包括:The apparatus of claim 7 further comprising:
    第三提取模块,配置为提取音频文件中预定时间间隔内声波的频率和振幅;a third extraction module configured to extract a frequency and an amplitude of the sound wave within a predetermined time interval in the audio file;
    第三划分模块,配置为根据所述声波的频率和振幅的大小变化将所述音频文件划分成不同等级的多段音频片段;以及a third dividing module configured to divide the audio file into different levels of audio segments according to a change in a frequency and an amplitude of the sound wave;
    第三匹配模块,配置为根据所述多段音频片段的声波的频率和振幅将预设的环境噪音等级与所述多段音频片段进行匹配,设置所述环境噪音等级与音频片段的匹配关系。The third matching module is configured to match the preset environmental noise level with the plurality of audio segments according to the frequency and amplitude of the sound waves of the plurality of audio segments, and set a matching relationship between the ambient noise level and the audio segment.
  11. 一种存储介质,包括存储的程序,其中,所述程序运行时执行权利要求1至6中任一项所述的方法。A storage medium comprising a stored program, wherein the program is executed to perform the method of any one of claims 1 to 6.
  12. 一种处理器,配置为运行程序,其中,所述程序运行时执行权利要求1至6中任一项所述的方法。A processor configured to execute a program, wherein the program is executed to perform the method of any one of claims 1 to 6.
PCT/CN2018/103803 2017-09-14 2018-09-03 Ring tone setting method and apparatus WO2019052361A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710825983.6A CN109510907B (en) 2017-09-14 2017-09-14 Ring tone setting method and device
CN201710825983.6 2017-09-14

Publications (1)

Publication Number Publication Date
WO2019052361A1 true WO2019052361A1 (en) 2019-03-21

Family

ID=65722420

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/103803 WO2019052361A1 (en) 2017-09-14 2018-09-03 Ring tone setting method and apparatus

Country Status (2)

Country Link
CN (1) CN109510907B (en)
WO (1) WO2019052361A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090738A (en) * 2019-04-22 2020-05-01 广东小天才科技有限公司 Double-screen-based photographing question searching method and electronic equipment
CN114422642A (en) * 2021-11-12 2022-04-29 合众新能源汽车有限公司 Vehicle-mounted ringtone playing control method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10243431A (en) * 1997-02-24 1998-09-11 Sharp Corp Radio selective calling receiver
US20020076033A1 (en) * 2000-12-14 2002-06-20 International Business Machines Corporation Intelligent telephone ringer control and method
CN1642185A (en) * 2004-01-12 2005-07-20 夏新电子股份有限公司 Method and apparatus for realizing bell-sound intelligent of hand-held equipment
CN101242597A (en) * 2007-02-05 2008-08-13 联想移动通信科技有限公司 Method and device for automatically selecting scenario mode according to environmental noise method on mobile phone
CN102932554A (en) * 2012-11-14 2013-02-13 广东欧珀移动通信有限公司 System and method for intelligently selecting incoming telegram reminding mode of mobile phone
CN103139358A (en) * 2011-11-25 2013-06-05 中国电信股份有限公司 Audio play terminal and method
CN104270508A (en) * 2014-09-18 2015-01-07 惠州Tcl移动通信有限公司 Method and system for automatically switching over ringtone types on basis of mobile terminal
CN106911837A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method of adjustment and device of the tinkle of bells

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859448A (en) * 2005-09-21 2006-11-08 华为技术有限公司 Ringring prompting method for telephone device
CN101207871B (en) * 2006-12-22 2011-05-25 联想移动通信科技有限公司 Mobile terminal and method for playing music ring
JP2014064093A (en) * 2012-09-20 2014-04-10 Sony Corp Signal processing device and program
US9740906B2 (en) * 2013-07-11 2017-08-22 Practech, Inc. Wearable device
CN105827843A (en) * 2016-03-29 2016-08-03 乐视控股(北京)有限公司 Vibration separation control method and device, and mobile phone

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10243431A (en) * 1997-02-24 1998-09-11 Sharp Corp Radio selective calling receiver
US20020076033A1 (en) * 2000-12-14 2002-06-20 International Business Machines Corporation Intelligent telephone ringer control and method
CN1642185A (en) * 2004-01-12 2005-07-20 夏新电子股份有限公司 Method and apparatus for realizing bell-sound intelligent of hand-held equipment
CN101242597A (en) * 2007-02-05 2008-08-13 联想移动通信科技有限公司 Method and device for automatically selecting scenario mode according to environmental noise method on mobile phone
CN103139358A (en) * 2011-11-25 2013-06-05 中国电信股份有限公司 Audio play terminal and method
CN102932554A (en) * 2012-11-14 2013-02-13 广东欧珀移动通信有限公司 System and method for intelligently selecting incoming telegram reminding mode of mobile phone
CN104270508A (en) * 2014-09-18 2015-01-07 惠州Tcl移动通信有限公司 Method and system for automatically switching over ringtone types on basis of mobile terminal
CN106911837A (en) * 2015-12-23 2017-06-30 北京奇虎科技有限公司 The method of adjustment and device of the tinkle of bells

Also Published As

Publication number Publication date
CN109510907B (en) 2021-04-30
CN109510907A (en) 2019-03-22

Similar Documents

Publication Publication Date Title
CN104954555B (en) A kind of volume adjusting method and system
JP6534452B2 (en) Karaoke processing method and system
CN108074557B (en) Tone adjusting method, device and storage medium
CN101790000B (en) Environmental sound reminding method and mobile terminal
JP2018517919A (en) Voice recognition method, voice wakeup device, voice recognition device, and terminal
JP2017514392A (en) User terminal and method and apparatus for adjusting volume of terminal
CN106992008B (en) Processing method and electronic equipment
CN106168958B (en) A kind of the recommendation method and server of audio-frequency information
CN102917119B (en) Method and system for processing music by mobile terminal according to voice recognition
CN104123115A (en) Audio information processing method and electronic device
CN104158970A (en) Environmental sound prompting method and mobile terminal
WO2015143896A1 (en) Recognition circuit, method, apparatus and system for external device based on earphone socket
JP2017509009A (en) Track music in an audio stream
CN106095384B (en) A kind of effect adjusting method and user terminal
WO2017032025A1 (en) Music playback control method and terminal device
CN110688518A (en) Rhythm point determining method, device, equipment and storage medium
CN108449496A (en) Voice communication data detection method, device, storage medium and mobile terminal
CN108449502A (en) Voice communication data processing method, device, storage medium and mobile terminal
CN110910876A (en) Article sound searching device and control method, and voice control setting method and system
CN108172237A (en) Voice communication data processing method, device, storage medium and mobile terminal
WO2019052361A1 (en) Ring tone setting method and apparatus
CN108449506A (en) Voice communication data processing method, device, storage medium and mobile terminal
EP1624653A1 (en) Ring tone reproduction method for mobile terminal
CN108449497A (en) Voice communication data processing method, device, storage medium and mobile terminal
CN108418982B (en) Voice call data processing method and device, storage medium and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18856416

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18856416

Country of ref document: EP

Kind code of ref document: A1