WO2013178106A1 - Method for controlling earphone audio playing duration and mobile phone - Google Patents

Method for controlling earphone audio playing duration and mobile phone Download PDF

Info

Publication number
WO2013178106A1
WO2013178106A1 PCT/CN2013/077632 CN2013077632W WO2013178106A1 WO 2013178106 A1 WO2013178106 A1 WO 2013178106A1 CN 2013077632 W CN2013077632 W CN 2013077632W WO 2013178106 A1 WO2013178106 A1 WO 2013178106A1
Authority
WO
WIPO (PCT)
Prior art keywords
time
earphone
audio
mobile phone
timer
Prior art date
Application number
PCT/CN2013/077632
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 WO2013178106A1 publication Critical patent/WO2013178106A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2420/00Details of connection covered by H04R, not provided for in its groups
    • H04R2420/05Detection of connection of loudspeakers or headphones to amplifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Definitions

  • the present invention relates to the field of earphone sound control, and in particular to a method and a mobile phone for controlling the duration of earphone playback.
  • a common treatment scheme for controlling the duration of earphone playback is:
  • the timer On the earphone. When the earphone is inserted into the mobile phone, the timer starts to count. When the timer reaches the time set by the user, the earphone will automatically stop the playback operation to achieve the purpose of controlling the duration of the earphone playback.
  • the earphones that have been stopped for playback are headphones. When the user replaces other earphones that have not been stopped for playback, they can continue to listen to the audio with headphones.
  • the present invention provides a method and a mobile phone for controlling the duration of earphone playback to solve the technical problem of how to reduce the damage of the human eardrum by high volume.
  • the present invention provides a method for controlling the duration of a sound emission of a headset, the method comprising:
  • the mobile phone After the mobile phone detects that the headset establishes a connection with the mobile phone, it monitors whether the volume of the audio played by the headset exceeds a preset upper volume limit value;
  • the timer records the time when the earphone continuously plays the audio volume exceeding the upper limit value
  • the output of the audio to the earphone or the transmission of the notification short message is stopped.
  • the method further includes:
  • the handset detects that the headset is disconnected from itself during the time when the timer records that the headset continues to play the audio volume above the upper limit, then a record of the timer is stored.
  • the step of recording the time when the earphone continuously plays the audio volume exceeding the upper limit value by using a timer includes:
  • the volume of the audio played by the earphone exceeds the preset volume upper limit value, it is determined whether the value of the timer is zero, and if the value of the timer is zero, recording the earphone continuous playing audio volume from the zero exceeds the upper limit Value time;
  • the value of the timer is not zero, it is determined whether the time when the connection between the earphone and the mobile phone is interrupted is less than a preset interruption time. If the time is less than the preset interruption time, the earphone is continuously recorded from the stored value of the timer. The time when the audio volume exceeds the upper limit value; if not less than the preset interruption time, the value of the timer is cleared to zero, and the time from when the earphone continues to play the audio volume exceeds the upper limit value is recorded from zero.
  • the steps of sending the prompt notification short message include:
  • a short message is sent to the preset number to notify the short message.
  • the method further includes: The mobile phone receives an instruction message from the preset number and performs an operation corresponding to the instruction message.
  • the present invention further provides a mobile phone for controlling the duration of the earphone playing, including a mobile phone preset module, a headphone detecting module, a volume monitoring module, a timing module and a headphone control module, wherein
  • the mobile phone preset module is configured to: set an audio volume upper limit value and an upper limit time for continuously playing the audio volume exceeding the upper limit value;
  • the earphone detecting module is configured to: detect whether the earphone establishes a connection with the mobile phone, and send a trigger signal to the volume monitoring module after detecting that the earphone establishes a connection with the mobile phone;
  • the volume monitoring module is configured to: after receiving the trigger signal sent by the earphone detecting module, read the set audio volume upper limit value from the mobile phone preset module, and monitor whether the volume of the earphone playing audio exceeds the The audio volume upper limit value; and when the volume of the audio played by the earphone is monitored to exceed the audio volume upper limit value, the earphone playing audio is output to the timing module;
  • the timing module is configured to: after receiving the audio from the volume monitoring module, record a continuous playing time of the audio through a timer, and read the upper limit time from the mobile phone preset module, and record After the audio continuous playing time exceeds the upper limit time, sending a trigger signal to the earphone control module;
  • the earphone control module is configured to: after receiving the trigger signal from the timing module, stop the mobile phone from outputting audio to the earphone or sending a prompt notification short message.
  • the timing module is further configured to: clear the value of the timer when the recorded audio continuous playing time does not exceed the upper limit time; and receive the audio during the continuous playing time by recording the audio through the timer Storing a record of the timer when a disconnection notification is sent from the headset detection module;
  • the earphone detecting module is further configured to: after detecting that the connection established between the earphone and the mobile phone is disconnected, send a connection disconnection notification to the timing module.
  • the mobile phone preset module is further configured to: set a time when the connection between the mobile phone and the earphone is interrupted; and the timing module is configured to receive the audio from the volume monitoring module by using the following manner The timer keeps track of the duration of the audio playback:
  • the timing module is configured to: after receiving the audio from the volume monitoring module, determine whether the value of the timer is zero, if the value of the timer is zero, record the audio from zero Playing time; if the value of the timer is not zero, reading the time when the connection between the set mobile phone and the earphone is interrupted from the mobile phone preset module, and determining whether the time when the connection between the earphone and the mobile phone is interrupted is less than the setting Interruption time, if the time when the connection between the earphone and the mobile phone is interrupted is less than the set interruption time, the audio continuous playing time is recorded from the value already stored by the timer; if the connection between the earphone and the mobile phone is interrupted, the time is not less than When the interrupt time is set, the value of the timer is cleared to zero, and the audio continuous playing time is recorded from zero.
  • the mobile phone preset module is further configured to: set a short message notification number
  • the headset control module sends a prompt notification short message after receiving the trigger signal from the timing module, including:
  • the earphone control module is configured to: after receiving the trigger signal from the timing module, read the set short message notification number from the mobile phone preset module, and send a prompt notification to the set short message notification number short message.
  • the headset control module is further configured to: receive an instruction message from the set short message notification number, and perform an operation corresponding to the instruction message.
  • the time of the high volume audio continuously played by the earphone is used as a reference object for controlling the sounding operation of the earphone, and the damage of the eardrum caused by the long time listening to the high volume audio is irreversible, and the present invention is relatively related to the related art.
  • the damage of the sound to the eardrum is effectively controlled.
  • FIG. 1 is a flow chart of a method for controlling a duration of a sound emission of a headphone according to the embodiment
  • FIG. 2 is a diagram of a mobile phone module for controlling the duration of the earphone playing time according to the embodiment.
  • FIG. 1 is a flow chart of a method for controlling the duration of sounding of a headphone according to the embodiment.
  • step S101 the mobile phone detects whether the headset establishes a connection with the mobile phone, and when it is detected that the headset establishes a connection with the mobile phone, step S102 is performed; otherwise, step S101 is continued;
  • step S102 The mobile phone monitors whether the volume of the audio played by the earphone exceeds the preset volume upper limit value. If the preset volume upper limit value is exceeded, step S103 is performed; otherwise, step S102 is continued;
  • S103 records, by using a timer, a time when the earphone continuously plays the audio volume exceeding the upper limit value; if the timer is in the process of recording the time when the earphone continues to play the audio volume exceeding the upper limit value, the mobile phone detects the earphone and the When the mobile phone is disconnected, the record of the timer is stored;
  • the timer When the timer starts recording time, it is first determined whether the value of the timer for recording the earphone continuous playing audio volume exceeds the upper limit time is zero. If the value of the timer is zero, recording the earphone continuously plays audio from zero. The time when the volume exceeds the upper limit value; if the value of the timer is not zero, it is determined whether the time when the connection between the earphone and the mobile phone is interrupted is less than the preset interruption time, and if it is less than the preset interruption time, the value stored from the timer is stored.
  • step S104 determining whether the time recorded by the timer exceeds a preset duration of the continuous playing audio volume exceeding the upper limit value, if the preset time is exceeded, step S105 is performed; if the preset time is not exceeded, step S106 is performed. ;
  • step S105 stops outputting audio to the earphone or sending a prompt notification short message, and executing step S107;
  • the mobile phone may send a prompt notification short message to the preset number, and after receiving the instruction message from the preset number, perform an operation corresponding to the instruction message, such as stopping outputting an audio operation to the earphone.
  • the duration in which the mobile phone stops outputting the audio operation to the earphone may be preset. After the time is exceeded, the mobile phone may resume outputting the audio function to the earphone.
  • Step 1 The mobile phone detects that the earphone establishes a connection with the mobile phone, and starts monitoring the volume of the audio played by the earphone;
  • Step 2 After the mobile phone monitors that the volume of the audio played by the earphone exceeds the preset volume upper limit value, the timer for recording the continuous playing audio volume of the earphone exceeds the upper limit time is judged;
  • Step 3 The mobile phone determines that the value of the timer is zero, and records the time when the earphone continues to play the audio volume exceeding the upper limit value by using the timer from zero;
  • Step 4 The volume of the audio monitored by the mobile phone is reduced below the upper limit value, and it is determined that the time value recorded by the timer does not exceed the preset time, and the mobile phone clears the timer;
  • Step 5 The mobile phone continues to monitor the volume of the audio played by the headset;
  • Step 6 The mobile phone monitors that the volume of the audio played by the earphone exceeds the preset upper limit value, and continues to judge the timer for recording the continuous playing audio volume of the earphone exceeding the upper limit time;
  • Step 7 The mobile phone determines that the value of the timer is zero, and records the time when the earphone continues to play the audio volume exceeding the upper limit value from the zero through the timer;
  • Step 8 The timer records the time longer than the preset time, and the mobile phone stops outputting audio to the earphone or sends a prompt notification short message.
  • Step 1 The mobile phone detects that the earphone establishes a connection with the mobile phone, and starts monitoring the volume of the audio played by the earphone;
  • Step 2 After the mobile phone monitors that the volume of the audio played by the earphone exceeds the preset volume upper limit value, the timer for recording the continuous playing audio volume of the earphone exceeds the upper limit time is judged;
  • Step 3 The mobile phone determines that the value of the timer is zero, and records the time when the earphone continues to play the audio volume exceeding the upper limit value from the zero through the timer;
  • Step 4 The timer is in the process of recording the earphone continuously playing the audio volume exceeding the upper limit time
  • the mobile phone detects that the earphone is disconnected from the mobile phone, and the mobile phone storage timer records and records the start time of the disconnection;
  • Step 5 The mobile phone detects that the headset re-establishes a connection with the mobile phone, starts monitoring the volume of the audio played by the earphone, and records the connection establishment time;
  • Step 6 The volume of the audio monitored by the mobile phone to the earphone exceeds the preset upper limit value, and the timer for recording the continuous playing audio volume of the earphone exceeds the upper limit time is judged;
  • Step 7 The value of the timer is not zero.
  • the mobile phone calculates the time of the connection interruption by the start time of the disconnected connection and the connection establishment time, and determines whether the calculated connection interruption time is less than the preset connection interruption time;
  • Step 8 The mobile phone determines that the calculated connection interruption time is less than the preset interruption time, and the mobile phone causes the timer to record the time when the earphone continues to play the audio volume exceeding the preset volume upper limit value from the stored value;
  • Step 9 The time when the timer is recorded exceeds the preset duration of the continuous playing audio volume exceeding the upper limit value, the mobile phone stops outputting audio to the earphone or sends a prompt notification.
  • FIG. 2 is a diagram of a mobile phone module for controlling the duration of the earphone playing time according to the embodiment.
  • the mobile phone includes: a mobile phone preset module 201, a headset detecting module 202, a volume monitoring module 203, a timing module 204, and a headset control module 205, wherein
  • the mobile phone preset module 201 is configured to: set an audio volume upper limit value and an upper limit time for continuously playing the audio volume exceeding the upper limit value; the mobile phone preset module 201 is further configured to: set an interruption time of the mobile phone and the earphone,
  • the short message notification module 202 is configured to: detect whether the earphone establishes a connection with the mobile phone, and send a trigger signal to the volume monitoring module 203 after detecting that the earphone establishes a connection with the mobile phone; the earphone detecting module 202 further sets After detecting that the connection established between the earphone and the mobile phone is disconnected, sending a connection disconnection notification to the timing module 204;
  • the volume monitoring module 203 is configured to: after receiving the trigger signal sent by the earphone detecting module 202, read the set audio volume upper limit value from the mobile phone preset module 201, and monitor whether the volume of the earphone playing audio exceeds the audio volume. Upper limit; and the volume at which the audio is monitored for headphones When the audio volume upper limit value is exceeded, the earphone playing audio is output to the timing module 204;
  • the timing module 204 is configured to: after receiving the audio from the volume monitoring module 203, record the continuous playing time of the audio through a timer, and read the set continuous playing audio volume from the mobile phone preset module 201 to exceed the above An upper limit time of the limit value, and after the recorded audio continuous playing time exceeds the set upper limit time, sending a trigger signal to the earphone control module 205; the timing module 204 can also be configured to: continuously play the recorded audio When the time does not exceed the set upper limit time, the timer is cleared; and when the connection disconnection notification sent from the earphone detecting module 202 is received during the recording of the audio continuous playing time by the timer , storing a record of the timer;
  • the timing module 204 is further configured to: after receiving the audio from the volume monitoring module 203, first determine whether the value of the timer for recording the audio continuous playing time is zero, if the value of the timer is zero, from zero Start recording the audio continuous playing time; if the value of the timer is not zero, read the disconnected time between the set mobile phone and the earphone from the mobile phone preset module 201, and determine whether the time when the earphone and the mobile phone connection are interrupted is less than the interrupt of the setting Time, if the time when the connection between the earphone and the mobile phone is interrupted is less than the set interruption time, the audio continuous playing time is recorded from the stored value of the timer; if the connection between the earphone and the mobile phone is interrupted for not less than the set interruption time, Then, the value of the timer is cleared, and the audio continuous playing time is recorded from zero.
  • the earphone control module 205 is configured to: after receiving the trigger signal from the timing module 204, stop the mobile phone from outputting audio to the earphone or send a prompt notification short message;
  • the headset control module 205 is further configured to: after receiving the trigger signal from the timing module 204, read the set short message notification number from the mobile phone preset module 201, and send the short message notification number to the set Prompt notification short message;
  • the headset control module 205 is further configured to: receive an instruction message from the set short message notification number, and perform an operation corresponding to the instruction message.
  • the time of the high volume audio continuously played by the earphone is used as a reference object for controlling the sounding operation of the earphone, and the damage of the eardrum caused by the long time listening to the high volume audio is irreversible, and the present invention is relatively related to the related art.
  • the damage of the sound to the eardrum is effectively controlled.

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

A method for controlling earphone audio playing duration and a mobile phone. The method comprises: after a mobile phone detects that an earphone sets up a connection with the mobile phone, monitoring whether the volume of audio played by the earphone exceeds a preset upper limit volume value; when a mobile phone monitors that the volume of the audio played by the earphone exceeds a preset upper limit volume value, recording, through a timer, time that the volume of the audio continuously played by the earphone exceeds the upper limit value; and after the time recorded by the timer exceeds a preset time, stopping outputting audio or sending a prompt notification short message to the earphone.

Description

一种控制耳机放音时长的方法及手机  Method for controlling duration of earphone playback and mobile phone
技术领域 Technical field
本发明涉及耳机声音控制领域, 尤其涉及一种控制耳机放音时长的方法 及手机。  The present invention relates to the field of earphone sound control, and in particular to a method and a mobile phone for controlling the duration of earphone playback.
背景技术 Background technique
随着支持多媒体功能的手机的普及, 越来越多的青少年开始利用手机进 行收听音乐、 观看视频等娱乐活动。 由于自控能力有限, 青少年用户常常不 能自觉控制使用耳机的时间, 而这类用户又正处于身体成长发育阶段, 如果 长时间收听大音量的音频节目, 不仅会对耳膜造成伤害, 严重地还会引发听 觉衰弱症。 目前对于耳机放音时长进行控制的一种普遍处理方案是:  With the popularity of multimedia-enabled mobile phones, more and more teenagers are beginning to use their mobile phones to listen to music, watch videos and other entertainment activities. Due to limited self-control ability, young users often cannot consciously control the time of using headphones. Such users are in the stage of physical growth and development. If you listen to high-volume audio programs for a long time, it will not only cause damage to the eardrum, but also cause serious damage. Hearing impaired. A common treatment scheme for controlling the duration of earphone playback is:
在耳机上设置计时器, 当耳机***手机后, 计时器开始计时, 当计时器 达到用户设定好的时间后, 耳机会自动停止放音工作, 以达到对耳机放音时 长进行控制的目的。  Set the timer on the earphone. When the earphone is inserted into the mobile phone, the timer starts to count. When the timer reaches the time set by the user, the earphone will automatically stop the playback operation to achieve the purpose of controlling the duration of the earphone playback.
该处理方案存在下面两个问题:  There are two problems with this processing scheme:
1、被停止放音操作的是耳机, 当用户更换其他没有被停止放音操作的耳 机后, 仍可继续用耳机收听音频;  1. The earphones that have been stopped for playback are headphones. When the user replaces other earphones that have not been stopped for playback, they can continue to listen to the audio with headphones.
2、 仅对耳机使用时间进行监控, 未考虑音量参数对耳膜的影响, 而大音 量的声波相当于小音量的声波而言, 其更容易对耳膜造成不可逆损害。  2. Only monitor the use time of the earphones, and do not consider the influence of the volume parameters on the eardrum, while the sound of a large volume is equivalent to the sound of a small volume, which is more likely to cause irreversible damage to the eardrum.
可见, 找到一种控制耳机放音时长的方法, 对耳膜更加有效的保护是必 要的。 发明内容 本发明提供了一种控制耳机放音时长的方法及手机, 以解决如何减少高 音量对人体耳膜伤害的技术问题。 为解决上述技术问题, 本发明提供了一种控制耳机放音时长的方法, 所 述方法包括: It can be seen that a method of controlling the duration of the earphone playback is found, and more effective protection of the eardrum is necessary. SUMMARY OF THE INVENTION The present invention provides a method and a mobile phone for controlling the duration of earphone playback to solve the technical problem of how to reduce the damage of the human eardrum by high volume. In order to solve the above technical problem, the present invention provides a method for controlling the duration of a sound emission of a headset, the method comprising:
当手机检测到耳机与所述手机建立连接后, 监测耳机播放音频的音量是 否超过预设音量上限值;  After the mobile phone detects that the headset establishes a connection with the mobile phone, it monitors whether the volume of the audio played by the headset exceeds a preset upper volume limit value;
当***测到耳机播放音频的音量超过预设音量上限值时, 通过定时器 记录耳机持续播放音频音量超过所述上限值的时间; 以及  When the mobile phone monitors that the volume of the audio played by the earphone exceeds the preset upper limit value, the timer records the time when the earphone continuously plays the audio volume exceeding the upper limit value;
当所述定时器记录的时间超过预设时间后, 停止向耳机输出音频或发送 提示通知短消息。  When the time recorded by the timer exceeds the preset time, the output of the audio to the earphone or the transmission of the notification short message is stopped.
所述方法还包括:  The method further includes:
如果所述定时器记录的时间没有超过所述预设时间, 则对所述定时器的 值清零; 以及  If the time recorded by the timer does not exceed the preset time, the value of the timer is cleared;
如果在述定时器记录耳机持续播放音频音量超过所述上限值的时间的过 程中, 手机检测到耳机与自身断开连接, 则存储定时器的记录。  If the handset detects that the headset is disconnected from itself during the time when the timer records that the headset continues to play the audio volume above the upper limit, then a record of the timer is stored.
所述当耳机播放音频的音量超过预设音量上限值时, 通过定时器记录耳 机持续播放音频音量超过所述上限值的时间的步骤包括:  When the volume of the audio played by the earphone exceeds the preset volume upper limit value, the step of recording the time when the earphone continuously plays the audio volume exceeding the upper limit value by using a timer includes:
当耳机播放音频的音量超过预设音量上限值时, 判断所述定时器的值是 否为零, 如果所述定时器的值为零, 从零开始记录耳机持续播放音频音量超 过所述上限值的时间; 以及  When the volume of the audio played by the earphone exceeds the preset volume upper limit value, it is determined whether the value of the timer is zero, and if the value of the timer is zero, recording the earphone continuous playing audio volume from the zero exceeds the upper limit Value time; and
如果所述定时器的值不为零, 判断耳机与手机连接中断的时间是否小于 预设的中断时间, 如果小于预设的中断时间, 则从所述定时器已存储的值开 始记录耳机持续播放音频音量超过所述上限值的时间; 如果不小于预设的中 断时间, 则将所述定时器的值清零, 从零开始记录耳机持续播放音频音量超 过所述上限值的时间。  If the value of the timer is not zero, it is determined whether the time when the connection between the earphone and the mobile phone is interrupted is less than a preset interruption time. If the time is less than the preset interruption time, the earphone is continuously recorded from the stored value of the timer. The time when the audio volume exceeds the upper limit value; if not less than the preset interruption time, the value of the timer is cleared to zero, and the time from when the earphone continues to play the audio volume exceeds the upper limit value is recorded from zero.
所述定时器记录的时间超过预设时间后, 发送提示通知短消息的步骤包 括:  After the timer records the time exceeding the preset time, the steps of sending the prompt notification short message include:
所述定时器记录的时间超过预设时间后, 向预设号码发送提示通知短消 息。  After the time recorded by the timer exceeds the preset time, a short message is sent to the preset number to notify the short message.
所述方法还包括: 手机接收来自所述预设号码的指令消息, 并执行所述指令消息对应的操 作。 The method further includes: The mobile phone receives an instruction message from the preset number and performs an operation corresponding to the instruction message.
为解决上述技术问题, 本发明还提供了一种控制耳机放音时长的手机, 包括手机预设模块、 耳机检测模块、 音量监测模块、 计时模块和耳机控制模 块, 其中, In order to solve the above technical problem, the present invention further provides a mobile phone for controlling the duration of the earphone playing, including a mobile phone preset module, a headphone detecting module, a volume monitoring module, a timing module and a headphone control module, wherein
所述手机预设模块是设置成: 设置音频音量上限值和持续播放音频音量 超过所述上限值的上限时间;  The mobile phone preset module is configured to: set an audio volume upper limit value and an upper limit time for continuously playing the audio volume exceeding the upper limit value;
所述耳机检测模块是设置成: 检测耳机与手机是否建立连接, 以及在检 测到耳机与手机建立连接后, 向所述音量监测模块发出触发信号;  The earphone detecting module is configured to: detect whether the earphone establishes a connection with the mobile phone, and send a trigger signal to the volume monitoring module after detecting that the earphone establishes a connection with the mobile phone;
所述音量监测模块是设置成: 接收到所述耳机检测模块发出的触发信号 后, 从所述手机预设模块读取设置的音频音量上限值, 并监测耳机播放音频 的音量是否超过所述音频音量上限值; 并在监测到耳机播放音频的音量超过 所述音频音量上限值时, 将耳机播放音频输出到计时模块;  The volume monitoring module is configured to: after receiving the trigger signal sent by the earphone detecting module, read the set audio volume upper limit value from the mobile phone preset module, and monitor whether the volume of the earphone playing audio exceeds the The audio volume upper limit value; and when the volume of the audio played by the earphone is monitored to exceed the audio volume upper limit value, the earphone playing audio is output to the timing module;
所述计时模块是设置成: 收到来自所述音量监测模块的音频后, 通过定 时器记录所述音频的持续播放时间, 并从所述手机预设模块读取所述上限时 间, 并在记录的音频持续播放时间超过所述上限时间后, 向所述耳机控制模 块发送触发信号; 以及  The timing module is configured to: after receiving the audio from the volume monitoring module, record a continuous playing time of the audio through a timer, and read the upper limit time from the mobile phone preset module, and record After the audio continuous playing time exceeds the upper limit time, sending a trigger signal to the earphone control module;
所述耳机控制模块是设置成: 接收到来自所述计时模块的触发信号后, 使手机停止向耳机输出音频或发送提示通知短消息。  The earphone control module is configured to: after receiving the trigger signal from the timing module, stop the mobile phone from outputting audio to the earphone or sending a prompt notification short message.
所述计时模块还设置成: 在记录的音频持续播放时间没有超过所述上限 时间时, 对所述定时器的值清零; 并且当在通过定时器记录音频持续播放时 间的过程中, 接收到来自所述耳机检测模块发送的连接断开通知时, 存储所 述定时器的记录; 以及  The timing module is further configured to: clear the value of the timer when the recorded audio continuous playing time does not exceed the upper limit time; and receive the audio during the continuous playing time by recording the audio through the timer Storing a record of the timer when a disconnection notification is sent from the headset detection module;
所述耳机检测模块还设置成: 检测到耳机与手机建立的连接断开后, 向 所述计时模块发送连接断开通知。  The earphone detecting module is further configured to: after detecting that the connection established between the earphone and the mobile phone is disconnected, send a connection disconnection notification to the timing module.
所述手机预设模块还设置成: 设置手机与耳机连接中断的时间; 以及 所述计时模块通过如下方式在收到来自所述音量监测模块的音频后, 通 过定时器记录所述音频的持续播放时间: The mobile phone preset module is further configured to: set a time when the connection between the mobile phone and the earphone is interrupted; and the timing module is configured to receive the audio from the volume monitoring module by using the following manner The timer keeps track of the duration of the audio playback:
所述计时模块是设置成: 在收到来自所述音量监测模块的音频后, 判断 所述定时器的值是否为零, 如果所述定时器的值为零, 从零开始记录所述音 频持续播放时间; 如果所述定时器的值不为零, 从所述手机预设模块读取所 述设置的手机与耳机连接中断的时间, 并判断耳机与手机连接中断的时间是 否小于所述设置的中断时间, 如果耳机与手机连接中断的时间小于所述设置 的中断时间, 则从所述定时器已存储的值开始记录所述音频持续播放时间; 如果耳机与手机连接中断的时间不小于所述设置的中断时间, 则将所述定时 器的值清零, 从零开始记录所述音频持续播放时间。  The timing module is configured to: after receiving the audio from the volume monitoring module, determine whether the value of the timer is zero, if the value of the timer is zero, record the audio from zero Playing time; if the value of the timer is not zero, reading the time when the connection between the set mobile phone and the earphone is interrupted from the mobile phone preset module, and determining whether the time when the connection between the earphone and the mobile phone is interrupted is less than the setting Interruption time, if the time when the connection between the earphone and the mobile phone is interrupted is less than the set interruption time, the audio continuous playing time is recorded from the value already stored by the timer; if the connection between the earphone and the mobile phone is interrupted, the time is not less than When the interrupt time is set, the value of the timer is cleared to zero, and the audio continuous playing time is recorded from zero.
所述手机预设模块还设置成: 设置短消息通知号码; 以及  The mobile phone preset module is further configured to: set a short message notification number;
所述耳机控制模块通过如下方式在接收到来自所述计时模块的触发信号 后, 发送提示通知短消息, 包括:  The headset control module sends a prompt notification short message after receiving the trigger signal from the timing module, including:
所述耳机控制模块是设置成:在接收到来自所述计时模块的触发信号后, 从所述手机预设模块读取设置的短消息通知号码, 向所述设置的短消息通知 号码发送提示通知短消息。  The earphone control module is configured to: after receiving the trigger signal from the timing module, read the set short message notification number from the mobile phone preset module, and send a prompt notification to the set short message notification number short message.
所述耳机控制模块还设置成: 接收来自所述设置的短消息通知号码的指 令消息, 并执行所述指令消息对应的操作。  The headset control module is further configured to: receive an instruction message from the set short message notification number, and perform an operation corresponding to the instruction message.
上述技术方案, 将耳机持续播放的高音量音频的时间作为对耳机放音操 作的进行控制的参考对象, 由于长时间的收听高音量音频对耳膜的损害是不 可逆的, 本发明相对相关技术, 更加有效地控制了声音对耳膜的损害。 附图概述 In the above technical solution, the time of the high volume audio continuously played by the earphone is used as a reference object for controlling the sounding operation of the earphone, and the damage of the eardrum caused by the long time listening to the high volume audio is irreversible, and the present invention is relatively related to the related art. The damage of the sound to the eardrum is effectively controlled. BRIEF abstract
图 1为本实施例的控制耳机放音时长的方法流程图;  1 is a flow chart of a method for controlling a duration of a sound emission of a headphone according to the embodiment;
图 2为本实施例的控制耳机放音时长的手机模块图。  FIG. 2 is a diagram of a mobile phone module for controlling the duration of the earphone playing time according to the embodiment.
本发明的较佳实施方式 Preferred embodiment of the invention
为使本发明的目的、 技术方案和优点更加清楚明白, 下文中将结合附图 对本发明的实施例进行详细说明。 需要说明的是, 在不冲突的情况下, 本申 请中的实施例及实施例中的特征可以相互任意组合。 In order to make the objects, technical solutions and advantages of the present invention more clear, the following will be combined with the accompanying drawings. The embodiments of the present invention will be described in detail. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
图 1为本实施例的控制耳机放音时长的方法流程图。  FIG. 1 is a flow chart of a method for controlling the duration of sounding of a headphone according to the embodiment.
S101 手机检测耳机是否与所述手机建立连接,当检测到耳机与所述手机 建立连接后, 执行步骤 S102;否则, 继续执行步骤 S101;  S101, the mobile phone detects whether the headset establishes a connection with the mobile phone, and when it is detected that the headset establishes a connection with the mobile phone, step S102 is performed; otherwise, step S101 is continued;
S102 ***测耳机播放音频的音量是否超过预设音量上限值,如果超过 预设音量上限值, 执行步骤 S103; 否则, 继续执行步骤 S102;  S102 The mobile phone monitors whether the volume of the audio played by the earphone exceeds the preset volume upper limit value. If the preset volume upper limit value is exceeded, step S103 is performed; otherwise, step S102 is continued;
S 103通过定时器记录耳机持续播放音频音量超过该上限值的时间; 若所述定时器在记录耳机持续播放音频音量超过所述上限值的时间的过 程中, 手机检测到耳机与所述手机断开连接, 则存储定时器的记录;  S103 records, by using a timer, a time when the earphone continuously plays the audio volume exceeding the upper limit value; if the timer is in the process of recording the time when the earphone continues to play the audio volume exceeding the upper limit value, the mobile phone detects the earphone and the When the mobile phone is disconnected, the record of the timer is stored;
当定时器开始记录时间时, 先判断用于记录耳机持续播放音频音量超过 所述上限值时间的定时器的值是否为零, 如果定时器的值为零, 从零开始记 录耳机持续播放音频音量超过该上限值的时间; 如果定时器的值不为零, 判 断耳机与手机连接中断的时间是否小于预设中断时间, 如果小于预设中断时 间, 则从所述定时器已存储的值开始记录耳机持续播放音频音量超过该上限 值的时间; 如果不小于预设中断时间, 则将定时器的值清零, 从零开始记录 耳机持续播放音频音量超过该上限值的时间;  When the timer starts recording time, it is first determined whether the value of the timer for recording the earphone continuous playing audio volume exceeds the upper limit time is zero. If the value of the timer is zero, recording the earphone continuously plays audio from zero. The time when the volume exceeds the upper limit value; if the value of the timer is not zero, it is determined whether the time when the connection between the earphone and the mobile phone is interrupted is less than the preset interruption time, and if it is less than the preset interruption time, the value stored from the timer is stored. Start recording the time when the earphone continuously plays the audio volume exceeding the upper limit value; if it is not less than the preset interrupt time, the value of the timer is cleared to zero, and the time from when the earphone continues to play the audio volume exceeds the upper limit value is recorded from zero;
S104 判断定时器记录的时间是否超过预设的持续播放音频音量超过所 述上限值的时间,如果超过该预设的时间,执行步骤 S105;如果未超过该预设 的时间, 执行步骤 S 106;  S104: determining whether the time recorded by the timer exceeds a preset duration of the continuous playing audio volume exceeding the upper limit value, if the preset time is exceeded, step S105 is performed; if the preset time is not exceeded, step S106 is performed. ;
S105停止向耳机输出音频或发送提示通知短消息,执行步骤 S107;  S105 stops outputting audio to the earphone or sending a prompt notification short message, and executing step S107;
手机可向预设的号码发送提示通知短消息, 待接收来自所述预设号码的 指令消息后, 执行所述指令消息对应的操作, 如停止向耳机输出音频操作。  The mobile phone may send a prompt notification short message to the preset number, and after receiving the instruction message from the preset number, perform an operation corresponding to the instruction message, such as stopping outputting an audio operation to the earphone.
本实施例中还可预设手机停止向耳机输出音频操作的持续时间, 超过该 时间后, 手机可恢复向耳机输出音频功能。  In this embodiment, the duration in which the mobile phone stops outputting the audio operation to the earphone may be preset. After the time is exceeded, the mobile phone may resume outputting the audio function to the earphone.
S106对所述定时器清零,,执行步骤 S107;  S106 clears the timer, and performs step S107;
S107 流程结束。 下面以两个具体的应用示例对上述实施例进行进一步详细说明。 The S107 process ends. The above embodiment will be further described in detail below with two specific application examples.
应用示例一:  Application example one:
步骤一: 手机检测到耳机与所述手机建立连接, 开始对耳机播放音频的 音量进行监测;  Step 1: The mobile phone detects that the earphone establishes a connection with the mobile phone, and starts monitoring the volume of the audio played by the earphone;
步骤二: ***测到耳机播放音频的音量超过预设音量上限值后, 对记 录耳机持续播放音频音量超过该上限值时间的定时器进行判断;  Step 2: After the mobile phone monitors that the volume of the audio played by the earphone exceeds the preset volume upper limit value, the timer for recording the continuous playing audio volume of the earphone exceeds the upper limit time is judged;
步骤三: 手机判断出该定时器的值为零, 则通过该定时器从零开始记录 耳机持续播放音频音量超过该上限值的时间;  Step 3: The mobile phone determines that the value of the timer is zero, and records the time when the earphone continues to play the audio volume exceeding the upper limit value by using the timer from zero;
步骤四: ***测到耳机播放音频的音量降到该上限值以下, 并判断出 此时定时器记录的时间值没有超过预设时间, 手机对定时器清零;  Step 4: The volume of the audio monitored by the mobile phone is reduced below the upper limit value, and it is determined that the time value recorded by the timer does not exceed the preset time, and the mobile phone clears the timer;
步骤五: 手机继续监测耳机播放音频的音量;  Step 5: The mobile phone continues to monitor the volume of the audio played by the headset;
步骤六: ***测到耳机播放音频的音量超过预设音量上限值, 继续对 记录耳机持续播放音频音量超过该上限值时间的定时器进行判断;  Step 6: The mobile phone monitors that the volume of the audio played by the earphone exceeds the preset upper limit value, and continues to judge the timer for recording the continuous playing audio volume of the earphone exceeding the upper limit time;
步骤七: 手机判断出该定时器的值为零, 则通过定时器从零开始记录耳 机持续播放音频音量超过该上限值的时间;  Step 7: The mobile phone determines that the value of the timer is zero, and records the time when the earphone continues to play the audio volume exceeding the upper limit value from the zero through the timer;
步骤八: 定时器记录的时间超过预设时间, 手机停止向耳机输出音频或 发送提示通知短消息。  Step 8: The timer records the time longer than the preset time, and the mobile phone stops outputting audio to the earphone or sends a prompt notification short message.
应用示例二: Application example two:
步骤一: 手机检测到耳机与所述手机建立连接, 开始对耳机播放音频的 音量进行监测;  Step 1: The mobile phone detects that the earphone establishes a connection with the mobile phone, and starts monitoring the volume of the audio played by the earphone;
步骤二: ***测到耳机播放音频的音量超过预设音量上限值后, 对记 录耳机持续播放音频音量超过该上限值时间的定时器进行判断;  Step 2: After the mobile phone monitors that the volume of the audio played by the earphone exceeds the preset volume upper limit value, the timer for recording the continuous playing audio volume of the earphone exceeds the upper limit time is judged;
步骤三: 手机判断出该定时器的值为零, 则通过定时器从零开始记录耳 机持续播放音频音量超过该上限值的时间;  Step 3: The mobile phone determines that the value of the timer is zero, and records the time when the earphone continues to play the audio volume exceeding the upper limit value from the zero through the timer;
步骤四: 定时器在记录耳机持续播放音频音量超过该上限值时间的过程 中, 手机检测到耳机与所述手机断开连接, 手机存储定时器记录并记录连接 断开的开始时间; Step 4: The timer is in the process of recording the earphone continuously playing the audio volume exceeding the upper limit time The mobile phone detects that the earphone is disconnected from the mobile phone, and the mobile phone storage timer records and records the start time of the disconnection;
步骤五: 手机检测到耳机与所述手机重新建立连接, 开始对耳机播放音 频的音量进行监测, 并记录连接建立时间;  Step 5: The mobile phone detects that the headset re-establishes a connection with the mobile phone, starts monitoring the volume of the audio played by the earphone, and records the connection establishment time;
步骤六: ***测到耳机播放音频的音量超过预设音量上限值, 对记录 耳机持续播放音频音量超过该上限值时间的定时器进行判断;  Step 6: The volume of the audio monitored by the mobile phone to the earphone exceeds the preset upper limit value, and the timer for recording the continuous playing audio volume of the earphone exceeds the upper limit time is judged;
步骤七: 定时器的值不为零, 手机通过记录的连接断开的开始时间和连 接建立时间计算连接中断的时间, 并判断计算的连接中断的时间是否小于预 设连接中断的时间;  Step 7: The value of the timer is not zero. The mobile phone calculates the time of the connection interruption by the start time of the disconnected connection and the connection establishment time, and determines whether the calculated connection interruption time is less than the preset connection interruption time;
步骤八: 手机判断出计算的连接中断的时间小于预设中断时间, 手机使 所述定时器从已存储的值开始记录耳机持续播放音频音量超过预设音量上限 值的时间;  Step 8: The mobile phone determines that the calculated connection interruption time is less than the preset interruption time, and the mobile phone causes the timer to record the time when the earphone continues to play the audio volume exceeding the preset volume upper limit value from the stored value;
步骤九: 定时器记录的时间超过预设的持续播放音频音量超过所述上限 值的时间, 手机停止向耳机输出音频或发送提示通知。  Step 9: The time when the timer is recorded exceeds the preset duration of the continuous playing audio volume exceeding the upper limit value, the mobile phone stops outputting audio to the earphone or sends a prompt notification.
图 2为本实施例的控制耳机放音时长的手机模块图。 FIG. 2 is a diagram of a mobile phone module for controlling the duration of the earphone playing time according to the embodiment.
该手机包括: 包括手机预设模块 201、 耳机检测模块 202、 音量监测模块 203、 计时模块 204、 耳机控制模块 205 , 其中,  The mobile phone includes: a mobile phone preset module 201, a headset detecting module 202, a volume monitoring module 203, a timing module 204, and a headset control module 205, wherein
手机预设模块 201是设置成: 设置音频音量上限值和持续播放音频音量 超过所述上限值的上限时间; 根据需要, 手机预设模块 201还设置成: 设置 手机和耳机的中断时间、 短消息通知号码; 耳机检测模块 202是设置成: 检测耳机与手机是否建立连接, 以及在检 测到耳机与手机建立连接后, 向所述音量监测模块 203发出触发信号; 该耳 机检测模块 202还设置成: 检测到耳机与手机建立的连接断开后, 向所述计 时模块 204发送连接断开通知;  The mobile phone preset module 201 is configured to: set an audio volume upper limit value and an upper limit time for continuously playing the audio volume exceeding the upper limit value; the mobile phone preset module 201 is further configured to: set an interruption time of the mobile phone and the earphone, The short message notification module 202 is configured to: detect whether the earphone establishes a connection with the mobile phone, and send a trigger signal to the volume monitoring module 203 after detecting that the earphone establishes a connection with the mobile phone; the earphone detecting module 202 further sets After detecting that the connection established between the earphone and the mobile phone is disconnected, sending a connection disconnection notification to the timing module 204;
音量监测模块 203是设置成: 接收到所述耳机检测模块 202发出的触发 信号后, 从手机预设模块 201读取设置的音频音量上限值, 并监测耳机播放 音频的音量是否超过该音频音量上限值; 以及在监测到耳机播放音频的音量 超过该音频音量上限值时, 将耳机播放音频输出到计时模块 204; The volume monitoring module 203 is configured to: after receiving the trigger signal sent by the earphone detecting module 202, read the set audio volume upper limit value from the mobile phone preset module 201, and monitor whether the volume of the earphone playing audio exceeds the audio volume. Upper limit; and the volume at which the audio is monitored for headphones When the audio volume upper limit value is exceeded, the earphone playing audio is output to the timing module 204;
计时模块 204是设置成: 收到来自所述音量监测模块 203的音频后, 通 过定时器记录该音频的持续播放时间, 并从手机预设模块 201读取设置的持 续播放音频音量超过所述上限值的上限时间, 并在记录的音频持续播放时间 超过所述设置的上限时间后, 向所述耳机控制模块 205发送触发信号; 该计 时模块 204 , 还可设置成: 在记录的音频持续播放时间没有超过所述设置的 上限时间时, 对所述定时器清零; 并且当在通过定时器记录音频持续播放时 间的过程中, 接收到来自所述耳机检测模块 202发送的连接断开通知时, 存 储所述定时器的记录;  The timing module 204 is configured to: after receiving the audio from the volume monitoring module 203, record the continuous playing time of the audio through a timer, and read the set continuous playing audio volume from the mobile phone preset module 201 to exceed the above An upper limit time of the limit value, and after the recorded audio continuous playing time exceeds the set upper limit time, sending a trigger signal to the earphone control module 205; the timing module 204 can also be configured to: continuously play the recorded audio When the time does not exceed the set upper limit time, the timer is cleared; and when the connection disconnection notification sent from the earphone detecting module 202 is received during the recording of the audio continuous playing time by the timer , storing a record of the timer;
该计时模块 204还设置成: 收到来自所述音量监测模块 203的音频后, 先判断用于记录该音频持续播放时间的定时器的值是否为零, 如果定时器的 值为零, 从零开始记录该音频持续播放时间; 如果定时器的值不为零, 从手 机预设模块 201读取设置的手机与耳机连接中断的时间, 并判断耳机与手机 连接中断的时间是否小于该设置的中断时间, 如果耳机与手机连接中断的时 间小于该设置的中断时间, 则从所述定时器已存储的值开始记录该音频持续 播放时间; 如果耳机与手机连接中断的时间不小于设置的中断时间, 则将所 述定时器的值清零, 从零开始记录该音频持续播放时间。  The timing module 204 is further configured to: after receiving the audio from the volume monitoring module 203, first determine whether the value of the timer for recording the audio continuous playing time is zero, if the value of the timer is zero, from zero Start recording the audio continuous playing time; if the value of the timer is not zero, read the disconnected time between the set mobile phone and the earphone from the mobile phone preset module 201, and determine whether the time when the earphone and the mobile phone connection are interrupted is less than the interrupt of the setting Time, if the time when the connection between the earphone and the mobile phone is interrupted is less than the set interruption time, the audio continuous playing time is recorded from the stored value of the timer; if the connection between the earphone and the mobile phone is interrupted for not less than the set interruption time, Then, the value of the timer is cleared, and the audio continuous playing time is recorded from zero.
耳机控制模块 205是设置成: 接收到来自所述计时模块 204的触发信号 后, 使手机停止向耳机输出音频或发送提示通知短消息;  The earphone control module 205 is configured to: after receiving the trigger signal from the timing module 204, stop the mobile phone from outputting audio to the earphone or send a prompt notification short message;
上述耳机控制模块 205还设置成: 在接收到来自所述计时模块 204的触 发信号后, 从所述手机预设模块 201读取设置的短消息通知号码, 向所述设 置的短消息通知号码发送提示通知短消息;  The headset control module 205 is further configured to: after receiving the trigger signal from the timing module 204, read the set short message notification number from the mobile phone preset module 201, and send the short message notification number to the set Prompt notification short message;
该耳机控制模块 205还设置成: 接收来自所述设置的短消息通知号码的 指令消息, 并执行所述指令消息对应的操作。  The headset control module 205 is further configured to: receive an instruction message from the set short message notification number, and perform an operation corresponding to the instruction message.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现, 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明不限制于任 何特定形式的硬件和软件的结合。 One of ordinary skill in the art will appreciate that all or a portion of the above steps may be performed by a program to instruct the associated hardware, such as a read only memory, a magnetic disk, or an optical disk. Optionally, all or part of the steps of the above embodiments may also be used. One or more integrated circuits are implemented. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware or in the form of a software function module. The invention is not limited to any specific form of combination of hardware and software.
需要说明的是, 本发明还可有其他多种实施例, 在不背离本发明精神及 和变形, 但这些相应的改变和变形都应属于本发明所附的权利要求的保护范 围。  It is to be understood that the invention may be embodied in other forms and modifications without departing from the spirit and scope of the invention.
工业实用性 Industrial applicability
上述技术方案, 将耳机持续播放的高音量音频的时间作为对耳机放音操 作的进行控制的参考对象, 由于长时间的收听高音量音频对耳膜的损害是不 可逆的, 本发明相对相关技术, 更加有效地控制了声音对耳膜的损害。  In the above technical solution, the time of the high volume audio continuously played by the earphone is used as a reference object for controlling the sounding operation of the earphone, and the damage of the eardrum caused by the long time listening to the high volume audio is irreversible, and the present invention is relatively related to the related art. The damage of the sound to the eardrum is effectively controlled.

Claims

权 利 要 求 书 Claim
1、 一种控制耳机放音时长的方法, 包括:  1. A method for controlling the duration of a headphone playback, comprising:
当手机检测到耳机与所述手机建立连接后, 监测耳机播放音频的音量是 否超过预设音量上限值;  After the mobile phone detects that the headset establishes a connection with the mobile phone, it monitors whether the volume of the audio played by the headset exceeds a preset upper volume limit value;
当***测到耳机播放音频的音量超过预设音量上限值时, 通过定时器 记录耳机持续播放音频音量超过所述上限值的时间; 以及  When the mobile phone monitors that the volume of the audio played by the earphone exceeds the preset upper limit value, the timer records the time when the earphone continuously plays the audio volume exceeding the upper limit value;
当所述定时器记录的时间超过预设时间后, 停止向耳机输出音频或发送 提示通知短消息。  When the time recorded by the timer exceeds the preset time, the output of the audio to the earphone or the transmission of the notification short message is stopped.
2、 如权利要求 1所述的方法, 还包括:  2. The method of claim 1 further comprising:
如果所述定时器记录的时间没有超过所述预设时间, 则对所述定时器的 值清零; 以及  If the time recorded by the timer does not exceed the preset time, the value of the timer is cleared;
如果在所述定时器记录耳机持续播放音频音量超过所述上限值的时间的 过程中, 手机检测到耳机与所述手机断开连接, 则存储定时器的记录。  If the handset detects that the headset is disconnected from the handset during the time that the timer records that the headset continues to play the audio volume above the upper limit, then a record of the timer is stored.
3、 如权利要求 2所述的方法, 其中,  3. The method of claim 2, wherein
所述当耳机播放音频的音量超过预设音量上限值时, 通过定时器记录耳 机持续播放音频音量超过所述上限值的时间的步骤包括:  When the volume of the audio played by the earphone exceeds the preset volume upper limit value, the step of recording the time when the earphone continuously plays the audio volume exceeding the upper limit value by using a timer includes:
当耳机播放音频的音量超过预设音量上限值时, 判断所述定时器的值是 否为零, 如果所述定时器的值为零, 从零开始记录耳机持续播放音频音量超 过所述上限值的时间; 以及  When the volume of the audio played by the earphone exceeds the preset volume upper limit value, it is determined whether the value of the timer is zero, and if the value of the timer is zero, recording the earphone continuous playing audio volume from the zero exceeds the upper limit Value time; and
如果所述定时器的值不为零, 判断耳机与手机连接中断的时间是否小于 预设的中断时间, 如果小于预设的中断时间, 则从所述定时器已存储的值开 始记录耳机持续播放音频音量超过所述上限值的时间; 如果不小于预设的中 断时间, 则将所述定时器的值清零, 从零开始记录耳机持续播放音频音量超 过所述上限值的时间。  If the value of the timer is not zero, it is determined whether the time when the connection between the earphone and the mobile phone is interrupted is less than a preset interruption time. If the time is less than the preset interruption time, the earphone is continuously recorded from the stored value of the timer. The time when the audio volume exceeds the upper limit value; if not less than the preset interruption time, the value of the timer is cleared to zero, and the time from when the earphone continues to play the audio volume exceeds the upper limit value is recorded from zero.
4、 如权利要求 1~3中任一项权利要求所述的方法, 其中,  4. The method according to any one of claims 1 to 3, wherein
所述定时器记录的时间超过预设时间后, 发送提示通知短消息的步骤包 括: 所述定时器记录的时间超过预设时间后, 向预设号码发送提示通知短消 息。 After the timer records the time exceeding the preset time, the step of sending the prompt notification short message includes: After the time recorded by the timer exceeds the preset time, the prompt notification short message is sent to the preset number.
5、 如权利要求 4所述的方法, 还包括:  5. The method of claim 4, further comprising:
手机接收来自所述预设号码的指令消息, 并执行所述指令消息对应的操 作。  The handset receives an instruction message from the preset number and performs an operation corresponding to the instruction message.
6、一种控制耳机放音时长的手机, 包括: 手机预设模块、耳机检测模块、 音量监测模块、 计时模块和耳机控制模块, 其中,  6. A mobile phone for controlling the duration of the earphone playback, comprising: a mobile phone preset module, a headphone detection module, a volume monitoring module, a timing module, and a headphone control module, wherein
所述手机预设模块是设置成: 设置音频音量上限值和持续播放音频音量 超过所述上限值的上限时间;  The mobile phone preset module is configured to: set an audio volume upper limit value and an upper limit time for continuously playing the audio volume exceeding the upper limit value;
所述耳机检测模块是设置成: 检测耳机与手机是否建立连接, 并在检测 到耳机与手机建立连接后 , 向所述音量监测模块发出触发信号;  The earphone detecting module is configured to: detect whether the earphone establishes a connection with the mobile phone, and send a trigger signal to the volume monitoring module after detecting that the earphone establishes a connection with the mobile phone;
所述音量监测模块是设置成: 接收到所述耳机检测模块发出的触发信号 后, 从所述手机预设模块读取设置的音频音量上限值, 并监测耳机播放音频 的音量是否超过所述音频音量上限值; 并在监测到耳机播放音频的音量超过 所述音频音量上限值时, 将耳机播放音频输出到计时模块;  The volume monitoring module is configured to: after receiving the trigger signal sent by the earphone detecting module, read the set audio volume upper limit value from the mobile phone preset module, and monitor whether the volume of the earphone playing audio exceeds the The audio volume upper limit value; and when the volume of the audio played by the earphone is monitored to exceed the audio volume upper limit value, the earphone playing audio is output to the timing module;
所述计时模块是设置成: 收到来自所述音量监测模块的音频后, 通过定 时器记录所述音频的持续播放时间, 并从所述手机预设模块读取所述上限时 间, 并在记录的音频持续播放时间超过所述上限时间后, 向所述耳机控制模 块发送触发信号; 以及  The timing module is configured to: after receiving the audio from the volume monitoring module, record a continuous playing time of the audio through a timer, and read the upper limit time from the mobile phone preset module, and record After the audio continuous playing time exceeds the upper limit time, sending a trigger signal to the earphone control module;
所述耳机控制模块是设置成: 接收到来自所述计时模块的触发信号后, 使手机停止向耳机输出音频或发送提示通知短消息。  The earphone control module is configured to: after receiving the trigger signal from the timing module, stop the mobile phone from outputting audio to the earphone or sending a prompt notification short message.
7、 如权利要求 6所述的手机, 其中,  7. The mobile phone according to claim 6, wherein
所述计时模块还设置成: 在记录的音频持续播放时间没有超过所述上限 时间时, 对所述定时器的值清零; 并且当在通过定时器记录音频持续播放时 间的过程中, 接收到来自所述耳机检测模块发送的连接断开通知时, 存储所 述定时器的记录; 以及  The timing module is further configured to: clear the value of the timer when the recorded audio continuous playing time does not exceed the upper limit time; and receive the audio during the continuous playing time by recording the audio through the timer Storing a record of the timer when a disconnection notification is sent from the headset detection module;
所述耳机检测模块还设置成: 检测到耳机与手机建立的连接断开后, 向 所述计时模块发送连接断开通知。 The earphone detection module is further configured to: after detecting that the connection established between the earphone and the mobile phone is disconnected, send a connection disconnection notification to the timing module.
8、 如权利要求 7所述的手机, 其中, 8. The mobile phone according to claim 7, wherein
所述手机预设模块还设置成: 设置手机与耳机连接中断的时间; 以及 所述计时模块通过如下方式在收到来自所述音量监测模块的音频后, 通 过定时器记录所述音频的持续播放时间:  The mobile phone preset module is further configured to: set a time when the connection between the mobile phone and the earphone is interrupted; and the timing module records the continuous playing of the audio by using a timer after receiving the audio from the volume monitoring module Time:
所述计时模块是设置成: 在收到来自所述音量监测模块的音频后, 判断 所述定时器的值是否为零, 如果所述定时器的值为零, 从零开始记录所述音 频持续播放时间; 如果所述定时器的值不为零, 从所述手机预设模块读取所 述设置的手机与耳机连接中断的时间, 并判断耳机与手机连接中断的时间是 否小于所述设置的中断时间, 如果耳机与手机连接中断的时间小于所述设置 的中断时间, 则从所述定时器已存储的值开始记录所述音频持续播放时间; 如果耳机与手机连接中断的时间不小于所述设置的中断时间, 则将所述定时 器的值清零, 从零开始记录所述音频持续播放时间。  The timing module is configured to: after receiving the audio from the volume monitoring module, determine whether the value of the timer is zero, if the value of the timer is zero, record the audio from zero Playing time; if the value of the timer is not zero, reading the time when the connection between the set mobile phone and the earphone is interrupted from the mobile phone preset module, and determining whether the time when the connection between the earphone and the mobile phone is interrupted is less than the setting Interruption time, if the time when the connection between the earphone and the mobile phone is interrupted is less than the set interruption time, the audio continuous playing time is recorded from the value already stored by the timer; if the connection between the earphone and the mobile phone is interrupted, the time is not less than When the interrupt time is set, the value of the timer is cleared to zero, and the audio continuous playing time is recorded from zero.
9、 如权利要求 6~8中任一项所述的手机, 其中,  The mobile phone according to any one of claims 6 to 8, wherein
所述手机预设模块还设置成: 设置短消息通知号码; 以及  The mobile phone preset module is further configured to: set a short message notification number;
所述耳机控制模块通过如下方式在接收到来自所述计时模块的触发信号 后, 发送提示通知短消息:  The earphone control module sends a prompt notification short message after receiving the trigger signal from the timing module by:
所述耳机控制模块是设置成:在接收到来自所述计时模块的触发信号后, 从所述手机预设模块读取设置的短消息通知号码, 向所述设置的短消息通知 号码发送提示通知短消息。  The earphone control module is configured to: after receiving the trigger signal from the timing module, read the set short message notification number from the mobile phone preset module, and send a prompt notification to the set short message notification number short message.
10、 如权利要求 9所述的手机, 其中,  10. The mobile phone according to claim 9, wherein
所述耳机控制模块还设置成: 接收来自所述设置的短消息通知号码的指 令消息, 并执行所述指令消息对应的操作。  The headset control module is further configured to: receive an instruction message from the set short message notification number, and perform an operation corresponding to the instruction message.
PCT/CN2013/077632 2012-09-11 2013-06-21 Method for controlling earphone audio playing duration and mobile phone WO2013178106A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210334186.5A CN103685672A (en) 2012-09-11 2012-09-11 Method for controlling earphone playback time and mobile phone
CN201210334186.5 2012-09-11

Publications (1)

Publication Number Publication Date
WO2013178106A1 true WO2013178106A1 (en) 2013-12-05

Family

ID=49672448

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/077632 WO2013178106A1 (en) 2012-09-11 2013-06-21 Method for controlling earphone audio playing duration and mobile phone

Country Status (2)

Country Link
CN (1) CN103685672A (en)
WO (1) WO2013178106A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI617135B (en) * 2014-12-18 2018-03-01 緯創資通股份有限公司 Audio output device and control method thereof
CN104581494B (en) * 2015-01-27 2018-01-23 深圳市冠旭电子股份有限公司 Method for protecting hearing ability, system and earphone based on earphone
CN107566940A (en) * 2017-10-11 2018-01-09 深圳传音制造有限公司 Earpiece volume adjusting method and earpiece volume regulating system based on intelligent terminal
CN108834017A (en) * 2018-07-09 2018-11-16 深圳市沃特沃德股份有限公司 Earpiece sound pressures control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040151336A1 (en) * 2003-01-30 2004-08-05 Tom Han Handheld device having an auto-volume control means for earphone plugging and controlling method thereof
CN101060724A (en) * 2007-04-25 2007-10-24 比特联创电子(北京)有限公司 A method for avoiding the hearing injury of audio equipment and electro-acoustic device made through this method
CN101114818A (en) * 2006-07-26 2008-01-30 微星科技股份有限公司 Sound volume control method
TW200808096A (en) * 2006-07-31 2008-02-01 Compal Electronics Inc Method for controlling volume of earphone
CN101461255A (en) * 2006-10-30 2009-06-17 全允豪 Method and apparatus for adjusting audio volume to prevent hearing loss or damage
CN102113313A (en) * 2008-07-29 2011-06-29 Lg电子株式会社 Method and apparatus for processing audio signal
CN102172044A (en) * 2011-04-29 2011-08-31 华为终端有限公司 Control method and apparatus for audio output
JP2012169839A (en) * 2011-02-14 2012-09-06 Sony Corp Sound signal output apparatus and sound signal output method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051822A (en) * 2007-03-23 2007-10-10 炬力集成电路设计有限公司 Method for automatic control and regulating broadcast volume
CN201286161Y (en) * 2008-10-28 2009-08-05 张莉楠 Time limiting earphone
CN201281943Y (en) * 2008-10-28 2009-07-29 张莉楠 Player capable of restricting play time and sound volume

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040151336A1 (en) * 2003-01-30 2004-08-05 Tom Han Handheld device having an auto-volume control means for earphone plugging and controlling method thereof
CN101114818A (en) * 2006-07-26 2008-01-30 微星科技股份有限公司 Sound volume control method
TW200808096A (en) * 2006-07-31 2008-02-01 Compal Electronics Inc Method for controlling volume of earphone
CN101461255A (en) * 2006-10-30 2009-06-17 全允豪 Method and apparatus for adjusting audio volume to prevent hearing loss or damage
CN101060724A (en) * 2007-04-25 2007-10-24 比特联创电子(北京)有限公司 A method for avoiding the hearing injury of audio equipment and electro-acoustic device made through this method
CN102113313A (en) * 2008-07-29 2011-06-29 Lg电子株式会社 Method and apparatus for processing audio signal
JP2012169839A (en) * 2011-02-14 2012-09-06 Sony Corp Sound signal output apparatus and sound signal output method
CN102172044A (en) * 2011-04-29 2011-08-31 华为终端有限公司 Control method and apparatus for audio output

Also Published As

Publication number Publication date
CN103685672A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
TWI514256B (en) Audio player and control method thereof
WO2017045453A1 (en) Monitoring method and device based on earphone
WO2018028071A1 (en) Audio playback system, and hearing protection method for use when playing back audio using same
US20080025525A1 (en) Method for controlling volume of earphone
US20090245537A1 (en) Automatic ipod volume adjustment
US20180150276A1 (en) System and method for enabling communication of ambient sound as an audio stream
TW201327369A (en) Audio player and control method thereof
WO2013178106A1 (en) Method for controlling earphone audio playing duration and mobile phone
WO2015143896A1 (en) Recognition circuit, method, apparatus and system for external device based on earphone socket
CN103237277A (en) Method and device for headset audio playing
US20130101125A1 (en) Acoustic Shock Prevention Apparatus
CN107621933B (en) Audio playing method and device and related medium product
CN103985394A (en) Audio file playing method
US11611822B2 (en) Earbud operation during earbud insertion detection
WO2014154077A1 (en) Call ending method, device and mobile terminal
EP2508007B1 (en) Arrangement in a device and method for use with a service involving play out of media
TWI539837B (en) Audio player and control method thereof
CN103985400A (en) Audio file playing system
TW201423587A (en) System and method for providing prompts for callee
CN104965651B (en) Information processing method and electronic equipment
CN103984518A (en) Intelligent mobile terminal
CN103985396A (en) Audio playing method
US9473093B2 (en) Method and apparatus for ultrasonic triggered audio reduction
TWI583168B (en) A phone and the system and method of playing music during a call
TWI781579B (en) Audio signal processing method, device and electronic apparatus

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: 13797932

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: 13797932

Country of ref document: EP

Kind code of ref document: A1